:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18233b;background:#F6F7FB;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--navy:#5B3FD8;--navy2:#4930BD;--ink:#18233b;--muted:#7d879a;--line:#e7eaf1;--surface:#fff;--purple:#5B3FD8;--green:#16866c;--amber:#b97819;--blue:#3676d8;--radius:17px}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#F6F7FB}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,textarea,select{width:100%;border:1px solid #dfe4ed;border-radius:10px;padding:11px 12px;color:var(--ink);background:#fff;outline:none;transition:border .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#5B3FD8;box-shadow:0 0 0 3px #6b61e81a}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#a3aaba}small{font-size:12px}.muted{color:var(--muted)}.micro{font-size:11px;line-height:1.6}.boot{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:12px;background:#f6f8fc}.boot-title{font-size:21px;font-weight:800;letter-spacing:-.6px}.spinner{width:22px;height:22px;border:2px solid #dfe3f0;border-top-color:#6459dd;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.logo-mark{width:38px;height:38px;display:grid;place-content:center;position:relative;border-radius:12px;color:white;font-size:15px;font-weight:900;letter-spacing:-2px;background:linear-gradient(145deg,#8379ff,#5146cf);box-shadow:0 5px 13px #554bd133;flex-shrink:0}.logo-mark span{color:#c8f6e9}.logo-mark.large{width:58px;height:58px;border-radius:18px;font-size:22px;margin:0 auto 18px}.logo-mark.mini{width:28px;height:28px;border-radius:9px;font-size:12px}.pin-wrap{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top,#ebeaff 0,transparent 48%),#f6f8fc}.pin-card{width:min(100%,390px);background:#fff;padding:34px 28px;border:1px solid #e9eaf5;border-radius:24px;box-shadow:0 22px 70px #222e5510;text-align:center}.pin-card h1{font-size:27px;letter-spacing:-1px;margin:7px 0}.pin-card p{line-height:1.6}.pin-card form{margin-top:23px}.pin-input{text-align:center;font-size:27px;letter-spacing:13px;padding:14px 10px;margin-bottom:13px}.form-error{font-size:13px;color:#c34452}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#898fa1;text-transform:uppercase}.eyebrow-dot{color:#b5b8c7;margin:0 5px}.btn{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border-radius:10px;font-weight:700;font-size:13px;white-space:nowrap;transition:transform .15s,background .15s,border .15s;min-height:39px}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--navy);color:#fff;box-shadow:0 4px 9px #14213a18}.btn.primary:hover{background:#4930BD}.btn.outline{background:#fff;border-color:#dfe4ed;color:#34415b}.btn.outline:hover,.btn.subtle:hover{background:#f5f6fa}.btn.subtle{background:transparent;color:#657087}.btn.small{font-size:12px;min-height:33px;padding:7px 10px}.btn.full{width:100%}.icon-btn{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#6e7890;display:inline-grid;place-items:center;flex-shrink:0}.icon-btn:hover{background:#f0f2f8;color:#293956}.danger-icon:hover{background:#fff0f0;color:#c84653}.danger-text{color:#c34d59!important}.green-text{color:#178466!important}.amber-text{color:#b97819!important}.app-shell{min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:var(--navy);color:#e9eefb;padding:23px 15px 14px;display:flex;flex-direction:column;z-index:30}.brand-lockup{display:flex;align-items:center;gap:11px;padding:0 8px 25px}.brand-lockup b{display:block;font-size:17px;letter-spacing:-.5px;color:#fff}.brand-lockup small{display:block;font-size:8px;letter-spacing:1.55px;color:#8794b4;margin-top:4px;font-weight:800}.workspace-chip{display:flex;align-items:center;gap:9px;padding:11px 10px;border:1px solid #ffffff16;border-radius:12px;background:#ffffff08;margin-bottom:25px}.workspace-avatar{display:grid;place-items:center;width:31px;height:31px;background:#c8c4ff;color:#38318f;border-radius:9px;font-weight:800}.workspace-copy{flex:1;min-width:0}.workspace-copy b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-copy small{display:block;color:#8c9ab9;font-size:10px;margin-top:4px}.workspace-chip>svg{color:#7f8ca9}.nav-group{margin-bottom:23px}.nav-caption{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#7785a7;padding:0 12px;margin-bottom:9px}.nav-link{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:0;background:transparent;color:#9ba7c2;border-radius:10px;text-align:left;font-size:12px;font-weight:600;margin:3px 0;min-height:40px}.nav-link:hover{color:#fff;background:#ffffff0b}.nav-link.active{background:#ffffff20;color:#fff;box-shadow:inset 3px 0 #c9c1ff}.nav-link.active svg{color:#ffffff}.nav-link span:nth-child(2){flex:1}.nav-count{font-size:10px;padding:3px 6px;border-radius:6px;background:#ffffff15;color:#c8d0e7}.sidebar-bottom{margin-top:auto}.local-status{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12;padding:16px 8px;margin-bottom:9px}.status-dot{display:inline-block;width:7px;height:7px;background:#43c79d;border-radius:50%;box-shadow:0 0 0 3px #43c79d18;flex-shrink:0}.local-status b{display:block;font-size:11px;color:#d8e1f3}.local-status small{display:block;color:#8491b1;font-size:10px;margin-top:4px}.sidebar-bottom .nav-link{font-size:11px}.sidebar-foot{text-align:center;color:#667594;font-size:8px;letter-spacing:1.2px;margin-top:15px}.main-column{margin-left:246px;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:66px;background:#ffffffde;backdrop-filter:blur(14px);border-bottom:1px solid #e9ecf2;display:flex;align-items:center;justify-content:space-between;padding:0 35px;position:sticky;top:0;z-index:15}.breadcrumb{display:flex;align-items:center;gap:9px;color:#a0a7b6;font-size:12px}.breadcrumb b{font-weight:700;color:#46516a}.top-actions{display:flex;align-items:center;gap:15px}.offline-pill{display:flex;align-items:center;gap:8px;background:#f0faf6;border:1px solid #d8f0e7;border-radius:20px;padding:7px 10px;color:#4c8a78;font-size:10px;font-weight:700}.offline-pill .status-dot{width:6px;height:6px}.profile-bubble{width:31px;height:31px;display:grid;place-items:center;background:#e5e2ff;color:#5146b6;font-weight:800;font-size:12px;border-radius:50%}.mobile-menu,.mobile-close{display:none}.page-content{width:100%;max-width:1440px;margin:0 auto;padding:31px 35px 38px;flex:1}.hero-row,.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:26px}.hero-row h1,.page-heading h1{font-size:30px;line-height:1.18;letter-spacing:-1.3px;margin:9px 0 7px;color:#18233b;font-weight:800}.subhead{margin:0;color:#8992a4;font-size:13px;line-height:1.6}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric-card{padding:17px 18px 16px;background:#fff;border:1px solid #e8ebf2;border-radius:15px;min-width:0;box-shadow:0 2px 4px #24345203}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#828ba0;font-size:11px;font-weight:650}.metric-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.metric-icon.violet,.quick-icon.violet{color:#6559d6;background:#efedff}.metric-icon.green,.quick-icon.green{color:#16846a;background:#e3f7ef}.metric-icon.amber,.quick-icon.amber{color:#b97a1b;background:#fff4df}.metric-icon.blue,.quick-icon.blue{color:#3676d8;background:#e8f1ff}.metric-value{display:block;font-size:24px;letter-spacing:-.9px;font-weight:800;margin:12px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-card small{color:#9ba3b2;font-size:10px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:17px;margin-bottom:18px}.card{background:#fff;border:1px solid #e8ebf2;border-radius:var(--radius);box-shadow:0 2px 4px #24345203;min-width:0}.recent-card,.quick-card,.inventory-card{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.card-head h2{font-size:15px;letter-spacing:-.3px;margin:0 0 5px}.card-head p{font-size:11px;color:#9aa2b2;margin:0}.sparkle{color:#8b82ef}.action-list{display:flex;flex-direction:column;gap:3px}.quick-action{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:10px 7px;background:transparent;border:0;border-radius:10px;color:#788297}.quick-action:hover{background:#f8f9fc}.quick-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.quick-copy{flex:1;min-width:0}.quick-copy b{display:block;font-size:12px;color:#303b53;margin-bottom:4px}.quick-copy small{display:block;color:#9ca4b4;font-size:10px}.quick-action>svg{width:15px}.table-scroll{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}.data-table thead{background:#fafbfe}.data-table th{font-size:9px;text-transform:uppercase;letter-spacing:.8px;font-weight:800;color:#9aa2b3;padding:12px 13px;border-top:1px solid #f0f2f6;border-bottom:1px solid #edf0f5}.data-table td{font-size:11px;color:#7c879b;padding:13px;border-bottom:1px solid #f0f2f6}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfcff}.clickable-row{cursor:pointer}.data-table th:first-child,.data-table td:first-child{padding-left:18px}.data-table th:last-child,.data-table td:last-child{padding-right:16px}.order-id{font-size:11px;color:#5d59be}.table-person{display:flex;align-items:center;gap:9px;color:#35415b}.table-person>b,.table-person>span:not(.person-avatar):not(.product-avatar){font-weight:650}.table-person small{display:block;color:#a1a8b7;font-size:10px;margin-top:4px}.person-avatar,.product-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f0edff;color:#695de0;font-size:11px;font-weight:800;flex-shrink:0}.product-avatar{background:#eaf2ff;color:#4e7bc7}.amount-cell{font-weight:750;color:#303d56!important}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:5px 7px;font-size:9px;font-weight:750}.status-badge span{width:5px;height:5px;border-radius:50%;background:currentColor}.status-badge.paid{background:#e9f8f1;color:#178363}.status-badge.due{background:#fff4e1;color:#b47a20}.row-chevron{color:#c3c9d5}.inventory-card{margin-bottom:20px}.stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stock-item{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #edf0f5;border-radius:12px;min-width:0}.stock-icon{width:34px;height:34px;display:grid;place-items:center;background:#f1f0ff;color:#7066dd;border-radius:10px;flex-shrink:0}.stock-info{flex:1;min-width:0}.stock-info b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-info small{display:block;color:#a0a7b5;font-size:9px;margin-top:5px}.stock-number{text-align:right;flex-shrink:0}.stock-number b{display:block;font-size:14px}.stock-number small{display:block;font-size:9px;color:#9ba3b2;margin-top:4px}.stock-number.low b,.stock-number.low small{color:#c58a28}.inventory-empty{display:flex;align-items:center;gap:10px;color:#929bad;font-size:12px}.inventory-empty>svg{color:#9e97ee}.inventory-empty span{flex:1}.app-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e8ebf1;padding:16px 35px;color:#a1a8b6;font-size:10px}.app-footer span:last-child{display:flex;align-items:center;gap:8px}.page-heading{align-items:flex-end;margin-bottom:25px}.page-heading h1{margin-top:9px}.heading-action{flex-shrink:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.search-box{display:flex;align-items:center;gap:9px;border:1px solid #e4e8f0;background:#fff;border-radius:10px;padding:0 12px;width:min(100%,360px);color:#a0a8b7}.search-box input{border:0;box-shadow:none!important;padding:10px 0;background:transparent;font-size:12px}.toolbar-meta{display:flex;align-items:center;gap:7px;color:#8d97aa;font-size:11px}.table-card{overflow:hidden}.table-card .data-table th,.table-card .data-table td{padding-top:15px;padding-bottom:15px}.row-actions{display:flex;gap:3px}.stock-badge{display:inline-block;border-radius:6px;background:#e9f7f1;color:#218267;padding:5px 8px;font-size:9px;font-weight:750}.stock-badge.warning{background:#fff4e0;color:#b47b22}.stock-badge.danger{background:#ffeded;color:#c84a54}.address-cell{max-width:210px;overflow:hidden;text-overflow:ellipsis}.table-note{display:flex;align-items:center;gap:7px;color:#9aa2b1;font-size:10px;margin:14px 3px}.table-note svg{color:#8b83e9}.empty-state{text-align:center;padding:42px 20px;display:flex;flex-direction:column;align-items:center}.empty-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:14px;background:#f0efff;color:#7066dc;margin-bottom:12px}.empty-state h3{font-size:14px;margin:0 0 6px}.empty-state p{max-width:330px;font-size:11px;line-height:1.7;color:#959daf;margin:0 0 17px}.settings-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(245px,.75fr);gap:17px;margin-bottom:17px;align-items:start}.settings-main,.profile-preview,.payment-settings,.backup-checklist{padding:22px}.settings-icon{width:38px;height:38px;display:grid;place-items:center;background:#f0efff;color:#6e62dc;border-radius:11px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 14px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:11px;color:#5c6780;font-weight:700}.field small{font-size:10px;color:#9ba3b1;line-height:1.5}.field.wide,.wide{grid-column:1/-1}.field input,.field select,.field textarea{font-size:12px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf0f5;margin-top:22px;padding-top:17px}.form-footer>span{display:flex;align-items:center;gap:7px;color:#939cad;font-size:10px}.form-footer>span svg{color:#5baf8d}.profile-preview{background:linear-gradient(145deg,#fff,#fafaff)}.preview-eyebrow{font-size:9px;letter-spacing:1.3px;font-weight:800;color:#a0a7b6;margin-bottom:21px}.preview-brand{display:flex;align-items:center;gap:9px;font-size:14px;overflow-wrap:anywhere}.preview-line{height:2px;background:#665bdf;margin:18px 0 14px;border-radius:2px}.profile-preview p{font-size:11px;line-height:1.7;color:#8791a4;overflow-wrap:anywhere}.preview-doc{display:flex;align-items:center;gap:8px;padding:11px 10px;background:#f2f1ff;border-radius:9px;color:#5f58bf;font-size:10px;font-weight:700;margin-top:22px}.preview-doc span{flex:1}.payment-settings{margin-bottom:18px}.qr-upload-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.qr-upload-row input[type=file]{display:none}.qr-preview{width:78px;height:78px;object-fit:contain;border:1px solid #e7eaf1;border-radius:10px;padding:4px}.qr-placeholder{height:65px;min-width:135px;border:1px dashed #d8ddea;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:7px;flex-direction:column;color:#a0a8b8;font-size:9px}.form-footer.wide{grid-column:1/-1}.backup-alert{display:flex;gap:13px;background:#f0faf6;border:1px solid #d7efe5;border-radius:13px;padding:17px;color:#248469;margin-bottom:18px}.backup-alert>svg{flex-shrink:0}.backup-alert b{display:block;font-size:12px;color:#2c765f;margin-bottom:5px}.backup-alert p{font-size:11px;line-height:1.7;color:#6c9a8a;margin:0}.backup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.backup-card{padding:21px;display:flex;flex-direction:column;align-items:flex-start}.backup-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;margin-bottom:18px}.blue-bg{background:#e8f1ff;color:#3676d8}.green-bg{background:#e2f7ee;color:#16846a}.violet-bg{background:#efedff;color:#6559d6}.backup-card h2{font-size:14px;margin:0 0 8px}.backup-card p{font-size:11px;line-height:1.7;color:#939bad;margin:0 0 20px;flex:1}.backup-card .btn{width:100%;font-size:11px}.check-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f2f6;font-size:11px;color:#778297}.check-row:last-child{border-bottom:0}.check-row svg{color:#35a17d;flex-shrink:0}.warning-row svg{color:#d69a3e}.hidden-file{display:none}.subscription-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.75fr);border-radius:20px;background:linear-gradient(125deg,#131f3d,#202e55);overflow:hidden;position:relative;color:#fff;padding:29px;gap:26px;margin-bottom:18px}.subscription-glow{position:absolute;width:360px;height:360px;border-radius:50%;background:#7467ff2e;filter:blur(15px);right:24%;top:-200px;pointer-events:none}.subscription-copy{position:relative;z-index:1;padding:4px 0}.plan-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;background:#ffffff13;border:1px solid #ffffff18;border-radius:20px;font-size:9px;letter-spacing:1px;font-weight:800;color:#c8c5ff}.subscription-copy h2{font-size:29px;letter-spacing:-1.2px;margin:19px 0 10px}.subscription-copy>p{max-width:420px;color:#aab5d0;font-size:12px;line-height:1.8}.plan-price{display:flex;align-items:baseline;gap:7px;margin:23px 0}.plan-price strong{font-size:42px;letter-spacing:-2px}.plan-price span{color:#b2bdd7;font-size:12px}.plan-features{display:flex;flex-direction:column;gap:12px;color:#d9e2f5;font-size:11px}.plan-features span{display:flex;align-items:center;gap:9px}.plan-features svg{color:#75dfb8}.subscription-paybox{position:relative;z-index:1;border:1px solid #ffffff1b;background:#ffffff0b;border-radius:15px;padding:18px;min-width:0}.paybox-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.paybox-title b{display:block;font-size:13px}.paybox-title small{display:block;color:#aab5d0;font-size:10px;margin-top:4px}.paybox-title>svg{color:#a7a0ff}.subscription-qr{display:block;width:165px;height:165px;object-fit:contain;background:#fff;padding:8px;border-radius:11px;margin:0 auto 14px}.subscription-qr-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:15px 0}.subscription-qr-empty>b{font-size:11px}.subscription-qr-empty>small{font-size:10px;color:#aab5d0;max-width:200px;line-height:1.5}.qr-illustration{width:84px;height:84px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:8px;background:#fff;border-radius:9px}.qr-illustration div{background:#252e4d;border-radius:2px}.qr-illustration div:nth-child(2),.qr-illustration div:nth-child(4),.qr-illustration div:nth-child(6){background:#8a83f3}.upi-line{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff18;padding:12px 0;font-size:10px;color:#aab5d0}.upi-line b{color:#fff;overflow-wrap:anywhere;text-align:right}.account-code{border:1px dashed #ffffff30;border-radius:9px;padding:10px;margin:3px 0 13px}.account-code span{display:block;color:#8e9aba;font-size:8px;letter-spacing:1.2px;margin-bottom:5px}.account-code b{font-size:12px;letter-spacing:1.1px}.subscription-paybox .btn.primary{background:#6a60e8;width:100%;white-space:normal}.subscription-paybox .btn.primary:hover{background:#7b71f6}.whatsapp-mark{font-size:15px}.subscription-paybox .micro{color:#9aa7c3;text-align:center;margin:10px 0 0}.subscription-note{display:flex;gap:10px;align-items:flex-start;border:1px solid #e6e9f1;border-radius:12px;background:#fff;padding:15px;color:#7e899d}.subscription-note svg{color:#6d65d8;flex-shrink:0}.subscription-note p{font-size:11px;line-height:1.7;margin:0}.subscription-note b{color:#46536b}.toast{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid #d8efe5;background:#f1faf6;border-radius:11px;color:#287b63;font-size:12px;margin-bottom:19px}.toast>svg{flex-shrink:0}.toast span{flex:1;line-height:1.5}.toast button{border:0;background:transparent;color:#6c9c8c;display:grid;place-items:center}.modal-backdrop{position:fixed;inset:0;background:#0d18318a;backdrop-filter:blur(4px);z-index:60;display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}.modal{background:#fff;width:min(100%,550px);max-height:calc(100dvh - 36px);overflow:auto;border-radius:19px;box-shadow:0 25px 100px #09112740;animation:modal-in .18s ease-out}.modal-wide{width:min(100%,760px)}@keyframes modal-in{from{opacity:0;transform:translateY(7px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:22px 23px 17px;border-bottom:1px solid #edf0f5}.modal-header h2{font-size:19px;letter-spacing:-.5px;margin:0 0 5px}.modal-header p{font-size:11px;color:#919aac;margin:0;line-height:1.6}.modal-form{padding:20px 23px 22px}.modal-form .form-grid{gap:15px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:23px;padding-top:17px;border-top:1px solid #edf0f5}.order-items-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}.order-items-head h3,.detail-lines h3,.payment-history h3{font-size:12px;margin:0 0 4px}.order-items-head p{font-size:10px;color:#9aa2b1;margin:0}.order-line-list{display:flex;flex-direction:column;gap:8px}.order-line{display:grid;grid-template-columns:minmax(0,1fr) 78px 86px 28px;gap:9px;align-items:center;padding:10px;background:#f8f9fc;border:1px solid #edf0f5;border-radius:11px}.line-product{min-width:0}.line-product select{font-size:11px;padding:9px}.line-product small{display:block;color:#939cad;font-size:9px;margin:5px 3px 0}.line-qty label{display:flex;flex-direction:column;gap:4px;font-size:9px;color:#8d97aa}.line-qty input{padding:8px 5px;text-align:center;font-size:12px}.line-total{text-align:right;font-size:11px;font-weight:800}.add-line-btn{display:flex;align-items:center;gap:6px;background:transparent;border:0;color:#645bd2;font-size:11px;font-weight:750;padding:12px 2px}.order-bottom-fields{margin-top:7px}.order-summary{margin-top:17px;padding:14px;background:#f7f8fc;border-radius:11px}.order-summary>div{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:#7e899d;padding:5px 0}.order-summary b{font-size:12px;color:#2f3b55}.order-summary .summary-due{border-top:1px solid #e5e8f0;padding-top:11px;margin-top:5px;color:#46516a;font-weight:750}.order-summary .summary-due b{font-size:16px;color:#b77b22}.payment-balance{display:flex;align-items:center;justify-content:space-between;padding:15px;background:#fff6e6;border:1px solid #f4e7cc;border-radius:11px;margin-bottom:18px;font-size:11px;color:#94651d}.payment-balance b{font-size:19px;color:#9b6412}.detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 23px 17px}.detail-label{font-size:9px;letter-spacing:1.3px;color:#9ba3b2;font-weight:800}.detail-top h3{font-size:17px;margin:7px 0}.detail-top p{font-size:11px;color:#8993a5;margin:4px 0}.detail-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 23px 18px}.detail-facts>div{background:#f7f8fc;padding:11px;border-radius:9px;min-width:0}.detail-facts span{display:block;font-size:9px;color:#8d97aa;margin-bottom:7px}.detail-facts b{display:block;font-size:12px;overflow-wrap:anywhere}.detail-lines,.payment-history{padding:0 23px 19px}.detail-lines h3,.payment-history h3{padding-bottom:9px;border-bottom:1px solid #edf0f5}.detail-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #f1f3f7}.detail-line b{display:block;font-size:11px}.detail-line small{display:block;color:#969eae;font-size:10px;margin-top:4px}.detail-line strong{font-size:11px}.payment-history-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0}.payment-history-row b{display:block;font-size:11px}.payment-history-row small{display:block;font-size:10px;color:#969eae;margin-top:4px}.order-note{margin:0 23px 15px;font-size:11px;color:#778297}.document-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 23px 18px}.document-actions .btn{flex:1;font-size:11px}.detail-footer{margin:0;padding:15px 23px 21px}.detail-footer .danger-text{margin-right:auto}.scrim{display:none}
@media(min-width:1500px){.page-content{padding-left:42px;padding-right:42px}.topbar{padding-left:42px;padding-right:42px}.metrics-grid{gap:18px}.metric-card{padding:20px 22px}.metric-value{font-size:27px}}
@media(max-width:1180px){.sidebar{width:220px}.main-column{margin-left:220px}.page-content{padding:27px 24px}.topbar{padding:0 24px}.metrics-grid{gap:10px}.metric-card{padding:15px}.metric-value{font-size:21px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(255px,1fr)}.recent-card,.quick-card,.inventory-card{padding:17px}.data-table th,.data-table td{padding-left:10px;padding-right:10px}.subscription-hero{padding:23px;gap:17px}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .23s ease;width:260px;box-shadow:15px 0 45px #101b3520}.sidebar.open{transform:translateX(0)}.mobile-close{display:inline-grid;margin-left:auto;color:#c4cce0}.scrim{display:block;position:fixed;inset:0;background:#0d18318a;border:0;z-index:25}.main-column{margin-left:0}.mobile-menu{display:inline-grid;margin-left:-7px}.topbar{height:60px;padding:0 20px;gap:12px}.breadcrumb{margin-right:auto}.page-content{padding:25px 20px}.app-footer{padding:15px 20px}.dashboard-grid{grid-template-columns:1fr}.quick-card{order:-1}.action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:24px}.settings-layout{grid-template-columns:1fr}.profile-preview{max-width:none}.preview-doc{max-width:330px}.backup-grid{grid-template-columns:1fr}.backup-card{min-height:0}.backup-card p{flex:unset;margin-bottom:17px}.subscription-hero{grid-template-columns:1fr 1fr}.report-grid{grid-template-columns:1fr}}
@media(max-width:620px){.topbar{padding:0 13px;height:57px}.breadcrumb{font-size:11px;gap:6px}.offline-pill{font-size:0;padding:8px}.offline-pill .status-dot{width:7px;height:7px}.top-actions{gap:8px}.profile-bubble{width:29px;height:29px}.page-content{padding:22px 13px 28px}.hero-row,.page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:20px}.hero-row h1,.page-heading h1{font-size:25px;letter-spacing:-1px}.hero-row .btn,.heading-action,.heading-action .btn{width:100%}.metrics-grid{gap:9px;margin-bottom:14px}.metric-card{padding:13px 12px;border-radius:13px}.metric-top{font-size:10px}.metric-icon{width:30px;height:30px;border-radius:9px}.metric-value{font-size:19px;margin:10px 0 4px}.metric-card small{font-size:9px;line-height:1.4;display:block}.recent-card,.quick-card,.inventory-card{padding:14px;border-radius:14px}.card-head{align-items:flex-start}.card-head h2{font-size:14px}.card-head p{font-size:10px;line-height:1.5}.action-list{grid-template-columns:1fr}.quick-action{padding:8px 4px}.stock-grid{grid-template-columns:1fr}.stock-item{padding:10px}.app-footer{padding:13px;flex-wrap:wrap;font-size:9px}.toolbar{align-items:stretch;flex-direction:column;gap:10px}.search-box{width:100%}.toolbar-meta{justify-content:flex-end}.table-card{border-radius:13px}.data-table{min-width:620px}.settings-main,.profile-preview,.payment-settings,.backup-checklist{padding:16px}.form-grid{grid-template-columns:1fr;gap:14px}.field.wide,.wide,.form-footer.wide{grid-column:auto}.form-footer{align-items:flex-start;flex-direction:column}.form-footer .btn{width:100%}.backup-alert{padding:13px}.backup-grid{gap:10px}.subscription-hero{grid-template-columns:1fr;padding:20px 15px;gap:22px;border-radius:16px}.subscription-copy h2{font-size:26px}.subscription-copy>p{font-size:11px}.subscription-paybox{padding:14px}.subscription-qr{width:150px;height:150px}.modal-backdrop{padding:8px;align-items:flex-end}.modal,.modal-wide{width:100%;max-height:calc(100dvh - 16px);border-radius:18px 18px 12px 12px}.modal-header{padding:18px 16px 14px}.modal-header h2{font-size:17px}.modal-form{padding:16px}.order-line{grid-template-columns:minmax(0,1fr) 61px 67px 24px;gap:5px;padding:7px}.line-product select{font-size:10px;padding:8px 5px}.line-product small{font-size:8px}.line-qty input{font-size:11px;padding:7px 3px}.line-total{font-size:10px}.order-items-head{align-items:flex-start}.order-items-head h3{font-size:11px}.order-items-head p{max-width:190px;line-height:1.5}.detail-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 15px}.detail-top{padding:17px 16px 14px}.detail-lines,.payment-history{padding:0 16px 16px}.document-actions{padding:0 16px 14px;display:grid;grid-template-columns:1fr 1fr}.document-actions .btn:last-child{grid-column:1/-1}.detail-footer{padding:14px 16px 18px}.detail-footer .btn{padding:9px}.pin-card{padding:30px 21px}.offline-pill{gap:0}.form-footer>span{font-size:9px}.qr-upload-row{align-items:flex-start}.qr-upload-row .btn{font-size:10px}}
@media print{.sidebar,.topbar,.app-footer,.btn,.toast{display:none!important}.main-column{margin:0}.page-content{padding:0}.card{box-shadow:none}}
.heading-actions{display:flex;gap:8px;align-items:center}
@media(max-width:620px){.heading-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.heading-actions .btn{width:100%;white-space:normal}}

/* Original DoovaBook banner */
.brand-lockup .brand-banner {
  display: block;
  width: 170px;
  max-width: calc(100% - 44px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
}

.brand-lockup {
  gap: 10px;
}

@media (max-width: 600px) {
  .brand-lockup .brand-banner {
    width: 155px;
    height: 46px;
  }
}

/* DoovaBook original purple theme */
:root {
  --purple: #5B3FD8;
  --navy: #5B3FD8;
  --navy2: #4930BD;
  --ink: #25213A;
  --muted: #77738B;
  --line: #ECEAF4;
  --surface: #FFFFFF;
  --radius: 17px;
}
body { background: #F6F7FB; }
.btn.primary { background: #5B3FD8; }
.btn.primary:hover { background: #4930BD; }
input:focus, textarea:focus, select:focus {
  border-color: #5B3FD8;
  box-shadow: 0 0 0 3px #5B3FD81A;
}
.card, .metric-card {
  border-color: #ECEAF4;
}
@media (max-width: 900px) {
  .sidebar { background: #5B3FD8; }
}

/* Reports page refinement */
.reports-page-title {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}
.reports-page-title h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.report-payment-card,
.report-inventory-card {
  padding: 20px;
  border: 1px solid var(--border, #e8ebf2);
  border-radius: 18px;
  background: var(--card, #fff);
  box-shadow: 0 5px 18px rgba(20, 32, 60, 0.045);
  margin-top: 16px;
}
.report-payment-card .card-head,
.report-inventory-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.report-payment-card .card-head h2,
.report-inventory-card .card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.2px;
}
.report-payment-card .card-head p,
.report-inventory-card .card-head p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted, #788398);
}
.report-payment-card .muted-icon,
.report-inventory-card .muted-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 13px;
  color: #5368c8;
  background: #eef1ff;
  flex: 0 0 auto;
}
.report-payment-card .progress-summary {
  padding: 15px;
  border-radius: 14px;
  background: #f7f8fc;
}
.report-payment-card .progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.report-payment-card .progress-label b {
  font-size: 18px;
  font-weight: 800;
}
.report-payment-card .progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e9f2;
}
.report-payment-card .progress-track > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6479e8, #36b98a);
}
.report-payment-card .progress-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted, #788398);
}
.report-inventory-card .attention-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border, #edf0f5);
}
.report-inventory-card .attention-row:first-of-type {
  border-top: 0;
}
.report-inventory-card .attention-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #6479d8;
  background: #f0f2ff;
  flex: 0 0 auto;
}
.report-inventory-card .attention-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.report-inventory-card .attention-row b {
  font-size: 13px;
  font-weight: 700;
}
.report-inventory-card .attention-row small {
  font-size: 11px;
  color: var(--muted, #788398);
}
.report-inventory-card .stock-badge {
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
}
.report-inventory-card .report-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: #f2faf6;
  color: #27835c;
  font-size: 13px;
}
.report-download-section {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 22px 0 8px;
}
.report-download-section .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  border-radius: 13px;
  font-weight: 750;
}
.report-download-section p {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted, #788398);
}

/* More bottom sheet */
.more-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 24px;
  background: rgba(12, 20, 39, .48);
  backdrop-filter: blur(3px);
}
.more-sheet {
  width: min(100%, 560px);
  max-height: min(84dvh, 760px);
  overflow-y: auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 25px 25px 0 0;
  background: var(--surface, #fff);
  box-shadow: 0 -12px 50px rgba(12, 20, 39, .18);
  animation: more-sheet-in .2s ease-out;
}
@keyframes more-sheet-in {
  from { transform: translateY(24px); opacity: .7; }
  to { transform: translateY(0); opacity: 1; }
}
.more-grabber {
  width: 38px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: #d8deea;
}
.more-sheet-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border, #edf0f5);
}
.more-business-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #526fe0, #8065d8);
  font-size: 19px;
  font-weight: 800;
}
.more-business-copy, .more-row-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.more-business-copy b { font-size: 15px; color: var(--text, #18243b); }
.more-business-copy small, .more-row-copy small { font-size: 11px; color: var(--muted, #788398); }
.more-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  color: var(--muted, #788398);
  background: var(--surface-soft, #f3f5f9);
}
.more-section-label {
  padding: 15px 2px 7px;
  color: var(--muted, #8993a5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}
.more-menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 65px;
  padding: 9px 3px;
  border: 0;
  border-bottom: 1px solid var(--border, #edf0f5);
  text-align: left;
  color: var(--text, #18243b);
  background: transparent;
  cursor: pointer;
}
.more-menu-row:active { background: var(--surface-soft, #f5f7fb); }
.more-row-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #596fce;
  background: #f0f2ff;
}
.more-row-copy b { font-size: 13px; font-weight: 750; }
.more-menu-row > svg { color: #9aa4b5; flex: 0 0 auto; }
.more-subscription-row .more-row-icon { color: #a07832; background: #fff7e8; }
.more-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 12px;
  padding: 8px 0;
  border: 0;
  color: #586fcf;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.more-legal-content { padding: 4px 2px 12px; }
.more-legal-content h3 { margin: 4px 0 18px; font-size: 19px; }
.more-legal-content p { margin: 0 0 13px; color: var(--muted, #68758b); font-size: 13px; line-height: 1.65; }
.more-legal-content p b { color: var(--text, #18243b); }
.more-legal-content .more-legal-note {
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f6fa;
  font-size: 11px;
}
@media (min-width: 700px) {
  .more-overlay { align-items: center; padding: 24px; }
  .more-sheet { border-radius: 22px; padding-bottom: 20px; }
}

/* Order detail - delivery status positioning */
.delivery-status-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  padding: 15px 16px;
  border: 1px solid var(--border, #e8edf5);
  border-radius: 15px;
  background: var(--surface-soft, #f7f9fc);
}

.delivery-status-control .detail-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--muted, #788398);
}

.delivery-status-control .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 160px;
  margin: 0;
  border-radius: 11px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .delivery-status-control {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    padding: 14px;
  }

  .delivery-status-control .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Customer card alignment fix */



/* Product management dashboard */
.product-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:18px}.product-management-card{display:flex;align-items:center;gap:13px;text-align:left;width:100%;min-width:0;padding:19px;background:#fff;border:1px solid #e8ebf2;border-radius:15px;box-shadow:0 2px 4px #24345203;color:var(--ink);transition:border .15s,transform .15s}.product-management-card:hover{border-color:#c9c3f5;transform:translateY(-1px)}.product-management-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;flex-shrink:0}.product-management-copy{flex:1;min-width:0}.product-management-copy b{display:block;font-size:13px;margin-bottom:5px}.product-management-copy small{display:block;color:#929bad;font-size:10px;line-height:1.5}.product-management-card>svg{color:#a0a8b7;flex-shrink:0}@media(max-width:620px){.product-management-grid{grid-template-columns:1fr;gap:10px}.product-management-card{padding:15px}}

/* Backup history redesign */
.backup-create-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;padding:20px}
.backup-create-copy{display:flex;align-items:center;gap:15px;min-width:0}
.backup-create-copy h2,.restore-card h2{margin:0 0 6px;font-size:16px}
.backup-create-copy p,.restore-card p{margin:0;color:var(--muted,#68748a);font-size:13px;line-height:1.55}
.backup-history{padding:20px}
.backup-history-list{display:flex;flex-direction:column}
.backup-history-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-top:1px solid var(--line,#e7eaf0)}
.backup-history-file{display:flex;align-items:center;gap:12px;min-width:0}
.backup-file-icon{width:40px;height:40px;flex:0 0 40px;border-radius:11px;background:#eef3ff;color:#315caa;display:grid;place-items:center}
.backup-history-file>div:last-child{min-width:0}
.backup-history-file b,.backup-history-file small{display:block}
.backup-history-file b{font-size:13px}
.backup-history-file small{margin-top:4px;color:var(--muted,#68748a);font-size:11px;overflow-wrap:anywhere}
.backup-history-actions{display:flex;gap:8px;flex-shrink:0}
.backup-empty{padding:30px 15px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:9px}
.backup-empty b{font-size:14px}
.backup-empty p{max-width:340px;margin:0;color:var(--muted,#68748a);font-size:12px;line-height:1.5}
.backup-footnote{display:flex;align-items:flex-start;gap:8px;margin:13px 2px;color:var(--muted,#68748a);font-size:12px;line-height:1.5}
.backup-footnote svg{flex-shrink:0}
.restore-card{max-width:560px;padding:24px;display:flex;align-items:flex-start;flex-direction:column;gap:13px}
.restore-card .btn{margin-top:5px}
.restore-alert{margin-bottom:18px}
@media(max-width:620px){.backup-create-card{align-items:stretch;flex-direction:column}.backup-create-card>.btn{width:100%;justify-content:center}.backup-history-item{align-items:flex-start;flex-direction:column}.backup-history-actions{width:100%}.backup-history-actions .btn{flex:1;justify-content:center}.restore-card{padding:18px}}

/* Home dashboard: four compact metric cards in one horizontal row */
@media(max-width:620px){
  .home-metrics{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }
  .home-metrics .metric-card{
    min-width:0;
    padding:10px 7px;
    border-radius:11px;
  }
  .home-metrics .metric-top{
    display:flex;
    flex-direction:column-reverse;
    align-items:flex-start;
    gap:5px;
    font-size:8px;
    line-height:1.2;
  }
  .home-metrics .metric-icon{
    width:25px;
    height:25px;
  }
  .home-metrics .metric-icon svg{
    width:14px;
    height:14px;
  }
  .home-metrics .metric-value{
    font-size:clamp(11px,3.1vw,16px);
    letter-spacing:-.4px;
    margin:7px 0 3px;
  }
  .home-metrics .metric-card small{
    display:none;
  }
}

/* DoovaBook Home dashboard */
.home-topline{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  margin-bottom:20px;
}
.home-menu-button{display:flex!important;flex-shrink:0}
.home-brand-logo{
  display:block;
  width:clamp(145px,22vw,205px);
  max-height:43px;
  object-fit:contain;
  object-position:left center;
}
.home-top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}
.home-sales-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:158px;
  padding:25px 28px;
  margin-bottom:18px;
  color:#fff;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%);
  border-radius:20px;
  box-shadow:0 12px 28px rgba(73,48,189,.16);
}
.home-sales-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.home-sales-label{
  display:flex;align-items:center;gap:6px;
  color:rgba(255,255,255,.83);
  font-size:11px;font-weight:750;letter-spacing:1.1px;
}
.home-sales-copy>strong{
  color:#fff;font-size:clamp(29px,5vw,42px);
  line-height:1.15;letter-spacing:-1.2px;
  overflow-wrap:anywhere;
}
.home-sales-copy>small{color:rgba(255,255,255,.75);font-size:12px}
.home-sales-icon{
  width:58px;height:58px;flex:0 0 58px;
  display:grid;place-items:center;
  color:#fff;background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.2);border-radius:17px;
}
.home-metrics{margin-bottom:23px}
.home-quick-section{margin:0 0 23px}
.home-section-heading{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:10px;margin-bottom:12px;
}
.home-section-heading h2{margin:0;color:var(--ink);font-size:16px;font-weight:750}
.home-section-heading>span{color:var(--muted);font-size:11px}
.home-quick-actions{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
.home-quick-actions .quick-action{
  min-width:0;min-height:76px;padding:13px;
  display:flex;align-items:center;gap:10px;
  text-align:left;background:#fff;
  border:1px solid var(--line);border-radius:14px;
}
.home-quick-actions .quick-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.home-quick-actions .quick-copy b{font-size:12px;white-space:nowrap}
.home-quick-actions .quick-copy small{font-size:10px;line-height:1.35}
.home-quick-actions .quick-action>svg{flex-shrink:0;margin-left:auto}
.home-quick-actions .quick-icon{width:36px;height:36px;flex:0 0 36px;border-radius:11px}
.home-quick-actions .quick-icon svg{width:17px;height:17px}

@media(max-width:900px){
  .home-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .home-topline{gap:8px;margin-bottom:15px;min-height:42px}
  .home-brand-logo{width:clamp(125px,38vw,165px);max-height:36px}
  .home-top-actions{gap:5px}
  .home-top-actions .offline-pill{display:none}
  .home-top-actions .icon-btn{width:34px;height:34px}
  .home-top-actions .profile-bubble{width:32px;height:32px}
  .home-sales-hero{
    min-height:130px;padding:19px 18px;
    margin-bottom:13px;border-radius:16px;
  }
  .home-sales-copy>strong{font-size:clamp(25px,7vw,34px)}
  .home-sales-copy>small{font-size:10px}
  .home-sales-icon{width:45px;height:45px;flex-basis:45px;border-radius:13px}
  .home-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:19px}
  .home-metrics .metric-card{min-width:0;padding:10px 7px;border-radius:11px}
  .home-metrics .metric-top{
    display:flex;flex-direction:column-reverse;align-items:flex-start;
    gap:5px;font-size:8px;line-height:1.2;
  }
  .home-metrics .metric-icon{width:25px;height:25px}
  .home-metrics .metric-icon svg{width:14px;height:14px}
  .home-metrics .metric-value{
    margin:7px 0 3px;font-size:clamp(10px,2.9vw,15px);
    letter-spacing:-.45px;overflow:hidden;text-overflow:ellipsis;
  }
  .home-metrics .metric-card small{display:none}
  .home-section-heading{margin-bottom:10px}
  .home-section-heading h2{font-size:15px}
  .home-section-heading>span{font-size:10px}
  .home-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .home-quick-actions .quick-action{min-height:67px;padding:9px;gap:8px;border-radius:12px}
  .home-quick-actions .quick-icon{width:31px;height:31px;flex-basis:31px;border-radius:9px}
  .home-quick-actions .quick-icon svg{width:15px;height:15px}
  .home-quick-actions .quick-copy b{font-size:11px}
  .home-quick-actions .quick-copy small{font-size:9px}
  .home-quick-actions .quick-action>svg{width:13px;height:13px}
}

/* Keep all four Home summary and quick-action cards in one mobile row */
@media(max-width:620px){
  .home-metrics{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px;
  }
  .home-metrics .metric-card{
    min-width:0;
    padding:9px 5px;
  }
  .home-metrics .metric-top{
    font-size:8px;
    gap:4px;
  }
  .home-metrics .metric-value{
    font-size:clamp(9px,2.7vw,13px);
    letter-spacing:-.5px;
  }
  .home-quick-actions{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px;
  }
  .home-quick-actions .quick-action{
    min-width:0;
    min-height:91px;
    padding:9px 6px;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:7px;
  }
  .home-quick-actions .quick-icon{
    width:29px;
    height:29px;
    flex:0 0 29px;
  }
  .home-quick-actions .quick-copy{
    width:100%;
    min-width:0;
  }
  .home-quick-actions .quick-copy b{
    white-space:normal;
    font-size:10px;
    line-height:1.25;
  }
  .home-quick-actions .quick-copy small,
  .home-quick-actions .quick-action>svg{
    display:none;
  }
}

/* Final mobile fix: force the four summary cards into a single row */
@media(max-width:620px){
  .metrics-grid.home-metrics{
    display:grid!important;
    width:100%!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:5px!important;
  }
  .metrics-grid.home-metrics>.metric-card{
    display:block!important;
    grid-column:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:9px 4px!important;
    overflow:hidden!important;
  }
  .metrics-grid.home-metrics .metric-top,
  .metrics-grid.home-metrics .metric-value{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .metrics-grid.home-metrics .metric-top>span:first-child{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .metrics-grid.home-metrics .metric-value{
    white-space:nowrap!important;
    font-size:clamp(9px,2.6vw,13px)!important;
  }
}

/* Center all content inside Home summary and Quick Action cards */
@media(max-width:620px){
  .home-metrics .metric-card{
    text-align:center!important;
  }
  .home-metrics .metric-top{
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .home-metrics .metric-top>span:first-child{
    text-align:center!important;
  }
  .home-metrics .metric-icon{
    margin-inline:auto!important;
  }
  .home-metrics .metric-value{
    width:100%;
    text-align:center!important;
  }

  .home-quick-actions .quick-action{
    align-items:center!important;
    text-align:center!important;
  }
  .home-quick-actions .quick-icon{
    margin-inline:auto!important;
  }
  .home-quick-actions .quick-copy{
    align-items:center!important;
    text-align:center!important;
  }
  .home-quick-actions .quick-copy b{
    width:100%;
    text-align:center!important;
  }
}

/* Home summary cards: soft colour backgrounds and icon-number-label order */
@media(max-width:620px){
  .home-metrics>.metric-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    gap:0!important;
    border:1px solid transparent!important;
  }
  .home-metrics .metric-top{
    display:contents!important;
  }
  .home-metrics .metric-icon{
    order:0!important;
    display:grid!important;
    place-items:center!important;
    margin:0 auto 7px!important;
    width:29px!important;
    height:29px!important;
    border-radius:9px!important;
  }
  .home-metrics .metric-value{
    order:1!important;
    display:block!important;
    width:100%!important;
    margin:0 0 4px!important;
    color:#18233b!important;
    font-size:clamp(12px,3.2vw,16px)!important;
    font-weight:800!important;
    text-align:center!important;
  }
  .home-metrics .metric-top>span:first-child{
    order:2!important;
    display:block!important;
    width:100%!important;
    color:#263247!important;
    font-size:9px!important;
    font-weight:700!important;
    text-align:center!important;
  }

  /* Received — green */
  .home-metrics>.metric-card:nth-child(1){
    background:#e8f6ef!important;
    border-color:#d5eddf!important;
  }
  .home-metrics>.metric-card:nth-child(1) .metric-icon{
    color:#16866c!important;background:#d2eddf!important;
  }

  /* Orders — blue */
  .home-metrics>.metric-card:nth-child(2){
    background:#eaf2ff!important;
    border-color:#d9e7ff!important;
  }
  .home-metrics>.metric-card:nth-child(2) .metric-icon{
    color:#3676d8!important;background:#d7e6ff!important;
  }

  /* Pending — orange */
  .home-metrics>.metric-card:nth-child(3){
    background:#fff3df!important;
    border-color:#f7e5c5!important;
  }
  .home-metrics>.metric-card:nth-child(3) .metric-icon{
    color:#b97819!important;background:#fbe5bd!important;
  }

  /* Products — violet */
  .home-metrics>.metric-card:nth-child(4){
    background:#f0edff!important;
    border-color:#e2dcff!important;
  }
  .home-metrics>.metric-card:nth-child(4) .metric-icon{
    color:#5B3FD8!important;background:#e1dbff!important;
  }
}

/* Summary card labels: dark matching colour below the value */
@media(max-width:620px){
  .home-metrics .metric-top>span:first-child{
    order:2!important;
    display:block!important;
    margin-top:3px!important;
    font-size:9px!important;
    font-weight:800!important;
    text-align:center!important;
  }
  .home-metrics>.metric-card:nth-child(1) .metric-top>span:first-child{color:#126b50!important}
  .home-metrics>.metric-card:nth-child(2) .metric-top>span:first-child{color:#285da8!important}
  .home-metrics>.metric-card:nth-child(3) .metric-top>span:first-child{color:#965b0e!important}
  .home-metrics>.metric-card:nth-child(4) .metric-top>span:first-child{color:#4930BD!important}
}

/* Explicitly order Home summary card contents: icon, value, label */
@media(max-width:620px){
  .home-metrics>.metric-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
  }
  .home-metrics .metric-top{
    display:contents!important;
  }
  .home-metrics .metric-top>span:first-child{
    order:3!important;
    display:block!important;
    width:100%!important;
    margin:3px 0 0!important;
    text-align:center!important;
  }
  .home-metrics .metric-icon{
    order:1!important;
    margin:0 auto 7px!important;
  }
  .home-metrics .metric-value{
    order:2!important;
    display:block!important;
    width:100%!important;
    margin:0!important;
    text-align:center!important;
  }
}

@media(max-width:620px){
  .home-metrics .home-metric-label{
    order:3;
    display:block;
    width:100%;
    margin-top:3px;
    color:#263247;
    font-size:9px;
    font-weight:800;
    line-height:1.2;
    text-align:center;
  }
  .home-metrics>.metric-card:nth-child(1) .home-metric-label{color:#126b50}
  .home-metrics>.metric-card:nth-child(2) .home-metric-label{color:#285da8}
  .home-metrics>.metric-card:nth-child(3) .home-metric-label{color:#965b0e}
  .home-metrics>.metric-card:nth-child(4) .home-metric-label{color:#4930BD}
}

/* Premium compact Home Quick Actions */
.home-quick-actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
}
.home-quick-actions .quick-action{
  min-width:0!important;
  min-height:82px!important;
  padding:11px 7px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:13px!important;
  box-shadow:0 2px 7px rgba(20,35,65,.035)!important;
}
.home-quick-actions .quick-icon{
  width:33px!important;
  height:33px!important;
  flex:0 0 33px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
}
.home-quick-actions .quick-icon svg{
  width:17px!important;
  height:17px!important;
}
.home-quick-actions .quick-copy{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.home-quick-actions .quick-copy b{
  width:100%!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:750!important;
  white-space:normal!important;
  text-align:center!important;
}
.home-quick-actions .quick-copy small,
.home-quick-actions .quick-action>svg{
  display:none!important;
}
@media(max-width:620px){
  .home-quick-actions{
    gap:6px!important;
  }
  .home-quick-actions .quick-action{
    min-height:74px!important;
    padding:8px 3px!important;
    gap:7px!important;
    border-radius:11px!important;
  }
  .home-quick-actions .quick-icon{
    width:29px!important;
    height:29px!important;
    flex-basis:29px!important;
    border-radius:9px!important;
  }
  .home-quick-actions .quick-icon svg{
    width:15px!important;
    height:15px!important;
  }
  .home-quick-actions .quick-copy b{
    font-size:10px!important;
    line-height:1.2!important;
  }
}


/* Premium Home business profile button */
.home-top-actions .profile-bubble{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  display:grid!important;
  place-items:center!important;
  border:2px solid #fff!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,#8068ef 0%,#5137c9 100%)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:850!important;
  box-shadow:0 0 0 1px #ded8ff,0 4px 12px rgba(81,55,201,.20)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
.home-top-actions .profile-bubble:active{
  transform:scale(.94);
}
@media(max-width:620px){
  .home-top-actions .profile-bubble{
    width:36px!important;
    height:36px!important;
    flex-basis:36px!important;
    border-radius:12px!important;
    font-size:14px!important;
  }
}

/* DoovaBook Home reference refinements — order cards untouched */
.page-content:has(.home-topline){
  position:relative;
  isolation:isolate;
  background:linear-gradient(180deg,#f0edff 0%,#f7f6ff 230px,#f7f8fc 440px);
}
.page-content:has(.home-topline)::before{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  top:0;
  left:-8%;
  width:116%;
  height:245px;
  border-radius:0 0 48% 22%;
  background:linear-gradient(125deg,#ebe7ff 0%,#f2efff 58%,#f8f7ff 100%);
}
.home-topline{position:relative;z-index:1;margin-bottom:20px}
.home-top-actions .offline-pill{display:none!important}
.home-top-actions .home-notification-button{
  width:40px!important;height:40px!important;border-radius:50%!important;
  color:#5542bd!important;background:#fff!important;
  box-shadow:0 3px 12px rgba(54,43,126,.10)!important;
}
.home-top-actions .home-notification-button:hover{background:#f8f6ff!important;color:#4930bd!important}
.home-top-actions .profile-bubble{
  width:40px!important;height:40px!important;flex:0 0 40px!important;
  border-radius:50%!important;
}
.home-section-heading{align-items:center!important;margin-bottom:13px!important}
.home-section-heading h2{display:flex;align-items:center;gap:8px}
.home-section-heading h2>svg{color:#6959d5;flex-shrink:0}
.home-view-all{
  display:inline-flex;align-items:center;justify-content:center;gap:3px;
  padding:5px 0 5px 8px;border:0;background:transparent;
  color:#6554cf;font-size:11px;font-weight:750;white-space:nowrap;
}
.home-view-all:hover{color:#4930bd}
.home-quick-section{margin-top:2px}
.delivery-section-heading{margin-top:3px}
@media(max-width:620px){
  .page-content:has(.home-topline){padding-top:18px;background:linear-gradient(180deg,#f0edff 0%,#f7f6ff 205px,#f7f8fc 390px)}
  .page-content:has(.home-topline)::before{height:205px;border-radius:0 0 46% 18%}
  .home-topline{margin-bottom:16px}
  .home-top-actions{gap:8px!important}
  .home-top-actions .home-notification-button{width:36px!important;height:36px!important}
  .home-top-actions .profile-bubble{width:36px!important;height:36px!important;flex-basis:36px!important;border-radius:50%!important}
  .home-section-heading{margin-bottom:11px!important}
  .home-section-heading h2{font-size:15px!important}
  .home-view-all{font-size:10px}
}

/* Mobile horizontal overflow and bottom navigation alignment fix */
html,
body,
#root {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.app-shell,
.main-column,
.page-content {
  min-width: 0;
  max-width: 100%;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #eceaf4;
    box-shadow: 0 -5px 20px rgba(35, 28, 80, 0.07);
    transform: none;
  }

  .mobile-bottom-nav > button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 4px 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9290a5;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    transform: none;
  }

  .mobile-bottom-nav > button.active {
    color: #5B3FD8;
    background: #f2efff;
  }

  .mobile-bottom-nav .mobile-nav-icon {
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .page-content {
    padding-bottom: 100px;
  }
}

/* Slightly larger and bolder Home Overview icons and values */
@media(max-width:620px){
  .home-metrics .metric-icon{
    width:32px!important;
    height:32px!important;
  }
  .home-metrics .metric-icon svg{
    width:17px!important;
    height:17px!important;
  }
  .home-metrics .metric-value{
    font-size:clamp(13px,3.4vw,17px)!important;
    font-weight:900!important;
  }
}

/* =====================================================
   DOOVABOOK — ORDERS TAB PREMIUM DESIGN
   Scoped styles: existing order cards remain untouched
   ===================================================== */

.orders-tab-header{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #eeedf6;
}

.orders-tab-header .orders-header-title{
  color:#252343;
  font-size:19px;
  font-weight:850;
  letter-spacing:-.55px;
}

.orders-tab-header .orders-create-icon{
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:13px;
  background:#7357df;
  color:#fff;
  box-shadow:0 5px 13px #7357df35;
  transition:transform .18s,box-shadow .18s;
}

.orders-tab-header .orders-create-icon:active{
  transform:scale(.94);
}

.page-content:has(.orders-metrics){
  background:#f7f6fc;
}

.orders-metrics{
  gap:12px;
  margin-bottom:20px;
}

.orders-metric{
  position:relative;
  min-width:0;
  min-height:116px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:9px;
  padding:15px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:17px;
  box-shadow:0 3px 12px #29234b08;
  text-align:left;
  transition:transform .18s,border-color .18s,box-shadow .18s;
}

.orders-metric:active{
  transform:scale(.98);
}

.orders-metric:nth-child(1){
  background:#eeeaff;
  border-color:#e5defe;
  color:#6046c8;
}

.orders-metric:nth-child(2){
  background:#fff4e5;
  border-color:#ffebd0;
  color:#b97724;
}

.orders-metric:nth-child(3){
  background:#e9f8f0;
  border-color:#d9f0e3;
  color:#27845b;
}

.orders-metric:nth-child(4){
  background:#fff0f1;
  border-color:#f9dfe3;
  color:#c35b70;
}

.orders-metric .metric-icon{
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#ffffffa8;
  color:inherit;
}

.orders-metric .metric-label{
  color:#66647a;
  font-size:11px;
  font-weight:650;
  line-height:1.3;
}

.orders-metric .metric-value{
  margin:0;
  color:#28243f;
  font-size:25px;
  font-weight:850;
  line-height:1;
  letter-spacing:-.6px;
}

.orders-metric.selected{
  border-color:#927ce9;
  box-shadow:0 0 0 2px #8067e51c,0 5px 15px #29234b0b;
}

.orders-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:13px;
  margin:0 0 13px;
}

.orders-toolbar .search-box{
  width:min(100%,430px);
  min-height:46px;
  padding:0 14px;
  border:1px solid #e9e6f3;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 8px #29234b05;
  color:#8c83b1;
}

.orders-toolbar .search-box:focus-within{
  border-color:#a99aeb;
  box-shadow:0 0 0 3px #8067e514;
}

.orders-toolbar .search-box input{
  color:#302c48;
  font-size:12px;
}

.orders-toolbar .search-box input::placeholder{
  color:#a4a0b2;
}

.orders-toolbar .toolbar-meta{
  min-height:34px;
  padding:0 11px;
  border:1px solid #e9e5f5;
  border-radius:11px;
  background:#f0edff;
  color:#7059c8;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}

.orders-filter-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 17px;
  padding:2px 0 5px;
  overflow-x:auto;
  scrollbar-width:none;
}

.orders-filter-row::-webkit-scrollbar{
  display:none;
}

.orders-filter-chip{
  min-height:36px;
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border:1px solid #e9e6f1;
  border-radius:11px;
  background:#fff;
  color:#77748b;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  transition:background .18s,border-color .18s,color .18s;
}

.orders-filter-chip span{
  min-width:19px;
  height:19px;
  display:inline-grid;
  place-items:center;
  padding:0 5px;
  border-radius:7px;
  background:#f1eff7;
  color:#77728e;
  font-size:9px;
  font-weight:800;
}

.orders-filter-chip.active{
  border-color:#765ce0;
  background:#765ce0;
  color:#fff;
  box-shadow:0 4px 10px #765ce033;
}

.orders-filter-chip.active span{
  background:#ffffff30;
  color:#fff;
}

@media(max-width:900px){
  .orders-metrics{
    gap:10px;
  }
}

@media(max-width:620px){
  .orders-metrics{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    margin-bottom:17px;
  }

  .orders-metric{
    min-height:105px;
    align-items:center;
    gap:7px;
    padding:10px 4px;
    border-radius:13px;
    text-align:center;
  }

  .orders-metric .metric-icon{
    width:29px;
    height:29px;
    border-radius:10px;
  }

  .orders-metric .metric-icon svg{
    width:15px;
    height:15px;
  }

  .orders-metric .metric-label{
    min-height:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:9px;
    line-height:1.2;
  }

  .orders-metric .metric-value{
    font-size:21px;
  }

  .orders-toolbar{
    align-items:stretch;
    gap:9px;
  }

  .orders-toolbar .search-box{
    width:100%;
    min-width:0;
    min-height:43px;
  }

  .orders-toolbar .toolbar-meta{
    align-self:center;
    min-height:32px;
    padding:0 8px;
    font-size:10px;
  }

  .orders-filter-row{
    gap:7px;
    margin-bottom:14px;
  }

  .orders-filter-chip{
    min-height:34px;
    padding:0 11px;
    font-size:10px;
  }
}

@media(max-width:360px){
  .orders-metrics{
    gap:5px;
  }

  .orders-metric{
    padding:9px 2px;
  }

  .orders-metric .metric-label{
    font-size:8px;
  }

  .orders-metric .metric-value{
    font-size:19px;
  }
}


/* Orders tab — match the Home screen background */
.page-content:has(.orders-toolbar){
  background:#f7f6fc;
}

/* Orders cards — right-align payment amounts */
.orders-card-list .delivery-order-bottom{
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.orders-card-list .delivery-order-amounts{
  flex:0 0 auto;
  width:auto;
  min-width:210px;
  grid-template-columns:repeat(3,minmax(58px,1fr));
  gap:16px;
  text-align:right;
  margin-left:auto;
}

@media(max-width:600px){
  .orders-card-list .delivery-order-bottom{
    flex-direction:row;
    align-items:center;
    gap:10px;
  }
  .orders-card-list .delivery-order-amounts{
    flex:1;
    min-width:0;
    width:auto;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    text-align:right;
  }
}

/* Orders only — keep date fixed, align payment amounts to the right */
.orders-card-list .delivery-order-bottom{
  display:grid !important;
  grid-template-columns:max-content minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:12px !important;
}

.orders-card-list .delivery-order-date{
  min-width:0 !important;
  justify-self:start !important;
}

.orders-card-list .delivery-order-amounts{
  width:210px !important;
  min-width:210px !important;
  max-width:210px !important;
  flex:none !important;
  margin-left:auto !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  text-align:right !important;
}

.orders-card-list .delivery-order-amounts>span{
  min-width:0 !important;
}

@media(max-width:600px){
  .orders-card-list .delivery-order-bottom{
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) !important;
    column-gap:8px !important;
  }
  .orders-card-list .delivery-order-amounts{
    width:195px !important;
    min-width:195px !important;
    max-width:195px !important;
    flex:none !important;
    gap:5px !important;
    text-align:right !important;
  }
}

/* Home Recent Orders — match Orders tab amount alignment */
.delivery-section .delivery-order-bottom{
  display:grid !important;
  grid-template-columns:max-content minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:12px !important;
}

.delivery-section .delivery-order-date{
  min-width:0 !important;
  justify-self:start !important;
}

.delivery-section .delivery-order-amounts{
  width:210px !important;
  min-width:210px !important;
  max-width:210px !important;
  flex:none !important;
  margin-left:auto !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  text-align:right !important;
}

.delivery-section .delivery-order-amounts>span{
  min-width:0 !important;
}

@media(max-width:600px){
  .delivery-section .delivery-order-bottom{
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) !important;
    column-gap:8px !important;
  }

  .delivery-section .delivery-order-amounts{
    width:195px !important;
    min-width:195px !important;
    max-width:195px !important;
    flex:none !important;
    gap:5px !important;
    text-align:right !important;
  }
}


/* Orders tab — tighter header-to-search spacing only */
.page-content:has(.orders-filter-row){
  padding-top:14px !important;
}

@media(max-width:620px){
  .page-content:has(.orders-filter-row){
    padding-top:6px !important;
  }
}

/* Orders — clean title row without a separate header bar */
.main-column:has(.orders-filter-row) > .orders-tab-header{
  height:48px !important;
  min-height:48px !important;
  padding:6px 35px 0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  position:static !important;
}

/* Search directly below the Orders title */
.page-content:has(.orders-filter-row){
  padding-top:8px !important;
}

@media(max-width:620px){
  .main-column:has(.orders-filter-row) > .orders-tab-header{
    height:46px !important;
    min-height:46px !important;
    padding:4px 13px 0 !important;
  }

  .page-content:has(.orders-filter-row){
    padding-top:5px !important;
  }
}

/* Orders — reduce space between title row and search bar */
.page-content:has(.orders-filter-row){
  padding-top:2px !important;
}

@media(max-width:620px){
  .page-content:has(.orders-filter-row){
    padding-top:1px !important;
  }
}

/* Orders — premium title and New Order action */
.main-column:has(.orders-filter-row) > .orders-tab-header{
  height:56px !important;
  min-height:56px !important;
  padding:10px 35px 0 !important;
}

.main-column:has(.orders-filter-row) .orders-header-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#282344;
  font-size:21px;
  font-weight:850;
  letter-spacing:-.65px;
}

.main-column:has(.orders-filter-row) .orders-header-title svg{
  color:#7357df;
  flex:none;
}

.main-column:has(.orders-filter-row) .orders-create-icon{
  width:auto !important;
  min-width:112px;
  height:39px !important;
  padding:0 14px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #7357df !important;
  border-radius:13px !important;
  background:linear-gradient(135deg,#8065ed,#684bd2) !important;
  color:#fff !important;
  font-size:13px;
  font-weight:750;
  letter-spacing:.1px;
  box-shadow:0 5px 13px #7357df30, inset 0 1px 0 #ffffff35 !important;
  transition:transform .18s,box-shadow .18s;
}

.main-column:has(.orders-filter-row) .orders-create-icon:active{
  transform:scale(.96);
  box-shadow:0 2px 6px #7357df25 !important;
}

@media(max-width:620px){
  .main-column:has(.orders-filter-row) > .orders-tab-header{
    height:53px !important;
    min-height:53px !important;
    padding:8px 13px 0 !important;
  }

  .main-column:has(.orders-filter-row) .orders-header-title{
    font-size:20px;
    gap:9px;
  }

  .main-column:has(.orders-filter-row) .orders-create-icon{
    min-width:106px;
    height:38px !important;
    padding:0 12px !important;
  }
}

/* Orders — keep New Order on one line */
.main-column:has(.orders-filter-row) .orders-create-icon{
  width:max-content !important;
  min-width:124px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  gap:7px !important;
}

.main-column:has(.orders-filter-row) .orders-create-icon span{
  white-space:nowrap !important;
  flex:none !important;
}

/* Orders — align search closer to the heading */
.page-content:has(.orders-filter-row){
  padding-top:0 !important;
}

@media(max-width:620px){
  .main-column:has(.orders-filter-row) .orders-create-icon{
    min-width:120px !important;
  }

  .page-content:has(.orders-filter-row){
    padding-top:0 !important;
  }
}

/* Orders — tighten only the gap above the search bar */
.page-content:has(.orders-filter-row) .orders-toolbar{
  margin-top:-5px !important;
}

/* Order payment status badges */
.delivery-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 9px;border-radius:7px;font-size:10px;font-weight:750;line-height:1.3;}
.delivery-badge.paid{background:#e5f7ee;color:#168363;}
.delivery-badge.pending{background:#fff4df;color:#b47a20;}
.delivery-badge.overdue{background:#ffeded;color:#c64b55;}


/* Delivery date status indicators */
.delivery-date-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 9px;border-radius:7px;font-size:10px;font-weight:750;line-height:1.3;margin-top:5px;}
.delivery-date-badge.overdue{background:#ffeded;color:#c64b55;}
.delivery-date-badge.today{background:#f0eaff;color:#7652c8;}
.delivery-date-badge.tomorrow{background:#eaf2ff;color:#3974c6;}
.delivery-date-badge.upcoming{background:#e8f5ff;color:#347da5;}
.delivery-date-badge.undated{background:#f0f1f5;color:#737b8c;}
.delivery-date-badge.delivered{background:#e5f7ee;color:#168363;}


/* Compact delivery badge beside date - Home and Orders */
.delivery-section .delivery-order-date,
.orders-card-list .delivery-order-date{display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.delivery-section .delivery-date-badge,
.orders-card-list .delivery-date-badge{margin:0;padding:3px 6px;font-size:9px;line-height:1.2;white-space:nowrap;}

/* Refined Customers button content — preserve existing button dimensions */
.main-column:has(.customers-create-icon) .customers-create-icon{
  gap:5px;
}
.main-column:has(.customers-create-icon) .customers-create-icon svg{
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.main-column:has(.customers-create-icon) .customers-create-icon span{
  font-size:10px;
  font-weight:700;
  letter-spacing:-.1px;
  white-space:nowrap;
}

/* Customers button: visible Plus icon and compact label */
.main-column .orders-tab-header .customers-create-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  width:124px !important;
  min-width:124px !important;
  height:39px !important;
  padding:0 7px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}
.main-column .orders-tab-header .customers-create-icon svg{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:14px !important;
  height:14px !important;
  min-width:14px !important;
  flex:0 0 14px !important;
  color:#fff !important;
  stroke:#fff !important;
}
.main-column .orders-tab-header .customers-create-icon span{
  display:inline-block !important;
  visibility:visible !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:-.2px !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

/* Customer details premium layout */
.customer-detail-view{padding:0 0 18px;min-width:0}
.customer-detail-hero{margin:15px 18px 18px;padding:15px;border:1px solid #e8e3fb;border-radius:16px;background:linear-gradient(135deg,#f8f6ff 0%,#f1edff 100%)}
.customer-detail-contact{display:flex;align-items:center;gap:12px;min-width:0}
.customer-detail-avatar{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#6b55dc,#907ce9);color:#fff;font-size:19px;font-weight:800;box-shadow:0 5px 12px #5b3fd82b}
.customer-detail-identity{min-width:0}
.customer-detail-identity h3,.customer-detail-contact h3{font-size:15px;font-weight:800;color:#252044;margin:0 0 5px;overflow-wrap:anywhere}
.customer-detail-identity p,.customer-detail-contact p{font-size:10px;line-height:1.5;color:#77758d;margin:2px 0;overflow-wrap:anywhere}
.customer-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #e7e1fa}
.customer-detail-actions .btn{min-height:34px;padding:7px 11px;font-size:10px}
.customer-detail-actions .danger-text{color:#c64b55}
.customer-detail-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 18px 10px}
.customer-detail-section-heading h3{font-size:12px;font-weight:800;color:#282343;margin:0 0 3px}
.customer-detail-section-heading p{font-size:10px;color:#9298a8;margin:0;line-height:1.4}
.customer-detail-order-count{font-size:9px;font-weight:750;color:#6753c8;background:#f0edff;padding:5px 8px;border-radius:8px;white-space:nowrap}
.customer-detail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 18px 20px}
.customer-detail-metrics>div{min-width:0;padding:12px;border:1px solid #eeedf5;border-radius:12px;background:#fff;box-shadow:0 2px 8px #24345205}
.customer-detail-metrics small{display:block;font-size:9px;color:#8b92a3;margin-bottom:6px}
.customer-detail-metrics b{display:block;font-size:13px;color:#292541;overflow-wrap:anywhere}
.customer-detail-metrics .green-text{color:#16866c}
.customer-detail-metrics .amber-text{color:#b97819}
.customer-detail-history{padding:0 18px}
.customer-detail-history .customer-detail-section-heading{margin:0 0 10px}
.customer-detail-order{width:100%;display:flex;flex-direction:column;gap:9px;text-align:left;padding:12px;margin:0 0 9px;border:1px solid #eceaf5;border-radius:13px;background:#fff;color:var(--ink);cursor:pointer;box-shadow:0 2px 8px #24345205}
.customer-detail-order:active{background:#faf9ff}
.customer-detail-order:focus-visible{outline:2px solid #8d7bea;outline-offset:2px}
.customer-detail-order-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.customer-detail-order-top>b{font-size:11px;color:#5540bd;font-weight:800}
.customer-detail-order-top>span{font-size:9px;color:#9299a8}
.customer-detail-order-items{font-size:10px;line-height:1.5;color:#777f91;overflow-wrap:anywhere}
.customer-detail-order-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-top:8px;border-top:1px solid #f0eff5}
.customer-detail-order-bottom>span{font-size:9px;color:#8991a1;min-width:0}
.customer-detail-order-bottom b{display:block;font-size:10px;margin-top:4px;color:#303047;overflow-wrap:anywhere}
.customer-detail-order-bottom .green-text{color:#16866c}
.customer-detail-order-bottom .amber-text{color:#b97819}
.customer-detail-order-badges{display:flex;gap:5px;flex-wrap:wrap}
.customer-detail-order-badges .delivery-badge{font-size:9px;padding:3px 7px}
.customer-detail-empty{padding:18px 12px;text-align:center;border:1px dashed #ded9f1;border-radius:12px;color:#9290a3;font-size:11px;background:#faf9ff}

@media(max-width:620px){
  .customer-card-button{padding:11px;border-radius:14px;gap:7px 10px}
  .customer-card-button .delivery-order-amounts>span{padding:7px 6px}
  .customer-card-button .delivery-order-amounts b{font-size:10px}
  .customer-detail-hero{margin:12px 13px 16px;padding:13px}
  .customer-detail-metrics{margin-left:13px;margin-right:13px;gap:8px}
  .customer-detail-history{padding-left:13px;padding-right:13px}
  .customer-detail-section-heading{margin-left:13px;margin-right:13px}
  .customer-detail-history .customer-detail-section-heading{margin-left:0;margin-right:0}
  .customer-detail-order{padding:11px}
}

/* Customer cards — align amounts right like Home and Orders */
.customers-card-list .delivery-order-bottom{
  display:grid !important;
  grid-template-columns:max-content minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:12px !important;
}
.customers-card-list .delivery-order-date{
  min-width:0 !important;
  justify-self:start !important;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.customers-card-list .delivery-order-amounts{
  width:210px !important;
  min-width:210px !important;
  max-width:210px !important;
  flex:none !important;
  margin-left:auto !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  text-align:right !important;
}
.customers-card-list .delivery-order-amounts>span{
  min-width:0 !important;
}
.customers-card-list .delivery-date-badge{
  margin:0;
  padding:3px 6px;
  font-size:9px;
  line-height:1.2;
  white-space:nowrap;
}
@media(max-width:600px){
  .customers-card-list .delivery-order-bottom{
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) !important;
    column-gap:8px !important;
  }
  .customers-card-list .delivery-order-amounts{
    width:195px !important;
    min-width:195px !important;
    max-width:195px !important;
    flex:none !important;
    gap:5px !important;
    text-align:right !important;
  }
}

/* Products tab — compact cards and best-selling list */
.product-best-sellers{background:#fff;border:1px solid #e8ebf2;border-radius:15px;padding:14px;margin-bottom:15px}
.product-best-seller-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.product-best-seller-heading h2{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:750;margin:0;color:#26334d}
.product-best-seller-heading h2 svg{color:#7669dc}
.product-best-seller-heading>small{color:#929bad;font-size:10px}
.product-best-seller-list{display:flex;flex-direction:column;gap:7px}
.product-best-seller-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #edf0f5;border-radius:11px;min-width:0}
.product-best-seller-rank{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#f0edff;color:#6258c9;font-weight:800;font-size:11px;flex-shrink:0}
.product-best-seller-item:first-child .product-best-seller-rank{background:#fff2d8;color:#b37a20}
.product-best-seller-info{min-width:0;flex:1}
.product-best-seller-info b{display:block;font-size:11px;color:#34415a;overflow-wrap:anywhere}
.product-best-seller-info small{display:block;color:#929bad;font-size:9px;margin-top:3px}
.product-best-seller-units{font-size:11px;font-weight:800;color:#596780;white-space:nowrap}
.product-filter-row{margin:0 0 13px;display:flex;gap:7px;flex-wrap:wrap}
.product-card-list{gap:9px}
.product-compact-card{display:flex;align-items:center;gap:11px;padding:12px 13px;background:#fff;border:1px solid #e8ebf2;border-radius:15px;min-width:0}
.product-compact-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#efedff;color:#7468d8;flex-shrink:0}
.product-compact-main{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.product-compact-main>b{font-size:13px;font-weight:750;color:#26334d;overflow-wrap:anywhere}
.product-compact-main>small{font-size:10px;color:#929bad}
.product-compact-main .stock-badge{align-self:flex-start}
.product-compact-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}
.product-compact-actions .icon-btn{width:32px;height:32px}
@media(max-width:380px){
  .product-best-sellers{padding:11px}
  .product-best-seller-item{gap:7px;padding:8px}
  .product-best-seller-units{font-size:10px}
  .product-compact-card{gap:8px;padding:10px}
  .product-compact-icon{width:34px;height:34px}
  .product-compact-actions .icon-btn{width:29px;height:29px}
}

/* Products filters: keep all four chips on one horizontal line */
.product-filter-row{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.product-filter-row::-webkit-scrollbar{display:none}
.product-filter-row .orders-filter-chip{flex:0 0 auto}

/* DoovaBook — Premium More sheet refinement */
.more-overlay{
  background:rgba(18,25,48,.52);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.more-sheet{
  max-height:min(86dvh,780px);
  padding:10px 20px calc(26px + env(safe-area-inset-bottom));
  border:1px solid rgba(255,255,255,.8);
  border-bottom:0;
  border-radius:28px 28px 0 0;
  background:linear-gradient(180deg,#fff 0%,#fdfcff 100%);
  box-shadow:0 -18px 60px rgba(28,35,75,.2);
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.more-grabber{
  width:40px;
  height:5px;
  margin:2px auto 20px;
  background:#d9dced;
}
.more-sheet-heading{
  gap:13px;
  padding:5px 0 19px;
  margin-bottom:9px;
  border-bottom:1px solid #ececf5;
}
.more-business-avatar{
  flex-basis:50px;
  width:50px;
  height:50px;
  border:3px solid #f0edff;
  border-radius:17px;
  background:linear-gradient(145deg,#6478e8,#9270d9);
  box-shadow:0 5px 14px rgba(105,105,210,.2);
  font-size:20px;
}
.more-business-copy{gap:5px}
.more-business-copy b{
  font-size:15px;
  font-weight:800;
  letter-spacing:-.2px;
}
.more-business-copy small{
  font-size:11px;
  color:#8790a4;
}
.more-close{
  width:37px;
  height:37px;
  border:1px solid #eceef5;
  border-radius:13px;
  color:#68738a;
  background:#f7f7fc;
  transition:background .18s ease,transform .18s ease;
}
.more-close:active{transform:scale(.94);background:#eeedfa}
.more-section-label{
  padding:19px 3px 8px;
  color:#9295aa;
  font-size:10px;
  font-weight:850;
  letter-spacing:.11em;
}
.more-menu-row{
  position:relative;
  gap:13px;
  min-height:69px;
  padding:10px 9px;
  border:1px solid transparent;
  border-bottom:1px solid #f0f0f6;
  border-radius:15px;
  background:transparent;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.more-menu-row:active{
  transform:scale(.99);
  border-color:#e9e6fb;
  background:#f7f5ff;
}
.more-row-icon{
  flex-basis:43px;
  width:43px;
  height:43px;
  border:1px solid rgba(112,111,205,.07);
  border-radius:14px;
  color:#6874d7;
  background:linear-gradient(145deg,#f0efff,#f7f5ff);
}
.more-row-copy{gap:5px}
.more-row-copy b{
  color:#202a43;
  font-size:13px;
  font-weight:780;
  letter-spacing:-.1px;
}
.more-row-copy small{
  color:#8992a5;
  font-size:11px;
  line-height:1.4;
}
.more-menu-row > svg{
  width:17px;
  height:17px;
  color:#a5a9ba;
  transition:transform .18s ease;
}
.more-menu-row:active > svg{transform:translateX(2px)}
.more-subscription-row{
  margin-top:2px;
  border:1px solid #f1e8d7;
  background:linear-gradient(110deg,#fffaf0,#fffdf8);
}
.more-subscription-row:active{
  border-color:#ead9b8;
  background:#fff7e9;
}
.more-subscription-row .more-row-icon{
  border-color:#f4e8ce;
  color:#b18439;
  background:linear-gradient(145deg,#fff1d5,#fff9ed);
}
.more-back{
  gap:8px;
  margin:3px 0 14px;
  padding:10px 12px;
  border-radius:12px;
  background:#f4f2ff;
  color:#6570ce;
}
.more-legal-content{
  padding:7px 5px 14px;
}
.more-legal-content h3{
  margin:5px 0 21px;
  color:#202a43;
  font-size:20px;
  font-weight:800;
  letter-spacing:-.45px;
}
.more-legal-content p{
  font-size:13px;
  line-height:1.75;
}
.more-legal-content p b{font-weight:780}
.more-legal-content .more-legal-note{
  border:1px solid #eceaf7;
  border-radius:14px;
  background:#f7f6fc;
  line-height:1.6;
}
@media (min-width:700px){
  .more-sheet{
    max-height:min(82dvh,760px);
    padding:14px 24px 24px;
    border:1px solid #eeeef5;
    border-radius:26px;
  }
}

/* DoovaBook — Premium Order Detail screen */
.modal-wide:has(.order-detail) {
  width: min(100%, 700px);
  border: 1px solid #eeecf7;
  border-radius: 24px;
  box-shadow: 0 22px 65px rgba(37, 35, 78, .19);
  overflow: hidden;
}

.order-detail {
  background: #fff;
  color: #202a43;
  padding-bottom: 3px;
}

.order-detail .detail-top {
  align-items: center;
  padding: 23px 24px 20px;
  background: linear-gradient(115deg, #f5f3ff 0%, #fbfaff 62%, #fff 100%);
  border-bottom: 1px solid #eeebfa;
}

.order-detail .detail-label {
  color: #8584b3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.order-detail .detail-top h3 {
  margin: 8px 0 6px;
  color: #222b47;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.45px;
  overflow-wrap: anywhere;
}

.order-detail .detail-top p {
  margin: 4px 0;
  color: #7e879d;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.order-detail .detail-facts {
  gap: 11px;
  padding: 19px 24px 8px;
}

.order-detail .detail-facts > div {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #eeedf7;
  border-radius: 15px;
  background: #faf9ff;
}

.order-detail .detail-facts > div:nth-child(2) {
  background: #f4f3ff;
  border-color: #e9e6ff;
}

.order-detail .detail-facts > div:nth-child(3) {
  background: #f0faf5;
  border-color: #e2f2e9;
}

.order-detail .detail-facts > div:nth-child(4) {
  background: #fff8ed;
  border-color: #f6ecd9;
}

.order-detail .detail-facts span {
  margin-bottom: 8px;
  color: #8a91a5;
  font-size: 10px;
  font-weight: 650;
}

.order-detail .detail-facts b {
  color: #303953;
  font-size: 13px;
  font-weight: 800;
}

.order-detail .detail-lines,
.order-detail .payment-history {
  padding: 12px 24px 18px;
}

.order-detail .detail-lines h3,
.order-detail .payment-history h3 {
  margin: 0 0 5px;
  padding: 0 0 12px;
  border-bottom: 1px solid #eeedf5;
  color: #29324c;
  font-size: 14px;
  font-weight: 850;
}

.order-detail .detail-line {
  min-height: 55px;
  padding: 12px 2px;
  border-bottom: 1px solid #f0f0f6;
}

.order-detail .detail-line b {
  color: #303953;
  font-size: 12px;
  font-weight: 750;
}

.order-detail .detail-line small {
  color: #9299aa;
  font-size: 11px;
}

.order-detail .detail-line strong {
  color: #303953;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.order-detail .payment-history-row {
  min-height: 53px;
  padding: 11px 2px;
  border-bottom: 1px solid #f0f0f6;
}

.order-detail .payment-history-row b {
  color: #2d7656;
  font-size: 12px;
  font-weight: 800;
}

.order-detail .payment-history-row small {
  color: #9299aa;
  font-size: 10px;
}

.order-detail .payment-history-row .stock-badge {
  border-radius: 20px;
  padding: 5px 10px;
  background: #eaf8f0;
  color: #36815d;
  font-size: 10px;
  font-weight: 750;
}

.order-detail .delivery-status-control {
  margin: 13px 24px 17px;
  padding: 13px 15px;
  border: 1px solid #eae7fa;
  border-radius: 15px;
  background: linear-gradient(110deg, #f8f6ff, #fcfbff);
}

.order-detail .delivery-status-control .detail-label {
  color: #7777b0;
}

.order-detail .delivery-status-control .btn {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 11px;
}

.order-detail .order-note {
  margin: 0 24px 16px;
  padding: 12px 14px;
  border: 1px solid #eeeafa;
  border-radius: 13px;
  background: #faf9ff;
  color: #68738b;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.order-detail .order-note b {
  color: #424b68;
}

.order-detail .document-actions {
  gap: 10px;
  padding: 5px 24px 19px;
}

.order-detail .document-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 13px;
  border: 1px solid #e8e6f5;
  border-radius: 12px;
  background: #faf9ff;
  color: #6266b5;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}

.order-detail .document-actions .btn:active {
  transform: scale(.98);
  background: #f0eeff;
}

.order-detail .document-actions .btn:disabled {
  opacity: .45;
}

.order-detail .detail-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 24px 20px;
  border-top: 1px solid #eeedf5;
  background: #fcfbff;
}

.order-detail .detail-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  min-width: 105px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
}

.order-detail .detail-footer .danger-text {
  margin-right: auto;
  color: #d45c69;
}

@media (max-width: 520px) {
  .modal-wide:has(.order-detail) {
    border-radius: 23px 23px 0 0;
  }

  .order-detail .detail-top {
    gap: 10px;
    padding: 19px 16px 16px;
  }

  .order-detail .detail-top h3 {
    font-size: 17px;
  }

  .order-detail .detail-top p {
    font-size: 11px;
  }

  .order-detail .detail-facts {
    gap: 9px;
    padding: 14px 16px 7px;
  }

  .order-detail .detail-facts > div {
    min-height: 70px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  .order-detail .detail-facts b {
    font-size: 12px;
  }

  .order-detail .delivery-status-control {
    margin: 12px 16px 15px;
    padding: 13px;
  }

  .order-detail .detail-lines,
  .order-detail .payment-history {
    padding: 10px 16px 15px;
  }

  .order-detail .document-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 16px 15px;
  }

  .order-detail .document-actions .btn {
    min-width: 0;
    min-height: 42px;
    padding: 9px 7px;
    font-size: 10px;
  }

  .order-detail .document-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .order-detail .detail-footer {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 8px;
    padding: 13px 16px calc(17px + env(safe-area-inset-bottom));
  }

  .order-detail .detail-footer .btn {
    min-width: 0;
    min-height: 42px;
    padding: 9px 8px;
    font-size: 10px;
  }

  .order-detail .detail-footer .danger-text {
    margin-right: 0;
  }

  .order-detail .order-note {
    margin: 0 16px 14px;
  }
}

/* Order detail — compact layout and reliable scrolling */
.modal-backdrop:has(.order-detail) {
  align-items: flex-start;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.modal:has(.order-detail) {
  display: block;
  max-height: calc(100dvh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.order-detail {
  padding-bottom: 0;
}

.order-detail .detail-top {
  padding: 17px 22px 13px;
  background: #faf9ff;
}

.order-detail .detail-top h3 {
  font-size: 16px;
  margin: 5px 0 4px;
}

.order-detail .detail-top p {
  margin: 2px 0;
  font-size: 11px;
}

/* One compact summary strip — no individual cards */
.order-detail .detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 22px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeef5;
}

.order-detail .detail-facts > div,
.order-detail .detail-facts > div:nth-child(n) {
  min-height: 0;
  padding: 2px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-detail .detail-facts > div:first-child {
  padding-left: 0;
}

.order-detail .detail-facts > div + div {
  border-left: 1px solid #eeeef5;
}

.order-detail .detail-facts span {
  margin-bottom: 5px;
  font-size: 9px;
}

.order-detail .detail-facts b {
  font-size: 12px;
  white-space: normal;
}

/* Delivery status: label left, action right */
.order-detail .delivery-status-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 22px 14px;
  padding: 9px 11px;
  border: 1px solid #eeedf5;
  border-radius: 11px;
  background: #fbfaff;
}

.order-detail .delivery-status-control .btn {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 10px;
}

.order-detail .detail-lines,
.order-detail .payment-history {
  padding: 5px 22px 13px;
}

.order-detail .detail-lines h3,
.order-detail .payment-history h3 {
  margin-bottom: 2px;
  padding-bottom: 9px;
  font-size: 12px;
}

.order-detail .detail-line {
  min-height: 47px;
  padding: 9px 1px;
}

.order-detail .detail-line b,
.order-detail .detail-line strong,
.order-detail .payment-history-row b {
  font-size: 11px;
}

.order-detail .payment-history-row {
  min-height: 45px;
  padding: 8px 1px;
}

.order-detail .document-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px 22px 14px;
}

.order-detail .document-actions .btn {
  min-width: 0;
  min-height: 39px;
  padding: 8px 5px;
  font-size: 10px;
}

.order-detail .document-actions .btn:last-child {
  grid-column: auto;
}

.order-detail .detail-footer {
  display: flex;
  gap: 8px;
  padding: 12px 22px 16px;
}

.order-detail .detail-footer .btn {
  min-width: 0;
  min-height: 39px;
  padding: 8px 12px;
  font-size: 10px;
}

.order-detail .order-note {
  margin: 0 22px 12px;
  padding: 9px 11px;
}

@media (max-width: 620px) {
  .modal-backdrop:has(.order-detail) {
    align-items: flex-start;
    padding: 8px;
  }

  .modal:has(.order-detail) {
    width: 100%;
    max-height: calc(100dvh - 16px);
    margin: 0;
    border-radius: 18px;
  }

  .order-detail .detail-top {
    padding: 15px 15px 11px;
  }

  .order-detail .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 15px;
    padding: 10px 0;
    row-gap: 9px;
  }

  .order-detail .detail-facts > div,
  .order-detail .detail-facts > div:first-child {
    padding: 2px 8px;
  }

  .order-detail .detail-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .order-detail .detail-facts > div:nth-child(even) {
    border-left: 1px solid #eeeef5;
  }

  .order-detail .delivery-status-control {
    margin: 10px 15px 12px;
    padding: 8px 10px;
  }

  .order-detail .delivery-status-control .detail-label {
    font-size: 9px;
  }

  .order-detail .delivery-status-control .btn {
    min-height: 33px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .order-detail .detail-lines,
  .order-detail .payment-history {
    padding: 4px 15px 12px;
  }

  .order-detail .document-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px 15px 12px;
  }

  .order-detail .document-actions .btn,
  .order-detail .document-actions .btn:last-child {
    grid-column: auto;
    min-height: 38px;
    gap: 4px;
    padding: 7px 3px;
    font-size: 9px;
  }

  .order-detail .detail-footer {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 7px;
    padding: 11px 15px calc(13px + env(safe-area-inset-bottom));
  }

  .order-detail .detail-footer .btn {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 9px;
  }

  .order-detail .order-note {
    margin: 0 15px 11px;
  }
}

/* Final order detail header and compact information layout */
.modal:has(.order-detail) {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.modal:has(.order-detail) .modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #eeedf5;
}

.modal:has(.order-detail) .modal-header h2 {
  font-size: 16px;
  margin-bottom: 3px;
  letter-spacing: -.35px;
}

.modal:has(.order-detail) .modal-header p {
  font-size: 10px;
}

.modal-header-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.modal-header-extra .btn {
  min-height: 33px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 10px;
  gap: 5px;
  box-shadow: none;
}

.modal:has(.order-detail) .detail-top {
  align-items: center;
  padding: 15px 22px 12px;
  background: #fff;
  border-bottom: 1px solid #f0eff5;
}

.order-detail .detail-top h3 {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.25px;
  margin: 4px 0;
  color: #27334b;
}

.order-detail .detail-top p {
  font-size: 10px;
  line-height: 1.5;
  margin: 2px 0;
  color: #8791a4;
}

.order-detail .detail-label {
  font-size: 9px;
  letter-spacing: 1.1px;
}

.order-detail .detail-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 22px;
  padding: 11px 0;
  border-bottom: 1px solid #eeedf5;
}

.order-detail .detail-facts > div,
.order-detail .detail-facts > div:nth-child(n) {
  min-width: 0;
  min-height: 0;
  padding: 2px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.order-detail .detail-facts > div:first-child {
  padding-left: 0;
}

.order-detail .detail-facts > div + div {
  border-left: 1px solid #eeedf5;
}

.order-detail .detail-facts span {
  font-size: 9px;
  margin-bottom: 4px;
  color: #8d96a8;
}

.order-detail .detail-facts b {
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.order-detail .detail-facts .green-text {
  color: #16866c !important;
}

.order-detail .detail-facts .amber-text {
  color: #b97819 !important;
}

.order-detail .detail-lines,
.order-detail .payment-history {
  padding-top: 8px;
}

@media (max-width: 620px) {
  .modal-backdrop:has(.order-detail) {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 8px;
  }

  .modal:has(.order-detail) {
    width: 100%;
    max-height: calc(100dvh - 16px);
    margin: 0;
    border-radius: 16px;
  }

  .modal:has(.order-detail) .modal-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 13px 12px;
  }

  .modal:has(.order-detail) .modal-header h2 {
    font-size: 14px;
  }

  .modal:has(.order-detail) .modal-header p {
    font-size: 9px;
  }

  .modal-header-extra .btn {
    min-height: 31px;
    padding: 6px 7px;
    font-size: 9px;
    gap: 4px;
  }

  .modal-header-extra .btn svg {
    width: 12px;
    height: 12px;
  }

  .modal:has(.order-detail) .detail-top {
    padding: 13px 14px 10px;
  }

  .order-detail .detail-top h3 {
    font-size: 14px;
  }

  .order-detail .detail-top p {
    font-size: 10px;
  }

  .order-detail .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 14px;
    padding: 10px 0;
    row-gap: 9px;
  }

  .order-detail .detail-facts > div,
  .order-detail .detail-facts > div:nth-child(n) {
    padding: 2px 8px;
  }

  .order-detail .detail-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .order-detail .detail-facts > div:nth-child(even) {
    border-left: 1px solid #eeedf5;
  }

  .order-detail .detail-facts b {
    font-size: 11px;
  }
}

/* DoovaBook — premium order detail reference layout */
.modal:has(.reference-detail) {
  width: min(100%, 680px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100dvh - 36px);
  border: 1px solid #ece9fa;
  border-radius: 20px;
}
.modal:has(.reference-detail) .modal-header {
  align-items: center;
  padding: 19px 22px;
  background: #fff;
}
.modal:has(.reference-detail) .modal-header h2 {
  color: #292344;
  font-size: 18px;
  font-weight: 800;
}
.modal:has(.reference-detail) .modal-header p {
  margin-top: 4px;
  color: #9290a4;
}
.modal-header-extra {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.modal-header-extra .status-badge {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 10px;
}
.reference-detail {
  padding: 0 22px 18px;
  color: #302b49;
}
.reference-customer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid #f0eef7;
}
.reference-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(145deg,#eeeaff,#ded8ff);
  color: #5b3fd8;
  font-size: 21px;
  font-weight: 800;
}
.reference-customer-info { min-width: 0; }
.reference-customer-info .detail-label {
  color: #9389c7;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.reference-customer-info h3 {
  margin: 4px 0;
  color: #292344;
  font-size: 16px;
  font-weight: 800;
}
.reference-customer-info p {
  margin: 3px 0 0;
  color: #89869d;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.reference-delivery {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #eeebfa;
  border-radius: 15px;
  background: #faf9ff;
}
.reference-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.reference-section-title h3,
.reference-payment h3 {
  margin: 0;
  color: #342e50;
  font-size: 13px;
  font-weight: 800;
}
.reference-section-title > span {
  color: #9994ad;
  font-size: 10px;
}
.reference-delivered,
.reference-in-progress {
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px !important;
  font-weight: 800;
}
.reference-delivered {
  color: #16866c !important;
  background: #e7f7f0;
}
.reference-in-progress {
  color: #6651c8 !important;
  background: #efedff;
}
.delivery-progress {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 3px 5px 8px;
}
.delivery-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 62px;
  color: #aaa6b8;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.step-circle {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1.5px solid #e0ddec;
  border-radius: 50%;
  background: #fff;
  color: #aaa5ba;
}
.delivery-step.complete .step-circle {
  border-color: #5b3fd8;
  background: #5b3fd8;
  color: #fff;
}
.delivery-step.complete,
.delivery-step.current {
  color: #5543b6;
}
.delivery-step.current .step-circle {
  border: 2px solid #6c55dc;
  background: #efedff;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b55d9;
}
.delivery-connector {
  height: 2px;
  flex: 1;
  min-width: 15px;
  margin: 13px 5px 0;
  background: #e4e0ef;
  border-radius: 3px;
}
.delivery-connector.complete { background: #6b55d9; }
.reference-delivery-date {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #eeebf7;
  color: #8d899f;
  font-size: 10px;
}
.reference-delivery-date svg { color: #7868d2; }
.reference-delivery-date b {
  margin-left: auto;
  color: #4c4569;
  font-size: 10px;
}
.reference-items { padding: 4px 0 14px; }
.reference-items .reference-section-title { margin-bottom: 8px; }
.reference-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 2px;
  border-bottom: 1px solid #f0eef5;
}
.reference-item-icon,
.reference-payment-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: #f0edff;
  color: #6652ce;
}
.reference-item-info,
.reference-payment-info {
  flex: 1;
  min-width: 0;
}
.reference-item-info b,
.reference-payment-info b {
  display: block;
  color: #3c3655;
  font-size: 11px;
  font-weight: 750;
}
.reference-item-info small,
.reference-payment-info small {
  display: block;
  margin-top: 4px;
  color: #9995a8;
  font-size: 10px;
}
.reference-item > strong,
.reference-payment-row > strong {
  color: #37314f;
  font-size: 11px;
  white-space: nowrap;
}
.reference-totals {
  display: grid;
  gap: 10px;
  padding: 14px 2px 3px;
}
.reference-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #89859b;
  font-size: 11px;
}
.reference-totals b {
  color: #39334f;
  font-size: 11px;
}
.reference-totals .reference-pending {
  padding-top: 10px;
  border-top: 1px dashed #e8e4f0;
  color: #6652bd;
  font-weight: 750;
}
.reference-payment {
  padding: 15px 0 7px;
  border-top: 1px solid #f0eef5;
}
.reference-payment h3 { margin-bottom: 8px; }
.reference-payment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.reference-payment-icon {
  width: 32px;
  height: 32px;
  background: #e8f7f0;
  color: #16866c;
}
.reference-detail .order-note {
  margin: 8px 0 14px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #faf9ff;
  color: #77718e;
  font-size: 11px;
}
.reference-detail .document-actions {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid #f0eef5;
}
.reference-detail .document-actions .btn {
  min-width: 0;
  min-height: 40px;
  padding: 8px 5px;
  font-size: 10px;
}
.reference-detail .detail-footer {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 13px 0 2px;
  border-top: 1px solid #f0eef5;
}
.reference-detail .detail-footer .btn {
  min-width: 0;
  min-height: 39px;
  font-size: 10px;
}
.reference-detail .detail-footer .danger-text { margin-right: auto; }

@media(max-width:620px) {
  .modal:has(.reference-detail) {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 19px;
  }
  .modal:has(.reference-detail) .modal-header {
    gap: 8px;
    padding: 15px 13px;
  }
  .modal:has(.reference-detail) .modal-header h2 { font-size: 16px; }
  .modal:has(.reference-detail) .modal-header p { font-size: 10px; }
  .modal-header-extra .status-badge {
    padding: 6px 7px;
    font-size: 8px;
  }
  .reference-detail { padding: 0 14px 14px; }
  .reference-customer { gap: 11px; padding: 15px 0; }
  .reference-avatar {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    font-size: 18px;
  }
  .reference-customer-info h3 { font-size: 14px; }
  .reference-customer-info p { font-size: 10px; }
  .reference-delivery { padding: 13px 10px; margin: 12px 0; }
  .reference-section-title { margin-bottom: 13px; }
  .delivery-step { min-width: 53px; font-size: 9px; }
  .step-circle { width: 25px; height: 25px; }
  .delivery-connector { margin-top: 12px; min-width: 8px; }
  .reference-delivery-date { font-size: 9px; }
  .reference-delivery-date b { font-size: 9px; }
  .reference-detail .document-actions { gap: 5px; }
  .reference-detail .document-actions .btn {
    gap: 4px;
    padding: 7px 3px;
    font-size: 9px;
  }
  .reference-detail .detail-footer { gap: 6px; }
  .reference-detail .detail-footer .btn {
    padding: 7px 8px;
    font-size: 9px;
  }
}

/* Three-stage interactive delivery tracker */
.reference-delivery .delivery-progress {
  align-items: flex-start;
  padding: 4px 0 8px;
}
.reference-delivery .delivery-step {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  flex: 0 0 76px;
  min-width: 0;
  cursor: pointer;
  font: inherit;
  color: #aaa6b8;
  transition: color .18s ease, transform .18s ease;
}
.reference-delivery .delivery-step:hover {
  color: #5b3fd8;
  transform: translateY(-1px);
}
.reference-delivery .delivery-step:focus-visible {
  outline: 2px solid #8b79e8;
  outline-offset: 4px;
  border-radius: 8px;
}
.reference-delivery .delivery-step.complete,
.reference-delivery .delivery-step.current {
  color: #5543b6;
}
.reference-delivery .delivery-step .step-circle {
  width: 29px;
  height: 29px;
  box-sizing: border-box;
}
.reference-delivery .delivery-connector {
  margin: 14px 4px 0;
  min-width: 10px;
}
.reference-customer {
  align-items: center;
}
.reference-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg,#6b55dc,#907ce9);
  color: #fff;
  box-shadow: 0 5px 12px #5b3fd82b;
}
@media(max-width:620px) {
  .reference-delivery .delivery-step {
    flex-basis: 68px;
    font-size: 9px;
  }
  .reference-delivery .delivery-step .step-circle {
    width: 27px;
    height: 27px;
  }
  .reference-delivery .delivery-connector {
    margin-top: 13px;
    min-width: 5px;
  }
  .reference-avatar {
    width: 44px;
    height: 44px;
  }
}

/* Compact clickable customer row in order details only */
.reference-detail .reference-customer-link {
  width: 100%;
  appearance: none;
  border: 1px solid #eeeafd;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  margin: 12px 0 16px;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.reference-detail .reference-customer-link:active {
  background: #f8f6ff;
  transform: scale(.99);
}
.reference-detail .reference-customer-link .reference-avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: linear-gradient(145deg,#6b55dc,#a08ff0);
}
.reference-detail .reference-customer-link .reference-customer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.reference-detail .reference-customer-name {
  color: #302949;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}
.reference-detail .reference-customer-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #89849f;
  font-size: 11px;
  line-height: 1.2;
}
.reference-detail .reference-customer-phone svg {
  color: #7864d9;
  flex-shrink: 0;
}
.reference-detail .reference-customer-arrow {
  color: #9b91c5;
  flex-shrink: 0;
}
.order-modal-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.order-modal-title .delivery-badge {
  font-size: 9px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 20px;
  font-weight: 800;
}
@media(max-width:620px) {
  .reference-detail .reference-customer-link {
    padding: 10px 11px;
    margin: 10px 0 13px;
  }
  .reference-detail .reference-customer-link .reference-avatar {
    width: 40px;
    height: 40px;
  }
  .reference-detail .reference-customer-name { font-size: 13px; }
  .reference-detail .reference-customer-phone { font-size: 10px; }
}

/* Premium create-order customer search */
.order-customer-search{position:relative;grid-column:1/-1;min-width:0}
.order-customer-search .field{width:100%}
.order-customer-suggestions{position:relative;z-index:5;margin-top:7px;background:#fff;border:1px solid #e7e6f5;border-radius:13px;overflow:hidden;box-shadow:0 8px 22px rgba(45,43,91,.08)}
.customer-suggestion{display:flex;width:100%;align-items:center;gap:11px;padding:11px 13px;background:#fff;border:0;border-bottom:1px solid #f0eff6;text-align:left;color:#46516a}
.customer-suggestion:last-child{border-bottom:0}
.customer-suggestion:active{background:#f5f3ff}
.customer-suggestion-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:11px;background:#f0edff;color:#7064d8}
.customer-suggestion-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.customer-suggestion-info b{font-size:12px;font-weight:750;color:#303b55}
.customer-suggestion-info small,.order-customer-hint{font-size:10px;color:#929bad}
.customer-suggestion>svg{color:#9ba3b4}
.order-customer-selected{display:flex;align-items:center;gap:6px;margin-top:7px;padding:9px 11px;border-radius:10px;background:#eff9f3;color:#34865a;font-size:11px;font-weight:700}
.order-customer-hint{display:block;margin:7px 2px 0}
.order-items-head h3{font-size:13px}
.order-items-head p{font-size:10px;line-height:1.5}
.order-items-head .btn{white-space:nowrap}
.order-line{background:#fafaff;border-color:#eceaf7}
.line-product select{width:100%;min-width:0}
.add-line-btn{margin-top:3px;padding:11px 3px;font-size:12px}
.order-bottom-fields{margin-top:12px}
.order-summary{border:1px solid #eceaf7;background:linear-gradient(145deg,#f8f7ff,#f9faff);padding:15px}
.order-summary .summary-discount{color:#a16b37}
.order-summary .summary-discount b{color:#a16b37}
.order-summary .summary-total{border-top:1px solid #e7e5f1;margin-top:5px;padding-top:10px;color:#46516a;font-weight:750}
.order-summary .summary-total b{font-size:15px;color:#6258c7}
@media(max-width:620px){
 .order-customer-search{grid-column:1/-1}
 .customer-suggestion{padding:10px 11px}
 .order-items-head{gap:8px}
 .order-items-head .btn{padding:8px 9px;font-size:10px}
 .order-items-head h3{font-size:12px}
 .order-summary{padding:12px}
}

/* DoovaBook — premium Create/Edit Order form */
.order-create-form{
  background:#fff;
  padding:22px 24px 24px;
}
.modal-wide:has(.order-create-form) .modal-header{
  background:linear-gradient(115deg,#f5f2ff 0%,#fbfaff 65%,#f4f7ff 100%);
  border-bottom:1px solid #eeebfa;
  padding:21px 24px 18px;
}
.modal-wide:has(.order-create-form) .modal-header h2{
  color:#303653;
  font-size:19px;
  font-weight:800;
  letter-spacing:-.35px;
}
.order-create-form .form-grid:first-child{
  background:#faf9ff;
  border:1px solid #eeecf8;
  border-radius:17px;
  padding:17px;
  gap:15px 14px;
}
.order-create-form .field>span{
  color:#535d78;
  font-size:11px;
  font-weight:750;
}
.order-create-form .field input,
.order-create-form .field select,
.order-create-form .field textarea{
  min-height:43px;
  border:1px solid #e5e4ef;
  border-radius:11px;
  background:#fff;
  padding:10px 12px;
  color:#303a54;
  font-size:12px;
  transition:border-color .18s,box-shadow .18s;
}
.order-create-form .field input:focus,
.order-create-form .field select:focus,
.order-create-form .field textarea:focus{
  border-color:#a69ae9;
  outline:none;
  box-shadow:0 0 0 3px rgba(126,108,214,.10);
}
.order-create-form .order-customer-search{
  grid-column:1/-1;
}
.order-create-form .order-items-head{
  margin:22px 0 12px;
  align-items:center;
}
.order-create-form .order-items-head h3{
  color:#343b58;
  font-size:14px;
  font-weight:800;
}
.order-create-form .order-items-head p{
  color:#9298aa;
  font-size:10px;
}
.order-create-form .order-items-head .btn{
  border-radius:10px;
  font-weight:750;
}
.order-create-form .order-line-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.order-create-form .order-line{
  background:linear-gradient(135deg,#fff 0%,#fcfbff 100%);
  border:1px solid #eae8f4;
  border-radius:14px;
  padding:12px;
  box-shadow:0 3px 10px rgba(52,48,100,.035);
  align-items:end;
}
.order-create-form .line-product select{
  min-height:40px;
  border-radius:10px;
  background:#fff;
  border:1px solid #e7e5f0;
  font-size:11px;
}
.order-create-form .line-qty input{
  min-height:38px;
  border:1px solid #e7e5f0;
  border-radius:9px;
  text-align:center;
}
.order-create-form .line-total{
  color:#4d477f;
  font-size:12px;
  font-weight:800;
}
.order-create-form .add-line-btn{
  width:100%;
  border:1px dashed #c9c2ec;
  border-radius:12px;
  background:#faf9ff;
  color:#7164c8;
  font-weight:750;
  padding:12px;
  margin-top:12px;
}
.order-create-form .add-line-btn:active{
  background:#f0edff;
}
.order-create-form .order-bottom-fields{
  background:#faf9ff;
  border:1px solid #eeecf8;
  border-radius:16px;
  padding:16px;
  margin-top:20px;
  gap:14px;
}
.order-create-form .order-summary{
  margin-top:15px;
  border:1px solid #e8e4f7;
  border-radius:16px;
  background:linear-gradient(135deg,#f5f2ff 0%,#faf9ff 55%,#f3f6ff 100%);
  padding:17px 18px;
  box-shadow:0 5px 16px rgba(83,70,150,.055);
}
.order-create-form .order-summary>div{
  padding:5px 0;
  color:#737b91;
  font-size:11px;
}
.order-create-form .order-summary b{
  color:#39415c;
  font-size:12px;
  font-weight:750;
}
.order-create-form .order-summary .summary-discount,
.order-create-form .order-summary .summary-discount b{
  color:#a16b37;
}
.order-create-form .order-summary .summary-total{
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid #e5e0f4;
  color:#46406f;
}
.order-create-form .order-summary .summary-total b{
  color:#6558c5;
  font-size:17px;
  font-weight:850;
}
.order-create-form .order-summary .summary-due{
  margin-top:5px;
  padding-top:10px;
  border-top:1px solid #e9e6f3;
  color:#555d76;
  font-weight:750;
}
.order-create-form .modal-actions{
  padding-top:18px;
  margin-top:18px;
  border-top:1px solid #efedf5;
}
@media(max-width:620px){
  .order-create-form{
    padding:14px 13px 18px;
  }
  .modal-wide:has(.order-create-form) .modal-header{
    padding:17px 16px 14px;
  }
  .modal-wide:has(.order-create-form) .modal-header h2{
    font-size:17px;
  }
  .order-create-form .form-grid:first-child{
    padding:13px;
    border-radius:14px;
    gap:12px;
  }
  .order-create-form .order-items-head{
    margin-top:19px;
  }
  .order-create-form .order-line{
    grid-template-columns:70px minmax(0,1fr) 27px;
    gap:8px;
    padding:10px;
  }
  .order-create-form .line-product{
    grid-column:1/-1;
  }
  .order-create-form .line-qty{
    grid-column:1;
  }
  .order-create-form .line-total{
    grid-column:2;
    text-align:right;
    align-self:center;
    padding-top:16px;
  }
  .order-create-form .order-line>button,
  .order-create-form .order-line>.remove-line-btn{
    grid-column:3;
    align-self:center;
  }
  .order-create-form .order-bottom-fields{
    padding:13px;
    border-radius:14px;
    margin-top:16px;
  }
  .order-create-form .order-summary{
    padding:14px;
    border-radius:14px;
  }
}

/* Compact finishing pass for the create-order screen only */
.order-create-form{padding:15px 18px 17px;gap:10px}
.order-create-form .form-grid{gap:10px 12px}
.order-create-form .field{gap:5px}
.order-create-form .field label{font-size:10px}
.order-create-form .field input,.order-create-form .field select,.order-create-form .field textarea{min-height:36px;padding:8px 10px;font-size:12px}
.order-create-form .order-customer-search{margin-bottom:0}
.order-create-form .order-customer-selected{margin-top:5px;padding:7px 9px}
.order-create-form .order-items-head{margin:10px 0 6px;gap:8px}
.order-create-form .order-items-head h3{font-size:12px;margin:0}
.order-create-form .order-items-head p{font-size:9px;line-height:1.35;margin:3px 0 0}
.order-create-form .order-line-list{gap:6px}
.order-create-form .order-line{padding:7px 9px;gap:7px;border-radius:12px}
.order-create-form .line-product select{min-height:34px;padding:7px 9px;font-size:11px}
.order-create-form .line-product small{font-size:9px;margin-top:3px}
.order-create-form .line-qty input{min-height:32px;padding:6px 8px;font-size:11px}
.order-create-form .line-total{font-size:12px}
.order-create-form .add-line-btn{margin:4px 0 0;padding:7px 3px;font-size:11px}
.order-create-form .order-bottom-fields{margin-top:7px;gap:9px 11px}
.order-create-form .order-summary{padding:10px 12px;gap:6px;border-radius:13px}
.order-create-form .order-summary>div{font-size:10px}
.order-create-form .order-summary .summary-total{margin-top:3px;padding-top:7px}
.order-create-form .order-summary .summary-total b{font-size:14px}
.order-create-form .modal-actions{padding-top:2px;margin-top:2px}
.order-create-form .modal-actions .btn{min-height:36px;padding:8px 13px;font-size:11px}
@media(max-width:620px){
 .order-create-form{padding:12px 13px 14px;gap:8px}
 .order-create-form .form-grid{gap:8px 9px}
 .order-create-form .order-items-head{margin:8px 0 5px}
 .order-create-form .order-items-head .btn{padding:7px 8px;font-size:9px}
 .order-create-form .order-line{padding:7px 8px;gap:6px}
 .order-create-form .order-bottom-fields{gap:8px}
 .order-create-form .order-summary{padding:9px 10px}
}

/* Premium business profile identity header */
.business-profile-hero{display:flex;align-items:center;gap:18px;padding:22px;margin-bottom:17px;background:linear-gradient(120deg,#fff 0%,#f5f3ff 100%);border:1px solid #e8e5fa;border-radius:17px;box-shadow:0 5px 18px #4639a10a}
.business-profile-avatar{width:84px;height:84px;border-radius:50%;overflow:hidden;flex-shrink:0;border:4px solid #fff;box-shadow:0 0 0 1px #e5e0fb,0 6px 18px #4d3cb31a;background:#efedff}
.business-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.business-profile-avatar-empty{width:100%;height:100%;display:grid;place-items:center;color:#6a5bd2;background:linear-gradient(145deg,#efedff,#e3e0ff)}
.business-profile-identity{min-width:0;flex:1}
.business-profile-identity .eyebrow{font-size:9px;color:#8a81c8;letter-spacing:1px;font-weight:800}
.business-profile-identity h2{font-size:20px;letter-spacing:-.5px;margin:7px 0 3px;color:#202a43;overflow-wrap:anywhere}
.business-profile-identity p{font-size:13px;color:#737e94;margin:0 0 9px;overflow-wrap:anywhere}
.business-profile-contact{display:flex;align-items:center;gap:7px;color:#78839a;font-size:11px}
.business-profile-contact svg{color:#7668d8}
.business-profile-photo-btn{flex-shrink:0}
.business-logo-upload img{border-radius:50%!important;border:4px solid #fff;box-shadow:0 0 0 1px #e6e2f7,0 5px 14px #332b7814}
@media(max-width:620px){
.business-profile-hero{padding:15px;gap:12px;flex-wrap:wrap}
.business-profile-avatar{width:68px;height:68px}
.business-profile-identity h2{font-size:17px}
.business-profile-photo-btn{margin-left:auto}
}

/* Business profile - centered reference-inspired layout */
.business-profile-hero{flex-direction:column;align-items:center;text-align:center;gap:12px;padding:28px 20px 24px;background:linear-gradient(145deg,#fff 0%,#f7f5ff 100%)}
.business-profile-avatar-wrap{position:relative;width:116px;height:116px;margin:0 auto 4px}
.business-profile-avatar{width:116px;height:116px;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 0 0 2px #7567df,0 7px 22px #4435a326;background:#efedff}
.business-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.business-profile-avatar-empty{width:100%;height:100%;display:grid;place-items:center;color:#7163d6;background:linear-gradient(145deg,#f0edff,#e3dfff)}
.business-profile-camera{position:absolute;right:0;bottom:2px;width:36px;height:36px;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;background:#695bd2;color:#fff;box-shadow:0 3px 10px #34278b35;cursor:pointer}
.business-profile-identity{text-align:center;min-width:0}
.business-profile-identity .eyebrow{font-size:9px;letter-spacing:1.4px;color:#8175ce;font-weight:800}
.business-profile-identity h2{font-size:21px;margin:7px 0 4px;color:#202a43;letter-spacing:-.5px}
.business-profile-identity p{font-size:13px;color:#778198;margin:0 0 9px}
.business-profile-contact{justify-content:center;font-size:12px}
.business-profile-form{grid-template-columns:1fr;gap:16px}
.business-profile-form .settings-main{padding:22px}
.business-profile-form .form-grid{grid-template-columns:1fr;gap:16px}
.business-profile-form .form-grid>div{min-width:0}
.business-profile-form input:not([type=file]),.business-profile-form textarea{width:100%;min-height:49px;padding:13px 16px;border-radius:14px;background:#f6f5fc;border:1px solid #ece9f8;box-shadow:none;transition:border-color .2s,background .2s}
.business-profile-form textarea{min-height:96px;resize:vertical}
.business-profile-form input:focus,.business-profile-form textarea:focus{background:#fff;border-color:#9185e5;outline:none;box-shadow:0 0 0 3px #7668d81a}
.business-profile-form .form-footer{gap:12px;flex-wrap:wrap}
.business-profile-form .profile-preview{width:100%}
@media(max-width:620px){
.business-profile-hero{padding:25px 16px 21px}
.business-profile-avatar-wrap,.business-profile-avatar{width:108px;height:108px}
.business-profile-form .settings-main{padding:17px}
.business-profile-form .form-footer{align-items:stretch}
.business-profile-form .form-footer .btn{justify-content:center}
}

/* Business Profile header and summary refinement */
.main-column:has(.business-profile-hero) .page-content{padding-top:20px}
.business-profile-hero{display:flex;flex-direction:column;align-items:center;gap:13px;padding:24px 20px 22px;margin-bottom:17px}
.business-profile-identity{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.business-profile-owner-label{font-size:9px;font-weight:800;letter-spacing:1.25px;color:#8b82bd;margin:0 0 5px}
.business-profile-identity h2{font-size:20px;line-height:1.25;letter-spacing:-.45px;margin:0 0 15px;color:#202a43;overflow-wrap:anywhere}
.business-profile-details{width:min(100%,460px);display:flex;flex-direction:column;gap:8px}
.business-profile-detail-row{display:flex;align-items:flex-start;gap:11px;width:100%;padding:10px 12px;border:1px solid #eeecf7;border-radius:11px;background:#faf9fe;color:#59647b;font-size:12px;line-height:1.5;text-align:left;min-width:0}
.business-profile-detail-row svg{flex:0 0 17px;color:#7668d8;margin-top:1px}
.business-profile-detail-row span{min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){.main-column:has(.business-profile-hero) .page-content{padding-top:15px}.business-profile-hero{padding:21px 14px 17px;gap:11px}.business-profile-identity h2{font-size:18px;margin-bottom:12px}.business-profile-details{gap:7px}.business-profile-detail-row{padding:10px;font-size:11px}}

/* Business Profile — shared tab header finish and compact layout */
.main-column:has(.business-profile-hero) > .topbar.orders-tab-header{
  min-height:64px;
  padding-top:0;
  padding-bottom:0;
}
.main-column:has(.business-profile-hero) .orders-header-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#252343;
  font-size:19px;
  font-weight:850;
  letter-spacing:-.55px;
}
.main-column:has(.business-profile-hero) .orders-header-title svg{
  width:20px;
  height:20px;
  color:#7357df;
  flex-shrink:0;
}
.main-column:has(.business-profile-hero) .page-content{
  padding-top:15px;
}
.business-profile-hero{
  gap:10px;
  padding:18px 16px;
  margin-bottom:13px;
}
.business-profile-avatar-wrap,
.business-profile-avatar{
  width:96px;
  height:96px;
}
.business-profile-camera{
  width:32px;
  height:32px;
}
.business-profile-identity h2{
  font-size:19px;
  margin-bottom:11px;
}
.business-profile-details{
  gap:6px;
}
.business-profile-detail-row{
  padding:8px 11px;
  border-radius:10px;
  font-size:11.5px;
}
.business-profile-form{
  gap:12px;
}
.business-profile-form .settings-main{
  padding:18px;
}
.business-profile-form .form-grid{
  gap:12px;
}
.business-profile-form input:not([type=file]),
.business-profile-form textarea{
  min-height:44px;
  padding:10px 13px;
  border-radius:12px;
}
.business-profile-form textarea{
  min-height:78px;
}
.business-profile-form .form-footer{
  gap:10px;
  margin-top:12px;
}
@media(max-width:620px){
  .business-profile-hero{
    padding:16px 12px;
    gap:9px;
  }
  .business-profile-avatar-wrap,
  .business-profile-avatar{
    width:88px;
    height:88px;
  }
  .business-profile-identity h2{
    font-size:18px;
    margin-bottom:10px;
  }
  .business-profile-form .settings-main{
    padding:15px;
  }
  .business-profile-form .form-grid{
    gap:11px;
  }
}

/* Keep Business Profile title in its original position without the header bar */
.main-column:has(.business-profile-hero) > .business-profile-page-title{min-height:64px;display:flex;align-items:center;padding:0 24px;background:transparent;border:0;}
.main-column:has(.business-profile-hero) .business-profile-page-title .orders-header-title{display:flex;align-items:center;gap:10px;color:#252343;font-size:19px;font-weight:850;letter-spacing:-.55px;}
.main-column:has(.business-profile-hero) .business-profile-page-title .orders-header-title svg{width:20px;height:20px;color:#7357df;flex-shrink:0;}
@media(max-width:620px){.main-column:has(.business-profile-hero) > .business-profile-page-title{padding-left:16px;padding-right:16px;}}

/* Slightly reduce space between Business Profile title and summary */
.main-column:has(.business-profile-hero) .page-content{
  padding-top:7px;
}

/* Business Profile summary — compact, centered, no card */
.business-profile-hero{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:8px 8px 12px!important;
  margin-bottom:10px!important;
  gap:8px!important;
}
.business-profile-avatar-wrap,
.business-profile-avatar{
  width:82px!important;
  height:82px!important;
}
.business-profile-identity{
  align-items:center!important;
  text-align:center!important;
}
.business-profile-identity h2{
  margin-bottom:9px!important;
}
.business-profile-details{
  width:100%!important;
  max-width:460px!important;
  align-items:center!important;
  gap:5px!important;
}
.business-profile-detail-row{
  justify-content:center!important;
  text-align:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:4px 8px!important;
  gap:8px!important;
}
.business-profile-detail-row svg{
  margin-top:1px!important;
}

/* Business Profile — premium spacing refinement */
.main-column:has(.business-profile-hero) > .business-profile-page-title{
  min-height:56px;
}
.main-column:has(.business-profile-hero) .page-content{
  padding-top:0!important;
}
.business-profile-hero{
  padding-top:0!important;
  padding-bottom:8px!important;
  margin-bottom:6px!important;
  gap:6px!important;
}
.business-profile-avatar-wrap,
.business-profile-avatar{
  width:76px!important;
  height:76px!important;
}
.business-profile-identity h2{
  margin-bottom:6px!important;
}
.business-profile-details{
  gap:3px!important;
}
.business-profile-detail-row{
  padding:3px 8px!important;
  line-height:1.35!important;
}

/* Restore premium background card for Business Profile summary */
.business-profile-hero{
  background:linear-gradient(145deg,#ffffff 0%,#f7f5ff 100%)!important;
  border:1px solid #eae6fa!important;
  border-radius:18px!important;
  box-shadow:0 5px 18px rgba(70,57,161,.07)!important;
  padding:14px 12px 12px!important;
  margin-bottom:10px!important;
}

/* Reports dashboard */
.reports-dashboard{display:flex;flex-direction:column;gap:13px;padding-bottom:24px}
.report-filter-panel,.report-section,.report-financial-section{background:#fff;border:1px solid #eceaf5;border-radius:15px;padding:13px;box-shadow:0 3px 12px rgba(55,45,110,.035)}
.report-filter-heading,.report-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.report-filter-heading b{display:block;font-size:13px;color:#25233a}
.report-filter-heading small,.report-section-heading p{display:block;margin:3px 0 0;color:#858398;font-size:10px}
.report-period-label,.report-total-pill{font-size:10px;font-weight:700;color:#7462bd;background:#f2efff;border-radius:20px;padding:6px 9px;white-space:nowrap}
.report-period-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.report-period-options button{border:1px solid #e9e6f2;background:#faf9fd;color:#68657a;border-radius:20px;padding:7px 10px;font-size:10px;font-weight:600}
.report-period-options button.active{background:#7562c5;color:#fff;border-color:#7562c5}
.report-custom-dates{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.report-custom-dates label{font-size:10px;color:#77748a;display:flex;flex-direction:column;gap:5px}
.report-custom-dates input{width:100%;min-width:0;border:1px solid #e7e4f0;border-radius:8px;padding:9px;font:inherit;color:#302d43;background:#fff}
.report-section-heading h2{font-size:13px;margin:0;color:#29263d}
.report-section-heading p{font-size:10px}
.report-financial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}
.report-financial-item{min-width:0;padding:10px 9px;border-radius:11px;background:#f7f6fc}
.report-financial-item span,.report-financial-item small{display:block;font-size:9px;color:#858197}
.report-financial-item strong{display:block;font-size:clamp(13px,3.7vw,17px);margin:6px 0 4px;color:#302b48;overflow-wrap:anywhere}
.report-financial-item.sales{background:#f1efff}
.report-financial-item.collected{background:#edf8f2}
.report-financial-item.pending{background:#fff5eb}
.report-collection-progress{margin-top:13px}
.report-collection-progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:#77748a;margin-bottom:6px}
.report-collection-progress b{color:#51458d}
.report-progress-track{height:6px;border-radius:10px;background:#eeecf4;overflow:hidden}
.report-progress-track span{display:block;height:100%;border-radius:10px;background:#8170cf}
.report-order-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:13px}
.report-order-stats>div{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:9px 3px;background:#faf9fd;border-radius:10px}
.report-stat-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;margin-bottom:6px}
.report-stat-icon.total{background:#efedff;color:#7462c5}
.report-stat-icon.pending{background:#fff5e8;color:#d28b36}
.report-stat-icon.overdue{background:#fff0f0;color:#d45e65}
.report-stat-icon.delivered{background:#eaf7ef;color:#39956a}
.report-order-stats b{font-size:15px;color:#302d43}
.report-order-stats small{font-size:9px;color:#858197;margin-top:3px}
.report-customer-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px;padding:10px;background:#f8f7fc;border-radius:10px;color:#77748a;font-size:10px}
.report-customer-summary svg{color:#8170c8}
.report-customer-summary strong{margin-left:auto;color:#302d43;font-size:14px}
.report-customer-summary small{width:100%;padding-left:25px;font-size:9px}
.report-inventory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:13px}
.report-inventory-stats>div{text-align:center;padding:10px 3px;background:#f8f7fc;border-radius:9px;min-width:0}
.report-inventory-stats b{display:block;font-size:16px;color:#39334f}
.report-inventory-stats span{display:block;font-size:9px;color:#858197;margin-top:4px}
.report-stock-list{margin-top:13px}
.report-subheading{font-size:10px;font-weight:700;color:#68647d;margin-bottom:6px}
.report-stock-row{display:flex;align-items:center;gap:7px;padding:8px 2px;border-top:1px solid #f0eef5;font-size:10px}
.report-stock-row>span{display:flex;align-items:center;gap:6px;flex:1;min-width:0;color:#514d62}
.report-stock-row>span svg{color:#8b80b9;flex-shrink:0}
.report-stock-row>span{overflow-wrap:anywhere}
.report-stock-row b{font-size:10px;color:#514d62;white-space:nowrap}
.report-stock-row small{font-size:9px;font-weight:600;white-space:nowrap}
.report-stock-row small.low{color:#c18a3d}
.report-stock-row small.out{color:#d15f66}
.report-no-data{padding:15px 8px;text-align:center;color:#8a8799;font-size:11px}
.report-ranking-list{margin-top:9px}
.report-ranking-row{display:flex;align-items:center;gap:10px;padding:10px 2px;border-top:1px solid #f0eef5}
.report-rank{width:25px;height:25px;flex-shrink:0;display:grid;place-items:center;background:#f0edff;color:#7462c5;border-radius:8px;font-size:10px;font-weight:700}
.report-ranking-name{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.report-ranking-name b{font-size:11px;color:#39354b;overflow-wrap:anywhere}
.report-ranking-name small,.report-ranking-row>strong small{font-size:9px;color:#89869a;font-weight:400}
.report-ranking-row>strong{font-size:12px;color:#4e4775;white-space:nowrap}
.report-table-wrap{width:100%;overflow-x:auto;margin-top:10px;border:1px solid #efedf4;border-radius:9px}
.report-detail-table{width:100%;min-width:610px;border-collapse:collapse;font-size:10px}
.report-detail-table th{background:#f7f6fb;color:#77738b;font-size:9px;text-align:left;padding:9px 7px;white-space:nowrap}
.report-detail-table td{padding:9px 7px;border-top:1px solid #f0eef5;color:#514d62;white-space:nowrap}
.report-detail-table tbody tr{cursor:pointer}
.report-detail-table td b,.report-detail-table td small{display:block}
.report-detail-table td b{font-size:10px;color:#39354b}
.report-detail-table td small{font-size:9px;color:#89869a;margin-top:3px}
.report-status{display:inline-block;padding:4px 7px;border-radius:12px;font-size:9px;font-weight:700;background:#fff5e8;color:#b77b30}
.report-status.delivered{background:#eaf7ef;color:#36865f}
.report-status.overdue{background:#fff0f0;color:#c7555d}
.report-payment-status{display:block;margin-top:4px}
.report-download-section{text-align:center;padding:3px 5px 10px}
.report-download-section .btn{width:100%;justify-content:center;min-height:44px}
.report-download-section p{font-size:10px;line-height:1.5;color:#858197;margin:8px auto 0;max-width:340px}
@media(min-width:600px){
.reports-dashboard{gap:15px}
.report-financial-item{padding:13px}
.report-order-stats{gap:10px}
}

/* Backup & Restore — Orders and Customers tab design */
.backup-toolbar{
  align-items:center;
  margin-bottom:16px;
}
.backup-tab-switch{
  display:flex;
  align-items:center;
  gap:8px;
}
.backup-tab-switch .orders-filter-chip{
  gap:8px;
  min-height:40px;
  padding:0 16px;
}
.backup-tab-switch .orders-filter-chip.active{
  background:#7357df;
  border-color:#7357df;
  color:#fff;
  box-shadow:0 4px 12px #7357df25;
}
.backup-alert{
  margin-bottom:16px;
  border-radius:15px;
}
.backup-create-card{
  min-height:112px;
  margin-bottom:19px;
  border-radius:17px;
  box-shadow:0 3px 12px #29234b08;
}
.backup-create-copy .backup-icon{
  flex:0 0 44px;
  margin:0;
}
.backup-create-copy h2{
  color:#302c48;
}
.backup-history-section{
  margin-top:5px;
}
.backup-list-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 2px 12px;
}
.backup-list-heading h2{
  margin:0;
  color:#302c48;
  font-size:15px;
  font-weight:800;
}
.backup-list-heading p{
  margin:5px 0 0;
  color:var(--muted,#68748a);
  font-size:11px;
}
.backup-history-list{
  gap:10px;
}
.backup-history-item{
  min-height:83px;
  padding:15px;
  border:1px solid #ece9f5;
  border-radius:15px;
  background:#fff;
  box-shadow:0 2px 9px #29234b06;
}
.backup-row-icon{
  flex:0 0 42px;
  background:#eeeaff;
  color:#7357df;
}
.backup-history-file{
  flex:1;
  min-width:0;
}
.backup-history-file b{
  color:#302c48;
  font-size:13px;
}
.backup-history-file small{
  color:#89869b;
}
.backup-history-file .delivery-badge{
  align-self:flex-start;
  margin-top:5px;
  font-size:10px;
}
.backup-history-actions{
  display:flex;
  gap:8px;
  flex-shrink:0;
}
.backup-history-actions .btn{
  min-height:35px;
  border-radius:10px;
  font-size:11px;
}
.backup-empty{
  min-height:190px;
  justify-content:center;
  border:1px dashed #ded9ef;
  border-radius:16px;
  background:#fff;
}
.backup-empty .backup-icon{
  margin:0 0 5px;
}
.restore-card{
  max-width:none;
  min-height:225px;
  justify-content:center;
  border-radius:17px;
  box-shadow:0 3px 12px #29234b08;
}
.restore-card .backup-icon{
  margin:0;
}
.restore-card h2{
  color:#302c48;
}
.restore-card .btn{
  max-width:340px;
}
.backup-footnote{
  margin-top:16px;
}
@media(max-width:620px){
  .backup-create-card{
    align-items:stretch;
    flex-direction:column;
    gap:17px;
    padding:17px;
  }
  .backup-create-card>.btn{
    width:100%;
    justify-content:center;
  }
  .backup-history-item{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:10px;
    padding:13px;
  }
  .backup-history-actions{
    grid-column:1/-1;
    width:100%;
  }
  .backup-history-actions .btn{
    flex:1;
    justify-content:center;
  }
  .backup-tab-switch .orders-filter-chip{
    min-height:37px;
    padding:0 12px;
  }
  .restore-card{
    min-height:220px;
    padding:19px;
  }
  .restore-card .btn{
    max-width:none;
  }
}

/* Reports and Backup & Restore — matching premium tab headers */
.main-column:has(.report-download-section) > .orders-tab-header,
.main-column:has(.backup-toolbar) > .orders-tab-header{
  height:56px;
  min-height:56px;
  padding:10px 35px 0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.main-column:has(.report-download-section) .orders-header-title,
.main-column:has(.backup-toolbar) .orders-header-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#282344;
  font-size:21px;
  font-weight:850;
  letter-spacing:-.65px;
}

.main-column:has(.report-download-section) .orders-header-title svg,
.main-column:has(.backup-toolbar) .orders-header-title svg{
  color:#7357df;
  flex:none;
}

@media(max-width:620px){
  .main-column:has(.report-download-section) > .orders-tab-header,
  .main-column:has(.backup-toolbar) > .orders-tab-header{
    height:53px;
    min-height:53px;
    padding:8px 13px 0;
  }
}

/* DoovaBook Premium Admin Panel — scoped styles only */
.admin-page{
  width:100%;
  min-width:0;
}
.admin-page > .card{
  padding:22px !important;
  margin-top:16px !important;
  border:1px solid #e9e6f4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 28px rgba(45,35,100,.055);
}
.admin-page .card-head{
  padding-bottom:16px;
  border-bottom:1px solid #f0eef6;
  margin-bottom:16px;
}
.admin-page .card-head h2{
  color:#282344;
  font-size:19px;
  font-weight:850;
  letter-spacing:-.4px;
}
.admin-page .card-head p{
  color:#858096;
  font-size:12px;
}
.admin-page h3{
  color:#282344;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.25px;
}
.admin-page .stat-card{
  min-width:0;
  padding:15px 14px;
  border:1px solid #ece9f6;
  border-radius:15px;
  background:linear-gradient(145deg,#fff 0%,#faf9ff 100%);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.admin-page .stat-card span{
  color:#77738b;
  font-size:11px;
  font-weight:650;
  line-height:1.4;
}
.admin-page .stat-card strong{
  color:#5b3fd8;
  font-size:25px;
  font-weight:850;
  letter-spacing:-.8px;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.admin-page label{
  display:grid;
  gap:7px;
  color:#403b58;
  font-size:12px;
  font-weight:700;
}
.admin-page .input{
  width:100%;
  min-width:0;
  border:1px solid #e7e4f0;
  border-radius:12px;
  background:#fcfbff;
  color:#282344;
}
.admin-page .input:focus{
  border-color:#7357df;
  box-shadow:0 0 0 3px #7357df18;
  outline:none;
}
.admin-page .divider{
  background:#eeecf5;
  margin:8px 0;
}
.admin-page .plan-chip{
  width:fit-content;
  padding:8px 12px;
  border-radius:999px;
  background:#eeebff;
  color:#5b3fd8;
  font-size:11px;
  font-weight:800;
  letter-spacing:.35px;
}
.admin-page .card .card{
  border:1px solid #eeebf5;
  border-radius:15px;
  background:#fff;
  box-shadow:0 3px 12px rgba(45,35,100,.035);
}
.admin-page .btn{
  min-height:42px;
  border-radius:12px;
  font-weight:750;
}
.admin-page .micro{
  line-height:1.55;
}
@media(max-width:620px){
  .admin-page > .card{
    padding:15px !important;
    margin-top:12px !important;
    border-radius:17px;
  }
  .admin-page .stat-card{
    padding:12px 11px;
    border-radius:13px;
  }
  .admin-page .stat-card strong{
    font-size:22px;
  }
}

/* DoovaBook Plus — premium subscription redesign */
.subscription-status-card{
  position:relative;
  overflow:hidden;
  border:1px solid #e5e1ff;
  border-radius:19px;
  background:linear-gradient(135deg,#fff 0%,#faf9ff 100%);
  box-shadow:0 8px 25px #5146cf0b;
  margin-bottom:19px;
}
.subscription-status-card .card-head{
  margin-bottom:14px;
}
.subscription-status-card .card-head h2{
  font-size:18px;
  letter-spacing:-.45px;
  color:#30266f;
}
.subscription-status-card .card-head p{
  font-size:11px;
  line-height:1.65;
  color:#777b91;
}
.subscription-status-card .card-head>svg{
  color:#6253d7;
  background:#efedff;
  padding:9px;
  box-sizing:content-box;
  border-radius:12px;
}
.subscription-validity{
  gap:9px!important;
}
.subscription-validity>.card{
  border:1px solid #eceaf7;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  gap:7px;
  min-height:72px;
}
.subscription-validity>.card small{
  font-size:10px;
  color:#9291a5;
}
.subscription-validity>.card b{
  font-size:13px;
  color:#39345e;
  overflow-wrap:anywhere;
}
.subscription-status-card form{
  padding:14px;
  border:1px solid #eeebfb;
  border-radius:13px;
  background:#fff;
}
.subscription-status-card form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#515875;
  font-size:11px;
  font-weight:700;
}
.subscription-status-card form input{
  font-size:13px;
  min-height:46px;
  border-color:#e4e1f3;
  background:#fcfbff;
}
.subscription-status-card form .btn{
  min-height:44px;
}
.subscription-hero{
  background:linear-gradient(135deg,#fff 0%,#f5f3ff 100%);
  color:#252b43;
  border:1px solid #e8e5f5;
  box-shadow:0 8px 25px #5146cf0a;
  padding:25px;
  gap:22px;
}
.subscription-glow{
  display:none;
}
.subscription-copy h2{
  color:#29264b;
  font-size:27px;
  letter-spacing:-1px;
}
.subscription-copy>p{
  color:#7d8498;
  line-height:1.75;
}
.plan-chip{
  background:#efedff;
  border:1px solid #e4e0ff;
  color:#6253cf;
}
.plan-features{
  color:#566078;
  gap:11px;
}
.plan-features svg{
  color:#239775;
}
.subscription-copy>div[style*="grid"]>b{
  color:#39415a;
  font-size:12px;
}
.subscription-copy .btn{
  min-height:62px;
  border-radius:12px;
}
.subscription-copy .btn b{
  font-size:19px;
}
.subscription-copy .btn small{
  font-size:10px;
  font-weight:600;
}
.subscription-copy .btn.primary{
  background:#5b3fd8;
  box-shadow:0 5px 13px #5b3fd829;
}
.subscription-copy .btn.outline{
  background:#fff;
  border-color:#e5e1f3;
  color:#555d75;
}
.subscription-paybox{
  background:#fff;
  border:1px solid #e8e7f1;
  border-radius:15px;
  box-shadow:0 4px 15px #26345a08;
  padding:19px;
}
.paybox-title b{
  color:#303750;
  font-size:13px;
}
.paybox-title small{
  color:#9299aa;
}
.paybox-title>svg{
  color:#6656d9;
  background:#f0edff;
  padding:8px;
  box-sizing:content-box;
  border-radius:10px;
}
.subscription-qr{
  border:1px solid #ececf3;
  border-radius:12px;
}
.subscription-qr-empty{
  color:#505a70;
}
.subscription-qr-empty>small{
  color:#9299aa;
}
.qr-illustration{
  border:1px solid #eeeaf9;
}
.upi-line{
  border-top:1px solid #eeeef4;
  color:#858da0;
}
.upi-line b{
  color:#5142b5;
}
.subscription-paybox label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#5b647b;
  font-size:11px;
  font-weight:700;
}
.subscription-paybox input{
  min-height:43px;
  font-size:12px;
  border-color:#e5e7ef;
  background:#fcfcfe;
}
.subscription-paybox .btn.primary{
  background:#5b3fd8;
  min-height:44px;
  box-shadow:0 4px 10px #5b3fd822;
}
.subscription-paybox .btn.primary:hover{
  background:#4930bd;
}
.subscription-paybox .micro{
  color:#9299aa;
  line-height:1.65;
}
.subscription-note{
  border-color:#e7e5f2;
  background:#fff;
  border-radius:13px;
  padding:14px 16px;
}
.subscription-note svg{
  color:#6556d5;
}
.subscription-note p{
  color:#7d879a;
}
.subscription-note b{
  color:#46516a;
}
@media(max-width:620px){
  .subscription-status-card{
    border-radius:15px;
    padding:15px!important;
  }
  .subscription-status-card .card-head h2{
    font-size:16px;
  }
  .subscription-validity>.card{
    padding:11px!important;
    min-height:68px;
  }
  .subscription-validity>.card b{
    font-size:12px;
  }
  .subscription-hero{
    padding:19px 14px;
    gap:17px;
    border-radius:15px;
  }
  .subscription-copy h2{
    font-size:24px;
    margin:13px 0 8px;
  }
  .subscription-paybox{
    padding:14px;
  }
}

/* Premium activation code section */
.subscription-status-card form{
  padding:16px;
  margin-top:10px;
  border:1px solid #e8e4fb;
  border-radius:15px;
  background:linear-gradient(135deg,#faf9ff,#f3f0ff);
  gap:13px!important;
}
.subscription-status-card form label{
  color:#403a68;
  font-size:12px;
  font-weight:700;
  gap:9px;
}
.subscription-status-card form input{
  min-height:48px;
  padding:0 14px;
  border:1px solid #ded9f5;
  border-radius:11px;
  background:#fff;
  color:#302b4d;
  font-size:13px;
  font-weight:500;
  outline:none;
  transition:border-color .2s,box-shadow .2s;
}
.subscription-status-card form input:focus{
  border-color:#7665df;
  box-shadow:0 0 0 3px #7665df18;
}
.subscription-status-card form input::placeholder{
  color:#a4a0b7;
}
.subscription-status-card form .btn.primary{
  min-height:47px;
  border:0;
  border-radius:11px;
  background:linear-gradient(110deg,#6650d8,#8068e9);
  color:#fff;
  font-size:13px;
  font-weight:750;
  letter-spacing:.1px;
  box-shadow:0 5px 13px #6650d82b;
  transition:transform .2s,box-shadow .2s;
}
.subscription-status-card form .btn.primary:active{
  transform:scale(.985);
  box-shadow:0 2px 7px #6650d822;
}
@media(max-width:620px){
  .subscription-status-card form{
    padding:13px;
    border-radius:13px;
  }
}

/* DoovaBook Admin Dashboard — distinct mobile-first sections */
.admin-page .admin-search-bar{
  margin:2px 0 4px;
  padding:0;
}
.admin-page .admin-search-bar .search-box{
  min-height:48px;
  border:1px solid #e8e5f1;
  border-radius:15px;
  background:#fff;
  box-shadow:0 3px 12px rgba(45,35,100,.035);
}
.admin-page .admin-search-bar input{
  min-width:0;
  font-size:14px;
}
.admin-page .admin-overview-section,
.admin-page .admin-register-section,
.admin-page .admin-tools-section{
  display:grid;
  gap:14px;
  padding:17px;
  border:1px solid #eae7f3;
  border-radius:19px;
  background:#fff;
  box-shadow:0 5px 20px rgba(45,35,100,.045);
}
.admin-page .admin-section-heading{
  display:grid;
  gap:4px;
}
.admin-page .admin-section-heading h3{
  margin:0;
  font-size:16px;
  font-weight:850;
  letter-spacing:-.3px;
}
.admin-page .admin-section-heading p{
  margin:0;
}
.admin-page .admin-overview-section .stat-card{
  background:linear-gradient(145deg,#fff 0%,#f8f7ff 100%);
}
.admin-page .admin-register-section{
  gap:13px;
}
.admin-page .admin-register-section > .card{
  margin:0;
}
.admin-page .subscription-qr-admin{
  border:1px solid #eae7f3;
  border-radius:18px;
  background:#fff;
  box-shadow:0 5px 20px rgba(45,35,100,.045);
}
.admin-page .admin-tools-section .divider{
  margin:3px 0;
}
@media(max-width:620px){
  .admin-page .admin-overview-section,
  .admin-page .admin-register-section,
  .admin-page .admin-tools-section{
    padding:13px;
    border-radius:16px;
    gap:12px;
  }
  .admin-page .admin-search-bar .search-box{
    min-height:46px;
  }
}

/* Admin — compact Orders-inspired mobile layout */
.admin-page .admin-panel-shell{
  width:100%;
  min-width:0;
  margin-top:12px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.admin-page .admin-workspace{
  display:grid;
  gap:14px;
  width:100%;
  min-width:0;
}
.admin-page .admin-search-bar{
  margin:0;
}
.admin-page .admin-overview-section{
  display:block;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.admin-page .admin-stats-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.admin-page .admin-stats-row .stat-card{
  min-width:0;
  padding:12px 11px;
  gap:5px;
  border:1px solid #ece9f5;
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 12px rgba(45,35,100,.035);
}
.admin-page .admin-stats-row .stat-card span{
  font-size:10px;
  line-height:1.3;
}
.admin-page .admin-stats-row .stat-card strong{
  font-size:21px;
}
.admin-page .admin-filter-row{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding:1px 0 3px;
  scrollbar-width:none;
}
.admin-page .admin-filter-row::-webkit-scrollbar{
  display:none;
}
.admin-page .admin-customer-list{
  display:grid;
  gap:11px;
  min-width:0;
}
.admin-page .admin-customer-order{
  display:grid;
  gap:12px;
  width:100%;
  min-width:0;
  padding:15px;
  border:1px solid #ebe8f3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 12px rgba(45,35,100,.04);
}
.admin-page .admin-customer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.admin-page .admin-customer-name{
  min-width:0;
  color:#282344;
  font-size:14px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.admin-page .admin-customer-phone{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
  color:#858096;
  font-size:12px;
}
.admin-page .admin-customer-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}
.admin-page .admin-status-badge,
.admin-page .admin-plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.admin-page .admin-status-badge.active{
  color:#16834e;
  background:#e8f8ef;
}
.admin-page .admin-status-badge.inactive{
  color:#bd4545;
  background:#fff0f0;
}
.admin-page .admin-plan-badge{
  color:#5b3fd8;
  background:#efecff;
}
.admin-page .admin-customer-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:11px 0;
  border-top:1px solid #f0eef5;
  border-bottom:1px solid #f0eef5;
}
.admin-page .admin-customer-meta > div{
  display:grid;
  gap:4px;
  min-width:0;
}
.admin-page .admin-customer-meta span{
  color:#858096;
  font-size:10px;
}
.admin-page .admin-customer-meta strong{
  color:#38334f;
  font-size:11px;
  font-weight:750;
  overflow-wrap:anywhere;
}
.admin-page .admin-customer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.admin-page .admin-customer-actions .btn{
  flex:1 1 110px;
  min-height:38px;
  padding:8px 11px;
  font-size:11px;
}
.admin-page .admin-subpage-heading{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:2px;
}
.admin-page .admin-subpage-heading h3{
  margin:0;
}
.admin-page .admin-tool-panel{
  display:grid;
  gap:13px;
  padding:15px;
  border:1px solid #ebe8f3;
  border-radius:16px;
  background:#fff;
}
.admin-page .admin-generated-code{
  padding:13px;
  border:1px dashed #c9c0ef;
  border-radius:13px;
  background:#f8f6ff;
  color:#5238c5;
  font-size:18px;
  font-weight:850;
  letter-spacing:1px;
  text-align:center;
  overflow-wrap:anywhere;
}
@media(max-width:620px){
  .admin-page .admin-workspace{
    gap:12px;
  }
  .admin-page .admin-stats-row{
    gap:7px;
  }
  .admin-page .admin-stats-row .stat-card{
    padding:10px 8px;
    border-radius:12px;
  }
  .admin-page .admin-stats-row .stat-card span{
    font-size:9px;
  }
  .admin-page .admin-stats-row .stat-card strong{
    font-size:19px;
  }
  .admin-page .admin-customer-order{
    padding:13px;
  }
  .admin-page .admin-customer-meta{
    gap:5px;
  }
}

/* Admin customer cards — structure-specific refinements */
.admin-page .admin-customer-order .delivery-order-main{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 8px;
  min-width:0;
}
.admin-page .admin-customer-order .delivery-order-main > b{
  flex:1 1 100%;
  min-width:0;
  color:#302b48;
  font-size:14px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.admin-page .admin-customer-order .delivery-order-main > small{
  flex:1 1 100%;
  color:#858096;
  font-size:11px;
}
.admin-page .admin-customer-order .delivery-order-main .delivery-badge,
.admin-page .admin-customer-order .delivery-order-main .admin-plan-badge{
  flex:0 0 auto;
}
.admin-page .admin-customer-meta{
  display:block;
  padding:11px 0;
}
.admin-page .admin-customer-dates{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  width:100%;
}
.admin-page .admin-customer-dates > span{
  display:grid;
  align-content:start;
  gap:5px;
  min-width:0;
}
.admin-page .admin-customer-dates small{
  color:#858096;
  font-size:10px;
}
.admin-page .admin-customer-dates b{
  color:#38334f;
  font-size:11px;
  font-weight:750;
  overflow-wrap:anywhere;
}
.admin-page details.admin-customer-actions{
  display:block;
  border-top:1px solid #f0eef5;
  padding-top:10px;
}
.admin-page details.admin-customer-actions > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:34px;
  color:#6550c5;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  list-style:none;
}
.admin-page details.admin-customer-actions > summary::-webkit-details-marker{
  display:none;
}
.admin-page details.admin-customer-actions > div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:10px;
}
.admin-page details.admin-customer-actions > div .btn{
  flex:1 1 130px;
  min-height:38px;
  padding:8px 11px;
  font-size:11px;
}
.admin-page .admin-subpage-heading{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.admin-page .admin-back-button{
  display:inline-flex;
  align-items:center;
  justify-self:start;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:1px solid #ebe8f3;
  border-radius:10px;
  background:#fff;
  color:#6550c5;
  font-size:11px;
  font-weight:750;
}
.admin-page .admin-subpage-heading p{
  margin:0;
}
@media(max-width:360px){
  .admin-page .admin-customer-dates{
    gap:5px;
  }
  .admin-page .admin-customer-dates b{
    font-size:10px;
  }
}


/* Admin customer card — compact premium dates and icon-only actions */
.admin-page .admin-customer-meta{
  margin-top:10px;
  padding:10px 0;
}
.admin-page .admin-customer-dates{
  gap:7px;
}
.admin-page .admin-customer-dates > span{
  min-height:54px;
  padding:9px 8px;
  border:1px solid #eeebf7;
  border-radius:11px;
  background:linear-gradient(145deg,#faf9ff 0%,#f5f3fc 100%);
  gap:6px;
}
.admin-page .admin-customer-dates small{
  color:#89839d;
  font-size:9px;
  font-weight:700;
  letter-spacing:.025em;
}
.admin-page .admin-customer-dates b{
  color:#39334f;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.admin-page details.admin-customer-actions{
  display:flex;
  justify-content:flex-end;
  border-top:1px solid #f0eef5;
  padding-top:8px;
}
.admin-page details.admin-customer-actions > summary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  min-height:32px;
  padding:0;
  border:1px solid #e9e5f4;
  border-radius:10px;
  background:#faf9ff;
  color:#6550c5;
  cursor:pointer;
  list-style:none;
}
.admin-page details.admin-customer-actions > summary::-webkit-details-marker{
  display:none;
}
.admin-page details.admin-customer-actions[open] > summary{
  background:#f0edfc;
  border-color:#dcd5f4;
}
.admin-page details.admin-customer-actions > summary svg{
  transition:transform .18s ease;
}
.admin-page details.admin-customer-actions[open] > summary svg{
  transform:rotate(180deg);
}
.admin-page details.admin-customer-actions > div{
  flex:1 1 100%;
}
@media(max-width:360px){
  .admin-page .admin-customer-dates{gap:5px;}
  .admin-page .admin-customer-dates > span{padding:8px 6px;}
  .admin-page .admin-customer-dates b{font-size:10px;}
}


/* Compact Admin customer card — final layout */
.admin-page .admin-customer-order .delivery-order-main{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:0;
}
.admin-page .admin-customer-order .delivery-order-main > b,
.admin-page .admin-customer-order .delivery-order-main > small{
  flex:none;
  width:100%;
  margin:0;
}
.admin-page .admin-customer-status{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  margin-top:2px;
}
.admin-page .admin-customer-status .delivery-badge,
.admin-page .admin-customer-status .admin-plan-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0;
}
.admin-page .admin-customer-meta{
  display:block;
  width:100%;
  margin-top:8px;
  padding:9px 0 0;
  border-top:1px solid #f0eef5;
}
.admin-page .admin-customer-dates{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:6px;
  width:100%;
}
.admin-page .admin-customer-dates > span{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  min-width:0;
  min-height:46px;
  padding:7px 8px;
  border:1px solid #eeebf5;
  border-radius:9px;
  background:#f8f7fc;
  gap:4px;
}
.admin-page .admin-customer-dates small{
  color:#89839d;
  font-size:9px;
  line-height:1.2;
  font-weight:700;
  white-space:nowrap;
}
.admin-page .admin-customer-dates b{
  color:#39334f;
  font-size:10px;
  line-height:1.25;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
@media(max-width:360px){
  .admin-page .admin-customer-dates{gap:4px;}
  .admin-page .admin-customer-dates > span{padding:6px 5px;}
  .admin-page .admin-customer-dates b{font-size:9px;}
}

/* DoovaBook — Premium Admin Customer Card */
.admin-page .admin-customer-order{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:12px;
  row-gap:14px;
  width:100%;
  min-width:0;
  padding:16px;
  border:1px solid #e9e5f4;
  border-radius:19px;
  background:linear-gradient(145deg,#ffffff 0%,#fbfaff 100%);
  box-shadow:0 5px 18px rgba(49,35,104,.055),0 1px 3px rgba(49,35,104,.035);
}
.admin-page .admin-customer-order .delivery-order-icon{
  grid-column:1;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  min-width:46px;
  border:1px solid #e5defd;
  border-radius:15px;
  background:linear-gradient(145deg,#f0edff,#e7e1ff);
  color:#6546cf;
  font-size:19px;
  font-weight:850;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.admin-page .admin-customer-order .delivery-order-main{
  grid-column:2;
  grid-row:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  min-width:0;
  width:100%;
}
.admin-page .admin-customer-order .delivery-order-main > b{
  display:block;
  width:100%;
  margin:0;
  color:#282342;
  font-size:15px;
  line-height:1.3;
  font-weight:850;
  letter-spacing:-.25px;
  overflow-wrap:anywhere;
}
.admin-page .admin-customer-order .delivery-order-main > small{
  display:block;
  width:100%;
  margin:0;
  color:#858098;
  font-size:12px;
  line-height:1.3;
  font-weight:550;
  letter-spacing:.15px;
}
.admin-page .admin-customer-status{
  display:flex;
  flex-direction:row;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:5px;
}
.admin-page .admin-customer-status .delivery-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:5px 9px;
  border-radius:7px;
  font-size:9px;
  line-height:1;
  font-weight:850;
  letter-spacing:.55px;
}
.admin-page .admin-customer-status .delivery-badge.paid{
  color:#138354;
  background:#e7f8ef;
  border:1px solid #d2f0df;
}
.admin-page .admin-customer-status .delivery-badge.pending{
  color:#bd5555;
  background:#fff0ef;
  border:1px solid #f8dddd;
}
.admin-page .admin-customer-status .admin-plan-badge{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  width:max-content;
  margin:0;
  padding:5px 9px;
  border:1px solid #e6e0ff;
  border-radius:7px;
  background:#f1eeff;
  color:#6549c5;
  font-size:10px;
  line-height:1;
  font-weight:800;
}
.admin-page .admin-customer-order .admin-customer-meta{
  grid-column:1/-1;
  grid-row:2;
  display:block;
  width:100%;
  min-width:0;
  margin:0;
  padding:12px 0 0;
  border:0;
  border-top:1px solid #efedf5;
}
.admin-page .admin-customer-dates{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  width:100%;
  min-width:0;
}
.admin-page .admin-customer-dates > span{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:6px;
  min-width:0;
  min-height:59px;
  padding:9px 9px;
  border:1px solid #eeebf5;
  border-radius:12px;
  background:linear-gradient(145deg,#faf9ff,#f6f4fc);
}
.admin-page .admin-customer-dates small{
  display:block;
  color:#89839d;
  font-size:9px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:.25px;
  white-space:nowrap;
}
.admin-page .admin-customer-dates b{
  display:block;
  max-width:100%;
  color:#37314e;
  font-size:10px;
  line-height:1.3;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
@media(max-width:360px){
  .admin-page .admin-customer-order{padding:13px;column-gap:10px;}
  .admin-page .admin-customer-dates{gap:5px;}
  .admin-page .admin-customer-dates > span{padding:8px 6px;min-height:55px;}
  .admin-page .admin-customer-dates b{font-size:9px;}
}

/* Admin customer identity refinement */
.admin-page .admin-customer-order .delivery-order-icon{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:50%;
  background:linear-gradient(145deg,#eee9ff,#dcd2ff);
  border:1px solid #dcd1ff;
  color:#6546cf;
  font-size:18px;
  font-weight:850;
  box-shadow:0 3px 9px rgba(101,70,207,.10),inset 0 1px 0 rgba(255,255,255,.9);
}
.admin-page .admin-customer-order .delivery-order-main{
  align-items:flex-start;
  justify-content:center;
  gap:5px;
}
.admin-page .admin-customer-order .delivery-order-main > b{
  margin:0;
  line-height:1.3;
}
.admin-page .admin-customer-order .delivery-order-main > .admin-customer-phone{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  margin:0;
  color:#858098;
  font-size:12px;
  line-height:1.3;
}
.admin-page .admin-customer-phone svg{
  flex:none;
  color:#8b78c9;
}

/* Admin customer identity — tighter alignment */
.admin-page .admin-customer-order{
  column-gap:9px;
}
.admin-page .admin-customer-order .delivery-order-main{
  gap:2px;
}
.admin-page .admin-customer-order .delivery-order-main > b{
  line-height:1.2;
}
.admin-page .admin-customer-order .delivery-order-main > .admin-customer-phone{
  gap:5px;
  line-height:1.2;
}

/* Final precise Admin customer identity alignment */
.admin-page .admin-customer-order{
  grid-template-columns:42px minmax(0,1fr) !important;
  column-gap:8px !important;
}
.admin-page .admin-customer-order .delivery-order-icon{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  margin:0 !important;
  align-self:center !important;
}
.admin-page .admin-customer-order .delivery-order-main{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:2px !important;
  padding:0 !important;
  margin:0 !important;
  line-height:1.2 !important;
}
.admin-page .admin-customer-order .delivery-order-main > b{
  margin:0 !important;
  padding:0 !important;
  line-height:1.2 !important;
}
.admin-page .admin-customer-order .delivery-order-main > .admin-customer-phone{
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.2 !important;
}

/* Admin customer card — final three-column identity layout */
.admin-page .admin-customer-order{
  position:relative;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  grid-template-rows:auto auto auto !important;
  column-gap:10px !important;
  row-gap:11px !important;
  align-items:center !important;
}
.admin-page .admin-customer-order .delivery-order-icon{
  grid-column:1 !important;
  grid-row:1 / span 2 !important;
  align-self:center !important;
}
.admin-page .admin-customer-order .delivery-order-main{
  display:contents !important;
}
.admin-page .admin-customer-order .delivery-order-main > b{
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:end !important;
  min-width:0;
  margin:0 !important;
}
.admin-page .admin-customer-order .delivery-order-main > .admin-customer-phone{
  grid-column:2 !important;
  grid-row:2 !important;
  align-self:start !important;
  min-width:0;
  margin:0 !important;
}
.admin-page .admin-customer-order .admin-customer-status{
  grid-column:3 !important;
  grid-row:1 / span 2 !important;
  align-self:center !important;
  justify-self:end !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  gap:6px !important;
  margin:0 !important;
}
.admin-page .admin-customer-order .admin-customer-meta{
  grid-column:1 / -1 !important;
  grid-row:3 !important;
  width:100%;
  margin:0 !important;
  padding-top:10px !important;
}
.admin-page .admin-customer-dates{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:5px !important;
}
.admin-page .admin-customer-dates > span{
  min-height:48px !important;
  padding:7px 8px !important;
  gap:4px !important;
  background:#f8f7fc !important;
  border-radius:9px !important;
}
.admin-page .admin-customer-dates > span:nth-child(1){
  align-items:flex-start !important;
  text-align:left !important;
}
.admin-page .admin-customer-dates > span:nth-child(2){
  align-items:center !important;
  text-align:center !important;
}
.admin-page .admin-customer-dates > span:nth-child(3){
  align-items:flex-end !important;
  text-align:right !important;
}
.admin-page .admin-customer-dates b{
  font-size:10px !important;
}
@media(max-width:360px){
  .admin-page .admin-customer-order{
    grid-template-columns:38px minmax(0,1fr) auto !important;
    column-gap:8px !important;
  }
  .admin-page .admin-customer-order .delivery-order-icon{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
  }
  .admin-page .admin-customer-status{
    gap:4px !important;
  }
  .admin-page .admin-customer-dates > span{
    padding:6px 5px !important;
  }
  .admin-page .admin-customer-dates b{
    font-size:9px !important;
  }
}

/* Admin date panels — fixed left, centre, right alignment */
.admin-page .admin-customer-dates{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.admin-page .admin-customer-dates > span:nth-child(1){
  grid-column:1;
  align-items:flex-start !important;
  text-align:left !important;
}
.admin-page .admin-customer-dates > span:nth-child(2){
  grid-column:2;
  align-items:center !important;
  text-align:center !important;
}
.admin-page .admin-customer-dates > span:nth-child(3){
  grid-column:3;
  align-items:flex-end !important;
  text-align:right !important;
}

/* Admin card — bottom details align with top identity columns */
.admin-page .admin-customer-order .admin-customer-meta{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  column-gap:10px !important;
  align-items:center !important;
}
.admin-page .admin-customer-dates{
  display:contents !important;
}
.admin-page .admin-customer-dates > span{
  min-width:0 !important;
  min-height:48px !important;
  padding:7px 5px !important;
}
.admin-page .admin-customer-dates > span:nth-child(1){
  grid-column:1 !important;
  align-items:flex-start !important;
  text-align:left !important;
}
.admin-page .admin-customer-dates > span:nth-child(2){
  grid-column:2 !important;
  align-items:center !important;
  text-align:center !important;
}
.admin-page .admin-customer-dates > span:nth-child(3){
  grid-column:3 !important;
  align-items:flex-end !important;
  text-align:right !important;
}
@media(max-width:360px){
  .admin-page .admin-customer-order .admin-customer-meta{
    grid-template-columns:38px minmax(0,1fr) auto !important;
    column-gap:8px !important;
  }
}

/* Admin customer cards — uniform compact date panels */
.admin-page .admin-customer-order{
  grid-template-rows:minmax(66px,auto) auto !important;
  row-gap:10px !important;
}
.admin-page .admin-customer-order .admin-customer-meta{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding-top:9px !important;
}
.admin-page .admin-customer-dates{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:7px !important;
  width:100% !important;
}
.admin-page .admin-customer-dates > span{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  height:52px !important;
  min-height:52px !important;
  padding:6px 7px !important;
  gap:4px !important;
  border-radius:9px !important;
  box-sizing:border-box !important;
}
.admin-page .admin-customer-dates > span:nth-child(1){
  align-items:flex-start !important;
  text-align:left !important;
}
.admin-page .admin-customer-dates > span:nth-child(2){
  align-items:center !important;
  text-align:center !important;
}
.admin-page .admin-customer-dates > span:nth-child(3){
  align-items:flex-end !important;
  text-align:right !important;
}
.admin-page .admin-customer-dates small,
.admin-page .admin-customer-dates b{
  margin:0 !important;
  max-width:100% !important;
}
@media(max-width:360px){
  .admin-page .admin-customer-dates{gap:5px !important;}
  .admin-page .admin-customer-dates > span{
    height:49px !important;
    min-height:49px !important;
    padding:5px 4px !important;
  }
  .admin-page .admin-customer-dates b{font-size:9px !important;}
}


/* DoovaBook Admin customer card — compact final layout */
.admin-page .admin-customer-order{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:9px!important;
  min-width:0!important;
  padding:12px!important;
  border:1px solid #e9e5f4!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff,#fbfaff)!important;
  box-shadow:0 3px 12px rgba(49,35,104,.045)!important;
}
.admin-page .admin-customer-order .delivery-order-icon{
  grid-column:1!important;grid-row:1!important;
  width:42px!important;height:42px!important;min-width:42px!important;
  margin:0!important;border-radius:50%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(145deg,#eee9ff,#dcd2ff)!important;
  border:1px solid #dcd1ff!important;color:#6546cf!important;
  font-size:17px!important;font-weight:850!important;
}
.admin-page .admin-customer-order .delivery-order-main{
  grid-column:2!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;justify-content:center!important;
  gap:3px!important;min-width:0!important;width:100%!important;
  margin:0!important;padding:0!important;
}
.admin-page .admin-customer-order .delivery-order-main>b{
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;color:#282342!important;
  font-size:13px!important;line-height:1.25!important;font-weight:850!important;
  overflow-wrap:anywhere!important;
}
.admin-page .admin-customer-order .delivery-order-main>.admin-customer-phone{
  display:flex!important;align-items:center!important;gap:5px!important;
  width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  color:#858098!important;font-size:11px!important;line-height:1.25!important;
}
.admin-page .admin-customer-phone svg{flex:none!important;color:#8b78c9!important;}
.admin-page .admin-customer-order .admin-customer-status{
  grid-column:3!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;
  align-items:flex-end!important;justify-content:center!important;
  gap:5px!important;max-width:116px!important;min-width:0!important;margin:0!important;
}
.admin-page .admin-customer-status .delivery-badge{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:21px!important;padding:4px 8px!important;border-radius:7px!important;
  font-size:9px!important;line-height:1!important;font-weight:850!important;
  letter-spacing:.4px!important;white-space:nowrap!important;
}
.admin-page .admin-customer-status .delivery-badge.paid{
  color:#138354!important;background:#e7f8ef!important;border:1px solid #d2f0df!important;
}
.admin-page .admin-customer-status .delivery-badge.pending{
  color:#bd5555!important;background:#fff0ef!important;border:1px solid #f8dddd!important;
}
.admin-page .admin-customer-status .admin-plan-badge{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  max-width:116px!important;min-height:21px!important;margin:0!important;
  padding:4px 7px!important;border:1px solid #e6e0ff!important;border-radius:7px!important;
  background:#f1eeff!important;color:#6549c5!important;
  font-size:9px!important;line-height:1.2!important;font-weight:800!important;
  text-align:center!important;white-space:normal!important;
}
.admin-page .admin-customer-order .admin-customer-meta{
  grid-column:1/-1!important;grid-row:2!important;
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:9px 0 0!important;
  border:0!important;border-top:1px solid #efedf5!important;
}
.admin-page .admin-customer-dates{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;width:100%!important;min-width:0!important;
}
.admin-page .admin-customer-dates>span{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  min-width:0!important;height:46px!important;min-height:46px!important;
  margin:0!important;padding:6px 7px!important;gap:4px!important;
  box-sizing:border-box!important;border:1px solid #eeebf5!important;
  border-radius:9px!important;background:#f8f7fc!important;
}
.admin-page .admin-customer-dates>span:nth-child(1){align-items:flex-start!important;text-align:left!important;}
.admin-page .admin-customer-dates>span:nth-child(2){align-items:center!important;text-align:center!important;}
.admin-page .admin-customer-dates>span:nth-child(3){align-items:flex-end!important;text-align:right!important;}
.admin-page .admin-customer-dates small{
  margin:0!important;color:#89839d!important;font-size:9px!important;
  line-height:1.1!important;font-weight:750!important;white-space:nowrap!important;
}
.admin-page .admin-customer-dates b{
  max-width:100%!important;margin:0!important;color:#37314e!important;
  font-size:10px!important;line-height:1.2!important;font-weight:850!important;
  font-variant-numeric:tabular-nums!important;overflow-wrap:anywhere!important;
}
@media(max-width:360px){
  .admin-page .admin-customer-order{grid-template-columns:36px minmax(0,1fr) auto!important;column-gap:7px!important;padding:10px!important;}
  .admin-page .admin-customer-order .delivery-order-icon{width:36px!important;height:36px!important;min-width:36px!important;font-size:15px!important;}
  .admin-page .admin-customer-order .admin-customer-status{max-width:104px!important;gap:4px!important;}
  .admin-page .admin-customer-status .admin-plan-badge{max-width:104px!important;padding:4px 5px!important;font-size:8px!important;}
  .admin-page .admin-customer-dates{gap:4px!important;}
  .admin-page .admin-customer-dates>span{padding:5px 4px!important;}
  .admin-page .admin-customer-dates b{font-size:9px!important;}
}

/* Admin customer actions — preserves the existing card and date panels */
.admin-page .admin-customer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:9px;padding-top:8px;border-top:1px solid #efedf5;}
.admin-page .admin-customer-action{min-height:30px;padding:6px 11px;border:1px solid #e5def8;border-radius:8px;background:#f5f2ff;color:#6045bd;font-family:inherit;font-size:10px;font-weight:800;line-height:1.2;cursor:pointer;}
.admin-page .admin-customer-action.confirm{background:#edf8f1;border-color:#d8efdf;color:#18794e;}
.admin-page .admin-customer-action.revoke{background:#fff2f1;border-color:#f3ddda;color:#b44c48;}
.admin-page .admin-customer-action:active{transform:translateY(1px);}
@media(max-width:360px){.admin-page .admin-customer-action{min-height:29px;padding:6px 9px;font-size:9px;}}

/* DoovaBook Plus — redesigned Subscription screen only */
.subscription-page{display:grid;gap:18px;padding:16px 0 28px;max-width:760px;margin:0 auto}
.subscription-page .subscription-plus-hero{position:relative;overflow:hidden;border-radius:22px;padding:22px;background:linear-gradient(135deg,#24145f 0%,#5635c8 55%,#8064ec 100%);color:#fff;box-shadow:0 12px 28px rgba(76,48,174,.18)}
.subscription-page .subscription-plus-brand{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;letter-spacing:1.4px}
.subscription-page .subscription-plus-brand b{color:#e4d9ff}
.subscription-page .subscription-crown{width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;color:#f6d98b}
.subscription-page .subscription-plus-content{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:23px 0 20px}
.subscription-page .subscription-plus-copy{min-width:0;max-width:420px}
.subscription-page .subscription-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#d8ceff}
.subscription-page .subscription-plus-copy h2{font-size:29px;line-height:1.12;letter-spacing:-.8px;margin:8px 0}
.subscription-page .subscription-plus-copy p{font-size:13px;line-height:1.55;color:#e4ddff;margin:0;max-width:340px}
.subscription-page .subscription-growth-art{width:112px;height:112px;flex:0 0 112px;border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;position:relative;color:#fff;transform:rotate(5deg)}
.subscription-page .growth-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:#f8d77c;box-shadow:0 0 0 5px rgba(248,215,124,.14)}
.subscription-page .growth-dot-one{top:18px;right:18px}
.subscription-page .growth-dot-two{bottom:22px;left:15px;width:7px;height:7px}
.subscription-page .growth-dot-three{top:43px;left:12px;width:5px;height:5px;background:#c9b8ff}
.subscription-page .subscription-plus-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-top:16px;border-top:1px solid rgba(255,255,255,.2)}
.subscription-page .subscription-plus-features span{display:flex;align-items:flex-start;gap:6px;font-size:10px;line-height:1.4;color:#f2efff}
.subscription-page .subscription-plus-features svg{flex:0 0 auto;color:#a9f0ca}
.subscription-page .subscription-free-notice{display:flex;align-items:center;gap:12px;padding:14px 15px;border:1px solid #ccebd9;border-radius:15px;background:#effaf3;color:#286b47}
.subscription-page .subscription-free-check{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;background:#d7f3e2;color:#23834d}
.subscription-page .subscription-free-notice p{margin:0;font-size:12px;line-height:1.55;color:#42765a}
.subscription-page .subscription-free-notice b{color:#216b43}
.subscription-page .subscription-free-notice strong{color:#245e3d}
.subscription-page .subscription-plan-section,.subscription-page .subscription-steps-section{background:#fff;border:1px solid #e9eaf2;border-radius:18px;padding:17px;box-shadow:0 4px 14px rgba(27,35,65,.035)}
.subscription-page .subscription-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.subscription-page .subscription-section-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#f0ecff;color:#6042d1;display:grid;place-items:center}
.subscription-page .subscription-section-heading h3,.subscription-page .subscription-status-heading h3{font-size:15px;font-weight:800;color:#20243a;margin:0 0 3px}
.subscription-page .subscription-section-heading p,.subscription-page .subscription-status-heading p{font-size:11px;color:#858ba0;margin:0;line-height:1.4}
.subscription-page .subscription-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.subscription-page .subscription-plan-card{position:relative;text-align:left;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:17px 15px;border:1.5px solid #e6e7ef;border-radius:15px;background:#fff;color:#252941;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s}
.subscription-page .subscription-plan-card.selected{border-color:#6848db;background:linear-gradient(145deg,#f8f5ff,#f0ebff);box-shadow:0 4px 14px rgba(92,62,195,.11)}
.subscription-page .subscription-plan-radio{position:absolute;right:13px;top:14px;width:19px;height:19px;border:1.5px solid #c9cbd8;border-radius:50%;display:grid;place-items:center}
.subscription-page .subscription-plan-card.selected .subscription-plan-radio{border-color:#6242d2}
.subscription-page .subscription-plan-radio span{width:9px;height:9px;border-radius:50%;background:#6242d2}
.subscription-page .subscription-plan-name{font-size:12px;font-weight:700;color:#626a80}
.subscription-page .subscription-plan-card strong{font-size:28px;line-height:1.2;color:#28213f;margin-top:6px}
.subscription-page .subscription-plan-card small{font-size:10px;color:#858ba0}
.subscription-page .subscription-plan-popular{position:absolute;top:-9px;left:12px;border-radius:20px;padding:4px 8px;background:#6544d6;color:#fff;font-size:8px;font-weight:800;letter-spacing:.5px}
.subscription-page .subscription-steps{position:relative;display:grid;gap:0;padding:2px 0 0 2px}
.subscription-page .subscription-steps:before{content:"";position:absolute;left:16px;top:22px;bottom:22px;width:2px;background:#e4defb}
.subscription-page .subscription-step{position:relative;display:flex;align-items:center;gap:13px;min-height:58px}
.subscription-page .subscription-step-number{width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:grid;place-items:center;background:#eee9ff;border:2px solid #fff;box-shadow:0 0 0 1px #dcd2ff;color:#5c3acb;font-size:12px;font-weight:800;z-index:1}
.subscription-page .subscription-step div{display:grid;gap:3px;padding:8px 0}
.subscription-page .subscription-step b{font-size:12px;color:#30334a}
.subscription-page .subscription-step small{font-size:10px;color:#858ba0;line-height:1.4}
.subscription-page .subscription-payment-section{overflow:hidden;border:1px solid #e8e5f5;border-radius:19px;background:#fff;box-shadow:0 5px 18px rgba(42,34,89,.06)}
.subscription-page .subscription-payment-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 19px;background:linear-gradient(120deg,#39217f,#6847d4 65%,#8469e9);color:#fff}
.subscription-page .subscription-payment-heading>div>span{font-size:9px;font-weight:800;letter-spacing:1.4px;color:#d9ceff}
.subscription-page .subscription-payment-heading h3{font-size:18px;margin:5px 0 4px;color:#fff}
.subscription-page .subscription-payment-heading p{font-size:11px;color:#e2dcff;margin:0}
.subscription-page .subscription-payment-rupee{width:43px;height:43px;flex:0 0 43px;border-radius:14px;background:rgba(255,255,255,.16);display:grid;place-items:center;color:#fff}
.subscription-page .subscription-payment-body{padding:17px}
.subscription-page .subscription-amount-display{display:flex;align-items:center;gap:9px;padding:12px 14px;border-radius:13px;background:#f7f5ff;margin-bottom:16px}
.subscription-page .subscription-amount-display small{font-size:9px;font-weight:800;letter-spacing:.7px;color:#81769f}
.subscription-page .subscription-amount-display strong{font-size:23px;color:#5637c2;margin-left:auto}
.subscription-page .subscription-amount-display span{font-size:10px;color:#777b90}
.subscription-page .subscription-qr-area{display:flex;flex-direction:column;align-items:center;gap:9px;padding:3px 0 15px}
.subscription-page .subscription-qr{width:190px;height:190px;max-width:100%;object-fit:contain;padding:8px;border:1px solid #e9e6f2;border-radius:13px;background:#fff}
.subscription-page .subscription-qr-empty{width:190px;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:14px;border:1px dashed #d9d2ed;border-radius:13px;background:#faf9ff;text-align:center}
.subscription-page .subscription-qr-empty b{font-size:11px;color:#4b4561}
.subscription-page .subscription-qr-empty small{font-size:10px;color:#858197;line-height:1.4}
.subscription-page .subscription-qr-empty .qr-illustration{width:76px;height:76px}
.subscription-page .subscription-scan-hint{font-size:9px;font-weight:800;letter-spacing:1px;color:#88839a}
.subscription-page .subscription-upi-copy{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border:1px solid #e9e5f6;border-radius:13px;background:#fbfaff}
.subscription-page .subscription-upi-copy>div{display:grid;gap:5px;min-width:0}
.subscription-page .subscription-upi-copy small,.subscription-page .subscription-device-row small{font-size:9px;font-weight:800;letter-spacing:.7px;color:#8b849e}
.subscription-page .subscription-upi-copy b{font-size:12px;color:#34285f;overflow-wrap:anywhere}
.subscription-page .subscription-upi-copy button,.subscription-page .subscription-device-row button{display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:9px 11px;border:1px solid #dcd3fa;border-radius:10px;background:#f1edff;color:#5839c5;font-size:10px;font-weight:700;cursor:pointer}
.subscription-page .subscription-customer-form{display:grid;gap:12px;margin-top:18px}
.subscription-page .subscription-form-heading{display:grid;gap:4px}
.subscription-page .subscription-form-heading b{font-size:13px;color:#30334a}
.subscription-page .subscription-form-heading small{font-size:10px;color:#858ba0}
.subscription-page .subscription-customer-form label,.subscription-page .subscription-activation-form label{display:grid;gap:7px;font-size:11px;font-weight:700;color:#555c72}
.subscription-page .subscription-customer-form .input,.subscription-page .subscription-activation-form .input{width:100%;min-width:0;box-sizing:border-box;border-radius:11px;min-height:44px}
.subscription-page .subscription-whatsapp-button{min-height:47px;border-radius:12px;font-size:12px}
.subscription-page .subscription-payment-footnote{display:flex;align-items:flex-start;gap:7px;margin:14px 0 0;font-size:10px;line-height:1.5;color:#777d90}
.subscription-page .subscription-payment-footnote svg{flex:0 0 auto;color:#5c43c3}
.subscription-page .subscription-support-line{margin:7px 0 0;text-align:center;font-size:10px;color:#858ba0}
.subscription-page .subscription-support-line b{color:#5140a2}
.subscription-page .subscription-status-card{padding:17px;border:1px solid #e8e8f0;border-radius:18px;box-shadow:0 4px 14px rgba(27,35,65,.035)}
.subscription-page .subscription-status-heading{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.subscription-page .subscription-status-heading>div{flex:1;min-width:130px}
.subscription-page .subscription-status-pill{padding:6px 9px;border-radius:20px;font-size:9px;font-weight:800;letter-spacing:.5px}
.subscription-page .subscription-status-pill.active{background:#e5f8ed;color:#23824e}
.subscription-page .subscription-status-pill.free{background:#f0edfa;color:#66549b}
.subscription-page .subscription-validity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px}
.subscription-page .subscription-status-detail{display:grid;gap:6px;padding:12px;border-radius:12px;background:#f8f7fc;min-width:0}
.subscription-page .subscription-status-detail small{font-size:10px;color:#858ba0}
.subscription-page .subscription-status-detail b{font-size:12px;color:#30334a;overflow-wrap:anywhere}
.subscription-page .subscription-device-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;padding:13px;border:1px solid #e9e5f5;border-radius:12px;background:#fbfaff}
.subscription-page .subscription-device-row>div{display:grid;gap:5px;min-width:0}
.subscription-page .subscription-device-row>div>b{font-size:11px;color:#393052;overflow-wrap:anywhere}
.subscription-page .subscription-device-row p{font-size:10px;line-height:1.45;color:#858197;margin:0}
.subscription-page .subscription-activation-form{display:grid;gap:12px;margin-top:16px;padding-top:15px;border-top:1px solid #eceaf2}
.subscription-page .subscription-activation-form>div{display:grid;gap:4px}
.subscription-page .subscription-activation-form>div>b{font-size:12px;color:#30334a}
.subscription-page .subscription-activation-form>div>small{font-size:10px;line-height:1.45;color:#858ba0}
.subscription-page .subscription-activation-form .btn{min-height:44px}
.subscription-page .subscription-manual-note{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border-radius:13px;background:#f5f3fc;border:1px solid #e7e1f7;color:#67558e}
.subscription-page .subscription-manual-note svg{flex:0 0 auto;margin-top:1px}
.subscription-page .subscription-manual-note p{margin:0;font-size:10px;line-height:1.55;color:#71678a}
.subscription-page .subscription-manual-note b{color:#4c388a}
@media(max-width:520px){
  .subscription-page{gap:14px;padding-top:12px}
  .subscription-page .subscription-plus-hero{padding:19px;border-radius:19px}
  .subscription-page .subscription-plus-copy h2{font-size:25px}
  .subscription-page .subscription-plus-copy p{font-size:11px}
  .subscription-page .subscription-growth-art{width:88px;height:88px;flex-basis:88px;border-radius:24px}
  .subscription-page .subscription-growth-art svg{width:49px;height:49px}
  .subscription-page .subscription-plus-features{gap:7px}
  .subscription-page .subscription-plus-features span{font-size:9px;gap:4px}
  .subscription-page .subscription-plan-section,.subscription-page .subscription-steps-section,.subscription-page .subscription-status-card{padding:14px}
  .subscription-page .subscription-plan-card{padding:15px 12px}
  .subscription-page .subscription-plan-card strong{font-size:25px}
  .subscription-page .subscription-payment-heading{padding:16px}
  .subscription-page .subscription-payment-body{padding:14px}
}
@media(max-width:360px){
  .subscription-page .subscription-plus-content{gap:4px}
  .subscription-page .subscription-growth-art{width:72px;height:72px;flex-basis:72px}
  .subscription-page .subscription-plus-copy h2{font-size:22px}
  .subscription-page .subscription-plus-features span{font-size:8px}
  .subscription-page .subscription-amount-display{flex-wrap:wrap}
}

/* Premium Subscription header */
.subscription-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:66px;
  padding:10px 20px;
}
.subscription-topbar .subscription-header-title{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  font-size:17px;
  font-weight:800;
  color:#24213a;
}
.subscription-header-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#6042d1;
  background:linear-gradient(145deg,#f0ebff,#e7e0ff);
  border:1px solid #e2d9ff;
}
.subscription-header-status{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  padding:8px 11px;
  border-radius:30px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.45px;
  white-space:nowrap;
}
.subscription-header-status.is-active{
  color:#23794b;
  background:#e9f8ef;
  border:1px solid #ccebd8;
}
.subscription-header-status.is-free{
  color:#66549b;
  background:#f1edfc;
  border:1px solid #e2daf6;
}
.subscription-header-status-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:currentColor;
}
@media(max-width:420px){
  .subscription-topbar{padding:9px 13px;min-height:60px}
  .subscription-topbar .subscription-header-title{font-size:15px;gap:8px}
  .subscription-header-icon{width:35px;height:35px;flex-basis:35px}
  .subscription-header-status{font-size:8px;padding:7px 8px;gap:5px}
}

/* DoovaBook premium Admin login screen */
.admin-page:has(.admin-auth-screen) .admin-panel-shell{
  padding:0!important;
  overflow:hidden;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.admin-auth-screen{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
  min-height:calc(100vh - 150px);
  padding:28px clamp(18px,4vw,42px) 0;
  overflow:hidden;
  color:#171b48;
  background:radial-gradient(ellipse at 88% 15%,rgba(178,145,255,.28),transparent 34%),linear-gradient(145deg,#f8f6ff 0%,#eeebff 55%,#faf9ff 100%);
}
.admin-auth-screen:before,
.admin-auth-screen:after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  border-radius:50%;
}
.admin-auth-screen:before{
  width:360px;height:360px;right:-150px;top:90px;
  background:linear-gradient(145deg,rgba(161,111,255,.13),rgba(100,55,220,.04));
}
.admin-auth-screen:after{
  width:520px;height:150px;left:-80px;bottom:-72px;
  border-radius:50% 50% 0 0;
  background:linear-gradient(110deg,#a95cff,#5624df 65%,#3515bd);
  box-shadow:0 -17px 0 rgba(140,91,255,.35),0 -34px 0 rgba(190,157,255,.28);
}
.admin-auth-brand{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:64px;margin-bottom:34px;
}
.admin-auth-brand img{display:block;width:min(300px,62%);max-height:68px;object-fit:contain;object-position:left center}
.admin-auth-access{
  display:inline-flex;align-items:center;gap:7px;padding:10px 15px;
  border:1px solid #d9ccff;border-radius:30px;background:rgba(255,255,255,.55);
  color:#5423c9;font-size:12px;font-weight:800;white-space:nowrap;
}
.admin-auth-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,34%);
  align-items:center;gap:14px;margin-bottom:30px;
}
.admin-auth-hero-copy h1{
  margin:0 0 10px;font-size:clamp(34px,5vw,54px);line-height:1.08;
  letter-spacing:-1.8px;font-weight:850;color:#171b48;
}
.admin-auth-hero-copy h1 span{
  color:#5b22d7;background:linear-gradient(100deg,#a13aff,#4215cb);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.admin-auth-hero-copy p{
  max-width:510px;margin:0;color:#626786;font-size:clamp(14px,2vw,19px);
  line-height:1.55;font-weight:500;
}
.admin-auth-shield{display:grid;place-items:center;min-height:180px}
.admin-auth-shield-ring{
  position:relative;display:grid;place-items:center;width:148px;height:148px;
  border:2px solid rgba(132,87,241,.55);border-radius:34% 34% 42% 42%;
  color:#fff;background:linear-gradient(145deg,#a75aff 0%,#6826e8 48%,#3213b9 100%);
  box-shadow:inset 0 3px 8px rgba(255,255,255,.55),0 18px 35px rgba(91,42,204,.28);
  transform:rotate(0deg);
}
.admin-auth-shield-ring>svg:first-child{width:88px;height:88px;opacity:.35}
.admin-auth-shield-ring>svg:last-child{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  filter:drop-shadow(0 3px 4px rgba(30,10,90,.25));
}
.admin-auth-card{
  display:grid;gap:18px;width:100%;max-width:760px;margin:0 auto 28px;
  padding:30px clamp(20px,4vw,38px);border:1px solid rgba(255,255,255,.9);
  border-radius:30px;background:rgba(255,255,255,.91);
  box-shadow:0 15px 40px rgba(54,36,120,.11);
}
.admin-auth-label{display:flex;align-items:center;gap:12px;color:#20234e;font-size:20px;font-weight:850}
.admin-auth-label>span{display:grid;place-items:center;color:#5c20d5}
.admin-auth-input-wrap{
  display:flex;align-items:center;gap:13px;min-height:62px;padding:0 17px;
  border:1.5px solid #d9d8e9;border-radius:19px;background:#f8f7fc;color:#687092;
}
.admin-auth-input-wrap>.input{
  min-width:0;flex:1;height:58px;padding:0;border:0!important;outline:none;
  background:transparent!important;box-shadow:none!important;font-size:17px;color:#24264f;
}
.admin-auth-input-wrap>.input:focus{outline:none;box-shadow:none!important}
.admin-auth-unlock{
  display:flex;align-items:center;justify-content:center;gap:13px;min-height:68px;
  padding:14px 20px;border:0;border-radius:21px;color:white;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%);
  box-shadow:0 9px 20px rgba(91,33,202,.27);font-size:18px;font-weight:850;
  cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;
}
.admin-auth-unlock svg:last-child{margin-left:auto}
.admin-auth-unlock:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(91,33,202,.32)}
.admin-auth-forgot{
  display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;
  padding:12px;border:1.5px solid #b99aff;border-radius:19px;background:#fff;
  color:#5720ce;font-size:16px;font-weight:800;cursor:pointer;
}
.admin-auth-help{
  display:flex;align-items:center;gap:15px;width:100%;max-width:760px;
  margin:0 auto 30px;padding:18px 20px;border:1px solid #ddd3ff;
  border-radius:22px;background:rgba(232,225,255,.72);color:#28215f;
}
.admin-auth-help-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;color:white;background:linear-gradient(145deg,#9b51ff,#4b1bc9)}
.admin-auth-help>div{flex:1;min-width:0;padding-left:14px;border-left:2px solid #8d61ed}
.admin-auth-help b{font-size:17px;font-weight:850}
.admin-auth-help p{margin:4px 0 0;color:#514b80;font-size:13px;line-height:1.45}
.admin-auth-help-end{flex:0 0 auto;color:#5721d0}
.admin-auth-footer{
  display:flex;align-items:center;gap:18px;min-height:74px;margin: auto -42px 0;
  padding:18px clamp(20px,4vw,42px);color:#fff;font-size:13px;font-weight:600;
  background:linear-gradient(100deg,#6d28df,#3513bc);
}
.admin-auth-footer i{height:30px;width:2px;background:rgba(255,255,255,.7)}
.admin-auth-footer span:last-child{display:flex;align-items:center;gap:9px}
.admin-auth-footer span:last-child b{width:9px;height:9px;border-radius:50%;background:#2fe49a}
@media(max-width:600px){
  .admin-auth-screen{min-height:calc(100vh - 130px);padding:18px 15px 0}
  .admin-auth-brand{min-height:54px;margin-bottom:24px}
  .admin-auth-brand img{width:min(230px,60%);max-height:54px}
  .admin-auth-access{padding:8px 10px;font-size:10px;gap:5px}
  .admin-auth-hero{grid-template-columns:minmax(0,1fr) 112px;gap:4px;margin-bottom:23px}
  .admin-auth-hero-copy h1{font-size:clamp(30px,8vw,40px);letter-spacing:-1.2px}
  .admin-auth-hero-copy p{font-size:14px;line-height:1.45}
  .admin-auth-shield{min-height:125px}
  .admin-auth-shield-ring{width:102px;height:112px;border-radius:32% 32% 40% 40%}
  .admin-auth-shield-ring>svg:first-child{width:67px;height:67px}
  .admin-auth-shield-ring>svg:last-child{width:29px;height:29px}
  .admin-auth-card{gap:15px;padding:22px 17px;border-radius:25px;margin-bottom:20px}
  .admin-auth-label{font-size:17px}
  .admin-auth-input-wrap{min-height:58px;border-radius:16px}
  .admin-auth-input-wrap>.input{height:54px;font-size:15px}
  .admin-auth-unlock{min-height:60px;border-radius:17px;font-size:16px;gap:9px}
  .admin-auth-forgot{min-height:54px;border-radius:16px;font-size:14px}
  .admin-auth-help{gap:11px;padding:14px 13px;border-radius:18px;margin-bottom:22px}
  .admin-auth-help-icon{width:40px;height:40px;flex-basis:40px}
  .admin-auth-help>div{padding-left:10px}
  .admin-auth-help b{font-size:15px}
  .admin-auth-help p{font-size:11px}
  .admin-auth-help-end{width:30px;height:30px}
  .admin-auth-footer{gap:11px;min-height:65px;margin-left:-15px;margin-right:-15px;padding:14px 16px;font-size:10px}
  .admin-auth-footer i{height:25px}
}

/* Admin login: fixed viewport layout and password visibility control */
.admin-auth-screen{
  box-sizing:border-box;
  min-height:calc(100dvh - 140px);
}
.admin-auth-input-wrap{
  position:relative;
}
.admin-auth-input-wrap>.input{
  padding-right:4px;
}
.admin-auth-eye{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#626887;
  font-size:22px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.admin-auth-eye:focus-visible{
  outline:2px solid #8751ed;
  outline-offset:2px;
}
@media(max-width:600px){
  .admin-auth-screen{
    min-height:calc(100dvh - 130px);
    padding-top:12px;
  }
  .admin-auth-eye{
    flex-basis:38px;
    width:38px;
    height:38px;
    font-size:21px;
  }
}

/* Locked Admin login: remove unused header space and fit one screen */
.main-column:has(.admin-auth-screen){
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
.main-column:has(.admin-auth-screen) .page-content{
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.main-column:has(.admin-auth-screen) .admin-page{
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.admin-page:has(.admin-auth-screen) .admin-panel-shell{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.admin-auth-screen{
  box-sizing:border-box!important;
  display:flex!important;
  justify-content:center!important;
  gap:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding:10px clamp(14px,3vw,32px) 0!important;
  overflow:hidden!important;
}
.admin-auth-brand{min-height:42px!important;margin-bottom:10px!important}
.admin-auth-brand img{max-height:44px!important}
.admin-auth-hero{
  grid-template-columns:minmax(0,1fr) 105px!important;
  gap:6px!important;
  margin-bottom:12px!important;
}
.admin-auth-hero-copy h1{font-size:clamp(29px,4vw,40px)!important;margin-bottom:6px!important}
.admin-auth-hero-copy p{font-size:13px!important;line-height:1.35!important}
.admin-auth-shield{min-height:95px!important}
.admin-auth-shield-ring{width:82px!important;height:88px!important;border-radius:27px!important}
.admin-auth-shield-ring>svg:first-child{width:58px!important;height:58px!important}
.admin-auth-shield-ring>svg:last-child{width:25px!important;height:25px!important}
.admin-auth-card{
  gap:11px!important;
  padding:17px clamp(15px,3vw,26px)!important;
  margin:0 auto 12px!important;
  border-radius:21px!important;
}
.admin-auth-label{gap:9px!important;font-size:16px!important}
.admin-auth-label>span{display:grid!important;place-items:center!important}
.admin-auth-input-wrap{min-height:49px!important;padding:0 12px!important;border-radius:14px!important}
.admin-auth-input-wrap>.input{height:47px!important;font-size:14px!important}
.admin-auth-eye{flex-basis:36px!important;width:36px!important;height:36px!important;font-size:20px!important}
.admin-auth-unlock{min-height:52px!important;padding:10px 14px!important;border-radius:15px!important;font-size:15px!important}
.admin-auth-forgot{min-height:46px!important;padding:9px!important;border-radius:14px!important;font-size:13px!important}
.admin-auth-help{
  gap:10px!important;
  padding:11px 13px!important;
  margin:0 auto 8px!important;
  border-radius:16px!important;
}
.admin-auth-help-icon{width:36px!important;height:36px!important;flex-basis:36px!important}
.admin-auth-help b{font-size:14px!important}
.admin-auth-help p{font-size:11px!important;margin-top:2px!important}
.admin-auth-help-end{width:27px!important;height:27px!important}
.admin-auth-footer{
  flex:0 0 auto!important;
  min-height:44px!important;
  margin:auto -32px 0!important;
  padding:9px clamp(15px,3vw,32px)!important;
  font-size:10px!important;
}
@media(max-width:600px){
  .main-column:has(.admin-auth-screen),
  .main-column:has(.admin-auth-screen) .page-content{
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  .admin-auth-screen{
    padding:8px 13px 0!important;
    justify-content:center!important;
  }
  .admin-auth-brand{min-height:38px!important;margin-bottom:7px!important}
  .admin-auth-brand img{max-height:38px!important}
  .admin-auth-access{padding:6px 9px!important;font-size:9px!important}
  .admin-auth-hero{
    grid-template-columns:minmax(0,1fr) 82px!important;
    margin-bottom:9px!important;
  }
  .admin-auth-hero-copy h1{font-size:30px!important}
  .admin-auth-hero-copy p{font-size:12px!important}
  .admin-auth-shield{min-height:78px!important}
  .admin-auth-shield-ring{width:68px!important;height:74px!important}
  .admin-auth-shield-ring>svg:first-child{width:49px!important;height:49px!important}
  .admin-auth-card{gap:9px!important;padding:14px!important;margin-bottom:9px!important}
  .admin-auth-label{font-size:15px!important}
  .admin-auth-input-wrap{min-height:46px!important}
  .admin-auth-input-wrap>.input{height:44px!important;font-size:13px!important}
  .admin-auth-unlock{min-height:48px!important;font-size:14px!important}
  .admin-auth-forgot{min-height:42px!important;font-size:12px!important}
  .admin-auth-help{padding:9px 11px!important;margin-bottom:5px!important}
  .admin-auth-help-icon{width:32px!important;height:32px!important;flex-basis:32px!important}
  .admin-auth-help b{font-size:12px!important}
  .admin-auth-help p{font-size:10px!important}
  .admin-auth-footer{
    min-height:40px!important;
    margin-left:-13px!important;
    margin-right:-13px!important;
    padding:7px 13px!important;
    font-size:9px!important;
  }
}
@media(max-height:680px){
  .admin-auth-brand{margin-bottom:4px!important;min-height:32px!important}
  .admin-auth-brand img{max-height:32px!important}
  .admin-auth-hero{margin-bottom:5px!important}
  .admin-auth-shield{min-height:62px!important}
  .admin-auth-shield-ring{width:58px!important;height:62px!important}
  .admin-auth-card{gap:7px!important;padding:10px 13px!important;margin-bottom:6px!important}
  .admin-auth-help{padding:7px 10px!important;margin-bottom:3px!important}
  .admin-auth-footer{min-height:34px!important}
}

/* Final locked Admin layout correction */
.main-column:has(.admin-auth-screen){
  display:flex!important;
  flex-direction:column!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
.main-column:has(.admin-auth-screen)>.page-content{
  flex:1 1 auto!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.main-column:has(.admin-auth-screen)>.page-content>.admin-page{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.admin-page:has(.admin-auth-screen) .admin-panel-shell{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.admin-auth-screen{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding:8px clamp(14px,3vw,32px) 0!important;
  overflow:hidden!important;
}
.admin-auth-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:42px!important;
  margin:0 0 8px!important;
}
.admin-auth-brand img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:min(260px,65%)!important;
  max-height:48px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
.admin-auth-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  text-align:left!important;
}
.admin-auth-label>span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
}
.admin-auth-input-wrap{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
}
.admin-auth-input-wrap>svg{
  display:block!important;
  flex:0 0 auto!important;
  width:21px!important;
  height:21px!important;
}
@media(max-width:600px){
  .admin-auth-screen{padding:7px 13px 0!important}
  .admin-auth-brand{min-height:38px!important;margin-bottom:6px!important}
  .admin-auth-brand img{width:min(225px,65%)!important;max-height:40px!important}
}

/* Offline MPIN recovery */
.pin-card .recovery-key-display{
  margin:20px 0;
  padding:18px 12px;
  border:1px dashed #8b83df;
  border-radius:14px;
  background:#f3f1ff;
  color:#393078;
  font-size:clamp(19px,5vw,25px);
  font-weight:800;
  letter-spacing:2px;
  line-height:1.6;
  overflow-wrap:anywhere;
  user-select:all;
}
.pin-card .recovery-field{
  width:100%;
  margin:0 0 12px;
  text-align:center;
  min-height:50px;
  border:1px solid #e3e2f2;
  border-radius:12px;
  background:#fafaff;
}
.pin-card .pin-secondary-action{
  display:block;
  width:100%;
  margin:15px auto 4px;
  padding:10px;
  border:0;
  background:transparent;
  color:#6558c9;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}
.pin-card .pin-secondary-action:active{opacity:.7}

/* MPIN screen: reuse Admin authentication design without changing Admin */
.mpin-auth-screen .mpin-auth-card{
  width:100%;
  max-width:760px;
  gap:16px;
}
.mpin-auth-screen .mpin-auth-form{
  display:grid;
  gap:14px;
  width:100%;
}
.mpin-auth-screen .admin-auth-input-wrap{
  width:100%;
  min-height:62px;
}
.mpin-auth-screen .admin-auth-input-wrap>.input{
  width:100%;
  min-width:0;
  text-align:left;
}
.mpin-auth-screen .mpin-code-input{
  letter-spacing:5px;
}
.mpin-auth-screen .admin-auth-unlock{
  width:100%;
}
.mpin-auth-screen .admin-auth-forgot{
  width:100%;
}
.mpin-auth-screen .recovery-key-display{
  margin:8px 0;
  padding:18px 12px;
  border:1px dashed #8b83df;
  border-radius:14px;
  background:#f3f1ff;
  color:#393078;
  font-size:clamp(19px,5vw,25px);
  font-weight:800;
  letter-spacing:2px;
  line-height:1.6;
  overflow-wrap:anywhere;
  text-align:center;
  user-select:all;
}
.mpin-auth-screen .admin-auth-card>.muted{
  margin:0;
  line-height:1.6;
}
.mpin-auth-screen .form-error{
  margin:0;
}
@media(max-width:600px){
  .mpin-auth-screen .mpin-auth-card{
    gap:12px;
    padding:20px 16px;
  }
  .mpin-auth-screen .mpin-auth-form{
    gap:11px;
  }
  .mpin-auth-screen .admin-auth-input-wrap{
    min-height:54px;
  }
}

/* MPIN visibility toggle */
.mpin-auth-screen .mpin-visibility-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#77739c;
  cursor:pointer;
}
.mpin-auth-screen .mpin-visibility-toggle:focus-visible{
  outline:2px solid #8b83df;
  outline-offset:2px;
}

/* MPIN mobile preference: centered content with natural vertical scrolling */
@media(max-width:600px){
  .mpin-auth-screen{
    min-height:100dvh!important;
    height:auto!important;
    overflow:visible!important;
    padding:18px 16px 0!important;
    align-items:center!important;
  }
  .mpin-auth-screen .admin-auth-brand{
    width:100%;
    margin-bottom:20px!important;
  }
  .mpin-auth-screen .admin-auth-hero{
    width:100%;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
    gap:12px!important;
    margin-bottom:20px!important;
  }
  .mpin-auth-screen .admin-auth-hero-copy{
    width:100%;
    text-align:center!important;
  }
  .mpin-auth-screen .admin-auth-hero-copy h1{
    text-align:center!important;
  }
  .mpin-auth-screen .admin-auth-hero-copy p{
    max-width:340px;
    margin:0 auto!important;
    text-align:center!important;
  }
  .mpin-auth-screen .admin-auth-shield{
    width:100%;
    min-height:112px!important;
    display:grid!important;
    place-items:center!important;
  }
  .mpin-auth-screen .mpin-auth-card{
    width:100%;
    margin:0 auto 18px!important;
    text-align:center!important;
  }
  .mpin-auth-screen .admin-auth-label{
    justify-content:center!important;
    text-align:center!important;
  }
  .mpin-auth-screen .mpin-auth-form{
    width:100%;
  }
  .mpin-auth-screen .admin-auth-input-wrap{
    text-align:left!important;
  }
  .mpin-auth-screen .admin-auth-help{
    width:100%;
    margin:0 auto 18px!important;
    text-align:center!important;
    flex-direction:column!important;
    align-items:center!important;
  }
  .mpin-auth-screen .admin-auth-help>div{
    width:100%;
    padding:0!important;
    border:0!important;
    text-align:center!important;
  }
  .mpin-auth-screen .admin-auth-help-end{
    display:none!important;
  }
  .mpin-auth-screen .admin-auth-footer{
    width:calc(100% + 32px);
    margin:auto -16px 0!important;
    min-height:65px!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    text-align:center!important;
    gap:9px!important;
    padding:14px 12px!important;
  }
}

/* Admin login: match the MPIN mobile layout without affecting Admin dashboard */
@media(max-width:600px){
  .admin-login-auth-screen{
    min-height:100dvh!important;
    height:auto!important;
    overflow:visible!important;
    padding:18px 16px 0!important;
    align-items:center!important;
  }
  .admin-login-auth-screen .admin-auth-brand{
    width:100%;
    margin-bottom:20px!important;
  }
  .admin-login-auth-screen .admin-auth-hero{
    width:100%;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
    gap:12px!important;
    margin-bottom:20px!important;
  }
  .admin-login-auth-screen .admin-auth-hero-copy{
    width:100%;
    text-align:center!important;
  }
  .admin-login-auth-screen .admin-auth-hero-copy h1{
    text-align:center!important;
  }
  .admin-login-auth-screen .admin-auth-hero-copy p{
    max-width:340px;
    margin:0 auto!important;
    text-align:center!important;
  }
  .admin-login-auth-screen .admin-auth-shield{
    width:100%;
    min-height:112px!important;
    display:grid!important;
    place-items:center!important;
  }
  .admin-login-auth-screen .admin-auth-card{
    width:100%;
    margin:0 auto 18px!important;
    text-align:center!important;
  }
  .admin-login-auth-screen .admin-auth-label{
    justify-content:center!important;
    text-align:center!important;
  }
  .admin-login-auth-screen .admin-auth-input-wrap{
    width:100%;
    text-align:left!important;
  }
  .admin-login-auth-screen .admin-auth-unlock,
  .admin-login-auth-screen .admin-auth-forgot{
    width:100%;
  }
  .admin-login-auth-screen .admin-auth-help{
    width:100%;
    margin:0 auto 18px!important;
    text-align:center!important;
    flex-direction:column!important;
    align-items:center!important;
  }
  .admin-login-auth-screen .admin-auth-help>div{
    width:100%;
    padding:0!important;
    border:0!important;
    text-align:center!important;
  }
  .admin-login-auth-screen .admin-auth-help-end{
    display:none!important;
  }
  .admin-login-auth-screen .admin-auth-footer{
    width:calc(100% + 32px);
    margin:auto -16px 0!important;
    min-height:65px!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    text-align:center!important;
    gap:9px!important;
    padding:14px 12px!important;
  }
}

/* Compact premium reference finish — Create/Edit Order only */
.modal-wide:has(.order-create-form){width:min(760px,calc(100vw - 28px));max-height:min(88vh,900px)}
.modal-wide:has(.order-create-form) .modal-header{padding:14px 19px 12px;background:linear-gradient(120deg,#f1edff,#faf9ff 58%,#f1f5ff);border-bottom:1px solid #e9e5f7}
.modal-wide:has(.order-create-form) .modal-header h2{font-size:16px;letter-spacing:-.25px}
.modal-wide:has(.order-create-form) .modal-header p{font-size:10px;margin-top:3px}
.order-create-form{padding:12px 16px 14px;gap:8px;background:#fff}
.order-create-form .form-grid:first-child{padding:11px 12px;gap:8px 10px;border-radius:13px;background:#f8f7ff;border:1px solid #ece9f8}
.order-create-form .field{gap:4px}
.order-create-form .field>span,.order-create-form .field label{color:#535b77;font-size:10px;font-weight:750}
.order-create-form .field input,.order-create-form .field select,.order-create-form .field textarea{min-height:34px;padding:7px 9px;border-radius:9px;font-size:11px;border:1px solid #e5e2f0;background:#fff}
.order-create-form .order-customer-search{margin:0}
.order-create-form .order-customer-suggestions{border-radius:10px;box-shadow:0 6px 18px #342b6610}
.order-create-form .customer-suggestion{padding:7px 9px}
.order-create-form .order-customer-selected{margin-top:4px;padding:6px 8px;font-size:10px}
.order-create-form .order-items-head{margin:9px 0 6px;gap:8px;align-items:center}
.order-create-form .order-items-head h3{font-size:12px;margin:0;color:#373653}
.order-create-form .order-items-head p{font-size:9px;line-height:1.3;margin:2px 0 0;color:#85849a}
.order-create-form .order-items-head .btn{min-height:30px;padding:6px 9px;border-radius:9px;font-size:10px}
.order-create-form .order-line-list{gap:6px}
.order-create-form .order-line{padding:7px 9px;gap:7px;border-radius:11px;align-items:center;background:#fff;border:1px solid #e9e6f4;box-shadow:0 2px 7px #433b7a08}
.order-create-form .line-product select{min-height:33px;padding:6px 8px;border-radius:8px;font-size:10px}
.order-create-form .line-product small{display:block;margin-top:2px;font-size:9px;color:#85849a}
.order-create-form .line-qty label{font-size:9px;color:#77758d}
.order-create-form .line-qty input{min-height:30px;padding:5px 7px;border-radius:8px;font-size:11px}
.order-create-form .line-total{font-size:11px;color:#5c50b0;font-weight:800}
.order-create-form .add-line-btn{margin:6px 0 0;padding:7px 9px;border:1px dashed #c9c1eb;border-radius:9px;background:#f8f6ff;color:#685bc0;font-size:10px;font-weight:750}
.order-create-form .order-bottom-fields{margin-top:9px;padding:10px 11px;gap:8px 10px;border-radius:12px;background:#f8f7ff;border:1px solid #ece9f8}
.order-create-form .order-summary{margin-top:8px;padding:10px 13px;gap:4px;border-radius:12px;background:linear-gradient(120deg,#f1edff,#faf9ff 58%,#f2f5ff);border:1px solid #e8e3f7;box-shadow:none}
.order-create-form .order-summary>div{padding:3px 0;font-size:10px}
.order-create-form .order-summary b{font-size:11px}
.order-create-form .order-summary .summary-total{margin-top:4px;padding-top:7px}
.order-create-form .order-summary .summary-total b{font-size:15px;color:#6254c4}
.order-create-form .order-summary .summary-due{margin-top:3px;padding-top:6px}
.order-create-form .modal-actions{margin-top:8px;padding-top:8px;gap:8px;border-top:1px solid #efedf6}
.order-create-form .modal-actions .btn{min-height:34px;padding:7px 12px;border-radius:9px;font-size:10px}
@media(max-width:620px){
.modal-wide:has(.order-create-form){width:calc(100vw - 16px);max-height:91vh}
.modal-wide:has(.order-create-form) .modal-header{padding:11px 13px 9px}
.order-create-form{padding:9px 10px 11px;gap:6px}
.order-create-form .form-grid:first-child{padding:9px;gap:7px}
.order-create-form .order-items-head{margin:7px 0 5px}
.order-create-form .order-line{padding:6px 7px;gap:5px}
.order-create-form .order-bottom-fields{padding:9px;gap:7px}
.order-create-form .order-summary{padding:8px 10px}
.order-create-form .modal-actions{margin-top:6px;padding-top:7px}
}

/* Create/Edit Order — violet full-screen reference layout */
.modal-wide:has(.order-create-form){
  width:min(780px,calc(100vw - 28px));
  max-height:min(92vh,940px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e8e3fa;
  border-radius:20px;
  background:#fff;
}
.modal-wide:has(.order-create-form) .modal-header{
  flex-shrink:0;
  padding:19px 22px;
  color:#fff;
  background:linear-gradient(115deg,#4930b8 0%,#654bd4 55%,#8068e8 100%);
  border:0;
}
.modal-wide:has(.order-create-form) .modal-header h2{
  color:#fff;
  font-size:19px;
  font-weight:800;
  letter-spacing:-.35px;
}
.modal-wide:has(.order-create-form) .modal-header p{
  color:#e7e0ff;
  font-size:11px;
  margin-top:4px;
}
.modal-wide:has(.order-create-form) .modal-header .icon-btn{
  color:#fff;
  background:#ffffff20;
  border:1px solid #ffffff30;
  border-radius:10px;
}
.order-create-form{
  min-height:0;
  flex:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:17px 20px 20px;
  gap:13px;
  background:#fff;
}
.order-create-form .form-grid:first-child{
  padding:15px;
  gap:12px;
  border:1px solid #e9e4fb;
  border-radius:16px;
  background:#faf9ff;
}
.order-create-form .field{gap:6px}
.order-create-form .field>span,
.order-create-form .field label{
  color:#4c456f;
  font-size:11px;
  font-weight:750;
}
.order-create-form .field input,
.order-create-form .field select,
.order-create-form .field textarea{
  min-height:40px;
  padding:9px 11px;
  border:1px solid #e4e0f0;
  border-radius:10px;
  background:#fff;
  color:#30334d;
  font-size:12px;
}
.order-create-form .field input:focus,
.order-create-form .field select:focus,
.order-create-form .field textarea:focus{
  outline:none;
  border-color:#8875df;
  box-shadow:0 0 0 3px #725bd51a;
}
.order-create-form .order-customer-search{grid-column:1/-1}
.order-create-form .order-items-head{
  margin:5px 0 2px;
  padding:13px 14px;
  align-items:center;
  border:1px solid #e9e4fb;
  border-radius:14px 14px 0 0;
  background:#f8f6ff;
}
.order-create-form .order-items-head h3{
  margin:0;
  color:#39305f;
  font-size:13px;
  font-weight:800;
}
.order-create-form .order-items-head p{
  margin:4px 0 0;
  color:#85809d;
  font-size:10px;
}
.order-create-form .order-items-head .btn{
  min-height:34px;
  padding:7px 10px;
  border-radius:9px;
  font-size:10px;
}
.order-create-form .order-line-list{
  gap:0;
  padding:0 11px;
  border:1px solid #e9e4fb;
  border-top:0;
  background:#fff;
}
.order-create-form .order-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) 76px 95px 30px;
  align-items:center;
  gap:10px;
  padding:12px 2px;
  border:0;
  border-bottom:1px solid #f0edf8;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
.order-create-form .order-line:last-child{border-bottom:0}
.order-create-form .line-product{min-width:0}
.order-create-form .line-product select{
  width:100%;
  min-height:38px;
  padding:8px 9px;
  border:1px solid #e7e2f3;
  border-radius:9px;
  background:#fff;
  font-size:11px;
}
.order-create-form .line-product small{
  display:block;
  margin-top:4px;
  color:#89849e;
  font-size:9px;
}
.order-create-form .line-qty label{
  display:grid;
  gap:4px;
  color:#77718f;
  font-size:9px;
  font-weight:700;
}
.order-create-form .line-qty input{
  width:100%;
  min-height:36px;
  padding:6px;
  border:1px solid #e7e2f3;
  border-radius:9px;
  text-align:center;
  font-size:11px;
}
.order-create-form .line-total{
  color:#5745b5;
  font-size:12px;
  font-weight:850;
  text-align:right;
}
.order-create-form .order-line .icon-btn{
  width:28px;
  height:28px;
}
.order-create-form .add-line-btn{
  width:100%;
  margin:0;
  padding:11px;
  border:1px dashed #bcb0ec;
  border-top:0;
  border-radius:0 0 14px 14px;
  background:#faf9ff;
  color:#6553c4;
  font-size:11px;
  font-weight:750;
}
.order-create-form .order-bottom-fields{
  margin-top:2px;
  padding:14px;
  gap:11px;
  border:1px solid #e9e4fb;
  border-radius:15px;
  background:#faf9ff;
}
.order-create-form .order-summary{
  margin-top:0;
  padding:14px 16px;
  gap:5px;
  border:1px solid #e5defb;
  border-radius:15px;
  background:linear-gradient(120deg,#f3efff,#fbfaff 65%,#f2f5ff);
  box-shadow:none;
}
.order-create-form .order-summary>div{
  padding:5px 0;
  color:#77718f;
  font-size:11px;
}
.order-create-form .order-summary b{
  color:#393451;
  font-size:12px;
  font-weight:750;
}
.order-create-form .order-summary .summary-total{
  margin-top:5px;
  padding-top:11px;
  border-top:1px solid #e5def6;
  color:#45377e;
}
.order-create-form .order-summary .summary-total b{
  color:#604bc3;
  font-size:18px;
  font-weight:850;
}
.order-create-form .order-summary .summary-due{
  margin-top:3px;
  padding-top:9px;
  border-top:1px solid #e8e3f4;
  color:#554b79;
  font-weight:750;
}
.order-create-form .modal-actions{
  position:sticky;
  bottom:-20px;
  z-index:3;
  margin:4px -20px -20px;
  padding:13px 20px max(13px,env(safe-area-inset-bottom));
  border-top:1px solid #eae6f5;
  background:#fff;
  box-shadow:0 -5px 18px #4030800c;
}
.order-create-form .modal-actions .btn{
  min-height:42px;
  border-radius:11px;
  font-size:12px;
  font-weight:750;
}
@media(max-width:620px){
  .modal-wide:has(.order-create-form){
    width:100vw;
    height:100dvh;
    max-height:100dvh;
    min-height:100dvh;
    border:0;
    border-radius:0;
  }
  .modal-wide:has(.order-create-form) .modal-header{
    padding:15px 16px;
    padding-top:max(15px,env(safe-area-inset-top));
  }
  .modal-wide:has(.order-create-form) .modal-header h2{font-size:17px}
  .order-create-form{
    padding:12px 12px 16px;
    gap:10px;
  }
  .order-create-form .form-grid:first-child{
    padding:11px;
    gap:9px;
    border-radius:13px;
  }
  .order-create-form .field input,
  .order-create-form .field select,
  .order-create-form .field textarea{
    min-height:38px;
    font-size:12px;
  }
  .order-create-form .order-items-head{
    padding:11px;
    gap:7px;
  }
  .order-create-form .order-items-head h3{font-size:12px}
  .order-create-form .order-items-head p{font-size:9px}
  .order-create-form .order-items-head .btn{
    min-height:31px;
    padding:6px 8px;
    font-size:9px;
  }
  .order-create-form .order-line{
    grid-template-columns:minmax(0,1fr) 58px 76px 27px;
    gap:6px;
    padding:10px 1px;
  }
  .order-create-form .line-product select{
    min-height:36px;
    padding:6px;
    font-size:10px;
  }
  .order-create-form .line-qty input{
    min-height:34px;
    font-size:10px;
  }
  .order-create-form .line-total{font-size:10px}
  .order-create-form .order-bottom-fields{
    padding:11px;
    gap:9px;
  }
  .order-create-form .order-summary{padding:11px 12px}
  .order-create-form .modal-actions{
    bottom:-16px;
    margin:3px -12px -16px;
    padding:11px 12px max(11px,env(safe-area-inset-bottom));
  }
  .order-create-form .modal-actions .btn{
    min-height:40px;
    padding:8px 12px;
    font-size:11px;
  }
}

/* Premium Purple Create Order — compact reference match */
.modal-wide:has(.order-create-form){
  width:min(720px,calc(100vw - 24px));
  max-height:90vh;
  border:1px solid #e8e2f8;
  border-radius:17px;
  background:#fff;
}
.modal-wide:has(.order-create-form) .modal-header{
  padding:13px 17px;
  background:linear-gradient(115deg,#4930b8 0%,#6045cf 55%,#765fe0 100%);
}
.modal-wide:has(.order-create-form) .modal-header h2{
  font-size:16px;
  font-weight:800;
}
.modal-wide:has(.order-create-form) .modal-header p{
  margin-top:2px;
  font-size:10px;
}
.modal-wide:has(.order-create-form) .modal-header .icon-btn{
  width:30px;
  height:30px;
  border-radius:9px;
}
.modal-wide:has(.order-create-form) .modal-header svg{
  width:16px;
  height:16px;
}
.order-create-form{
  padding:11px 14px 0;
  gap:8px;
  background:#fff;
}
.order-create-form .form-grid:first-child{
  padding:10px;
  gap:7px 9px;
  border:1px solid #e9e4f7;
  border-radius:12px;
  background:#faf9ff;
}
.order-create-form .field{gap:3px}
.order-create-form .field>span,
.order-create-form .field label{
  font-size:10px;
  color:#514775;
}
.order-create-form .field input,
.order-create-form .field select,
.order-create-form .field textarea{
  min-height:33px;
  padding:6px 8px;
  border-radius:8px;
  font-size:11px;
}
.order-create-form .order-items-head{
  margin:2px 0 0;
  padding:9px 11px;
  gap:7px;
  border:1px solid #e9e4f7;
  border-radius:11px;
  background:#f8f6ff;
}
.order-create-form .order-items-head h3{font-size:11px}
.order-create-form .order-items-head p{
  margin-top:2px;
  font-size:9px;
}
.order-create-form .order-items-head .btn{
  min-height:28px;
  padding:5px 8px;
  border-radius:8px;
  font-size:9px;
}
.order-create-form .order-items-head svg,
.order-create-form .add-line-btn svg{
  width:13px;
  height:13px;
}
.order-create-form .order-line-list{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:0;
  border:0;
  background:transparent;
}
.order-create-form .order-line{
  grid-template-columns:minmax(0,1fr) 54px 76px 26px;
  gap:6px;
  padding:7px;
  border:1px solid #eae6f5;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 4px #4930b80a;
}
.order-create-form .line-product select{
  min-height:32px;
  padding:5px 7px;
  border-radius:7px;
  font-size:10px;
}
.order-create-form .line-product small{
  margin-top:2px;
  font-size:8px;
}
.order-create-form .line-qty label{
  gap:2px;
  font-size:8px;
}
.order-create-form .line-qty input{
  min-height:29px;
  padding:4px;
  border-radius:7px;
  font-size:10px;
}
.order-create-form .line-total{font-size:10px}
.order-create-form .order-line .icon-btn{
  width:25px;
  height:25px;
  border-radius:7px;
  color:#8069cf;
  background:#f5f1ff;
}
.order-create-form .order-line .icon-btn svg{
  width:13px;
  height:13px;
}
.order-create-form .add-line-btn{
  margin:0;
  padding:7px;
  border:1px dashed #c9bbed;
  border-radius:9px;
  background:#faf8ff;
  color:#6550bf;
  font-size:10px;
}
.order-create-form .order-bottom-fields{
  margin-top:2px;
  padding:9px;
  gap:7px 9px;
  border:1px solid #e9e4f7;
  border-radius:11px;
  background:#faf9ff;
}
.order-create-form .order-summary{
  margin-top:0;
  padding:9px 12px;
  gap:3px;
  border:1px solid #e5def7;
  border-radius:11px;
  background:linear-gradient(115deg,#f2edff,#fbfaff 62%,#f2f5ff);
}
.order-create-form .order-summary>div{
  padding:3px 0;
  font-size:10px;
}
.order-create-form .order-summary b{font-size:11px}
.order-create-form .order-summary .summary-total{
  margin-top:3px;
  padding-top:6px;
}
.order-create-form .order-summary .summary-total b{
  font-size:15px;
  color:#604bc3;
}
.order-create-form .order-summary .summary-due{
  margin-top:2px;
  padding-top:5px;
}
.order-create-form .modal-actions{
  position:sticky;
  bottom:0;
  z-index:4;
  margin:4px -14px 0;
  padding:8px 14px max(8px,env(safe-area-inset-bottom));
  gap:7px;
  border-top:1px solid #eae6f5;
  background:#fff;
  box-shadow:0 -4px 14px #4030800b;
}
.order-create-form .modal-actions .btn{
  min-height:35px;
  padding:7px 11px;
  border-radius:9px;
  font-size:10px;
}
@media(max-width:620px){
  .modal-wide:has(.order-create-form){
    width:100vw;
    height:100dvh;
    max-height:100dvh;
    min-height:100dvh;
    border:0;
    border-radius:0;
  }
  .modal-wide:has(.order-create-form) .modal-header{
    padding:11px 13px;
    padding-top:max(11px,env(safe-area-inset-top));
  }
  .modal-wide:has(.order-create-form) .modal-header h2{font-size:15px}
  .order-create-form{
    padding:8px 10px 0;
    gap:6px;
  }
  .order-create-form .form-grid:first-child{
    padding:8px;
    gap:6px 7px;
    border-radius:10px;
  }
  .order-create-form .field input,
  .order-create-form .field select,
  .order-create-form .field textarea{
    min-height:31px;
    padding:5px 7px;
    font-size:10px;
  }
  .order-create-form .order-items-head{
    padding:8px;
    gap:5px;
  }
  .order-create-form .order-line{
    grid-template-columns:minmax(0,1fr) 48px 67px 24px;
    gap:5px;
    padding:6px;
  }
  .order-create-form .line-product select{
    min-height:30px;
    padding:4px 5px;
    font-size:9px;
  }
  .order-create-form .line-qty input{
    min-height:27px;
    font-size:9px;
  }
  .order-create-form .order-bottom-fields{
    padding:8px;
    gap:6px 7px;
  }
  .order-create-form .order-summary{padding:8px 10px}
  .order-create-form .modal-actions{
    margin:4px -10px 0;
    padding:8px 10px max(8px,env(safe-area-inset-bottom));
  }
  .order-create-form .modal-actions .btn{
    min-height:34px;
    padding:6px 9px;
    font-size:10px;
  }
}

/* ===== Create / Edit Order — reference layout ===== */
.modal-backdrop:has(.order-create-form){
  padding:0;align-items:stretch;justify-content:center;
  background:#fff;backdrop-filter:none;overflow:hidden
}
.modal-wide:has(.order-create-form){
  width:100%;max-width:760px;height:100dvh;max-height:100dvh;
  border:0;border-radius:0;display:flex;flex-direction:column;
  overflow:hidden;box-shadow:none;background:#fff
}
.modal-wide:has(.order-create-form)>.modal-header{display:none}
.order-create-form{
  flex:1;min-height:0;display:flex;flex-direction:column;
  gap:0;padding:0;overflow:hidden;background:#f7f7fb
}
.order-reference-header{
  flex:0 0 auto;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;
  align-items:center;gap:12px;padding:calc(15px + env(safe-area-inset-top)) 18px 25px;
  color:#fff;background:linear-gradient(135deg,#4930bd 0%,#6548df 55%,#7859e9 100%)
}
.order-reference-header h2{margin:0;color:#fff;font-size:19px;font-weight:750;letter-spacing:-.35px}
.order-reference-header p{margin:4px 0 0;color:#e8e2ff;font-size:11px}
.order-reference-nav{
  width:38px;height:38px;display:grid;place-items:center;border:1px solid #ffffff45;
  border-radius:12px;background:#ffffff18;color:#fff;cursor:pointer
}
.order-reference-scroll{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:14px 14px 20px;background:#f7f7fb
}
.order-reference-card{
  margin:0 0 12px;padding:15px;background:#fff;border:1px solid #eceaf4;
  border-radius:15px;box-shadow:0 2px 8px #25204408
}
.order-reference-section-head{
  display:flex;align-items:center;gap:10px;margin-bottom:13px;min-width:0
}
.order-reference-section-head>div{flex:1;min-width:0}
.order-reference-section-head h3{margin:0;color:#24213a;font-size:13px;font-weight:750}
.order-reference-section-head p{margin:3px 0 0;color:#9290a1;font-size:10px;line-height:1.35}
.order-reference-icon{
  width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;
  color:#5b3fd8;background:#f0edff;border-radius:11px
}
.order-reference-fields{
  display:grid;grid-template-columns:1fr 1fr;gap:10px 11px
}
.order-reference-fields .field{min-width:0;gap:5px}
.order-reference-fields .field>span:first-child,
.order-reference-picker .field>span:first-child{
  color:#625f70;font-size:10px;font-weight:650
}
.order-reference-fields input,
.order-reference-picker select,
.order-reference-summary-field input,
.order-reference-summary-field select{
  width:100%;min-width:0;height:39px;padding:0 11px;
  border:1px solid #e7e5ee;border-radius:9px;background:#fff;
  color:#29263b;font-size:12px;outline:none
}
.order-reference-fields input:focus,
.order-reference-picker select:focus,
.order-reference-summary-field input:focus,
.order-reference-summary-field select:focus{
  border-color:#8069e5;box-shadow:0 0 0 3px #5b3fd812
}
.order-reference-fields .field.wide{grid-column:1/-1}
.order-reference-fields .order-customer-search{position:relative;min-width:0}
.order-reference-fields .order-customer-search .field{display:flex;flex-direction:column}
.order-reference-input-icon{
  display:flex;align-items:center;gap:8px;height:39px;padding:0 10px;
  border:1px solid #e7e5ee;border-radius:9px;color:#8a83a7;background:#fff
}
.order-reference-input-icon input{height:36px;padding:0;border:0;box-shadow:none!important}
.order-reference-new-product{
  flex:0 0 auto;display:flex;align-items:center;gap:4px;padding:7px 9px;
  border:1px solid #d9d2fb;border-radius:8px;background:#fff;color:#5b3fd8;
  font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer
}
.order-reference-picker{display:flex;flex-direction:column;gap:11px}
.order-reference-picker .field{display:flex;flex-direction:column;gap:5px}
.order-reference-picker-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.order-reference-mini-label{display:block;margin-bottom:6px;color:#777386;font-size:10px;font-weight:650}
.order-reference-stepper{
  display:flex;align-items:center;height:37px;border:1px solid #e7e5ee;
  border-radius:9px;overflow:hidden;background:#fff
}
.order-reference-stepper button{
  width:36px;height:35px;display:grid;place-items:center;border:0;
  background:#f5f2ff;color:#5b3fd8;font-size:19px;cursor:pointer
}
.order-reference-stepper input{
  width:43px;height:35px;padding:0;border:0;border-radius:0;
  text-align:center;font-size:13px;font-weight:700;color:#29263b;
  background:#fff;outline:none
}
.order-reference-picker-price{text-align:right}
.order-reference-picker-price b{display:block;color:#28243b;font-size:15px}
.order-reference-add-product{
  width:100%;height:39px;display:flex;align-items:center;justify-content:center;
  gap:7px;border:1px dashed #b9adef;border-radius:9px;background:#f7f5ff;
  color:#5b3fd8;font-size:11px;font-weight:750;cursor:pointer
}
.order-reference-add-product:disabled{opacity:.45;cursor:not-allowed}
.order-reference-empty{
  min-height:58px;display:flex;align-items:center;justify-content:center;
  gap:8px;color:#9995a8;font-size:11px
}
.order-reference-item-list{display:flex;flex-direction:column;gap:8px}
.order-reference-item{
  display:flex;align-items:center;gap:10px;padding:9px;
  border:1px solid #efedf4;border-radius:11px;background:#fff
}
.order-reference-item-icon{
  width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;
  border-radius:10px;background:#f2efff;color:#5b3fd8
}
.order-reference-item-info{flex:1;min-width:0}
.order-reference-item-info b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29263b;font-size:11px}
.order-reference-item-info small{display:block;margin-top:3px;color:#8c899a;font-size:10px}
.order-reference-item>strong{color:#29263b;font-size:12px;white-space:nowrap}
.order-reference-remove{
  width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;
  border:0;border-radius:8px;background:#fff1f1;color:#d34e58;cursor:pointer
}
.order-reference-summary-card{padding:0;overflow:hidden}
.order-reference-summary-card>.order-reference-section-head{
  margin:0;padding:13px 15px;background:#f3f0ff;border-bottom:1px solid #ebe6ff
}
.order-reference-summary-lines{padding:12px 15px}
.order-reference-summary-lines>div:not(.order-reference-summary-field){
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:6px 0;color:#777386;font-size:11px
}
.order-reference-summary-lines>div b{color:#302c43;font-size:12px}
.order-reference-summary-field{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,44%);
  align-items:center;gap:12px;padding:6px 0
}
.order-reference-summary-field label{color:#777386;font-size:10px;font-weight:600}
.order-reference-summary-field input,
.order-reference-summary-field select{height:34px;font-size:11px}
.order-reference-summary-total{
  margin-top:5px;padding-top:10px!important;border-top:1px solid #eeecf3;
  color:#4c4860!important
}
.order-reference-summary-total b{font-size:14px!important}
.order-reference-balance{
  margin:8px -3px 0;padding:12px!important;border:1px solid #e5defd;
  border-radius:10px;background:#f5f2ff;color:#5140a5!important;font-weight:750
}
.order-reference-balance b{color:#5139c2!important;font-size:15px!important}
.order-reference-footer{
  flex:0 0 auto;display:grid;grid-template-columns:.85fr 1.4fr;gap:10px;
  padding:11px 14px calc(11px + env(safe-area-inset-bottom));
  border-top:1px solid #eceaf2;background:#fff
}
.order-reference-footer button{
  min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;
  border-radius:10px;font-size:12px;font-weight:750;cursor:pointer
}
.order-reference-cancel{border:1px solid #dcd9e7;background:#fff;color:#514d61}
.order-reference-submit{border:1px solid #5b3fd8;background:#5b3fd8;color:#fff}
.order-reference-submit:hover{background:#4930bd}
.order-create-form .order-customer-suggestions{
  position:absolute;z-index:10;top:100%;left:0;right:0;
  border:1px solid #e8e4f3;border-radius:10px;background:#fff;
  box-shadow:0 8px 22px #24194b18
}
.order-create-form .order-customer-selected,
.order-create-form .order-customer-hint{font-size:10px}
@media(min-width:600px){
  .modal-backdrop:has(.order-create-form){padding:18px;background:#17132b88;backdrop-filter:blur(4px)}
  .modal-wide:has(.order-create-form){
    width:min(100%,620px);height:min(94dvh,900px);max-height:94dvh;
    border-radius:18px;overflow:hidden
  }
  .order-reference-header{padding:18px 22px 23px}
  .order-reference-scroll{padding:16px 20px}
  .order-reference-card{padding:17px}
  .order-reference-footer{padding:12px 20px}
}
@media(max-width:380px){
  .order-reference-scroll{padding:10px}
  .order-reference-card{padding:12px;margin-bottom:9px}
  .order-reference-fields{gap:8px}
  .order-reference-fields input{padding:0 8px;font-size:11px}
  .order-reference-section-head{gap:8px}
  .order-reference-new-product{padding:6px;font-size:9px}
}

/* Premium compact customer detail controls */
.order-reference-fields .order-reference-control{
  min-width:0;height:42px;display:flex;align-items:center;gap:10px;
  padding:0 11px;border:1px solid #e9e6f2;border-radius:10px;
  background:#faf9ff;color:#725bd0;transition:border-color .18s,background .18s,box-shadow .18s
}
.order-reference-fields .order-reference-control.wide{grid-column:1/-1}
.order-reference-fields .order-reference-control>svg{
  flex:0 0 17px;width:17px;height:17px;padding:0;
  color:#6a51cf
}
.order-reference-fields .order-reference-control input{
  flex:1;min-width:0;width:100%;height:40px;padding:0;
  border:0!important;border-radius:0;background:transparent;
  color:#29263b;font-size:12px;box-shadow:none!important;outline:none
}
.order-reference-fields .order-reference-control input::placeholder{
  color:#a09bad;opacity:1
}
.order-reference-fields .order-reference-control:focus-within{
  border-color:#9b88e8;background:#fff;
  box-shadow:0 0 0 3px #5b3fd812
}
.order-reference-fields .order-reference-control input[type="date"]{
  color:#777386;color-scheme:light
}
.order-reference-card:has(.order-reference-control) .order-reference-section-head{
  margin-bottom:12px
}
.order-reference-card:has(.order-reference-control){
  padding-bottom:14px
}

/* Final compact customer details layout */
.order-reference-fields{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px 9px
}
.order-reference-fields .order-reference-control{
  height:38px;gap:8px;padding:0 10px;
  border:1px solid #ebe8f4;border-radius:9px;
  background:#faf9ff
}
.order-reference-fields .order-reference-control.wide{
  grid-column:1/-1
}
.order-reference-fields .order-reference-control>svg{
  width:16px;height:16px;flex-basis:16px;color:#7058d1
}
.order-reference-fields .order-reference-control input{
  height:36px;font-size:11px
}
.order-reference-fields .order-reference-control input::placeholder{
  color:#9995a7
}
.order-reference-fields .order-reference-control.order-reference-date{
  position:relative;gap:7px
}
.order-reference-fields .order-reference-date>span{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:#9995a7;font-size:10px
}
.order-reference-fields .order-reference-date input[type="date"]{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;cursor:pointer
}
.order-reference-fields .order-reference-date:has(input[type="date"]:valid)>span{
  color:#5140a5
}
.order-reference-card:has(.order-reference-control){
  padding:13px 14px
}
.order-reference-card:has(.order-reference-control) .order-reference-section-head{
  margin-bottom:10px
}
@media(max-width:380px){
  .order-reference-fields{gap:7px}
  .order-reference-fields .order-reference-control{height:36px;padding:0 8px;gap:7px}
  .order-reference-fields .order-reference-control input{font-size:10px}
  .order-reference-fields .order-reference-date>span{font-size:9px}
}

/* Swap Customer Details card and input backgrounds */
.order-reference-card:has(.order-reference-control){
  background:#faf9ff
}
.order-reference-fields .order-reference-control{
  background:#fff
}


/* Customer Details final visual polish */
.order-reference-scroll > .order-reference-card:first-of-type .order-reference-icon{
  width:38px;
  height:38px;
  min-width:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#5b3fd8;
  color:#fff;
  box-shadow:0 3px 8px #5b3fd826;
}
.order-reference-fields .order-reference-control input::placeholder{
  color:#625a76;
  opacity:1;
  font-weight:500;
}
.order-reference-fields .order-reference-date>span{
  color:#625a76;
  font-weight:500;
}


/* Premium Products in this Order picker */
.order-reference-card:has(.order-reference-picker){
  background:#faf9ff
}
.order-reference-picker{
  gap:10px
}
.order-reference-picker .field{
  gap:5px
}
.order-reference-picker .field>span:first-child{
  color:#625a76;
  font-size:10px;
  font-weight:650
}
.order-reference-picker select{
  height:39px;
  padding:0 11px;
  border:1px solid #e9e6f2;
  border-radius:9px;
  background:#fff;
  color:#29263b;
  font-size:11px;
  font-weight:500
}
.order-reference-picker select:focus{
  border-color:#9b88e8;
  box-shadow:0 0 0 3px #5b3fd812
}
.order-reference-picker-bottom{
  align-items:flex-end;
  gap:10px
}
.order-reference-mini-label{
  color:#625a76;
  font-size:10px;
  font-weight:650
}
.order-reference-stepper{
  height:38px;
  border:1px solid #e9e6f2;
  border-radius:9px;
  background:#fff
}
.order-reference-stepper button{
  width:34px;
  height:36px;
  background:#f2efff;
  color:#5b3fd8
}
.order-reference-stepper input{
  width:48px;
  height:36px;
  font-size:13px;
  font-weight:700;
  background:#fff;
  color:#29263b
}
.order-reference-picker-price{
  min-width:100px;
  padding:0 2px 2px 0;
  text-align:right
}
.order-reference-picker-price b{
  display:block;
  color:#5b3fd8;
  font-size:17px;
  font-weight:800;
  line-height:1.25
}
.order-reference-picker-price small{
  display:block;
  margin-top:3px;
  color:#777386;
  font-size:9px;
  font-weight:500
}
.order-reference-add-product{
  height:40px;
  border:1px solid #5b3fd8;
  border-radius:9px;
  background:#5b3fd8;
  color:#fff;
  font-size:11px;
  font-weight:750;
  transition:background .15s,border-color .15s
}
.order-reference-add-product:disabled{
  border-color:#c9c2df;
  background:#e8e5f0;
  color:#898398;
  opacity:1
}
.order-reference-add-product:not(:disabled):active{
  background:#4930bd;
  border-color:#4930bd
}


/* Fast product autocomplete for large catalogues */
.order-product-search{position:relative;display:flex;flex-direction:column;gap:5px;min-width:0}
.order-product-search>label{
  color:#625a76;font-size:10px;font-weight:650
}
.order-product-search-control{
  min-width:0;height:39px;display:flex;align-items:center;gap:9px;
  padding:0 10px;border:1px solid #e9e6f2;border-radius:9px;
  background:#fff;color:#7058d1
}
.order-product-search-control>svg{flex:0 0 17px;color:#7058d1}
.order-product-search-control input{
  flex:1;min-width:0;width:100%;height:36px;padding:0;
  border:0!important;outline:none;background:transparent;
  color:#29263b;font-size:11px;box-shadow:none!important
}
.order-product-search-control input::placeholder{color:#8f899f;opacity:1}
.order-product-search-control:focus-within{
  border-color:#9b88e8;box-shadow:0 0 0 3px #5b3fd812
}
.order-product-suggestions{
  position:absolute;z-index:20;top:100%;left:0;right:0;
  max-height:240px;overflow-y:auto;margin-top:5px;
  border:1px solid #e8e4f3;border-radius:10px;background:#fff;
  box-shadow:0 8px 22px #24194b18
}
.order-product-suggestion{
  width:100%;min-height:48px;display:flex;align-items:center;gap:9px;
  padding:7px 10px;border:0;border-bottom:1px solid #f0edf7;
  background:#fff;text-align:left;color:#5b3fd8;cursor:pointer
}
.order-product-suggestion:last-of-type{border-bottom:0}
.order-product-suggestion:active{background:#f5f2ff}
.order-product-suggestion-icon{
  width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;
  border-radius:9px;background:#f0edff;color:#5b3fd8
}
.order-product-suggestion-info{
  flex:1;min-width:0;display:flex;flex-direction:column;gap:3px
}
.order-product-suggestion-info b{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#302b45;font-size:11px;font-weight:700
}
.order-product-suggestion-info small{color:#777386;font-size:9px}
.order-product-suggestion>svg{flex:0 0 15px}
.order-product-no-results,.order-product-more{
  padding:10px;color:#898398;font-size:10px;text-align:center
}
.order-product-more{border-top:1px solid #f0edf7;background:#faf9ff}
.order-product-selected{
  display:flex;align-items:center;gap:6px;margin-top:2px;
  color:#34865a;font-size:10px;font-weight:650
}
.order-product-selected span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-product-selected button{
  padding:3px 7px;border:1px solid #d9d2fb;border-radius:7px;
  background:#fff;color:#5b3fd8;font-size:9px;font-weight:700
}

/* Products in this Order icon — match Customer Details */
.order-reference-scroll > .order-reference-card:nth-of-type(2) .order-reference-icon{
  width:38px;
  height:38px;
  min-width:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#5b3fd8;
  color:#fff;
  box-shadow:0 3px 8px #5b3fd826;
}

/* Product search: remove separate label and improve placeholder visibility */
.order-product-search>label{display:none}
.order-product-search-control input::placeholder{
  color:#625a76;
  opacity:1;
  font-weight:550;
}

/* Premium Order Summary */
.order-reference-summary-card{
  border:1px solid #e9e4f8;
  border-radius:13px;
  background:#fff;
  box-shadow:0 3px 12px #30205b08;
}
.order-reference-summary-card>.order-reference-section-head{
  padding:14px 15px;
  background:linear-gradient(110deg,#f2efff,#faf9ff);
  border-bottom:1px solid #eae5fb;
}
.order-reference-summary-lines{
  padding:12px 14px 14px;
}
.order-reference-summary-lines>div:not(.order-reference-summary-field){
  min-height:31px;
  padding:7px 2px;
  color:#686477;
  font-size:11px;
  font-weight:550;
}
.order-reference-summary-lines>div b{
  color:#302b43;
  font-size:12px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
.order-reference-summary-field{
  grid-template-columns:minmax(0,1fr) minmax(125px,46%);
  gap:10px;
  padding:7px 0;
}
.order-reference-summary-field label{
  color:#514b65;
  font-size:11px;
  font-weight:650;
}
.order-reference-summary-field input,
.order-reference-summary-field select{
  width:100%;
  height:38px;
  padding:0 10px;
  border:1px solid #e6e1f1;
  border-radius:9px;
  background:#faf9ff;
  color:#302b43;
  font-size:12px;
  font-weight:650;
  outline:none;
  box-shadow:none;
}
.order-reference-summary-field input:focus,
.order-reference-summary-field select:focus{
  border-color:#9b88e8;
  background:#fff;
  box-shadow:0 0 0 3px #5b3fd812;
}
.order-reference-summary-field input:disabled{
  color:#777386;
  background:#f4f2f8;
  opacity:1;
}
.order-reference-summary-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:9px;
  padding:13px 12px!important;
  border:1px solid #e8e2fb;
  border-radius:10px;
  background:#faf9ff;
  color:#40375f!important;
  font-size:12px!important;
  font-weight:750;
}
.order-reference-summary-total b{
  color:#5b3fd8!important;
  font-size:17px!important;
  font-weight:800!important;
  font-variant-numeric:tabular-nums;
}
.order-reference-balance{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:48px;
  margin:9px 0 0;
  padding:11px 13px!important;
  border:1px solid #dcd3ff;
  border-radius:10px;
  background:linear-gradient(105deg,#f0ecff,#f8f6ff);
  color:#5140a5!important;
  font-size:12px!important;
  font-weight:750;
}
.order-reference-balance b{
  color:#5139c2!important;
  font-size:17px!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums;
}


/* Order Summary compact header and filled icon */
.order-reference-summary-card>.order-reference-section-head{
  min-height:0;
  padding:9px 13px;
  gap:9px;
}
.order-reference-summary-card>.order-reference-section-head .order-reference-icon{
  width:35px;
  height:35px;
  min-width:35px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:#5b3fd8;
  color:#fff;
  box-shadow:0 3px 8px #5b3fd826;
}
.order-reference-summary-card>.order-reference-section-head p{
  margin-top:2px;
}


/* Compact, high-contrast Order Summary fields */
.order-reference-summary-lines{
  background:#faf9ff;
}
.order-reference-summary-field{
  padding:5px 0;
}
.order-reference-summary-field input,
.order-reference-summary-field select{
  height:33px;
  min-height:33px;
  padding:0 9px;
  border:1px solid #dcd6ed;
  border-radius:8px;
  background:#fff;
  color:#29243b;
  font-size:12px;
  font-weight:650;
  box-shadow:0 1px 2px #24194b08;
}
.order-reference-summary-field input:focus,
.order-reference-summary-field select:focus{
  border-color:#8c76e2;
  background:#fff;
  box-shadow:0 0 0 3px #5b3fd812;
}
.order-reference-summary-field input:disabled{
  background:#f1eff7;
  border-color:#e4e0ed;
  color:#686477;
}
.order-reference-summary-total{
  background:#fff;
  border-color:#e5def8;
}
.order-reference-balance{
  background:#eeeaff;
  border-color:#d9d0ff;
}

/* Match Order Summary total amount widths to the input fields */
.order-reference-summary-total,
.order-reference-balance{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.order-reference-summary-total b,
.order-reference-balance b{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  box-sizing:border-box;
  width:46%;
  min-width:125px;
  height:33px;
  padding:0 9px;
  border:1px solid #dcd6ed;
  border-radius:8px;
  background:#fff;
  text-align:right;
}

/* Order Summary: one card, clean inline amount rows */
.order-reference-summary-total,
.order-reference-balance{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:34px;
  padding:7px 2px;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
.order-reference-summary-total b,
.order-reference-balance b{
  display:inline;
  width:auto;
  min-width:0;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:right;
}
.order-reference-summary-total{
  border-top:1px solid #e9e4f3;
}
.order-reference-balance{
  border-top:1px solid #e9e4f3;
}

/* Highlight only the Pending amount value */
.order-reference-balance b{
  color:#c47a16 !important;
}


/* Existing customer suggestion by contact number */
.order-phone-search{position:relative;min-width:0}
.order-phone-suggestion{position:absolute;z-index:12;top:calc(100% + 5px);left:0;right:0;margin:0}

/* Compact premium Create Order header */
.order-reference-header{
  padding:calc(10px + env(safe-area-inset-top)) 15px 16px;
  border-radius:0 0 22px 22px;
  box-shadow:0 5px 14px rgba(49,34,112,.13);
}
.order-reference-header h2{font-size:17px;letter-spacing:-.3px}
.order-reference-header p{margin-top:3px;font-size:10px}
.order-reference-nav{width:35px;height:35px;border-radius:11px}

@media(min-width:600px){
  .order-reference-header{padding:12px 20px 17px}
}

/* Downward dipping Create Order header */
.order-reference-header{
  border-radius:0;
  clip-path:ellipse(110% 100% at 50% 0%);
  padding-bottom:24px;
}

/* Smooth downward-curving bottom corners */
.order-reference-header{
  clip-path:none;
  border-radius:0 0 50% 50% / 0 0 18px 18px;
  padding:calc(10px + env(safe-area-inset-top)) 15px 16px;
  overflow:hidden;
}

/* Outward lower corner curves on Create Order header */
.order-reference-header{
  position:relative;
  z-index:1;
  overflow:visible;
  clip-path:none;
  border-radius:0;
}
.order-reference-header::before,
.order-reference-header::after{
  content:"";
  position:absolute;
  bottom:-12px;
  width:28px;
  height:24px;
  background:inherit;
  pointer-events:none;
}
.order-reference-header::before{
  left:0;
  border-radius:0 0 100% 0;
}
.order-reference-header::after{
  right:0;
  border-radius:0 0 0 100%;
}

/* Wider, gradually tapered downward header corners */
.order-reference-header::before,
.order-reference-header::after{
  bottom:-18px;
  width:48px;
  height:36px;
}
.order-reference-header::before{
  border-radius:0 0 100% 0;
}
.order-reference-header::after{
  border-radius:0 0 0 100%;
}

/* Clean rectangular Create Order header */
.order-reference-header{
  border-radius:0;
  clip-path:none;
  overflow:hidden;
  box-shadow:none;
}
.order-reference-header::before,
.order-reference-header::after{
  content:none;
  display:none;
}

/* Premium compact Order Details — scoped to this screen only */
.modal:has(.reference-detail){
  width:min(100%,620px);
  max-height:calc(100dvh - 20px);
  overflow-x:hidden;
  overflow-y:auto;
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 45px #21164b26;
}
.modal:has(.reference-detail)>.modal-header{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 16px;
  background:linear-gradient(125deg,#4930bd 0%,#6044d5 58%,#7659e5 100%);
  border:0;
}
.modal:has(.reference-detail) .modal-header>div:first-child{
  min-width:0;
  flex:1;
}
.modal:has(.reference-detail) .modal-header h2{
  color:#fff;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.25px;
}
.modal:has(.reference-detail) .modal-header p{
  margin-top:3px;
  color:#e6e0ff;
  font-size:10px;
}
.modal:has(.reference-detail) .modal-header>.icon-btn{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff40;
  border-radius:11px;
  background:#ffffff18;
  color:#fff;
}
.order-modal-title{gap:8px}
.modal:has(.reference-detail) .order-modal-title .delivery-badge{
  padding:5px 9px;
  border:1px solid #ffffff42;
  border-radius:20px;
  background:#ffffff20;
  color:#fff;
  font-size:9px;
  font-weight:750;
}
.reference-detail{
  padding:10px 14px 14px;
  color:#302b49;
}
.reference-detail .reference-customer-link{
  margin:2px 0 11px;
  padding:10px 12px;
  border-color:#eeebf8;
  border-radius:13px;
  box-shadow:0 2px 8px #29204408;
}
.reference-detail .reference-customer-link .reference-avatar{
  width:39px;
  height:39px;
  border-radius:12px;
  background:#eeeaff;
  color:#6048cf;
  box-shadow:none;
}
.reference-detail .reference-customer-name{font-size:13px}
.reference-detail .reference-customer-phone{font-size:10px}
.reference-detail .reference-customer-phone svg{color:#6b55d9}
.reference-delivery{
  margin:0 0 12px;
  padding:12px;
  border:1px solid #ece8fa;
  border-radius:13px;
  background:#faf9ff;
}
.reference-section-title{margin-bottom:11px}
.reference-section-title h3,
.reference-payment h3{
  font-size:12px;
  font-weight:800;
}
.reference-delivery .delivery-step{flex-basis:68px}
.reference-delivery .delivery-step .step-circle{
  width:26px;
  height:26px;
}
.reference-delivery .delivery-connector{margin-top:12px}
.reference-delivery-date{
  padding-top:9px;
  margin-top:7px;
  font-size:10px;
}
.reference-items{
  padding:2px 0 10px;
}
.reference-items .reference-section-title{margin-bottom:5px}
.reference-item{
  gap:9px;
  padding:9px 1px;
}
.reference-item-icon,
.reference-payment-icon{
  width:33px;
  height:33px;
  border-radius:10px;
}
.reference-item-icon{
  background:#edf2ff;
  color:#4772d5;
}
.reference-item-info b,
.reference-payment-info b{font-size:10px}
.reference-item-info small,
.reference-payment-info small{font-size:9px;margin-top:3px}
.reference-item>strong,
.reference-payment-row>strong{font-size:10px}
.reference-totals{
  gap:8px;
  margin-top:5px;
  padding:11px 10px;
  border:1px solid #efedf6;
  border-radius:12px;
  background:#faf9fd;
}
.reference-totals>div{font-size:10px}
.reference-totals b{font-size:10px}
.reference-totals .reference-pending{
  padding-top:9px;
  border-top:1px dashed #e4dfef;
}
.reference-payment{
  padding:12px 0 5px;
}
.reference-payment-row{gap:9px;padding:7px 0}
.reference-payment-icon{
  background:#e8f7f0;
  color:#16866c;
}
.reference-detail .order-note{
  margin:7px 0 10px;
  padding:10px 11px;
  border:1px solid #eeeafa;
  font-size:10px;
}
.reference-detail .document-actions{
  gap:7px;
  padding:10px 0;
}
.reference-detail .document-actions .btn{
  min-height:37px;
  border-radius:10px;
  font-size:9px;
}
.reference-detail .detail-footer{
  gap:7px;
  padding:10px 0 0;
}
.reference-detail .detail-footer .btn{
  min-height:37px;
  border-radius:10px;
  font-size:10px;
}
@media(max-width:620px){
  .modal:has(.reference-detail){
    width:100%;
    max-height:calc(100dvh - 8px);
    border-radius:16px 16px 0 0;
  }
  .modal:has(.reference-detail)>.modal-header{
    padding:13px 14px;
  }
  .reference-detail{padding:9px 12px 12px}
  .reference-detail .detail-footer .btn{
    padding:7px 8px;
    font-size:9px;
  }
}

/* Order Details — reference image redesign */
.modal-backdrop:has(.reference-detail){
  position:fixed;inset:0;padding:0;align-items:stretch;
  background:#17132b70;backdrop-filter:blur(3px);
}
.modal:has(.reference-detail){
  width:100%;max-width:680px;height:100%;max-height:100dvh;
  margin:0 auto;border:0;border-radius:0;overflow-y:auto;
  background:#f5f3ff;box-shadow:none;
  scrollbar-width:thin;
}
.modal:has(.reference-detail)>.modal-header{
  position:relative;display:flex;align-items:center;gap:10px;
  min-height:94px;padding:17px 18px 22px;
  color:#fff;background:linear-gradient(120deg,#4930bd,#6849d8 62%,#8062e9);
  border:0;border-radius:0 0 27px 27px;
}
.modal:has(.reference-detail) .modal-header>div:first-child{
  display:flex;align-items:center;flex:1;min-width:0;
}
.modal:has(.reference-detail) .modal-header h2{margin:0;color:#fff;font-size:19px;font-weight:800}
.modal:has(.reference-detail) .modal-header p{display:none}
.order-detail-heading{display:flex;align-items:center;gap:13px;min-width:0}
.order-detail-heading>button{
  width:39px;height:39px;display:grid;place-items:center;flex:none;
  color:#fff;background:#ffffff1c;border:1px solid #ffffff42;border-radius:13px;
}
.order-detail-heading>span{display:flex;flex-direction:column;gap:4px}
.order-detail-heading small{font-size:11px;color:#e6e0ff;font-weight:550}
.modal:has(.reference-detail) .modal-header>.icon-btn{display:none}
.order-detail-status{
  padding:7px 12px;border-radius:22px;background:#ffffff20;
  color:#fff;border:1px solid #ffffff50;font-size:10px;font-weight:800;white-space:nowrap
}
.order-detail-status.paid{background:#16866c;color:#fff;border-color:#ffffff40}
.order-detail-status.pending,.order-detail-status.overdue{background:#ffffff20;color:#fff}
.reference-detail{padding:13px 15px 25px;color:#302b49}
.reference-detail .reference-customer-link{
  display:flex;align-items:center;gap:13px;width:100%;
  margin:0 0 13px;padding:15px;
  background:#fff;border:1px solid #eeebfa;border-radius:17px;
  box-shadow:0 3px 12px #30205a09;
}
.reference-detail .reference-customer-link .reference-avatar{
  width:51px;height:51px;border-radius:15px;
  background:linear-gradient(145deg,#6244d3,#9b86f0);color:#fff;
}
.reference-detail .reference-customer-name{font-size:14px;font-weight:800}
.reference-detail .reference-customer-phone{font-size:11px}
.reference-whatsapp{
  display:flex;align-items:center;gap:5px;padding:8px 10px;
  border:0;border-radius:11px;background:#e7f8ef;color:#16866c;
  font-size:10px;font-weight:800;white-space:nowrap;
}
.reference-detail .reference-delivery,
.reference-detail .reference-items,
.reference-detail .reference-summary,
.reference-detail .reference-payment{
  margin:0 0 13px;padding:15px;
  border:1px solid #eeebfa;border-radius:17px;
  background:#fff;box-shadow:0 3px 12px #30205a08;
}
.reference-detail .reference-section-title{
  display:flex;align-items:center;justify-content:flex-start;
  gap:11px;margin:0 0 15px;
}
.reference-heading-icon,.reference-summary-icon{
  width:40px;height:40px;display:grid;place-items:center;flex:none;
  border-radius:13px;background:#eeeaff;color:#6046d0;
}
.reference-heading-copy{display:flex;flex-direction:column;gap:3px}
.reference-heading-copy h3,.reference-section-title h3,
.reference-payment-heading h3{margin:0;color:#302949;font-size:14px;font-weight:800}
.reference-heading-copy small{color:#9993ad;font-size:10px}
.reference-detail .reference-section-title>span:last-child:not(.reference-heading-icon){
  margin-left:auto;
}
.reference-delivery .delivery-progress{padding:8px 2px 12px}
.reference-delivery .delivery-step{flex:1 1 0;gap:8px;font-size:10px}
.reference-delivery .delivery-step .step-circle{width:34px;height:34px;border-width:2px}
.reference-delivery .delivery-connector{margin:16px 5px 0;min-width:12px;height:3px}
.reference-delivery-date{
  margin:7px -2px 0;padding:12px 11px;
  border:0;border-radius:12px;background:#f4f1ff;
  color:#716a8d;font-size:10px;
}
.reference-delivery-date b{color:#5140a5;font-size:11px}
.reference-detail .reference-items{padding:15px}
.reference-detail .reference-items .reference-section-title{margin-bottom:8px}
.reference-detail .reference-item{padding:12px 2px;border-bottom:1px solid #f0eef8}
.reference-detail .reference-item-icon,
.reference-detail .reference-payment-icon{
  width:39px;height:39px;border-radius:12px;background:#eeeaff;color:#624bd0
}
.reference-detail .reference-item-info b{font-size:12px}
.reference-detail .reference-item-info small{font-size:10px}
.reference-detail .reference-item>strong{font-size:12px}
.reference-summary-icon{background:#e9f7ef;color:#16866c}
.reference-detail .reference-summary .reference-section-title{margin-bottom:9px}
.reference-detail .reference-totals{
  padding:11px 12px;gap:12px;border-radius:13px;background:#f8f7fc
}
.reference-detail .reference-totals>div{font-size:11px}
.reference-detail .reference-totals b{font-size:11px}
.reference-detail .reference-totals .reference-pending{
  padding-top:12px;border-top:1px dashed #e4dfef
}
.reference-payment-heading{display:flex;align-items:center;gap:11px;margin-bottom:9px}
.reference-payment-heading .reference-heading-icon{background:#e9f7ef;color:#16866c}
.reference-detail .reference-payment-row{padding:10px 0}
.reference-detail .reference-payment-icon{background:#e9f7ef;color:#16866c}
.reference-detail .reference-payment-info b{font-size:11px}
.reference-detail .reference-payment-info small{font-size:10px}
.reference-detail .reference-payment-row>strong{font-size:11px}
.reference-detail .order-note{padding:12px;border-radius:13px;background:#fff;font-size:11px}
.reference-detail .document-actions{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;padding:5px 0 12px;border:0
}
.reference-detail .document-actions .btn{
  min-height:46px;border-radius:13px;font-size:11px;font-weight:750;
  background:#fff;border:1px solid #e7e1fa;color:#5942c2
}
.reference-detail .document-actions .btn:last-child{
  background:#5b3fd8;border-color:#5b3fd8;color:#fff
}
.reference-detail .detail-footer{
  display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;
  padding:12px 0 calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid #e9e5f5
}
.reference-detail .detail-footer .btn{
  min-height:42px;border-radius:12px;font-size:10px
}
@media(max-width:620px){
  .modal:has(.reference-detail){width:100%;max-width:none}
  .modal:has(.reference-detail)>.modal-header{min-height:88px;padding:14px 15px 20px}
  .modal:has(.reference-detail) .modal-header h2{font-size:18px}
  .reference-detail{padding:11px 12px 20px}
  .reference-detail .reference-customer-link{padding:12px;gap:10px}
  .reference-whatsapp{padding:7px 8px;font-size:9px}
  .reference-detail .reference-delivery,
  .reference-detail .reference-items,
  .reference-detail .reference-summary,
  .reference-detail .reference-payment{padding:13px;margin-bottom:11px}
  .reference-heading-icon,.reference-summary-icon{width:37px;height:37px}
  .reference-delivery .delivery-step{font-size:9px}
  .reference-delivery .delivery-step .step-circle{width:31px;height:31px}
  .reference-detail .document-actions{gap:6px}
  .reference-detail .document-actions .btn{min-height:43px;padding:7px 3px;font-size:9px}
  .reference-detail .detail-footer .btn{min-height:40px;padding:7px 5px;font-size:9px}
}

/* Order Details — compact header with downward curved bottom */
.modal:has(.reference-detail)>.modal-header{
  min-height:76px;
  padding:11px 17px 16px;
  border-radius:0 0 30px 30px;
}
.order-detail-heading>button{
  width:35px;
  height:35px;
}

/* Order Details — compact header with inward-curved bottom corners */
.modal:has(.reference-detail)>.modal-header{
  min-height:76px;
  padding:10px 17px 13px;
  border-radius:0;
  clip-path:path("M 0 0 H 1000 V 100 Q 970 100 950 82 Q 930 64 910 82 Q 890 100 870 100 H 130 Q 110 100 90 82 Q 70 64 50 82 Q 30 100 0 100 Z");
}

/* Order Details — clean premium compact header */
.modal:has(.reference-detail)>.modal-header{
  min-height:68px;
  height:68px;
  padding:9px 15px 12px;
  display:flex;
  align-items:center;
  border:0;
  border-radius:0 0 22px 22px;
  background:linear-gradient(115deg,#4930bd 0%,#6243d1 58%,#8062e9 100%);
  box-shadow:0 5px 16px rgba(73,48,189,.16);
}
.modal:has(.reference-detail) .modal-header>div:first-child{
  align-items:center;
}
.modal:has(.reference-detail) .modal-header h2{
  font-size:17px;
  line-height:1.2;
}
.order-detail-heading{
  gap:10px;
}
.order-detail-heading>button{
  width:34px;
  height:34px;
  border-radius:11px;
}
.order-detail-heading>span{
  gap:3px;
}
.order-detail-heading small{
  font-size:10px;
}
.order-detail-status{
  padding:6px 10px;
  font-size:9px;
  border-radius:18px;
}

/* Order Details — compact premium screen refinement */
.modal:has(.reference-detail)>.modal-header{
  min-height:66px;
  height:66px;
  padding:8px 14px 10px;
  border-radius:0 0 21px 21px;
}
.modal:has(.reference-detail) .modal-header h2{font-size:16px}
.order-detail-heading{gap:9px}
.order-detail-heading>button{width:32px;height:32px;border-radius:10px}
.order-detail-heading>span{gap:2px}
.order-detail-heading small{font-size:9px}
.order-detail-status{padding:5px 9px;font-size:9px}

.reference-detail{
  padding:9px 11px 16px;
}
.reference-detail .reference-customer-link{
  gap:10px;
  margin-bottom:9px;
  padding:10px 11px;
  border-radius:14px;
  box-shadow:0 2px 9px #30205a08;
}
.reference-detail .reference-customer-link .reference-avatar{
  width:42px;height:42px;border-radius:12px;
}
.reference-detail .reference-customer-name{font-size:12px}
.reference-detail .reference-customer-phone{font-size:10px}
.reference-whatsapp{padding:7px 8px;font-size:9px;border-radius:9px}

.reference-detail .reference-delivery,
.reference-detail .reference-items,
.reference-detail .reference-summary,
.reference-detail .reference-payment{
  margin-bottom:9px;
  padding:11px 12px;
  border-radius:14px;
  box-shadow:0 2px 9px #30205a07;
}
.reference-detail .reference-section-title{
  gap:9px;
  margin-bottom:10px;
}
.reference-heading-icon,.reference-summary-icon{
  width:33px;height:33px;border-radius:10px;
}
.reference-heading-copy h3,
.reference-section-title h3,
.reference-payment-heading h3{font-size:12px}
.reference-heading-copy small{font-size:9px}

.reference-delivery .delivery-progress{padding:4px 1px 8px}
.reference-delivery .delivery-step{gap:5px;font-size:9px}
.reference-delivery .delivery-step .step-circle{
  width:28px;height:28px;border-width:2px;
}
.reference-delivery .delivery-connector{
  margin:13px 4px 0;height:2px;min-width:9px;
}
.reference-delivery-date{
  margin:5px -1px 0;
  padding:9px 10px;
  border-radius:10px;
  font-size:9px;
}
.reference-delivery-date b{font-size:10px}

.reference-detail .reference-items{padding:11px 12px}
.reference-detail .reference-items .reference-section-title{margin-bottom:4px}
.reference-detail .reference-item{padding:8px 1px}
.reference-detail .reference-item-icon,
.reference-detail .reference-payment-icon{
  width:33px;height:33px;border-radius:10px;
}
.reference-detail .reference-item-info b{font-size:11px}
.reference-detail .reference-item-info small{font-size:9px}
.reference-detail .reference-item>strong{font-size:11px}

.reference-detail .reference-summary .reference-section-title{margin-bottom:7px}
.reference-detail .reference-totals{
  padding:9px 10px;
  gap:8px;
  border-radius:10px;
}
.reference-detail .reference-totals>div,
.reference-detail .reference-totals b{font-size:10px}
.reference-detail .reference-totals .reference-pending{padding-top:8px}

.reference-payment-heading{gap:9px;margin-bottom:5px}
.reference-detail .reference-payment-row{padding:7px 0}
.reference-detail .reference-payment-info b,
.reference-detail .reference-payment-row>strong{font-size:10px}
.reference-detail .reference-payment-info small{font-size:9px}
.reference-detail .order-note{padding:9px;border-radius:10px;font-size:10px}

.reference-detail .document-actions{
  gap:7px;
  padding:2px 0 9px;
}
.reference-detail .document-actions .btn{
  min-height:39px;
  padding:6px 4px;
  border-radius:10px;
  font-size:10px;
}
.reference-detail .detail-footer{
  gap:7px;
  padding:9px 0 calc(9px + env(safe-area-inset-bottom));
}
.reference-detail .detail-footer .btn{
  min-height:36px;
  padding:6px 4px;
  border-radius:10px;
  font-size:9px;
}

@media(max-width:620px){
  .modal:has(.reference-detail)>.modal-header{
    min-height:64px;height:64px;padding:8px 12px 9px;
  }
  .modal:has(.reference-detail) .modal-header h2{font-size:15px}
  .reference-detail{padding:8px 10px 14px}
  .reference-detail .reference-customer-link{padding:9px 10px}
  .reference-detail .reference-delivery,
  .reference-detail .reference-items,
  .reference-detail .reference-summary,
  .reference-detail .reference-payment{padding:10px;margin-bottom:8px}
  .reference-heading-icon,.reference-summary-icon{width:31px;height:31px}
  .reference-detail .document-actions .btn{min-height:38px;font-size:9px}
  .reference-detail .detail-footer .btn{min-height:35px}
}

/* Order Details — high contrast coloured summary rows */
.reference-detail .reference-totals{
  gap:8px;
  padding:9px;
  background:#f7f6fc;
}
.reference-detail .reference-totals>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:10px;
  font-size:12px;
  font-weight:750;
}
.reference-detail .reference-totals>div b{
  font-size:15px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
.reference-detail .reference-totals>div:nth-last-child(3){
  background:#e8efff;
  color:#2855b5;
}
.reference-detail .reference-totals>div:nth-last-child(3) b{
  color:#2855b5;
}
.reference-detail .reference-totals>div:nth-last-child(2){
  background:#16866c;
  color:#fff;
}
.reference-detail .reference-totals>div:nth-last-child(2) b{
  color:#fff;
}
.reference-detail .reference-totals>div.reference-pending{
  padding:10px 12px;
  border:0;
  background:#c87919;
  color:#fff;
}
.reference-detail .reference-totals>div.reference-pending b{
  color:#fff;
}

/* Order Details — summary colours without extra cards */
.reference-detail .reference-totals{
  background:#f8f7fc;
  padding:9px 10px;
  gap:8px;
}
.reference-detail .reference-totals>div{
  padding:2px 1px;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:11px;
  font-weight:750;
}
.reference-detail .reference-totals>div b{
  font-size:14px;
  font-weight:850;
}
.reference-detail .reference-totals>div:nth-last-child(3),
.reference-detail .reference-totals>div:nth-last-child(3) b{
  color:#fff;
}
.reference-detail .reference-totals>div:nth-last-child(2),
.reference-detail .reference-totals>div:nth-last-child(2) b{
  color:#16866c;
}
.reference-detail .reference-totals>div.reference-pending{
  padding:8px 1px 0;
  border-top:1px dashed #e4dfef;
  background:transparent;
  color:#c87919;
}
.reference-detail .reference-totals>div.reference-pending b{
  color:#c87919;
}

/* Order Details — text-only summary colours */
.reference-detail .reference-totals>div:nth-last-child(3),
.reference-detail .reference-totals>div:nth-last-child(3) b{
  color:#2855b5;
}
.reference-detail .reference-totals>div:nth-last-child(2),
.reference-detail .reference-totals>div:nth-last-child(2) b{
  color:#16866c;
}
.reference-detail .reference-totals>div.reference-pending,
.reference-detail .reference-totals>div.reference-pending b{
  color:#c87919;
}
.reference-detail .reference-totals>div b{
  font-size:14px;
  font-weight:850;
}

/* Remove summary row cards — retain coloured text */
.reference-detail .reference-totals>div:nth-last-child(3),
.reference-detail .reference-totals>div:nth-last-child(2){
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:2px 1px !important;
}

/* Order Details — plain white summary background, no extra cards */
.reference-detail .reference-totals{
  background:#fff !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:9px 10px;
}
.reference-detail .reference-totals>div,
.reference-detail .reference-totals>div:nth-last-child(3),
.reference-detail .reference-totals>div:nth-last-child(2),
.reference-detail .reference-totals>div.reference-pending{
  background:transparent !important;
  box-shadow:none !important;
}

/* Keep the original Order Summary container card */
.reference-detail .reference-totals{
  background:#f8f7fc !important;
  border:0 !important;
  border-radius:13px !important;
  box-shadow:none !important;
  padding:9px 10px !important;
}
/* No separate backgrounds on summary rows */
.reference-detail .reference-totals>div,
.reference-detail .reference-totals>div:nth-last-child(3),
.reference-detail .reference-totals>div:nth-last-child(2),
.reference-detail .reference-totals>div.reference-pending{
  background:transparent !important;
  box-shadow:none !important;
}

/* Swap existing Order Summary card background colours */
.reference-detail .reference-summary{
  background:#f8f7fc !important;
}
.reference-detail .reference-totals{
  background:#fff !important;
}

/* Order Details — Order total in black */
.reference-detail .reference-totals>div:nth-last-child(3),
.reference-detail .reference-totals>div:nth-last-child(3) b{
  color:#171717 !important;
}

/* Order Summary — blue filled icon */
.reference-detail .reference-summary-icon{
  background:#e8efff !important;
  color:#315fc4 !important;
}
.reference-detail .reference-summary-icon svg{
  fill:currentColor;
}

/* Order Summary — white icon on brand purple */
.reference-detail .reference-summary-icon{
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-summary-icon svg{
  fill:none !important;
  stroke:#fff !important;
}

/* Payment History — matching brand-purple icon design */
.reference-detail .reference-payment-heading .reference-heading-icon,
.reference-detail .reference-payment-icon{
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-payment-heading .reference-heading-icon svg,
.reference-detail .reference-payment-icon svg{
  fill:none !important;
  stroke:#fff !important;
}
.reference-detail .reference-payment-info b{
  color:#302949;
  font-weight:800;
}
.reference-detail .reference-payment-info small{
  color:#8b849f;
}
.reference-detail .reference-payment-row>strong{
  color:#16866c;
  font-size:13px;
  font-weight:850;
}


/* Payment History — individual white payment cards */
.reference-detail .reference-payment-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:7px 0;
  padding:10px 11px !important;
  background:#fff;
  border:1px solid #eeebfa;
  border-radius:12px;
  box-shadow:0 2px 8px #30205a08;
}
.reference-detail .reference-payment-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:10px;
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-payment-icon svg{
  fill:none !important;
  stroke:#fff !important;
}
.reference-detail .reference-payment-info{
  flex:1;
  min-width:0;
}
.reference-detail .reference-payment-row>strong{
  flex:none;
  color:#16866c;
  font-size:13px;
  font-weight:850;
}
/* Keep Payment History heading icon unchanged */

/* Payment History — one shared card, compact payment rows */
.reference-detail .reference-payment{
  background:#fff !important;
  border:1px solid #eeebfa !important;
  border-radius:14px !important;
  padding:11px 12px !important;
}
.reference-detail .reference-payment-row{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 !important;
  padding:8px 2px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.reference-detail .reference-payment-row + .reference-payment-row{
  border-top:1px solid #f0eef8 !important;
}
.reference-detail .reference-payment-icon{
  width:29px !important;
  height:29px !important;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:9px !important;
  background:#eeeaff !important;
  color:#5B3FD8 !important;
}
.reference-detail .reference-payment-icon svg{
  width:14px;
  height:14px;
  fill:none !important;
  stroke:#5B3FD8 !important;
}
.reference-detail .reference-payment-info b{font-size:10px}
.reference-detail .reference-payment-info small{font-size:9px}
.reference-detail .reference-payment-row>strong{
  font-size:12px;
  font-weight:850;
}
/* Preserve the Payment History heading icon */

/* Payment History heading — subtle horizontal lavender icon background */
.reference-detail .reference-payment-heading .reference-heading-icon{
  background:#eeeaff !important;
  color:#5B3FD8 !important;
  border-radius:10px !important;
}
.reference-detail .reference-payment-heading .reference-heading-icon svg{
  fill:none !important;
  stroke:#5B3FD8 !important;
}

/* Payment History — horizontal lavender heading strip */
.reference-detail .reference-payment-heading{
  margin: -11px -12px 9px !important;
  padding: 9px 12px !important;
  background:#eeeaff !important;
  border-radius:12px 12px 0 0;
}
/* Preserve the original purple heading icon */
.reference-detail .reference-payment-heading .reference-heading-icon{
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-payment-heading .reference-heading-icon svg{
  fill:none !important;
  stroke:#fff !important;
}

/* Payment History — reduce heading strip height only */
.reference-detail .reference-payment-heading{
  padding-top:5px !important;
  padding-bottom:5px !important;
  margin-bottom:9px !important;
}

/* Payment History — remove divider between payment entries */
.reference-detail .reference-payment-row + .reference-payment-row{
  border-top:0 !important;
}

/* Payment History — tighten spacing between entries */
.reference-detail .reference-payment-row{
  padding-top:6px !important;
  padding-bottom:6px !important;
  margin-bottom:0 !important;
}

/* Payment History — compact Received badge */
.reference-detail .reference-payment-status{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:2px 6px;
  border-radius:5px;
  background:#e8f5ef;
  color:#16866c;
  font-size:9px;
  font-weight:750;
  line-height:1.3;
  vertical-align:middle;
}

/* Payment History — align Received badge beside title */
.reference-detail .reference-payment-info{
  display:grid;
  grid-template-columns:max-content max-content;
  align-items:center;
  justify-content:start;
  column-gap:6px;
  row-gap:2px;
}
.reference-detail .reference-payment-info b{
  grid-column:1;
  grid-row:1;
  min-width:0;
}
.reference-detail .reference-payment-status{
  grid-column:2;
  grid-row:1;
  margin:0 !important;
  white-space:nowrap;
}
.reference-detail .reference-payment-info small{
  grid-column:1 / -1;
  grid-row:2;
}

/* Order Summary — one clean white card like Payment History */
.reference-detail .reference-summary{
  background:#fff !important;
  border:0 !important;
  box-shadow:none !important;
}
.reference-detail .reference-totals{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

/* Order Summary — single white card */
.reference-detail .reference-summary{
  background:#fff !important;
  border:1px solid #eeebfa !important;
  border-radius:14px !important;
  box-shadow:0 2px 8px #30205a08 !important;
  padding:11px 12px !important;
}

/* Order Summary — light purple horizontal heading strip */
.reference-detail .reference-summary>.reference-section-title{
  margin:-11px -12px 9px !important;
  padding:7px 12px !important;
  background:#eeeaff !important;
  border-radius:12px 12px 0 0 !important;
}

/* Preserve existing summary icon and heading text */
.reference-detail .reference-summary-icon{
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-summary-icon svg{
  fill:none !important;
  stroke:#fff !important;
}

/* Order Items — single white card matching Order Summary */
.reference-detail .reference-items{
  background:#fff !important;
  border:1px solid #eeebfa !important;
  border-radius:14px !important;
  box-shadow:0 2px 8px #30205a08 !important;
  padding:11px 12px !important;
}

/* Order Items — light purple horizontal heading strip */
.reference-detail .reference-items>.reference-section-title{
  margin:-11px -12px 9px !important;
  padding:7px 12px !important;
  background:#eeeaff !important;
  border-radius:12px 12px 0 0 !important;
}

/* Keep Order Items icon and heading unchanged */

/* Order Items — white icon on solid brand purple */
.reference-detail .reference-items>.reference-section-title .reference-heading-icon{
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-items>.reference-section-title .reference-heading-icon svg{
  fill:none !important;
  stroke:#fff !important;
}

/* Order Items — compact item-count badge */
.reference-detail .reference-items>.reference-section-title>span:last-child{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:6px;
  background:#eeeaff;
  color:#5B3FD8;
  font-size:10px;
  font-weight:750;
  line-height:1.3;
}

/* Order Items — clearer, stronger item amount */
.reference-detail .reference-item>strong{
  color:#30205a !important;
  font-size:15px !important;
  font-weight:850 !important;
}

/* Order Items — clearer purple badge outline */
.reference-detail .reference-items>.reference-section-title>span:last-child{
  border:1px solid #8b78df !important;
}

/* Delivery Progress — white icon on solid brand purple */
.reference-detail .reference-delivery .reference-heading-icon{
  background:#5B3FD8 !important;
  color:#fff !important;
}
.reference-detail .reference-delivery .reference-heading-icon svg{
  fill:none !important;
  stroke:#fff !important;
}

/* Order Summary — Subtotal and Discount in dark black */
.reference-detail .reference-totals>div:first-child,
.reference-detail .reference-totals>div:first-child b,
.reference-detail .reference-totals>.summary-discount,
.reference-detail .reference-totals>.summary-discount b{
  color:#171717 !important;
}

/* Order Details — Delete as a centered document-style action card */
.reference-detail .detail-footer>button:first-child{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  min-height:58px !important;
  padding:8px 12px !important;
  border:1px solid #f1dada !important;
  border-radius:11px !important;
  background:#fff7f7 !important;
  color:#c04444 !important;
  text-align:center !important;
}
.reference-detail .detail-footer>button:first-child svg{
  width:17px;
  height:17px;
  color:#c04444 !important;
}

/* Products — premium catalogue styling (scoped) */
.main-column > .products-tab-header{
  position:relative;
  z-index:1;
  min-height:82px;
  padding:16px 20px 22px;
  margin:0 0 14px;
  border:0;
  border-radius:0 0 25px 25px;
  background:linear-gradient(115deg,#6749df 0%,#5034c5 100%);
  color:#fff;
  box-shadow:0 7px 18px rgba(81,53,193,.17);
}
.main-column > .products-tab-header .orders-header-title,
.main-column > .products-tab-header .orders-header-title svg{
  color:#fff;
}
.main-column > .products-tab-header .orders-create-icon{
  min-height:37px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:11px;
  background:rgba(255,255,255,.16);
  color:#fff;
}
.main-column > .products-tab-header .orders-create-icon svg{color:#fff}
.products-search-wrap{margin:0 0 14px}
.products-search-wrap .products-toolbar{margin:0}
.products-search-wrap .search-box{
  min-height:44px;
  border:1px solid #e8eaf2;
  border-radius:13px;
  background:#fff;
  box-shadow:0 2px 8px rgba(35,43,70,.035);
}
.product-best-sellers{
  padding:14px;
  margin:0 0 19px;
  border:1px solid #eceaf8;
  border-radius:17px;
  background:#fff;
  box-shadow:0 3px 12px rgba(39,35,82,.035);
}
.product-best-seller-heading{align-items:center;margin-bottom:12px}
.product-best-seller-heading>div{min-width:0}
.product-best-seller-heading h2{font-size:14px}
.product-best-seller-heading>div>small{
  display:block;
  margin:4px 0 0 24px;
  color:#9295a8;
  font-size:10px;
}
.product-best-seller-heading select{
  max-width:112px;
  min-height:31px;
  padding:0 8px;
  border:1px solid #e8e5f7;
  border-radius:9px;
  background:#f8f7ff;
  color:#5b48c5;
  font-size:10px;
  font-weight:700;
}
.product-best-seller-list{gap:8px}
.product-best-seller-item{
  min-height:57px;
  padding:8px 9px;
  gap:9px;
  border:0;
  border-radius:12px;
  background:#f8f8fc;
}
.product-best-seller-rank{width:25px;height:25px}
.product-best-seller-thumb{
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex-shrink:0;
  border-radius:10px;
  background:#eeebff;
  color:#7666d7;
}
.product-best-seller-thumb img,
.product-compact-icon img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.product-best-seller-info b{font-size:11px}
.product-best-seller-info small{font-size:9px}
.product-best-seller-units{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:1px;
  color:#5b43c9;
  font-size:13px;
}
.product-best-seller-units small{
  color:#9695a8;
  font-size:9px;
  font-weight:500;
}
.products-inventory-section{margin-top:2px}
.products-inventory-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 1px 12px;
}
.products-inventory-heading h2{
  margin:0;
  color:#27334b;
  font-size:16px;
  font-weight:800;
}
.products-inventory-heading p{
  margin:3px 0 0;
  color:#969bad;
  font-size:10px;
}
.products-inventory-heading>button{
  display:flex;
  align-items:center;
  gap:2px;
  padding:6px 0 6px 8px;
  border:0;
  background:transparent;
  color:#6248cf;
  font-size:11px;
  font-weight:750;
}
.products-inventory-section .product-filter-row{margin-bottom:12px}
.products-inventory-section .product-card-list{gap:9px}
.products-inventory-section .product-compact-card{
  min-height:72px;
  padding:10px 11px;
  gap:11px;
  border:1px solid #ececf3;
  border-radius:14px;
  box-shadow:0 2px 8px rgba(35,43,70,.025);
}
.products-inventory-section .product-compact-icon{
  width:49px;
  height:49px;
  overflow:hidden;
  border-radius:12px;
  background:#f0edff;
  color:#7463d3;
}
.products-inventory-section .product-compact-main{gap:4px}
.products-inventory-section .product-compact-main>b{
  color:#29344b;
  font-size:12px;
}
.products-inventory-section .product-compact-main>small{
  color:#858da0;
  font-size:10px;
}
.products-inventory-section .product-compact-main .stock-badge{font-size:9px}
.products-inventory-section .product-compact-actions .icon-btn{
  width:30px;
  height:30px;
  border-radius:9px;
}
.product-photo-field{
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px;
  margin-bottom:15px;
  border:1px dashed #d9d3f5;
  border-radius:13px;
  background:#faf9ff;
}
.product-photo-preview{
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex-shrink:0;
  border-radius:12px;
  background:#efecff;
  color:#7564d5;
}
.product-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-photo-copy{min-width:0}
.product-photo-copy>b{
  display:block;
  color:#303951;
  font-size:12px;
}
.product-photo-copy>small{
  display:block;
  margin:4px 0 8px;
  color:#9298a8;
  font-size:10px;
}
.product-photo-copy>div{display:flex;align-items:center;gap:12px}
.product-photo-choose,
.product-photo-remove{
  padding:0;
  border:0;
  background:transparent;
  color:#6249ce;
  font-size:11px;
  font-weight:750;
}
.product-photo-remove{color:#c44e58}
@media(max-width:380px){
  .main-column > .products-tab-header{min-height:74px;padding:13px 14px 19px}
  .products-inventory-section .product-compact-card{gap:8px;padding:9px}
  .products-inventory-section .product-compact-icon{width:43px;height:43px}
  .product-best-sellers{padding:11px}
}

/* Products header — reference-style back navigation */
.main-column > .products-tab-header{
  background:#5b3fd8;
  background-image:none;
  min-height:78px;
  padding:14px 18px 20px;
  border-radius:0 0 24px 24px;
}
.products-header-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.main-column > .products-tab-header .products-back-button{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  padding:0;
  border:1px solid rgba(255,255,255,.25);
  border-radius:11px;
  background:rgba(255,255,255,.13);
  color:#fff;
}
.main-column > .products-tab-header .products-back-button svg{
  color:#fff;
}
.main-column > .products-tab-header .orders-header-title{
  font-size:19px;
  font-weight:750;
  color:#fff;
}
.main-column > .products-tab-header .orders-create-icon{
  background:#fff;
  border:1px solid #fff;
  color:#5b3fd8;
}
.main-column > .products-tab-header .orders-create-icon svg{
  color:#5b3fd8;
}

/* FIX — Products header must override shared Orders header rules */
.main-column:has(.products-inventory-section) > .topbar.products-tab-header{
  display:flex !important;
  visibility:visible !important;
  position:relative !important;
  width:100% !important;
  height:auto !important;
  min-height:78px !important;
  margin:0 !important;
  padding:14px 18px 19px !important;
  align-items:center !important;
  justify-content:space-between !important;
  background:#4930BD !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 0 24px 24px !important;
  box-shadow:0 5px 15px rgba(73,48,189,.18) !important;
  backdrop-filter:none !important;
  z-index:5 !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .products-header-left{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .products-back-button{
  display:grid !important;
  width:38px !important;
  height:38px !important;
  place-items:center !important;
  border:1px solid rgba(255,255,255,.3) !important;
  border-radius:11px !important;
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .orders-header-title,
.main-column:has(.products-inventory-section) > .products-tab-header .orders-header-title span{
  color:#fff !important;
  font-size:19px !important;
  font-weight:800 !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  display:flex !important;
  width:auto !important;
  min-height:38px !important;
  padding:0 12px !important;
  align-items:center !important;
  gap:5px !important;
  border:0 !important;
  border-radius:11px !important;
  background:#fff !important;
  color:#4930BD !important;
  box-shadow:none !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon svg,
.main-column:has(.products-inventory-section) > .products-tab-header .products-back-button svg{
  color:inherit !important;
}
@media(max-width:380px){
  .main-column:has(.products-inventory-section) > .topbar.products-tab-header{
    min-height:72px !important;
    padding:12px 13px 17px !important;
  }
}

/* Products header — compact, straight-edge version */
.main-column:has(.products-inventory-section) > .topbar.products-tab-header{
  min-height:54px !important;
  height:54px !important;
  padding:6px 16px !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .products-back-button{
  width:32px !important;
  height:32px !important;
  border-radius:9px !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  min-height:33px !important;
  padding:0 10px !important;
  border-radius:9px !important;
  font-size:11px !important;
}
@media(max-width:380px){
  .main-column:has(.products-inventory-section) > .topbar.products-tab-header{
    min-height:50px !important;
    height:50px !important;
    padding:5px 12px !important;
  }
}

/* Products header — subtle purple and pink blend */
.main-column:has(.products-inventory-section) > .topbar.products-tab-header{
  background:
    radial-gradient(ellipse at 92% 15%, rgba(255,105,180,.38) 0%, rgba(255,105,180,.12) 30%, transparent 58%),
    linear-gradient(110deg, #4930BD 0%, #5635C9 58%, #7040C8 100%) !important;
}

/* Products header — premium compact Add Product button */
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  min-height:30px !important;
  height:30px !important;
  padding:0 10px !important;
  gap:5px !important;
  border:1px solid rgba(255,255,255,.32) !important;
  border-radius:8px !important;
  background:linear-gradient(115deg, rgba(255,255,255,.20), rgba(255,190,225,.28)) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 2px 5px rgba(35,15,90,.14) !important;
  font-size:11px !important;
  font-weight:600 !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon svg{
  width:14px !important;
  height:14px !important;
}

/* Products Add Product — tight fit, dark purple */
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  width:max-content !important;
  min-width:0 !important;
  padding:0 7px !important;
  gap:4px !important;
  flex:0 0 auto !important;
  background:linear-gradient(135deg, #38218F 0%, #4526A8 100%) !important;
  border:1px solid rgba(255,255,255,.24) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12) !important;
}

/* Products Add Product — matching back button card */
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  width:max-content !important;
  min-width:0 !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 12px !important;
  gap:6px !important;
  flex:0 0 auto !important;
  border:1px solid rgba(255,255,255,.3) !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:600 !important;
}
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon svg{
  width:15px !important;
  height:15px !important;
}

/* Add Product — exact same card colour as Back button */
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  background:rgba(255,255,255,.14) !important;
  border:1px solid rgba(255,255,255,.3) !important;
}

/* Add Product — DoovaBook brand purple */
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  background:linear-gradient(135deg, #4930BD 0%, #38218F 100%) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  color:#fff !important;
}

/* Add Product — softer brand purple */
.main-column:has(.products-inventory-section) > .products-tab-header .orders-create-icon{
  background:linear-gradient(135deg, #765FE0 0%, #6249D0 100%) !important;
  border:1px solid rgba(255,255,255,.3) !important;
}

/* Best sellers — remove individual row borders, preserve icon cards */
.product-best-seller-item{
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

/* Best sellers — clean white product rows */
.product-best-seller-item{
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

/* Best sellers — compact rows with subtle separators */
.product-best-seller-list{
  gap:0 !important;
}
.product-best-seller-item{
  min-height:46px !important;
  padding:5px 8px !important;
  gap:8px !important;
  border:0 !important;
  border-bottom:1px solid #ececf2 !important;
  border-radius:0 !important;
  background:#fff !important;
}
.product-best-seller-item:last-child{
  border-bottom:0 !important;
}
.product-best-seller-rank{
  width:25px !important;
  height:25px !important;
  flex-shrink:0 !important;
}
.product-best-seller-thumb{
  width:34px !important;
  height:34px !important;
  flex-shrink:0 !important;
}
.product-best-seller-info b{font-size:11px !important}
.product-best-seller-info small{font-size:9px !important}
.product-best-seller-units{
  font-size:12px !important;
  gap:0 !important;
}
.product-best-seller-units small{font-size:9px !important}

/* Best sellers — compact light-purple heading strip */
.product-best-seller-heading{
  background:#f2efff !important;
  padding:7px 10px !important;
  margin:-3px -3px 8px !important;
  border-radius:7px !important;
  gap:6px !important;
}
.product-best-seller-heading h2{
  font-size:13px !important;
}
.product-best-seller-heading>div>small{
  font-size:9px !important;
}

/* Best sellers — compact period selector */
.product-best-seller-heading select{
  width:max-content !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:4px 20px 4px 8px !important;
  height:27px !important;
  border:1px solid #4930BD !important;
  border-radius:6px !important;
  background-color:#fff !important;
  color:#4930BD !important;
  font-size:10px !important;
  font-weight:650 !important;
  box-shadow:none !important;
  flex:0 0 auto !important;
}

/* Period selector — matching light-purple background, darker outline */
.product-best-seller-heading select{
  background:#f2efff !important;
  border:1px solid #4930BD !important;
  color:#4930BD !important;
}

/* Best sellers — compact units sold badge */
.product-best-seller-units{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:4px 7px!important;
  border-radius:5px!important;
  background:#f2efff!important;
  border:1px solid #e3dcff!important;
  color:#5b43c9!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.product-best-seller-units small{
  color:#5b43c9!important;
  font-size:9px!important;
  font-weight:600!important;
}

/* All Products — stock count circle colors only */
.products-inventory-section .product-filter-row .orders-filter-chip:nth-child(2) span{
  background:#fff0d6!important;
  color:#b86608!important;
}
.products-inventory-section .product-filter-row .orders-filter-chip:nth-child(3) span{
  background:#ffe5e5!important;
  color:#c62828!important;
}
.products-inventory-section .product-filter-row .orders-filter-chip:nth-child(4) span{
  background:#dcf5e8!important;
  color:#16804b!important;
}

/* Product card — circular edit and delete buttons */
.products-inventory-section .product-compact-actions .icon-btn{
  border-radius:50%!important;
}

/* Product card — visible circular action backgrounds */
.products-inventory-section .product-compact-actions .icon-btn{
  display:grid!important;
  place-items:center!important;
  background:#f0ebff!important;
  border:1px solid #dcd1ff!important;
  color:#6046c8!important;
  border-radius:50%!important;
}
.products-inventory-section .product-compact-actions .icon-btn.danger-icon{
  background:#fff0f0!important;
  border:1px solid #ffd5d5!important;
  color:#d33b3b!important;
}

/* Orders — compact MPIN-gradient header strip */
.main-column:has(.orders-filter-row) > .orders-tab-header{
  height:52px !important;
  min-height:52px !important;
  margin:0 35px !important;
  padding:7px 12px !important;
  box-sizing:border-box;
  border:0 !important;
  border-radius:12px !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:0 5px 14px rgba(91,33,202,.20) !important;
}

.main-column:has(.orders-filter-row) .orders-header-title{
  color:#fff !important;
  font-size:19px !important;
}

.main-column:has(.orders-filter-row) .orders-header-title svg{
  color:#fff !important;
}

.main-column:has(.orders-filter-row) .orders-create-icon{
  min-width:104px !important;
  height:34px !important;
  padding:0 11px !important;
  border:1px solid rgba(255,255,255,.35) !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18) !important;
}

@media(max-width:620px){
  .main-column:has(.orders-filter-row) > .orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    margin:0 13px !important;
    padding:6px 10px !important;
  }
}

/* Orders header — full-width edge-to-edge */
.main-column:has(.orders-filter-row) > .orders-tab-header{
  margin-left:0 !important;
  margin-right:0 !important;
  border-radius:0 !important;
}

@media(max-width:620px){
  .main-column:has(.orders-filter-row) > .orders-tab-header{
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* Products header — match Orders and Customers exactly */
.main-column:has(.products-inventory-section) > .topbar.products-tab-header{
  height:52px !important;
  min-height:52px !important;
  margin:0 !important;
  padding:7px 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:none !important;
}

@media(max-width:620px){
  .main-column:has(.products-inventory-section) > .topbar.products-tab-header{
    height:48px !important;
    min-height:48px !important;
    margin:0 !important;
    padding:6px 10px !important;
  }
}

/* Create Order — match the compact Orders/Products gradient header */
.order-reference-header{
  min-height:58px !important;
  box-sizing:border-box;
  padding:8px 12px !important;
  gap:10px !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
.order-reference-header h2{
  color:#fff !important;
  font-size:17px !important;
}
.order-reference-header p{
  color:#eee5ff !important;
  font-size:10px !important;
}
.order-reference-header .order-reference-nav{
  width:35px !important;
  height:35px !important;
  border:1px solid rgba(255,255,255,.35) !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
}
.order-reference-header::before,
.order-reference-header::after{
  content:none !important;
  display:none !important;
}

/* Order Details — match Orders, Products and Create Order headers */
.modal:has(.reference-detail)>.modal-header{
  min-height:52px !important;
  box-sizing:border-box;
  padding:7px 12px !important;
  gap:10px !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.modal:has(.reference-detail) .modal-header h2{
  color:#fff !important;
  font-size:16px !important;
}
.modal:has(.reference-detail) .modal-header p{
  color:#eee5ff !important;
  font-size:10px !important;
}
.modal:has(.reference-detail) .modal-header>.icon-btn{
  width:34px !important;
  height:34px !important;
  border:1px solid rgba(255,255,255,.35) !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
}
.modal:has(.reference-detail) .order-modal-title .delivery-badge{
  border-color:rgba(255,255,255,.4) !important;
  background:rgba(255,255,255,.18) !important;
  color:#fff !important;
}

/* DoovaBook — in-app payment receipt preview */
.receipt-preview-backdrop{
  position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;
  align-items:stretch;background:#f1effb;overflow:hidden;
}
.receipt-preview-screen{
  width:100%;max-width:680px;height:100dvh;display:flex;flex-direction:column;
  background:#f3f1fc;color:#302b49;overflow:hidden;
}
.receipt-preview-topbar{
  flex:none;min-height:66px;padding:10px 16px;display:flex;align-items:center;gap:13px;
  color:#fff;background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%);
}
.receipt-preview-topbar button{
  width:39px;height:39px;display:grid;place-items:center;flex:none;
  color:#fff;background:#ffffff1c;border:1px solid #ffffff40;border-radius:12px;
}
.receipt-preview-topbar>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.receipt-preview-topbar>div b{font-size:16px;font-weight:800}
.receipt-preview-topbar>div small{font-size:11px;color:#e9ddff}
.receipt-preview-scroll{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:18px 15px 28px;-webkit-overflow-scrolling:touch;
}
.receipt-preview-paper{
  max-width:570px;margin:0 auto;background:#fff;border:1px solid #ece8f8;
  border-radius:19px;overflow:hidden;box-shadow:0 7px 28px #30205a12;
}
.receipt-preview-banner{
  min-height:88px;padding:16px 22px;display:flex;align-items:center;
  flex-direction:column;justify-content:center;gap:8px;text-align:center;
  color:#30234e;background:#fff;
}
.receipt-preview-banner-icon{
  width:39px;height:39px;display:grid;place-items:center;border-radius:13px;
  color:#6720e9;background:#f3edff;border:1px solid #e5d8ff;
}
.receipt-preview-banner h2{margin:0;font-size:20px;font-weight:850;letter-spacing:.2px}
.receipt-preview-status{
  padding:5px 13px;border-radius:30px;background:#d9f8e9;color:#087c55;
  font-size:9px;font-weight:900;letter-spacing:.65px;
}
.receipt-preview-business{
  padding:19px 22px 15px;text-align:center;border-bottom:1px dashed #e8e3f1;
}
.receipt-preview-business h2{margin:0 0 6px;color:#30234e;font-size:18px;font-weight:850}
.receipt-preview-business p{margin:3px 0;color:#777187;font-size:11px;line-height:1.5}
.receipt-preview-meta{
  display:flex;justify-content:space-between;gap:12px;padding:16px 22px;
  border-bottom:1px solid #f0edf6;
}
.receipt-preview-meta>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.receipt-preview-meta small,.receipt-preview-customer small,
.receipt-preview-payment-copy small{
  color:#918ba1;font-size:9px;font-weight:800;letter-spacing:.8px;
}
.receipt-preview-meta b{color:#342d4d;font-size:12px;overflow-wrap:anywhere}
.receipt-preview-customer{margin:15px 18px;padding:13px 14px;display:flex;flex-direction:column;gap:5px;
  background:#f8f6ff;border:1px solid #eee9fb;border-radius:12px;
}
.receipt-preview-customer>div{display:flex;flex-direction:column;gap:5px}
.receipt-preview-customer>div b{font-size:13px;color:#342d4d}
.receipt-preview-customer>span{font-size:11px;color:#777187;overflow-wrap:anywhere}
.receipt-preview-items{padding:3px 18px 0}
.receipt-preview-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.receipt-preview-section-title b{font-size:13px;color:#302b49}
.receipt-preview-section-title small{font-size:10px;color:#918ba1}
.receipt-preview-table{width:100%;border:1px solid #eeeaf5;border-radius:10px;overflow:hidden}
.receipt-preview-table-head,.receipt-preview-table-row{
  display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(76px,auto);
  align-items:center;gap:8px;padding:10px 11px;
}
.receipt-preview-table-head{background:#f5f2fc;color:#777187;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.5px}
.receipt-preview-table-head span:nth-child(2),.receipt-preview-table-row>b{text-align:center}
.receipt-preview-table-head span:last-child,.receipt-preview-table-row>strong{text-align:right}
.receipt-preview-table-row{border-top:1px solid #f0edf6;color:#39334e;font-size:11px}
.receipt-preview-table-row>span{min-width:0;font-weight:700;overflow-wrap:anywhere}
.receipt-preview-table-row>span small{display:block;margin-top:3px;color:#918ba1;font-size:9px;font-weight:500}
.receipt-preview-table-row>b{font-size:11px}
.receipt-preview-table-row>strong{font-size:11px;white-space:nowrap}
.receipt-preview-total{max-width:280px;margin:13px 18px 0 auto;padding:0 0 13px}
.receipt-preview-total>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;color:#777187;font-size:11px}
.receipt-preview-total>div b{color:#39334e}
.receipt-preview-total .receipt-preview-grand-total{
  margin-top:5px;padding-top:11px;border-top:1px solid #e9e4f1;
  color:#30234e;font-size:14px;font-weight:850;
}
.receipt-preview-grand-total b{color:#5b2acb!important;font-size:17px}
.receipt-preview-payment{
  margin:5px 18px 0;padding:13px 14px;display:flex;align-items:center;gap:11px;
  background:#eaf9f1;border:1px solid #d6f1e2;border-radius:12px;
}
.receipt-preview-payment-icon{
  width:34px;height:34px;display:grid;place-items:center;flex:none;
  color:#fff;background:#16866c;border-radius:50%;
}
.receipt-preview-payment-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.receipt-preview-payment-copy small{color:#43856d}
.receipt-preview-payment-copy b{color:#087c55;font-size:17px;font-weight:850}
.receipt-preview-payment>span{
  padding:5px 8px;border-radius:20px;background:#d5f3e3;color:#087c55;
  font-size:9px;font-weight:850;white-space:nowrap;
}
.receipt-preview-balance{margin:0 18px;padding:10px 3px 12px;border-bottom:1px dashed #e8e3f1}
.receipt-preview-balance>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:11px}
.receipt-preview-balance span{color:#777187}
.receipt-preview-balance b{color:#39334e;text-align:right}
.receipt-preview-note{margin:12px 18px;padding:10px 12px;background:#faf7ff;border-left:3px solid #8b45e8;border-radius:5px;color:#625a73;font-size:11px;line-height:1.5}
.receipt-preview-thanks{
  padding:17px 15px 19px;display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center;
}
.receipt-preview-thanks>span{color:#e56a9b;font-size:22px}
.receipt-preview-thanks>b{color:#5b2acb;font-size:13px}
.receipt-preview-thanks>small{color:#918ba1;font-size:10px}
.receipt-preview-actions{
  max-width:570px;margin:14px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:10px;
}
.receipt-preview-actions button{
  min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;
  border-radius:12px;font-size:12px;font-weight:800;
}
.receipt-preview-print{
  color:#fff;background:linear-gradient(105deg,#a83cff,#6720e9 55%,#3514bd);
  border:1px solid #6720e9;box-shadow:0 4px 12px #6720e926;
}
.receipt-preview-share{color:#5b2acb;background:#fff;border:1px solid #dcd3f5}
@media(max-width:420px){
  .receipt-preview-scroll{padding:12px 9px 22px}
  .receipt-preview-banner{min-height:105px}
  .receipt-preview-meta{padding:14px 15px}
  .receipt-preview-customer{margin:12px 13px}
  .receipt-preview-items{padding-right:13px;padding-left:13px}
  .receipt-preview-payment{margin-right:13px;margin-left:13px}
  .receipt-preview-balance{margin-right:13px;margin-left:13px}
  .receipt-preview-total{margin-right:13px}
  .receipt-preview-actions{gap:8px}
  .receipt-preview-actions button{font-size:11px}
}
@media print{
  @page{size:auto;margin:10mm}
  body *{visibility:hidden!important}
  .receipt-preview-backdrop,.receipt-preview-backdrop *{visibility:visible!important}
  .receipt-preview-backdrop{
    position:absolute!important;inset:0!important;display:block!important;
    height:auto!important;overflow:visible!important;background:#fff!important;
  }
  .receipt-preview-screen{
    width:100%!important;max-width:none!important;height:auto!important;
    display:block!important;overflow:visible!important;background:#fff!important;
  }
  .receipt-preview-topbar,.receipt-preview-actions{display:none!important}
  .receipt-preview-scroll{padding:0!important;overflow:visible!important}
  .receipt-preview-paper{
    max-width:none!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;break-inside:avoid;
  }
  .receipt-preview-banner,.receipt-preview-payment,.receipt-preview-status{
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
  }
}

/* Premium receipt business identity */
.receipt-preview-business{
  padding:22px 20px 19px;
  text-align:center;
  background:#fff;
  border-bottom:1px solid #eee9f7;
}
.receipt-preview-business h2{
  margin:0 0 15px;
  color:#30204f;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.35px;
  line-height:1.3;
}
.receipt-preview-business-details{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
}
.receipt-preview-business-detail{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  max-width:100%;
}
.receipt-preview-business-detail>span{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  flex:none;
  color:#6720e9;
  background:#f3edff;
  border:1px solid #e8ddff;
  border-radius:9px;
}
.receipt-preview-business-detail p{
  margin:0;
  color:#625a73;
  font-size:12px;
  font-weight:550;
  line-height:1.5;
  overflow-wrap:anywhere;
  text-align:left;
}
.receipt-preview-business-detail p b{
  color:#3e3159;
  font-weight:800;
  margin-right:4px;
}

/* Compact, minimal receipt business header */
.receipt-preview-business{
  padding:15px 18px 13px;
  background:#fff;
  text-align:center;
  border-bottom:1px solid #eee9f7;
}
.receipt-preview-business h2{
  margin:0 0 8px;
  color:#30204f;
  font-size:19px;
  font-weight:850;
  letter-spacing:-.3px;
  line-height:1.25;
}
.receipt-preview-business-details{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
}
.receipt-preview-business-detail{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.receipt-preview-business-detail>span{
  width:auto;
  height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#6720e9;
  background:transparent;
  border:0;
  border-radius:0;
}
.receipt-preview-business-detail>span svg{
  width:13px;
  height:13px;
  stroke-width:2.2;
}
.receipt-preview-business-detail p{
  margin:0;
  color:#706980;
  font-size:11px;
  font-weight:550;
  line-height:1.4;
  text-align:left;
}
.receipt-preview-business-detail p b{
  display:none;
}

/* Compact horizontal receipt heading and metadata */
.receipt-preview-banner{
  min-height:0;
  padding:11px 17px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  text-align:left;
  background:#fff;
}
.receipt-preview-banner-icon{
  width:32px;
  height:32px;
  border-radius:9px;
  flex:none;
}
.receipt-preview-banner h2{
  flex:1;
  min-width:0;
  font-size:15px;
  font-weight:850;
  text-align:left;
}
.receipt-preview-status{
  flex:none;
  padding:5px 10px;
  font-size:9px;
}
.receipt-preview-meta{
  padding:10px 18px;
  align-items:center;
  gap:12px;
}
.receipt-preview-meta>div{
  flex:1;
  gap:3px;
}
.receipt-preview-meta>div:last-child{
  align-items:flex-end;
  text-align:right;
}
.receipt-preview-meta small{
  font-size:8px;
  letter-spacing:.65px;
}
.receipt-preview-meta b{
  font-size:11px;
}

/* Premium compact receipt title, number and date */
.receipt-preview-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 17px;
  background:#fff;
  border-bottom:1px solid #eee9f7;
}
.receipt-preview-heading-left{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.receipt-preview-heading .receipt-preview-banner-icon{
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  flex:none;
  color:#6720e9;
  background:#f3edff;
  border:1px solid #e8ddff;
  border-radius:10px;
}
.receipt-preview-heading-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.receipt-preview-heading-copy h2{
  margin:0;
  color:#30204f;
  font-size:14px;
  line-height:1.2;
  font-weight:850;
  white-space:nowrap;
}
.receipt-preview-heading-copy small,
.receipt-preview-heading-date small{
  color:#918ba1;
  font-size:8px;
  font-weight:800;
  letter-spacing:.65px;
}
.receipt-preview-heading-copy small b{
  margin-left:3px;
  color:#55416f;
  font-size:10px;
  letter-spacing:0;
}
.receipt-preview-heading-date{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  flex:none;
  text-align:right;
}
.receipt-preview-heading-date b{
  color:#39334e;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.receipt-preview-heading-date small{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  color:#817493;
}
.receipt-preview-heading-date small svg{
  color:#6720e9;
  stroke-width:2.2;
  flex:none;
}

/* Premium horizontal receipt customer section */
.receipt-preview-customer{
  margin:0;
  padding:15px 18px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fff;
  border:0;
  border-bottom:1px solid #eee9f7;
  border-radius:0;
}
.receipt-preview-customer-main{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:11px;
  flex:1;
  min-width:0;
}
.receipt-preview-customer-avatar{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:none;
  color:#6720e9;
  background:#f1eaff;
  border:1px solid #e6d9ff;
  border-radius:50%;
}
.receipt-preview-customer-info{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start;
  gap:5px;
  min-width:0;
}
.receipt-preview-customer-name{
  color:#30204f;
  font-size:14px;
  font-weight:850;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.receipt-preview-customer-info>div{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:5px;
  color:#756d83;
  font-size:10px;
  line-height:1.35;
  min-width:0;
}
.receipt-preview-customer-info>div svg{
  color:#7541d5;
  flex:none;
  margin-top:1px;
}
.receipt-preview-customer-info>div span{
  overflow-wrap:anywhere;
}
.receipt-preview-item-count{
  min-width:66px;
  padding:9px 11px;
  display:flex!important;
  flex-direction:column!important;
  align-items:center;
  justify-content:center;
  gap:3px;
  flex:none;
  color:#6720e9;
  background:#f8f5ff;
  border:1px solid #ece3ff;
  border-radius:12px;
}
.receipt-preview-item-count svg{
  color:#7541d5;
}
.receipt-preview-item-count b{
  color:#39245f;
  font-size:17px;
  font-weight:900;
  line-height:1;
}
.receipt-preview-item-count small{
  color:#8b7aa7;
  font-size:8px;
  font-weight:850;
  letter-spacing:.7px;
}
@media(max-width:420px){
  .receipt-preview-customer{
    padding:12px 13px;
    gap:8px;
  }
  .receipt-preview-customer-avatar{
    width:41px;
    height:41px;
  }
  .receipt-preview-customer-main{
    gap:8px;
  }
  .receipt-preview-customer-name{
    font-size:13px;
  }
  .receipt-preview-item-count{
    min-width:58px;
    padding:8px;
  }
}

/* Refined receipt customer and total-items partition */
.receipt-preview-customer{
  padding:14px 18px;
  gap:14px;
}
.receipt-preview-customer-main{
  flex:1;
  min-width:0;
}
.receipt-preview-customer-info{
  gap:6px;
}
.receipt-preview-customer-info>div{
  font-size:10px;
  gap:6px;
}
.receipt-preview-item-count{
  min-width:91px;
  align-self:stretch;
  padding:4px 0 4px 14px;
  border:0;
  border-left:1px solid #e8e1f1;
  border-radius:0;
  background:transparent;
  gap:8px;
}
.receipt-preview-item-count>small{
  color:#8b7aa7;
  font-size:8px;
  font-weight:850;
  letter-spacing:.7px;
  white-space:nowrap;
}
.receipt-preview-item-count-value{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.receipt-preview-item-count-value svg{
  color:#6720e9;
  stroke-width:1.9;
}
.receipt-preview-item-count-value b{
  color:#39245f;
  font-size:21px;
  font-weight:900;
  line-height:1;
}
@media(max-width:420px){
  .receipt-preview-customer{
    padding:12px 13px;
    gap:10px;
  }
  .receipt-preview-item-count{
    min-width:82px;
    padding-left:10px;
  }
  .receipt-preview-item-count>small{
    font-size:7px;
  }
}

/* Final premium receipt customer layout */
.receipt-preview-customer{
  padding:16px 18px;
  gap:15px;
  align-items:center;
}
.receipt-preview-customer-main{
  gap:13px;
  padding-right:2px;
}
.receipt-preview-customer-avatar{
  width:48px;
  height:48px;
  color:#6330c8;
  background:linear-gradient(145deg,#f5efff,#eae0ff);
  border:1px solid #e3d6ff;
  box-shadow:0 3px 9px #6720e910;
}
.receipt-preview-customer-info{
  gap:7px;
}
.receipt-preview-customer-name{
  color:#30204f;
  font-size:14px;
  font-weight:900;
  letter-spacing:-.15px;
}
.receipt-preview-customer-info>div{
  gap:7px;
  color:#6d657b;
  font-size:10.5px;
  line-height:1.4;
}
.receipt-preview-customer-info>div svg{
  width:13px;
  height:13px;
  color:#7541d5;
  stroke-width:2.1;
}
.receipt-preview-item-count{
  min-width:91px;
  align-self:center;
  padding:10px 9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(145deg,#faf7ff,#f1eaff);
  border:1px solid #e8ddfb;
  border-radius:13px;
  box-shadow:0 3px 10px #6720e90b;
}
.receipt-preview-item-count>small{
  color:#786397;
  font-size:8px;
  font-weight:900;
  letter-spacing:.8px;
}
.receipt-preview-item-count-value{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.receipt-preview-item-count-value svg{
  width:19px;
  height:19px;
  color:#6720e9;
  stroke-width:2;
}
.receipt-preview-item-count-value b{
  color:#39245f;
  font-size:22px;
  font-weight:900;
  line-height:1;
}
@media(max-width:420px){
  .receipt-preview-customer{
    padding:13px;
    gap:11px;
  }
  .receipt-preview-customer-main{
    gap:10px;
  }
  .receipt-preview-customer-avatar{
    width:44px;
    height:44px;
  }
  .receipt-preview-customer-name{
    font-size:13px;
  }
  .receipt-preview-item-count{
    min-width:84px;
    padding:9px 7px;
  }
}

/* Compact customer details with balanced avatar spacing */
.receipt-preview-customer{
  gap:13px;
}
.receipt-preview-customer-main{
  gap:15px;
}
.receipt-preview-customer-info{
  gap:3px;
}
.receipt-preview-customer-name{
  margin-bottom:1px;
  line-height:1.25;
}
.receipt-preview-customer-info>div{
  gap:6px;
  line-height:1.25;
}
.receipt-preview-customer-avatar{
  margin-right:0;
  flex:none;
}
.receipt-preview-item-count{
  border-left:1px solid #e8e1f1;
}
@media(max-width:420px){
  .receipt-preview-customer-main{
    gap:12px;
  }
  .receipt-preview-customer-info{
    gap:3px;
  }
}

/* Keep vertical partition between customer and item summary */
.receipt-preview-item-count{
  border-left:1px solid #ded4ef !important;
  padding-left:14px;
  border-radius:0 12px 12px 0;
}
@media(max-width:420px){
  .receipt-preview-item-count{
    padding-left:11px;
  }
}

/* Clean divider without cutting the total-items card */
.receipt-preview-customer{
  gap:12px;
  overflow:visible;
}
.receipt-preview-customer-main{
  flex:1;
  min-width:0;
}
.receipt-preview-item-count{
  position:relative;
  border:1px solid #e8ddfb !important;
  border-radius:12px !important;
  padding:10px 9px !important;
  margin-left:1px;
  overflow:visible;
}
.receipt-preview-item-count::before{
  content:"";
  position:absolute;
  left:-13px;
  top:5px;
  bottom:5px;
  width:1px;
  background:#ded4ef;
}
@media(max-width:420px){
  .receipt-preview-item-count::before{
    left:-12px;
  }
}

/* Compact numbered receipt items table */
.receipt-preview-table-head,
.receipt-preview-table-row{
  grid-template-columns:20px minmax(0,1fr) 34px minmax(70px,auto);
  align-items:center;
  gap:7px;
  padding:8px 10px;
}
.receipt-preview-table-head span:first-child,
.receipt-preview-table-row .receipt-preview-row-number{
  text-align:center;
}
.receipt-preview-table-head span:nth-child(3),
.receipt-preview-table-row>b{
  text-align:center;
}
.receipt-preview-table-head span:last-child,
.receipt-preview-table-row>strong{
  text-align:right;
}
.receipt-preview-table-row .receipt-preview-row-number{
  color:#918ba1;
  font-size:10px;
  font-weight:700;
}
.receipt-preview-total{
  max-width:260px;
  margin-top:10px;
}
.receipt-preview-total>div{
  padding:4px 0;
}
.receipt-preview-total .receipt-preview-grand-total{
  margin-top:4px;
  padding-top:9px;
}

/* Refined receipt item column alignment */
.receipt-preview-table-head,
.receipt-preview-table-row{
  grid-template-columns:22px minmax(0,1fr) 38px minmax(76px,auto);
  column-gap:8px;
}
.receipt-preview-table-head span:nth-child(2){
  text-align:left;
}
.receipt-preview-table-row>span:nth-child(2){
  text-align:left;
  min-width:0;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.receipt-preview-table-row>span:nth-child(2) small{
  text-align:left;
  line-height:1.3;
}
.receipt-preview-table-row>b{
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.receipt-preview-table-row>strong{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

/* Tighter receipt totals alignment */
.receipt-preview-total{
  width:fit-content;
  min-width:220px;
  max-width:calc(100% - 36px);
  margin-left:auto;
}
.receipt-preview-total>div{
  justify-content:flex-start;
  gap:18px;
}
.receipt-preview-total>div span{
  flex:1;
  min-width:0;
}
.receipt-preview-total>div b{
  min-width:85px;
  text-align:right;
  white-space:nowrap;
}
.receipt-preview-total .receipt-preview-grand-total{
  justify-content:space-between;
}

/* Compact receipt totals spacing */
.receipt-preview-total{
  min-width:0;
  width:235px;
}
.receipt-preview-total>div{
  justify-content:flex-start;
  gap:8px;
}
.receipt-preview-total>div span{
  flex:0 0 105px;
}
.receipt-preview-total>div b{
  min-width:0;
  text-align:left;
}
.receipt-preview-total .receipt-preview-grand-total{
  justify-content:space-between;
}

/* Final receipt totals: labels left, amounts right */
.receipt-preview-total{
  width:260px;
  min-width:0;
  max-width:calc(100% - 36px);
  margin:10px 18px 0 auto;
}
.receipt-preview-total>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  justify-content:initial;
  align-items:center;
  gap:8px;
}
.receipt-preview-total>div span{
  min-width:0;
  text-align:left;
}
.receipt-preview-total>div b{
  min-width:0;
  text-align:right;
  white-space:nowrap;
}
.receipt-preview-total .receipt-preview-grand-total{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
}

/* Bring receipt total labels closer to their amounts */
.receipt-preview-total{
  width:210px;
  max-width:calc(100% - 36px);
}
.receipt-preview-total>div{
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:5px;
}

.receipt-preview-total{
  width:180px;
}
.receipt-preview-total>div{
  column-gap:2px;
}

/* Premium payment receipt card */
.receipt-preview-payment{
  display:block;
  padding:13px 14px 11px;
  margin:5px 18px 0;
}
.receipt-preview-payment-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:11px;
  border-bottom:1px solid #cfeadb;
}
.receipt-preview-payment-copy{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.receipt-preview-payment-copy small,
.receipt-preview-payment-breakdown small{
  color:#43856d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.45px;
}
.receipt-preview-payment-copy b{
  color:#087c55;
  font-size:19px;
  font-weight:850;
}
.receipt-preview-payment-status{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:6px 9px;
  border-radius:20px;
  background:#d5f3e3;
  color:#087c55;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
.receipt-preview-payment-breakdown{
  display:grid;
  grid-template-columns:1fr 1fr;
  padding-top:10px;
}
.receipt-preview-payment-breakdown>div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.receipt-preview-payment-breakdown>div+div{
  border-left:1px solid #cfeadb;
  padding-left:14px;
}
.receipt-preview-payment-breakdown>div:first-child{
  align-items:center;
  padding-right:14px;
}
.receipt-preview-payment-breakdown>div:last-child{
  align-items:flex-end;
}
.receipt-preview-payment-breakdown b{
  color:#087c55;
  font-size:13px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
.receipt-preview-balance{
  padding-top:7px;
}

/* Compact receipt payment layout */
.receipt-preview-payment{
  padding:8px 10px 7px;
  margin:4px 18px 0;
}
.receipt-preview-payment-top{
  padding-bottom:7px;
  gap:8px;
}
.receipt-preview-payment-copy{gap:2px}
.receipt-preview-payment-copy b{font-size:16px}
.receipt-preview-payment-status{
  padding:0;
  background:transparent;
  border-radius:0;
  font-size:10px;
  gap:4px;
}
.receipt-preview-payment-status svg{color:#087c55}
.receipt-preview-payment-breakdown{padding-top:7px}
.receipt-preview-payment-breakdown>div{gap:2px}
.receipt-preview-payment-breakdown>div:first-child{
  align-items:center;
  padding-right:10px;
}
.receipt-preview-payment-breakdown>div+div{padding-left:10px}
.receipt-preview-payment-breakdown b{font-size:12px}

/* Single-row compact payment summary */
.receipt-preview-payment-horizontal{
  display:grid;
  grid-template-columns:.8fr 1fr 1fr;
  align-items:center;
  gap:0;
  padding:10px 9px;
  margin:5px 18px 0;
  border-radius:9px;
  background:#eaf8f0;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status,
.receipt-preview-payment-horizontal>.receipt-preview-payment-column{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 5px;
  background:transparent;
  border:0;
  border-radius:0;
  text-align:center;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status{
  flex-direction:row;
  flex-wrap:wrap;
  gap:3px;
  color:#087c55;
  font-size:10px;
  font-weight:850;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column+ .receipt-preview-payment-column{
  border-left:1px solid #c5e5d2;
}
.receipt-preview-payment-horizontal small{
  color:#43856d;
  font-size:8px;
  font-weight:800;
  letter-spacing:.25px;
  white-space:nowrap;
}
.receipt-preview-payment-horizontal b{
  color:#087c55;
  font-size:12px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.receipt-preview-pending-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b97819;
}

/* Refined payment status and amount columns */
.receipt-preview-payment-horizontal>.receipt-preview-payment-status{
  flex-direction:column;
  gap:4px;
  color:#087c55;
  font-size:14px;
  font-weight:900;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status svg{
  width:25px;
  height:25px;
  padding:5px;
  border-radius:50%;
  background:#d1f1df;
  color:#087c55;
  box-sizing:content-box;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-pending-dot){
  color:#b97819;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-pending-dot) .receipt-preview-pending-dot{
  width:25px;
  height:25px;
  border-radius:50%;
  background:#fff0d5;
  position:relative;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-pending-dot) .receipt-preview-pending-dot:after{
  content:'!';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#b97819;
  font-size:15px;
  font-weight:900;
}
.receipt-preview-payment-horizontal small{
  color:#263344;
  font-size:8px;
  font-weight:850;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column{
  gap:5px;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column b{
  font-size:13px;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(2) b{
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(3) b{
  color:#b97819;
}

/* Payment card labels and inline amount icons */
.receipt-preview-payment-horizontal>.receipt-preview-payment-status>small,
.receipt-preview-payment-horizontal>.receipt-preview-payment-column>small{
  color:#263344;
  font-size:8px;
  font-weight:850;
  letter-spacing:.3px;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status{
  gap:4px;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status>small{
  margin-bottom:1px;
}
.receipt-preview-payment-value{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(2) .receipt-preview-payment-value{
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(3) .receipt-preview-payment-value{
  color:#b97819;
}
.receipt-preview-payment-value svg{
  flex-shrink:0;
  width:13px;
  height:13px;
}

/* Horizontal icon-left payment columns */
.receipt-preview-payment-horizontal{
  grid-template-columns:1fr 1fr 1.15fr;
  align-items:center;
  padding:10px 8px;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status,
.receipt-preview-payment-horizontal>.receipt-preview-payment-column{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
  padding:0 5px;
  text-align:left;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column+ .receipt-preview-payment-column{
  border-left:1px solid #c5e5d2;
}
.receipt-preview-payment-info{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
  gap:3px;
}
.receipt-preview-payment-horizontal .receipt-preview-payment-info small{
  font-size:7px;
  line-height:1.2;
  white-space:nowrap;
  color:#263344;
}
.receipt-preview-payment-horizontal .receipt-preview-payment-info b{
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status{
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status>svg{
  flex-shrink:0;
  width:22px;
  height:22px;
  padding:4px;
  box-sizing:border-box;
  border-radius:50%;
  background:#d1f1df;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(2)>svg{
  flex-shrink:0;
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(3)>svg{
  flex-shrink:0;
  color:#b97819;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(3) .receipt-preview-payment-info b{
  color:#b97819;
}

/* Match Payment Status alignment to amount columns */
.receipt-preview-payment-horizontal>.receipt-preview-payment-status{
  justify-content:center;
  align-items:center;
  flex-direction:row;
  gap:6px;
  text-align:left;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info{
  align-items:flex-start;
  gap:3px;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info small{
  font-size:7px;
  line-height:1.2;
  white-space:nowrap;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info b{
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-payment-info b:last-child){
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-payment-info b):has(svg){
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(svg + .receipt-preview-payment-info b){
  color:#087c55;
}

/* Final: make Payment Status match the amount columns */
.receipt-preview-payment-horizontal>.receipt-preview-payment-status{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 5px;
  text-align:left;
  background:transparent;
  border:0;
  border-radius:0;
  font-size:inherit;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status>svg{
  flex-shrink:0;
  width:17px;
  height:17px;
  padding:0;
  border-radius:0;
  background:transparent;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  min-width:0;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info small{
  font-size:7px;
  line-height:1.2;
  white-space:nowrap;
  color:#263344;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info b{
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-payment-info b){
  color:#087c55;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-payment-info b):has(svg.lucide-clock3) .receipt-preview-payment-info b,
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-payment-info b):has(svg.lucide-clock-3) .receipt-preview-payment-info b{
  color:#b97819;
}

/* Payment status circular icon badges */
.receipt-preview-payment-horizontal>.receipt-preview-payment-status>svg{
  width:22px;
  height:22px;
  padding:4px;
  box-sizing:border-box;
  flex-shrink:0;
  border-radius:50%;
  background:#087c55;
  color:#fff;
  stroke-width:3;
}
.receipt-preview-status-alert{
  width:22px;
  height:22px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#b97819;
  color:#fff;
  font-size:15px;
  font-weight:900;
  line-height:1;
}

/* Center payment status text and highlight pending */
.receipt-preview-payment-horizontal>.receipt-preview-payment-status .receipt-preview-payment-info{
  align-items:center;
  text-align:center;
}
.receipt-preview-payment-horizontal>.receipt-preview-payment-status:has(.receipt-preview-status-alert) .receipt-preview-payment-info b{
  color:#b97819;
}

/* Divider between Payment Status and Paid Amount */
.receipt-preview-payment-horizontal>.receipt-preview-payment-column:nth-child(2){
  border-left:1px solid #c5e5d2;
}

/* Divider above receipt thank-you message */
.receipt-preview-thanks{
  border-top:1px solid #e5dfef;
}

/* Move thank-you divider slightly lower */
.receipt-preview-thanks{
  padding-top:14px;
}

/* Move the divider itself slightly downward */
.receipt-preview-thanks{
  margin-top:8px;
}

/* Match printed receipt width and spacing to screen preview */
@media print{
  .receipt-preview-paper{
    width:100%!important;
    max-width:570px!important;
    margin:0 auto!important;
    box-sizing:border-box!important;
  }
  .receipt-preview-scroll{
    width:100%!important;
  }
}

/* Balanced Item and Qty columns — screen and print */
.receipt-preview-table-head,
.receipt-preview-table-row{
  grid-template-columns:20px minmax(0,1fr) 42px minmax(70px,auto);
}
.receipt-preview-table-head span:nth-child(2),
.receipt-preview-table-row>span:nth-child(2){
  text-align:center;
}
@media print{
  .receipt-preview-table-head,
  .receipt-preview-table-row{
    grid-template-columns:20px minmax(0,1fr) 42px minmax(70px,auto)!important;
  }
  .receipt-preview-table-head span:nth-child(2),
  .receipt-preview-table-row>span:nth-child(2){
    text-align:center!important;
  }
}

/* Equal spacing for Item and Qty, preserving # and Amount positions */
.receipt-preview-table-head,
.receipt-preview-table-row{
  grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) minmax(70px,auto)!important;
  column-gap:10px!important;
}
.receipt-preview-table-head span:nth-child(2),
.receipt-preview-table-row>span:nth-child(2){
  text-align:left!important;
}
.receipt-preview-table-head span:nth-child(3),
.receipt-preview-table-row>b{
  text-align:center!important;
}
.receipt-preview-table-head span:first-child,
.receipt-preview-table-row .receipt-preview-row-number{
  text-align:center!important;
}
.receipt-preview-table-head span:last-child,
.receipt-preview-table-row>strong{
  text-align:right!important;
}

/* Final receipt table column distribution */
.receipt-preview-table-head,
.receipt-preview-table-row{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) 70px!important;
  column-gap:0!important;
  align-items:center!important;
}
.receipt-preview-table-head span:first-child,
.receipt-preview-table-row .receipt-preview-row-number{
  text-align:center!important;
}
.receipt-preview-table-head span:nth-child(2),
.receipt-preview-table-row>span:nth-child(2){
  text-align:center!important;
}
.receipt-preview-table-head span:nth-child(3),
.receipt-preview-table-row>b{
  text-align:center!important;
}
.receipt-preview-table-head span:last-child,
.receipt-preview-table-row>strong{
  text-align:right!important;
}
@media print{
  .receipt-preview-table-head,
  .receipt-preview-table-row{
    grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) 70px!important;
  }
}

/* Align item name and unit price together */
.receipt-preview-table-row>span:nth-child(2){
  text-align:left!important;
  justify-self:start;
}
@media print{
  .receipt-preview-table-row>span:nth-child(2){
    text-align:left!important;
    justify-self:start;
  }
}

/* Keep item cell full-width and align name and price neatly */
.receipt-preview-table-row>span:nth-child(2){
  width:100%!important;
  min-width:0!important;
  justify-self:stretch!important;
  text-align:left!important;
}
.receipt-preview-table-row>span:nth-child(2) small{
  display:block!important;
  text-align:left!important;
  margin-top:4px!important;
  white-space:nowrap;
}
@media print{
  .receipt-preview-table-row>span:nth-child(2){
    width:100%!important;
    justify-self:stretch!important;
    text-align:left!important;
  }
}

/* Final Item column alignment */
.receipt-preview-table-row>span:nth-child(2){
  width:100%!important;
  justify-self:stretch!important;
  text-align:center!important;
  line-height:1.4!important;
}
.receipt-preview-table-row>span:nth-child(2) small{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  white-space:nowrap!important;
  margin-top:4px!important;
}
@media print{
  .receipt-preview-table-row>span:nth-child(2),
  .receipt-preview-table-row>span:nth-child(2) small{
    text-align:center!important;
  }
}

/* Independent DoovaBook Invoice design */
.invoice-preview-backdrop{
  position:fixed;inset:0;z-index:1200;display:flex;justify-content:center;
  align-items:stretch;background:rgba(20,16,39,.66);padding:0;
}
.invoice-preview-screen{
  width:100%;max-width:760px;height:100%;display:flex;flex-direction:column;
  background:#f5f4fa;overflow:hidden;
}
.invoice-preview-topbar{
  flex-shrink:0;display:flex;align-items:center;gap:13px;padding:13px 17px;
  color:#fff;background:linear-gradient(115deg,#4930b8,#7056df);
}
.invoice-preview-topbar>button{
  width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:11px;
  color:#fff;background:rgba(255,255,255,.15);cursor:pointer;
}
.invoice-preview-topbar>div{flex:1;display:flex;flex-direction:column;gap:2px}
.invoice-preview-topbar>div b{font-size:15px;font-weight:750}
.invoice-preview-topbar>div small{font-size:11px;color:#e5ddff}
.invoice-preview-scroll{flex:1;overflow-y:auto;padding:20px 14px 28px}
.invoice-preview-paper{
  width:100%;max-width:660px;margin:0 auto;background:#fff;color:#28243a;
  border:1px solid #eeeafa;border-radius:17px;overflow:hidden;
  box-shadow:0 8px 28px rgba(40,29,91,.09);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.invoice-brand-header{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:24px 25px 20px;color:#fff;
  background:linear-gradient(115deg,#4d35bd 0%,#6046d0 55%,#7962e6 100%);
}
.invoice-brand-identity{display:flex;align-items:center;gap:12px;min-width:0}
.invoice-business-logo{
  width:48px;height:48px;flex-shrink:0;object-fit:cover;border-radius:12px;
  border:2px solid rgba(255,255,255,.7);background:#fff;
}
.invoice-brand-identity h2{margin:0;font-size:19px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
.invoice-brand-identity small{display:block;margin-top:4px;color:#e8e2ff;font-size:11px}
.invoice-brand-label{text-align:right;flex-shrink:0}
.invoice-brand-label span{display:block;font-size:23px;font-weight:850;letter-spacing:1.5px}
.invoice-brand-label small{display:block;margin-top:4px;color:#e8e2ff;font-size:8px;letter-spacing:.7px}
.invoice-business-contact{
  display:flex;flex-wrap:wrap;gap:9px 20px;padding:13px 25px;
  background:#f8f6ff;border-bottom:1px solid #eeeafa;
}
.invoice-business-contact>div{display:flex;align-items:flex-start;gap:7px;color:#625b78;font-size:11px;line-height:1.5}
.invoice-business-contact svg{flex-shrink:0;margin-top:1px;color:#624bd0}
.invoice-business-contact b{color:#39334d}
.invoice-number-panel{
  margin:19px 22px 17px;padding:14px 16px;display:flex;justify-content:space-between;
  gap:12px;background:#f7f5ff;border:1px solid #ebe6ff;border-radius:13px;
}
.invoice-number-main,.invoice-date-main{display:flex;flex-direction:column;gap:5px}
.invoice-number-main>span,.invoice-date-main>span{
  display:flex;align-items:center;gap:5px;color:#817995;font-size:9px;
  font-weight:750;letter-spacing:.65px;
}
.invoice-number-main>b{font-size:16px;color:#5139bd}
.invoice-date-main{text-align:right;align-items:flex-end}
.invoice-date-main>b{font-size:12px;color:#39334d}
.invoice-bill-section,.invoice-items-section,.invoice-payment-summary,.invoice-history-section{
  margin:0 22px 19px;
}
.invoice-section-heading{
  display:flex;align-items:center;gap:9px;margin-bottom:11px;
}
.invoice-section-heading>b{font-size:11px;letter-spacing:.65px;color:#403858;font-weight:800}
.invoice-section-heading>small{margin-left:auto;color:#8a839b;font-size:10px}
.invoice-section-icon{
  width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;
  color:#6046d0;background:#f0edff;border-radius:10px;
}
.invoice-customer-card{
  display:flex;flex-direction:column;gap:6px;padding:13px 15px;
  background:#faf9ff;border:1px solid #eeeafa;border-radius:12px;
}
.invoice-customer-card>b{font-size:13px;color:#302a42}
.invoice-customer-card>span{
  display:flex;align-items:flex-start;gap:7px;color:#716b80;font-size:11px;line-height:1.45;
}
.invoice-customer-card svg{flex-shrink:0;color:#7966ce}
.invoice-items-table{border:1px solid #ece9f5;border-radius:11px;overflow:hidden}
.invoice-items-head,.invoice-items-row{
  display:grid;grid-template-columns:28px minmax(0,1fr) 48px 100px;
  align-items:center;column-gap:8px;
}
.invoice-items-head{
  padding:11px 12px;color:#fff;background:#6046d0;
  font-size:10px;font-weight:750;letter-spacing:.2px;
}
.invoice-items-head span:nth-child(3),.invoice-items-row .invoice-item-qty{text-align:center}
.invoice-items-head span:last-child,.invoice-item-amount{text-align:right}
.invoice-items-row{padding:12px;border-top:1px solid #f0edf7;font-size:11px}
.invoice-item-serial{color:#8a829c;text-align:center}
.invoice-item-description{min-width:0;display:flex;flex-direction:column;gap:4px}
.invoice-item-description>b{font-size:11px;color:#332d45;overflow-wrap:anywhere}
.invoice-item-description>small{font-size:9px;color:#8b8499}
.invoice-item-qty{color:#514a63;font-size:11px}
.invoice-item-amount{color:#302a42;font-size:11px;white-space:nowrap}
.invoice-totals-section{
  margin:0 22px 19px;padding:13px 15px;background:#faf9ff;
  border:1px solid #eeeafa;border-radius:12px;
}
.invoice-totals-section>div{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:5px 0;color:#777086;font-size:11px;
}
.invoice-totals-section>div>b{color:#40394f;font-size:11px}
.invoice-totals-section .invoice-discount-value{color:#16866c}
.invoice-totals-section .invoice-total-grand{
  margin-top:8px;padding-top:12px;border-top:1px dashed #dcd5f2;
  color:#4f38bd;font-weight:800;font-size:13px;
}
.invoice-totals-section .invoice-total-grand>b{color:#4f38bd;font-size:19px}
.invoice-payment-summary{
  padding:15px;background:#f2fbf6;border:1px solid #dcefe4;border-radius:13px;
}
.invoice-green-icon{color:#16866c;background:#e1f4e9}
.invoice-payment-status{display:flex;align-items:center;gap:10px;padding:3px 0 13px}
.invoice-payment-status>span{
  width:34px;height:34px;display:grid;place-items:center;border-radius:50%;
}
.invoice-status-paid{color:#fff;background:#16866c}
.invoice-status-pending{color:#fff;background:#c18422}
.invoice-payment-status>div{display:flex;flex-direction:column;gap:3px}
.invoice-payment-status small,.invoice-payment-amounts small{
  color:#7a887f;font-size:9px;font-weight:750;letter-spacing:.55px;
}
.invoice-payment-status b{font-size:12px}
.invoice-paid-text{color:#16866c}
.invoice-pending-text,.invoice-due-text{color:#b97819!important}
.invoice-payment-amounts{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding-top:12px;border-top:1px solid #dcefe4;
}
.invoice-payment-amounts>div{display:flex;flex-direction:column;gap:5px}
.invoice-payment-amounts>div>b{font-size:14px;color:#285e48}
.invoice-history-list{border:1px solid #eeeafa;border-radius:11px;overflow:hidden}
.invoice-history-row{
  display:flex;align-items:center;gap:10px;padding:11px 12px;
  border-bottom:1px solid #f0edf7;
}
.invoice-history-row:last-child{border-bottom:0}
.invoice-history-icon{
  width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;
  color:#6046d0;background:#f0edff;border-radius:10px;
}
.invoice-history-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.invoice-history-info>b{font-size:11px;color:#39334d;overflow-wrap:anywhere}
.invoice-history-info>small{font-size:9px;color:#898297}
.invoice-history-row>strong{font-size:11px;color:#16866c;white-space:nowrap}
.invoice-upi-section{
  margin:0 22px 17px;padding:14px;display:flex;align-items:center;
  justify-content:space-between;gap:14px;border:1px solid #ebe6ff;
  background:#faf9ff;border-radius:12px;
}
.invoice-upi-section>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.invoice-upi-section>div>b{font-size:10px;letter-spacing:.6px;color:#5140a2}
.invoice-upi-section>div>span{font-size:11px;color:#625b78;overflow-wrap:anywhere}
.invoice-upi-section>img{width:86px;height:86px;object-fit:contain;padding:4px;background:#fff;border:1px solid #eeeafa;border-radius:8px}
.invoice-note-section{
  margin:0 22px 15px;padding:12px 14px;background:#fffaf0;
  border:1px solid #f3e8cb;border-radius:10px;
}
.invoice-note-section>b,.invoice-terms-section>b{font-size:9px;letter-spacing:.7px;color:#9a701f}
.invoice-note-section>p,.invoice-terms-section>p{
  margin:5px 0 0;font-size:10px;line-height:1.55;color:#6f687a;overflow-wrap:anywhere;
}
.invoice-terms-section{
  margin:0 22px 18px;padding:11px 13px;background:#faf9ff;
  border-left:3px solid #7962d8;border-radius:4px 9px 9px 4px;
}
.invoice-terms-section>b{color:#6552b4}
.invoice-thankyou-footer{
  display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:19px 15px 17px;color:#fff;text-align:center;
  background:linear-gradient(115deg,#4d35bd,#7056dc);
}
.invoice-thankyou-footer>span{font-size:18px;color:#f2d5ff}
.invoice-thankyou-footer>b{font-size:13px;font-weight:750}
.invoice-thankyou-footer>small{font-size:9px;color:#e6dfff}
.invoice-bottom-strip{height:5px;background:linear-gradient(90deg,#4d35bd,#a08bf4,#4d35bd)}
.invoice-preview-actions{
  max-width:660px;margin:14px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:10px;
}
.invoice-preview-actions>button{
  min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:12px;font-size:12px;font-weight:750;cursor:pointer;
}
.invoice-preview-print{color:#5941c4;background:#fff;border:1px solid #e6e0fb!important}
.invoice-preview-share{color:#fff;background:#6046d0}
@media(max-width:480px){
  .invoice-preview-scroll{padding:12px 9px 22px}
  .invoice-brand-header{padding:19px 16px 16px}
  .invoice-brand-identity h2{font-size:16px}
  .invoice-business-logo{width:42px;height:42px}
  .invoice-brand-label span{font-size:19px}
  .invoice-business-contact{padding:11px 16px;gap:8px 13px}
  .invoice-number-panel{margin:14px 13px;padding:12px}
  .invoice-bill-section,.invoice-items-section,.invoice-payment-summary,.invoice-history-section{margin-left:13px;margin-right:13px}
  .invoice-totals-section{margin-left:13px;margin-right:13px}
  .invoice-upi-section,.invoice-note-section,.invoice-terms-section{margin-left:13px;margin-right:13px}
  .invoice-items-head,.invoice-items-row{grid-template-columns:22px minmax(0,1fr) 35px 82px;column-gap:5px}
  .invoice-items-head{padding:10px 8px;font-size:9px}
  .invoice-items-row{padding:11px 8px}
  .invoice-item-description>b,.invoice-item-amount{font-size:10px}
  .invoice-item-description>small{font-size:8px}
  .invoice-preview-actions{gap:8px;margin-top:11px}
  .invoice-preview-actions>button{font-size:11px;min-height:44px}
}
@media print{
  body *{visibility:hidden!important}
  .invoice-preview-backdrop,.invoice-preview-backdrop *{visibility:visible!important}
  .invoice-preview-backdrop{
    position:absolute!important;inset:0!important;display:block!important;
    height:auto!important;overflow:visible!important;background:#fff!important;
  }
  .invoice-preview-screen{
    width:100%!important;max-width:none!important;height:auto!important;
    display:block!important;overflow:visible!important;background:#fff!important;
  }
  .invoice-preview-topbar,.invoice-preview-actions{display:none!important}
  .invoice-preview-scroll{padding:0!important;overflow:visible!important}
  .invoice-preview-paper{
    width:100%!important;max-width:none!important;margin:0!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    overflow:visible!important;
  }
  .invoice-brand-header,.invoice-items-head,.invoice-thankyou-footer{
    print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important;
  }
  .invoice-payment-summary,.invoice-customer-card,.invoice-totals-section,
  .invoice-number-panel,.invoice-history-row,.invoice-upi-section{
    break-inside:avoid!important;
  }
}

/* Premium clean white invoice business header */
.invoice-brand-header{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:25px 22px 17px!important;
  color:#302a42!important;
  text-align:center!important;
  background:#fff!important;
  border-bottom:1px solid #e9e5f0!important;
}
.invoice-brand-header .invoice-business-logo{
  width:62px!important;
  height:62px!important;
  margin-bottom:3px!important;
  object-fit:cover!important;
  border:1px solid #eeeafa!important;
  border-radius:14px!important;
}
.invoice-brand-header h2{
  margin:0!important;
  color:#29233b!important;
  font-size:25px!important;
  line-height:1.3!important;
  font-weight:850!important;
  letter-spacing:-.5px!important;
  overflow-wrap:anywhere!important;
}
.invoice-business-owner{
  color:#817995!important;
  font-size:11px!important;
}
.invoice-brand-header .invoice-business-contact{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:5px!important;
  padding:0!important;
  color:#6e687d!important;
  background:transparent!important;
  border:0!important;
}
.invoice-brand-header .invoice-business-contact>div{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:7px!important;
  color:#6e687d!important;
  font-size:11px!important;
  line-height:1.5!important;
  text-align:center!important;
}
.invoice-brand-header .invoice-business-contact svg{
  flex-shrink:0!important;
  margin-top:1px!important;
  color:#6046d0!important;
}
.invoice-brand-header .invoice-business-contact b{
  color:#403858!important;
}
@media(max-width:480px){
  .invoice-brand-header{padding:22px 15px 15px!important}
  .invoice-brand-header h2{font-size:22px!important}
}
@media print{
  .invoice-brand-header{
    background:#fff!important;
    color:#29233b!important;
    border-bottom:1px solid #e9e5f0!important;
    print-color-adjust:exact!important;
    -webkit-print-color-adjust:exact!important;
  }
}

/* Refined premium Invoice business header */
.invoice-brand-header{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:13px!important;
  padding:30px 22px 22px!important;
  background:#fff!important;
  color:#302743!important;
  text-align:center!important;
  border-bottom:1px solid #e9e5f0!important;
  position:relative!important;
}
.invoice-brand-header h2{
  margin:0!important;
  max-width:100%!important;
  color:#302344!important;
  font-size:29px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:-.8px!important;
  overflow-wrap:anywhere!important;
}
.invoice-brand-header h2::after{
  content:""!important;
  display:block!important;
  width:48px!important;
  height:3px!important;
  margin:12px auto 0!important;
  border-radius:10px!important;
  background:linear-gradient(90deg,#8d79e8,#5940c5)!important;
}
.invoice-brand-header .invoice-business-contact{
  width:100%!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
.invoice-brand-header .invoice-business-contact>div{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  max-width:100%!important;
  padding:8px 12px!important;
  color:#625a72!important;
  background:#f8f7fc!important;
  border:1px solid #efedf6!important;
  border-radius:10px!important;
  font-size:11px!important;
  line-height:1.45!important;
  text-align:left!important;
  overflow-wrap:anywhere!important;
}
.invoice-brand-header .invoice-business-contact svg{
  flex-shrink:0!important;
  width:25px!important;
  height:25px!important;
  padding:5px!important;
  color:#6249ca!important;
  background:#eeeafd!important;
  border-radius:8px!important;
}
.invoice-brand-header .invoice-business-contact b{
  color:#403454!important;
  font-weight:750!important;
}
@media(max-width:480px){
  .invoice-brand-header{padding:25px 15px 19px!important;gap:11px!important}
  .invoice-brand-header h2{font-size:25px!important}
  .invoice-brand-header .invoice-business-contact{gap:7px!important}
  .invoice-brand-header .invoice-business-contact>div{padding:7px 10px!important}
}
@media print{
  .invoice-brand-header{
    background:#fff!important;
    color:#302743!important;
    border-bottom:1px solid #e9e5f0!important;
    print-color-adjust:exact!important;
    -webkit-print-color-adjust:exact!important;
  }
}

/* Compact luxury Invoice header refinement */
.invoice-brand-header{
  gap:9px!important;
  padding:19px 18px 15px!important;
  border-bottom:1px solid #eae6f1!important;
}
.invoice-brand-header h2{
  font-size:25px!important;
  line-height:1.22!important;
  font-weight:800!important;
  letter-spacing:-.65px!important;
}
.invoice-brand-header h2::after{
  width:34px!important;
  height:2px!important;
  margin:8px auto 0!important;
  background:#6851c8!important;
}
.invoice-brand-header .invoice-business-contact{
  gap:6px!important;
}
.invoice-brand-header .invoice-business-contact>div{
  gap:6px!important;
  padding:5px 9px!important;
  color:#625b70!important;
  background:#faf9fd!important;
  border:1px solid #f0edf6!important;
  border-radius:8px!important;
  font-size:10px!important;
  line-height:1.35!important;
}
.invoice-brand-header .invoice-business-contact svg{
  width:21px!important;
  height:21px!important;
  padding:4px!important;
  color:#6550bd!important;
  background:#f0edfb!important;
  border-radius:6px!important;
}
@media(max-width:480px){
  .invoice-brand-header{
    gap:8px!important;
    padding:17px 12px 13px!important;
  }
  .invoice-brand-header h2{font-size:22px!important}
  .invoice-brand-header .invoice-business-contact{gap:5px!important}
  .invoice-brand-header .invoice-business-contact>div{
    padding:5px 8px!important;
    font-size:9.5px!important;
  }
}

/* Minimal inline contact details - no cards */
.invoice-brand-header .invoice-business-contact{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:5px!important;
  margin:0!important;
}
.invoice-brand-header .invoice-business-contact>div{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#686174!important;
  font-size:10.5px!important;
  line-height:1.45!important;
  text-align:center!important;
}
.invoice-brand-header .invoice-business-contact svg{
  width:14px!important;
  height:14px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:#6851c8!important;
}
.invoice-brand-header .invoice-business-contact b{
  color:#403653!important;
  font-weight:700!important;
}

/* Premium horizontal Invoice title and metadata */
.invoice-number-panel{
  display:grid!important;
  grid-template-columns:minmax(105px,.72fr) minmax(0,1.5fr)!important;
  align-items:center!important;
  gap:14px!important;
  padding:17px 20px!important;
  background:#fff!important;
  border-bottom:1px solid #eeeaf4!important;
}
.invoice-panel-title{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:0!important;
}
.invoice-panel-title .invoice-panel-icon{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:35px!important;
  height:35px!important;
  color:#624ac5!important;
  background:#f1edfc!important;
  border-radius:10px!important;
}
.invoice-panel-title>b{
  color:#302344!important;
  font-size:23px!important;
  line-height:1.1!important;
  font-weight:850!important;
  letter-spacing:-.7px!important;
}
.invoice-meta-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  align-items:center!important;
  min-width:0!important;
  padding:12px 13px!important;
  background:#faf9fd!important;
  border:1px solid #eeebf5!important;
  border-radius:11px!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  padding:0 10px!important;
}
.invoice-meta-card .invoice-number-main{
  border-right:1px solid #ded8ed!important;
}
.invoice-meta-card .invoice-date-main{
  padding-right:0!important;
}
.invoice-meta-card span{
  color:#898298!important;
  font-size:8px!important;
  line-height:1.3!important;
  font-weight:750!important;
  letter-spacing:.65px!important;
}
.invoice-meta-card b{
  color:#39304b!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:480px){
  .invoice-number-panel{
    grid-template-columns:90px minmax(0,1fr)!important;
    gap:8px!important;
    padding:13px 11px!important;
  }
  .invoice-panel-title .invoice-panel-icon{
    width:31px!important;
    height:31px!important;
  }
  .invoice-panel-title>b{font-size:19px!important}
  .invoice-meta-card{padding:10px 5px!important}
  .invoice-meta-card .invoice-number-main,
  .invoice-meta-card .invoice-date-main{padding:0 6px!important}
  .invoice-meta-card span{font-size:7px!important;letter-spacing:.35px!important}
  .invoice-meta-card b{font-size:9.5px!important}
}

/* Horizontal Invoice title and compact calendar date */
.invoice-panel-title{
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
.invoice-panel-title .invoice-panel-icon{
  width:32px!important;
  height:32px!important;
  flex-shrink:0!important;
  border-radius:9px!important;
}
.invoice-panel-title>b{
  font-size:21px!important;
  letter-spacing:-.55px!important;
}
.invoice-meta-card .invoice-date-main .invoice-date-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
}
.invoice-date-label svg{
  width:11px!important;
  height:11px!important;
  color:#6851c8!important;
  flex-shrink:0!important;
}
@media(max-width:480px){
  .invoice-panel-title{gap:6px!important}
  .invoice-panel-title .invoice-panel-icon{
    width:28px!important;
    height:28px!important;
  }
  .invoice-panel-title>b{font-size:18px!important}
}

/* Compact invoice metadata - remove outer card */
.invoice-number-panel{
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:12px!important;
}
.invoice-meta-card{
  display:grid!important;
  grid-template-columns:max-content max-content!important;
  justify-content:end!important;
  gap:0!important;
  width:max-content!important;
  max-width:100%!important;
  padding:0!important;
  margin-left:auto!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  width:auto!important;
  padding:0 10px!important;
  gap:4px!important;
}
.invoice-meta-card .invoice-number-main{
  border-right:1px solid #ded8ed!important;
}
.invoice-meta-card .invoice-date-main{
  padding-right:0!important;
}
@media(max-width:480px){
  .invoice-number-panel{
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:7px!important;
    padding:13px 10px!important;
  }
  .invoice-meta-card{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    width:100%!important;
  }
  .invoice-meta-card .invoice-number-main,
  .invoice-meta-card .invoice-date-main{
    padding:0 6px!important;
  }
  .invoice-meta-card span{font-size:7px!important}
  .invoice-meta-card b{font-size:9px!important}
}

/* Invoice heading left, number and date stacked on right */
.invoice-number-panel{
  grid-template-columns:max-content minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
}
.invoice-meta-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  max-width:100%!important;
  margin-left:auto!important;
  padding:0!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  padding:0!important;
  border:0!important;
}
.invoice-meta-card .invoice-number-main span,
.invoice-meta-card .invoice-date-main span{
  white-space:nowrap!important;
}
.invoice-meta-card .invoice-date-main .invoice-date-label{
  flex-shrink:0!important;
}
@media(max-width:480px){
  .invoice-number-panel{
    grid-template-columns:max-content minmax(0,1fr)!important;
    gap:9px!important;
  }
  .invoice-panel-title>b{font-size:17px!important}
  .invoice-meta-card{gap:7px!important}
  .invoice-meta-card .invoice-number-main,
  .invoice-meta-card .invoice-date-main{gap:5px!important}
  .invoice-meta-card span{font-size:7px!important}
  .invoice-meta-card b{font-size:9px!important}
}

/* DoovaBook — premium reference-inspired invoice */
.invoice-preview-paper{
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e8e2f3!important;
  border-radius:16px!important;
  box-shadow:0 12px 35px rgba(48,32,91,.09)!important;
}
.invoice-brand-header{
  box-sizing:border-box!important;
  width:58%!important;
  min-height:145px!important;
  padding:22px 14px 17px 22px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:left!important;
  background:#fff!important;
  border:0!important;
}
.invoice-brand-header h2{
  color:#30204f!important;
  font-size:23px!important;
  font-weight:850!important;
  letter-spacing:-.6px!important;
}
.invoice-brand-header h2::after{
  display:none!important;
}
.invoice-brand-header .invoice-business-contact{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:5px!important;
}
.invoice-brand-header .invoice-business-contact>div{
  justify-content:flex-start!important;
  text-align:left!important;
  padding:0!important;
  color:#716981!important;
  font-size:10px!important;
}
.invoice-brand-header .invoice-business-contact svg{
  width:13px!important;
  height:13px!important;
  color:#6549c7!important;
}
.invoice-number-panel{
  box-sizing:border-box!important;
  width:42%!important;
  min-height:145px!important;
  margin:0 0 0 auto!important;
  padding:19px 16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:13px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#7257d8 0%,#4c32a9 100%)!important;
  border:0!important;
  border-radius:0 0 0 19px!important;
}
.invoice-panel-title{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
}
.invoice-panel-title .invoice-panel-icon{
  width:28px!important;
  height:28px!important;
  color:#fff!important;
  background:rgba(255,255,255,.17)!important;
  border:1px solid rgba(255,255,255,.2)!important;
  border-radius:8px!important;
}
.invoice-panel-title .invoice-panel-icon svg{
  width:16px!important;
  height:16px!important;
}
.invoice-panel-title>b{
  color:#fff!important;
  font-size:19px!important;
  letter-spacing:.5px!important;
}
.invoice-meta-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:7px!important;
  background:transparent!important;
  border:0!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:7px!important;
  padding:0!important;
  border:0!important;
}
.invoice-meta-card span,
.invoice-meta-card b{
  color:#fff!important;
  font-size:9px!important;
  line-height:1.35!important;
}
.invoice-meta-card span{
  opacity:.78!important;
  letter-spacing:.35px!important;
}
.invoice-meta-card b{
  font-size:10px!important;
  font-weight:800!important;
}
.invoice-meta-card .invoice-date-label svg{
  color:#fff!important;
}
.invoice-bill-section,
.invoice-items-section,
.invoice-totals-section,
.invoice-payment-summary,
.invoice-history-section,
.invoice-upi-section,
.invoice-note-section,
.invoice-terms-section{
  margin-left:20px!important;
  margin-right:20px!important;
}
.invoice-section-heading{
  color:#38265f!important;
}
.invoice-section-icon{
  color:#6044c2!important;
  background:#f0ecfb!important;
  border-radius:8px!important;
}
.invoice-customer-card{
  background:#f5f2fc!important;
  border:1px solid #eae4f7!important;
  border-radius:11px!important;
}
.invoice-items-head{
  color:#fff!important;
  background:linear-gradient(100deg,#6c50cf,#4f35ad)!important;
  border-radius:9px 9px 0 0!important;
}
.invoice-items-row{
  background:#fff!important;
  border-bottom:1px solid #eeeaf4!important;
}
.invoice-totals-section{
  background:#f5f2fc!important;
  border:1px solid #eae4f7!important;
  border-radius:11px!important;
}
.invoice-total-grand{
  color:#39245f!important;
  border-top:1px solid #ded6ef!important;
}
.invoice-payment-summary{
  background:#f0f8f3!important;
  border:1px solid #dceee2!important;
  border-radius:11px!important;
}
.invoice-green-icon{
  color:#16866c!important;
  background:#e0f2e7!important;
}
.invoice-payment-status,
.invoice-payment-amounts{
  border-color:#dcebe1!important;
}
.invoice-thankyou-footer{
  margin-top:20px!important;
  padding:18px 16px!important;
  color:#fff!important;
  background:linear-gradient(110deg,#6d51d1,#4930a5)!important;
}
.invoice-thankyou-footer b,
.invoice-thankyou-footer small,
.invoice-thankyou-footer span{
  color:#fff!important;
}
.invoice-bottom-strip{
  height:5px!important;
  background:linear-gradient(90deg,#4930a5,#8c75e5,#4930a5)!important;
}
@media(max-width:480px){
  .invoice-brand-header{
    width:58%!important;
    min-height:125px!important;
    padding:15px 8px 13px 12px!important;
    gap:7px!important;
  }
  .invoice-brand-header h2{
    font-size:18px!important;
  }
  .invoice-brand-header .invoice-business-contact{
    gap:4px!important;
  }
  .invoice-brand-header .invoice-business-contact>div{
    font-size:8.5px!important;
    line-height:1.3!important;
    overflow-wrap:anywhere!important;
  }
  .invoice-number-panel{
    width:42%!important;
    min-height:125px!important;
    padding:12px 9px!important;
    gap:10px!important;
    border-radius:0 0 0 14px!important;
  }
  .invoice-panel-title{
    gap:6px!important;
  }
  .invoice-panel-title .invoice-panel-icon{
    width:24px!important;
    height:24px!important;
  }
  .invoice-panel-title>b{
    font-size:15px!important;
  }
  .invoice-meta-card{
    gap:7px!important;
  }
  .invoice-meta-card .invoice-number-main,
  .invoice-meta-card .invoice-date-main{
    flex-wrap:wrap!important;
    gap:3px 5px!important;
  }
  .invoice-meta-card span{
    font-size:7px!important;
  }
  .invoice-meta-card b{
    font-size:8.5px!important;
  }
  .invoice-bill-section,
  .invoice-items-section,
  .invoice-totals-section,
  .invoice-payment-summary,
  .invoice-history-section,
  .invoice-upi-section,
  .invoice-note-section,
  .invoice-terms-section{
    margin-left:12px!important;
    margin-right:12px!important;
  }
}
@media print{
  .invoice-preview-paper{
    border-radius:0!important;
    box-shadow:none!important;
  }
  .invoice-brand-header,
  .invoice-number-panel,
  .invoice-items-head,
  .invoice-thankyou-footer,
  .invoice-bottom-strip{
    print-color-adjust:exact!important;
    -webkit-print-color-adjust:exact!important;
  }
}

/* Invoice header — aligned premium two-column layout */
.invoice-preview-paper{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr)!important;
  align-items:stretch!important;
}
.invoice-brand-header{
  grid-column:1!important;
  grid-row:1!important;
  width:auto!important;
  min-width:0!important;
  min-height:150px!important;
  margin:0!important;
  padding:22px 12px 18px 22px!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
.invoice-brand-header h2{
  max-width:100%!important;
  margin:0!important;
  color:#30204f!important;
  font-size:22px!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
.invoice-brand-header .invoice-business-contact{
  width:100%!important;
  align-items:flex-start!important;
  text-align:left!important;
}
.invoice-brand-header .invoice-business-contact>div{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
.invoice-number-panel{
  grid-column:2!important;
  grid-row:1!important;
  width:auto!important;
  min-width:0!important;
  min-height:150px!important;
  margin:0!important;
  padding:19px 16px!important;
  align-items:flex-end!important;
  justify-content:center!important;
  text-align:right!important;
  border-radius:0 0 0 18px!important;
}
.invoice-panel-title{
  width:100%!important;
  justify-content:flex-end!important;
  gap:9px!important;
}
.invoice-panel-title .invoice-panel-icon{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
}
.invoice-panel-title .invoice-panel-icon svg{
  width:21px!important;
  height:21px!important;
}
.invoice-panel-title>b{
  font-size:23px!important;
  letter-spacing:.7px!important;
}
.invoice-meta-card{
  width:100%!important;
  align-items:flex-end!important;
  text-align:right!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  width:100%!important;
  justify-content:flex-end!important;
  text-align:right!important;
}
.invoice-bill-section,
.invoice-items-section,
.invoice-totals-section,
.invoice-payment-summary,
.invoice-history-section,
.invoice-upi-section,
.invoice-note-section,
.invoice-terms-section,
.invoice-thankyou-footer,
.invoice-bottom-strip{
  grid-column:1/-1!important;
}
@media(max-width:480px){
  .invoice-preview-paper{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
  }
  .invoice-brand-header{
    min-height:132px!important;
    padding:16px 7px 13px 12px!important;
  }
  .invoice-brand-header h2{
    font-size:17px!important;
  }
  .invoice-number-panel{
    min-height:132px!important;
    padding:13px 9px!important;
  }
  .invoice-panel-title{
    gap:6px!important;
  }
  .invoice-panel-title .invoice-panel-icon{
    width:27px!important;
    height:27px!important;
    flex-basis:27px!important;
  }
  .invoice-panel-title .invoice-panel-icon svg{
    width:17px!important;
    height:17px!important;
  }
  .invoice-panel-title>b{
    font-size:17px!important;
  }
}

/* Invoice header — clean white layout with partition dividers */
.invoice-preview-paper{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
  align-items:stretch!important;
}
.invoice-brand-header{
  grid-column:1!important;
  grid-row:1!important;
  width:auto!important;
  min-width:0!important;
  min-height:150px!important;
  margin:0!important;
  padding:23px 17px 19px 22px!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  text-align:left!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
}
.invoice-brand-header h2{
  margin:0 0 5px!important;
  color:#30204f!important;
  font-size:21px!important;
  font-weight:850!important;
  line-height:1.25!important;
  letter-spacing:-.45px!important;
  overflow-wrap:anywhere!important;
}
.invoice-brand-header .invoice-business-contact{
  width:100%!important;
  align-items:flex-start!important;
  gap:7px!important;
}
.invoice-brand-header .invoice-business-contact>div{
  max-width:100%!important;
  color:#716981!important;
  font-size:10px!important;
  line-height:1.45!important;
  overflow-wrap:anywhere!important;
}
.invoice-number-panel{
  grid-column:2!important;
  grid-row:1!important;
  position:relative!important;
  width:auto!important;
  min-width:0!important;
  min-height:150px!important;
  margin:0!important;
  padding:21px 20px 18px 22px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:12px!important;
  color:#30204f!important;
  text-align:right!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
}
.invoice-number-panel::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:20px!important;
  bottom:20px!important;
  width:1px!important;
  background:#e4def0!important;
}
.invoice-panel-title{
  width:100%!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
}
.invoice-panel-title .invoice-panel-icon{
  width:31px!important;
  height:31px!important;
  flex:0 0 31px!important;
  display:grid!important;
  place-items:center!important;
  color:#6044c2!important;
  background:#f1edfb!important;
  border:1px solid #e7e0f7!important;
  border-radius:9px!important;
}
.invoice-panel-title .invoice-panel-icon svg{
  width:19px!important;
  height:19px!important;
}
.invoice-panel-title>b{
  color:#5036ad!important;
  font-size:22px!important;
  font-weight:850!important;
  letter-spacing:.6px!important;
}
.invoice-meta-card{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:9px!important;
  text-align:right!important;
  background:transparent!important;
  border:0!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:3px!important;
  padding:0!important;
  text-align:right!important;
  border:0!important;
}
.invoice-meta-card span{
  color:#8a819b!important;
  font-size:8px!important;
  font-weight:750!important;
  letter-spacing:.8px!important;
}
.invoice-meta-card b{
  color:#342650!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
.invoice-meta-card .invoice-date-label{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
}
.invoice-meta-card .invoice-date-label svg{
  color:#7055ca!important;
}
.invoice-bill-section{
  grid-column:1/-1!important;
  border-top:1px solid #e9e4f0!important;
  padding-top:18px!important;
}
.invoice-items-section,
.invoice-totals-section,
.invoice-payment-summary,
.invoice-history-section,
.invoice-upi-section,
.invoice-note-section,
.invoice-terms-section,
.invoice-thankyou-footer,
.invoice-bottom-strip{
  grid-column:1/-1!important;
}
@media(max-width:480px){
  .invoice-brand-header{
    min-height:132px!important;
    padding:17px 10px 15px 13px!important;
  }
  .invoice-brand-header h2{
    font-size:17px!important;
  }
  .invoice-brand-header .invoice-business-contact{
    gap:5px!important;
  }
  .invoice-brand-header .invoice-business-contact>div{
    font-size:8.5px!important;
  }
  .invoice-number-panel{
    min-height:132px!important;
    padding:15px 10px 14px 13px!important;
    gap:9px!important;
  }
  .invoice-number-panel::before{
    top:15px!important;
    bottom:15px!important;
  }
  .invoice-panel-title{
    gap:6px!important;
  }
  .invoice-panel-title .invoice-panel-icon{
    width:25px!important;
    height:25px!important;
    flex-basis:25px!important;
  }
  .invoice-panel-title .invoice-panel-icon svg{
    width:16px!important;
    height:16px!important;
  }
  .invoice-panel-title>b{
    font-size:16px!important;
  }
  .invoice-meta-card{
    gap:7px!important;
  }
  .invoice-meta-card span{
    font-size:7px!important;
  }
  .invoice-meta-card b{
    font-size:10px!important;
  }
}

/* Premium compact invoice number and date card */
.invoice-meta-card{
  box-sizing:border-box!important;
  width:100%!important;
  padding:10px 11px!important;
  gap:9px!important;
  background:linear-gradient(145deg,#f8f6fd,#f0ecfa)!important;
  border:1px solid #e6def5!important;
  border-radius:10px!important;
  box-shadow:0 2px 6px rgba(67,46,125,.045)!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  gap:3px!important;
}
.invoice-meta-card .invoice-number-main{
  padding-bottom:7px!important;
  border-bottom:1px solid #e2daef!important;
}
.invoice-meta-card span{
  color:#796b9a!important;
  font-size:8px!important;
  font-weight:750!important;
  letter-spacing:.75px!important;
}
.invoice-meta-card b{
  color:#392568!important;
  font-size:12px!important;
  font-weight:850!important;
}
.invoice-meta-card .invoice-date-label svg{
  color:#6549c7!important;
}
@media(max-width:480px){
  .invoice-meta-card{
    padding:8px 7px!important;
    gap:7px!important;
    border-radius:8px!important;
  }
  .invoice-meta-card .invoice-number-main{
    padding-bottom:6px!important;
  }
  .invoice-meta-card span{
    font-size:6.5px!important;
    letter-spacing:.45px!important;
  }
  .invoice-meta-card b{
    font-size:9px!important;
  }
}

/* Invoice header — centered title and inline invoice metadata */
.invoice-number-panel{
  align-items:stretch!important;
  justify-content:center!important;
  gap:11px!important;
  text-align:center!important;
}
.invoice-panel-title{
  justify-content:center!important;
  padding-bottom:11px!important;
  border-bottom:1px solid #e5def1!important;
}
.invoice-meta-card{
  width:100%!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  align-items:center!important;
  gap:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-meta-card .invoice-number-main,
.invoice-meta-card .invoice-date-main{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  padding:0 5px!important;
  border:0!important;
  text-align:center!important;
}
.invoice-meta-card .invoice-date-main{
  border-left:1px solid #e4def0!important;
}
.invoice-meta-card span{
  font-size:7.5px!important;
  letter-spacing:.45px!important;
}
.invoice-meta-card b{
  font-size:10px!important;
  overflow-wrap:anywhere!important;
}
.invoice-meta-card .invoice-date-label{
  justify-content:center!important;
}
@media(max-width:480px){
  .invoice-number-panel{
    gap:9px!important;
  }
  .invoice-panel-title{
    padding-bottom:9px!important;
  }
  .invoice-meta-card .invoice-number-main,
  .invoice-meta-card .invoice-date-main{
    padding:0 3px!important;
    gap:3px!important;
  }
  .invoice-meta-card span{
    font-size:6.2px!important;
    letter-spacing:.2px!important;
  }
  .invoice-meta-card b{
    font-size:8.5px!important;
  }
}

/* Premium compact BILL TO + payment status layout */
.invoice-bill-section{
  padding-top:15px!important;
  padding-bottom:3px!important;
}
.invoice-bill-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(112px,.62fr)!important;
  align-items:center!important;
  gap:13px!important;
}
.invoice-bill-customer{
  min-width:0!important;
}
.invoice-bill-customer .invoice-section-heading{
  margin-bottom:8px!important;
  gap:7px!important;
}
.invoice-bill-customer .invoice-section-icon{
  width:27px!important;
  height:27px!important;
  display:grid!important;
  place-items:center!important;
}
.invoice-bill-customer .invoice-section-heading>b{
  font-size:11px!important;
  letter-spacing:.65px!important;
}
.invoice-bill-customer .invoice-customer-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:5px!important;
  margin:0!important;
  padding:0 0 0 34px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-bill-customer .invoice-customer-card>b{
  color:#30204f!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .invoice-customer-card>span{
  display:flex!important;
  align-items:flex-start!important;
  gap:6px!important;
  color:#766d85!important;
  font-size:10px!important;
  line-height:1.4!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .invoice-customer-card>span svg{
  flex:0 0 13px!important;
  margin-top:1px!important;
  color:#765acb!important;
}
.invoice-bill-status{
  box-sizing:border-box!important;
  min-width:0!important;
  padding:13px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
  border:1px solid!important;
  border-radius:11px!important;
}
.invoice-bill-status>small{
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.65px!important;
  line-height:1.3!important;
}
.invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}
.invoice-bill-status-value svg{
  width:19px!important;
  height:19px!important;
  flex:0 0 19px!important;
}
.invoice-bill-status-value b{
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.2px!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-status.is-paid{
  color:#16866c!important;
  background:#edf8f1!important;
  border-color:#d5ecde!important;
}
.invoice-bill-status.is-paid>small{
  color:#53836b!important;
}
.invoice-bill-status.is-partial{
  color:#a66b16!important;
  background:#fff7e9!important;
  border-color:#f1e2c2!important;
}
.invoice-bill-status.is-partial>small{
  color:#99753f!important;
}
.invoice-bill-status.is-pending{
  color:#b97819!important;
  background:#fff7e9!important;
  border-color:#f1e2c2!important;
}
.invoice-bill-status.is-pending>small{
  color:#99753f!important;
}
@media(max-width:480px){
  .invoice-bill-layout{
    grid-template-columns:minmax(0,1fr) minmax(104px,.62fr)!important;
    gap:9px!important;
  }
  .invoice-bill-customer .invoice-section-heading{
    margin-bottom:6px!important;
  }
  .invoice-bill-customer .invoice-customer-card{
    padding-left:31px!important;
    gap:4px!important;
  }
  .invoice-bill-customer .invoice-customer-card>b{
    font-size:12px!important;
  }
  .invoice-bill-customer .invoice-customer-card>span{
    font-size:9px!important;
  }
  .invoice-bill-status{
    padding:11px 6px!important;
    gap:7px!important;
    border-radius:9px!important;
  }
  .invoice-bill-status>small{
    font-size:7px!important;
    letter-spacing:.35px!important;
  }
  .invoice-bill-status-value{
    gap:4px!important;
  }
  .invoice-bill-status-value svg{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
  }
  .invoice-bill-status-value b{
    font-size:9px!important;
  }
}

/* Total paid amount inside BILL TO status card */
.invoice-bill-total-paid{
  width:100%!important;
  padding-top:8px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:3px!important;
  border-top:1px solid currentColor!important;
  border-color:rgba(80,110,90,.18)!important;
}
.invoice-bill-total-paid>small{
  color:#7b887f!important;
  font-size:7px!important;
  font-weight:800!important;
  letter-spacing:.8px!important;
}
.invoice-bill-total-paid>strong{
  color:#16866c!important;
  font-size:17px!important;
  font-weight:850!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-status.is-pending .invoice-bill-total-paid>strong,
.invoice-bill-status.is-partial .invoice-bill-total-paid>strong{
  color:#a66b16!important;
}
@media(max-width:480px){
  .invoice-bill-total-paid{
    padding-top:7px!important;
    gap:3px!important;
  }
  .invoice-bill-total-paid>small{
    font-size:6.5px!important;
  }
  .invoice-bill-total-paid>strong{
    font-size:14px!important;
  }
}

/* Premium BILL TO customer avatar and details */
.invoice-bill-customer .invoice-customer-card{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:10px!important;
  padding:0 0 0 0!important;
}
.invoice-customer-avatar{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  color:#6849c8!important;
  background:linear-gradient(145deg,#f1edff,#e5dcff)!important;
  border:1px solid #ded3ff!important;
  box-shadow:0 2px 7px rgba(91,63,216,.09)!important;
}
.invoice-customer-avatar svg{
  width:19px!important;
  height:19px!important;
  stroke-width:2!important;
}
.invoice-bill-customer .invoice-customer-details{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
}
.invoice-bill-customer .invoice-customer-details>b{
  color:#30204f!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .invoice-customer-details>span{
  display:flex!important;
  align-items:flex-start!important;
  gap:5px!important;
  color:#766d85!important;
  font-size:9px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .invoice-customer-details>span svg{
  flex:0 0 13px!important;
  margin-top:1px!important;
  color:#765acb!important;
}
@media(max-width:480px){
  .invoice-bill-customer .invoice-customer-card{gap:8px!important;}
  .invoice-customer-avatar{
    width:33px!important;height:33px!important;flex-basis:33px!important;
  }
  .invoice-customer-avatar svg{width:17px!important;height:17px!important;}
  .invoice-bill-customer .invoice-customer-details>b{font-size:11px!important;}
  .invoice-bill-customer .invoice-customer-details>span{font-size:8px!important;}
}

/* Receipt-inspired premium invoice customer card */
.invoice-bill-customer .invoice-section-icon{
  width:29px!important;
  height:29px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 29px!important;
  color:#6330c8!important;
  background:linear-gradient(145deg,#f5efff,#eae0ff)!important;
  border:1px solid #e3d6ff!important;
  border-radius:50%!important;
  box-shadow:0 2px 7px rgba(103,32,233,.08)!important;
}
.invoice-bill-customer .invoice-customer-card{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:0!important;
  margin:0!important;
  padding:12px 13px!important;
  background:linear-gradient(145deg,#fff 0%,#fbf9ff 100%)!important;
  border:1px solid #e9e1f7!important;
  border-radius:12px!important;
  box-shadow:0 3px 10px rgba(48,32,79,.045)!important;
}
.invoice-bill-customer .invoice-customer-details{
  width:100%!important;
  gap:6px!important;
}
.invoice-bill-customer .invoice-customer-details>b{
  color:#30204f!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:-.15px!important;
}
.invoice-bill-customer .invoice-customer-details>span{
  gap:7px!important;
  color:#6d657b!important;
  font-size:10px!important;
  line-height:1.4!important;
}
.invoice-bill-customer .invoice-customer-details>span svg{
  width:13px!important;
  height:13px!important;
  color:#7541d5!important;
  stroke-width:2.1!important;
}
@media(max-width:480px){
  .invoice-bill-customer .invoice-customer-card{
    padding:10px!important;
    border-radius:10px!important;
  }
  .invoice-bill-customer .invoice-customer-details>b{font-size:12px!important;}
  .invoice-bill-customer .invoice-customer-details>span{font-size:9px!important;}
}

/* Final clean receipt-style invoice customer row */
.invoice-bill-customer .invoice-customer-card{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:5px 0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-bill-customer .invoice-section-icon{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  display:grid!important;
  place-items:center!important;
  color:#6841c6!important;
  background:linear-gradient(145deg,#f4efff,#e8deff)!important;
  border:1px solid #e2d6ff!important;
  border-radius:50%!important;
  box-shadow:0 3px 9px rgba(91,63,216,.10)!important;
}
.invoice-bill-customer .invoice-section-icon svg{
  width:21px!important;
  height:21px!important;
  stroke-width:1.9!important;
}
.invoice-bill-customer .invoice-customer-details{
  flex:1!important;
  min-width:0!important;
  width:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:5px!important;
}
.invoice-bill-customer .invoice-customer-details>b{
  color:#30204f!important;
  font-size:14px!important;
  font-weight:850!important;
  line-height:1.25!important;
  letter-spacing:-.15px!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .invoice-customer-details>span{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#746b83!important;
  font-size:10px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .invoice-customer-details>span svg{
  width:12px!important;
  height:12px!important;
  flex:0 0 12px!important;
  color:#7954ce!important;
  stroke-width:2!important;
  margin:0!important;
}
@media(max-width:480px){
  .invoice-bill-customer .invoice-customer-card{gap:9px!important;}
  .invoice-bill-customer .invoice-section-icon{
    width:36px!important;
    height:36px!important;
    flex-basis:36px!important;
  }
  .invoice-bill-customer .invoice-section-icon svg{
    width:18px!important;
    height:18px!important;
  }
  .invoice-bill-customer .invoice-customer-details>b{font-size:12px!important;}
  .invoice-bill-customer .invoice-customer-details>span{font-size:9px!important;}
}

/* Minimal open BILL TO and payment details — no cards */
.invoice-bill-layout{
  grid-template-columns:minmax(0,1fr) minmax(105px,.72fr)!important;
  align-items:center!important;
  gap:14px!important;
}
.invoice-bill-customer .invoice-customer-card{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:3px 0!important;
}
.invoice-bill-customer .invoice-section-icon{
  width:38px!important;
  height:38px!important;
  flex-basis:38px!important;
  background:#f1eaff!important;
  border:1px solid #e6d9ff!important;
  box-shadow:none!important;
}
.invoice-bill-status{
  min-width:0!important;
  padding:3px 0 3px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:7px!important;
  text-align:left!important;
  color:#55466d!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-bill-status>small{
  color:#81768f!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.8px!important;
}
.invoice-bill-status-value{
  justify-content:flex-start!important;
  gap:5px!important;
}
.invoice-bill-status-value svg{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.invoice-bill-status-value b{
  font-size:10px!important;
  font-weight:850!important;
  line-height:1.3!important;
}
.invoice-bill-total-paid{
  width:100%!important;
  padding:5px 0 0!important;
  align-items:flex-start!important;
  gap:3px!important;
  border:0!important;
  border-top:1px solid #eee9f5!important;
}
.invoice-bill-total-paid>small{
  color:#81768f!important;
  font-size:7px!important;
  letter-spacing:.7px!important;
}
.invoice-bill-total-paid>strong{
  color:#16866c!important;
  font-size:15px!important;
  font-weight:850!important;
}
.invoice-bill-status.is-pending .invoice-bill-total-paid>strong,
.invoice-bill-status.is-partial .invoice-bill-total-paid>strong{
  color:#a66b16!important;
}
@media(max-width:480px){
  .invoice-bill-layout{
    grid-template-columns:minmax(0,1fr) minmax(100px,.72fr)!important;
    gap:9px!important;
  }
  .invoice-bill-status{padding-left:8px!important;gap:6px!important;}
  .invoice-bill-status-value b{font-size:9px!important;}
  .invoice-bill-total-paid>strong{font-size:13px!important;}
}

/* Invoice customer — exact receipt visual language */
.invoice-bill-customer .invoice-customer-card{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:13px!important;
  width:100%!important;
  margin:0!important;
  padding:5px 0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-bill-customer .receipt-preview-customer-avatar{
  width:48px!important;
  height:48px!important;
  flex:0 0 48px!important;
  display:grid!important;
  place-items:center!important;
  color:#6330c8!important;
  background:linear-gradient(145deg,#f5efff,#eae0ff)!important;
  border:1px solid #e3d6ff!important;
  border-radius:50%!important;
  box-shadow:0 3px 9px #6720e910!important;
}
.invoice-bill-customer .receipt-preview-customer-info{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:7px!important;
}
.invoice-bill-customer .receipt-preview-customer-name{
  color:#30204f!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:-.15px!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
.invoice-bill-customer .receipt-preview-customer-info>div{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:7px!important;
  color:#6d657b!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}
.invoice-bill-customer .receipt-preview-customer-info>div svg{
  width:13px!important;
  height:13px!important;
  flex:none!important;
  margin-top:1px!important;
  color:#7541d5!important;
  stroke-width:2.1!important;
}
.invoice-bill-customer .receipt-preview-customer-info>div span{
  overflow-wrap:anywhere!important;
}

/* Open payment details — no card or boxed treatment */
.invoice-bill-status{
  min-width:0!important;
  padding:3px 0 3px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:7px!important;
  text-align:left!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.invoice-bill-status>small,
.invoice-bill-total-paid>small{
  color:#6d657b!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.55px!important;
}
.invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
}
.invoice-bill-status-value svg{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.invoice-bill-status-value b{
  font-size:10.5px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.invoice-bill-status.is-paid .invoice-bill-status-value{color:#16866c!important;}
.invoice-bill-status.is-partial .invoice-bill-status-value,
.invoice-bill-status.is-pending .invoice-bill-status-value{color:#a66b16!important;}
.invoice-bill-total-paid{
  width:auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  border:0!important;
}
.invoice-bill-total-paid>strong{
  color:#30204f!important;
  font-size:14px!important;
  font-weight:850!important;
  line-height:1.3!important;
}
@media(max-width:480px){
  .invoice-bill-layout{
    grid-template-columns:minmax(0,1fr) minmax(100px,.72fr)!important;
    gap:9px!important;
  }
  .invoice-bill-customer .invoice-customer-card{gap:9px!important;}
  .invoice-bill-customer .receipt-preview-customer-avatar{
    width:39px!important;
    height:39px!important;
    flex-basis:39px!important;
  }
  .invoice-bill-customer .receipt-preview-customer-avatar svg{
    width:21px!important;
    height:21px!important;
  }
  .invoice-bill-customer .receipt-preview-customer-name{font-size:12px!important;}
  .invoice-bill-customer .receipt-preview-customer-info>div{font-size:9px!important;}
  .invoice-bill-status{padding-left:5px!important;gap:6px!important;}
  .invoice-bill-status>small,
  .invoice-bill-total-paid>small{font-size:7px!important;}
  .invoice-bill-status-value b{font-size:9px!important;}
  .invoice-bill-total-paid>strong{font-size:12px!important;}
}

/* Invoice payment — customer-style icon and compact details */
.invoice-bill-status{
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:13px!important;
  padding:5px 0 5px 10px!important;
}
.invoice-bill-status-avatar{
  width:48px!important;
  height:48px!important;
  flex:0 0 48px!important;
  display:grid!important;
  place-items:center!important;
  color:#6330c8!important;
  background:linear-gradient(145deg,#f5efff,#eae0ff)!important;
  border:1px solid #e3d6ff!important;
  border-radius:50%!important;
  box-shadow:0 3px 9px #6720e910!important;
}
.invoice-bill-status.is-paid .invoice-bill-status-avatar{
  color:#16866c!important;
  background:linear-gradient(145deg,#eaf8f2,#d9f1e7)!important;
  border-color:#ccebdc!important;
}
.invoice-bill-status-info{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:7px!important;
}
.invoice-bill-status-value b{
  color:#30204f!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:-.15px!important;
  line-height:1.25!important;
}
.invoice-bill-status.is-paid .invoice-bill-status-value b{
  color:#16866c!important;
}
.invoice-bill-total-paid{
  gap:4px!important;
}
.invoice-bill-total-paid>small{
  font-size:10.5px!important;
  letter-spacing:0!important;
  font-weight:700!important;
}
.invoice-bill-total-paid>strong{
  font-size:14px!important;
  font-weight:850!important;
}
@media(max-width:480px){
  .invoice-bill-status{
    gap:9px!important;
    padding-left:5px!important;
  }
  .invoice-bill-status-avatar{
    width:39px!important;
    height:39px!important;
    flex-basis:39px!important;
  }
  .invoice-bill-status-avatar svg{
    width:21px!important;
    height:21px!important;
  }
  .invoice-bill-status-info{gap:6px!important;}
  .invoice-bill-status-value b{font-size:12px!important;}
  .invoice-bill-total-paid>small{font-size:9px!important;}
  .invoice-bill-total-paid>strong{font-size:12px!important;}
}

/* Pending payment — clean orange, no card treatment */
.invoice-bill-status.is-pending{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-avatar{
  color:#b97819!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-value b{
  color:#b97819!important;
}
.invoice-bill-status.is-pending .invoice-bill-total-paid{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Pending icon inline beside PENDING text */
.invoice-bill-status.is-pending .invoice-bill-status{
  gap:0!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-avatar{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-avatar svg{
  width:15px!important;
  height:15px!important;
}
.invoice-bill-status.is-pending{
  gap:8px!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-info{
  gap:7px!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
}

/* Restore original pending icon size beside status text */
.invoice-bill-status.is-pending .invoice-bill-status-avatar{
  display:none!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}
.invoice-bill-status.is-pending .invoice-bill-status-value svg{
  width:21px!important;
  height:21px!important;
  flex:0 0 21px!important;
  color:#b97819!important;
}

/* Paid status — green filled tick inline beside PAID */
.invoice-bill-status.is-paid{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.invoice-bill-status.is-paid .invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  color:#16866c!important;
}
.invoice-bill-status.is-paid .invoice-paid-tick{
  width:21px!important;
  height:21px!important;
  flex:0 0 21px!important;
  padding:4px!important;
  color:#fff!important;
  background:#16866c!important;
  border-radius:50%!important;
  stroke-width:3!important;
}
.invoice-bill-status.is-paid .invoice-bill-status-value b,
.invoice-bill-status.is-paid .invoice-bill-total-paid>small,
.invoice-bill-status.is-paid .invoice-bill-total-paid>strong{
  color:#16866c!important;
}

/* Final paid alignment and bold white tick */
.invoice-bill-status.is-paid .invoice-bill-status-info{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:7px!important;
}
.invoice-bill-status.is-paid .invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  line-height:1.25!important;
}
.invoice-bill-status.is-paid .invoice-paid-tick{
  width:23px!important;
  height:23px!important;
  padding:4px!important;
  color:#fff!important;
  background:#16866c!important;
  border:0!important;
  border-radius:50%!important;
  stroke-width:3.5!important;
}
.invoice-bill-status.is-paid .invoice-bill-total-paid{
  margin:0!important;
  padding:0!important;
  align-items:flex-start!important;
  gap:4px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.invoice-bill-status.is-paid .invoice-bill-total-paid>small{
  color:#16866c!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1.3!important;
}
.invoice-bill-status.is-paid .invoice-bill-total-paid>strong{
  color:#16866c!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.3!important;
}

/* Align PAID / PENDING block to the right */
.invoice-bill-status{
  justify-self:end!important;
  margin-left:auto!important;
  align-items:flex-start!important;
  text-align:left!important;
}

/* Premium invoice customer card — soft purple */
.invoice-bill-customer .invoice-customer-card{
  box-sizing:border-box!important;
  width:100%!important;
  padding:12px!important;
  background:linear-gradient(145deg,#faf7ff,#f1eaff)!important;
  border:1px solid #e3d5ff!important;
  border-radius:12px!important;
  box-shadow:0 3px 10px #6330c80b!important;
}
.invoice-bill-customer .receipt-preview-customer-info{
  gap:6px!important;
}
.invoice-customer-badge,
.invoice-payment-badge{
  display:inline-flex!important;
  align-items:center!important;
  align-self:flex-start!important;
  width:max-content!important;
  padding:3px 7px!important;
  border-radius:5px!important;
  font-size:8px!important;
  font-weight:900!important;
  letter-spacing:.65px!important;
  line-height:1.3!important;
}
.invoice-customer-badge{
  color:#fff!important;
  background:#5930a8!important;
}

/* Payment card — dynamic soft green / orange */
.invoice-bill-status{
  box-sizing:border-box!important;
  min-width:0!important;
  padding:12px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  box-shadow:0 3px 10px #00000008!important;
}
.invoice-bill-status.is-paid{
  background:linear-gradient(145deg,#f0fbf5,#e5f6ed)!important;
  border-color:#ccebd9!important;
}
.invoice-bill-status.is-pending{
  background:linear-gradient(145deg,#fff9ef,#fff1dc)!important;
  border-color:#f2dfbd!important;
}
.invoice-payment-badge{
  margin-bottom:2px!important;
}
.invoice-bill-status.is-paid .invoice-payment-badge{
  color:#fff!important;
  background:#16866c!important;
}
.invoice-bill-status.is-pending .invoice-payment-badge{
  color:#fff!important;
  background:#b97819!important;
}

/* Badges attached to the upper edge of invoice cards */
.invoice-bill-customer .invoice-customer-card,
.invoice-bill-status{
  position:relative!important;
  padding-top:25px!important;
}
.invoice-customer-badge,
.invoice-payment-badge{
  position:absolute!important;
  top:0!important;
  left:12px!important;
  transform:translateY(-1px)!important;
  margin:0!important;
  padding:4px 9px!important;
  border-radius:0 0 6px 6px!important;
  font-size:8px!important;
  line-height:1.3!important;
}
.invoice-bill-status-info{
  padding-top:0!important;
}

/* Final invoice badge alignment */
.invoice-bill-customer .invoice-customer-badge{
  left:0!important;
}
.invoice-bill-status .invoice-payment-badge{
  left:50%!important;
  transform:translate(-50%,-1px)!important;
}

/* Compact payment card sized around its contents */
.invoice-bill-status{
  width:max-content!important;
  min-width:145px!important;
  max-width:100%!important;
  justify-self:end!important;
  margin-left:auto!important;
  padding:25px 12px 11px!important;
  align-items:flex-start!important;
}
.invoice-bill-status-info{
  width:100%!important;
  min-width:0!important;
  align-items:flex-start!important;
}
.invoice-bill-status .invoice-payment-badge{
  white-space:nowrap!important;
}

/* More room for customer, compact payment card */
.invoice-bill-layout{
  grid-template-columns:minmax(0,1.8fr) minmax(125px,.8fr)!important;
  column-gap:12px!important;
}
.invoice-bill-customer{
  min-width:0!important;
  width:100%!important;
}
.invoice-bill-customer .invoice-customer-card{
  width:100%!important;
}
.invoice-bill-status{
  width:max-content!important;
  min-width:125px!important;
  max-width:100%!important;
  justify-self:end!important;
}
@media(max-width:480px){
  .invoice-bill-layout{
    grid-template-columns:minmax(0,1.7fr) minmax(112px,.8fr)!important;
    gap:8px!important;
  }
  .invoice-bill-status{
    min-width:112px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
}

/* Final payment card alignment */
.invoice-bill-status .invoice-payment-badge{
  top:3px!important;
}
.invoice-bill-status-info{
  width:100%!important;
  align-items:center!important;
  text-align:center!important;
}
.invoice-bill-status-value{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
}
.invoice-bill-total-paid{
  width:100%!important;
  align-items:center!important;
  text-align:center!important;
}

/* Center payment status and amount as a single group */
.invoice-bill-status-info{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
}
.invoice-bill-status-value{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
}
.invoice-bill-total-paid{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  text-align:center!important;
}

/* Vertically center payment details inside the payment card */
.invoice-bill-status{
  min-height:108px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}
.invoice-bill-status-info{
  flex:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
}

/* Payment card: center content below the fixed top badge */
.invoice-bill-status{
  min-height:108px!important;
  padding:25px 12px 12px!important;
  display:grid!important;
  grid-template-rows:1fr!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
.invoice-bill-status-info{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  flex:initial!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  margin:0!important;
}
.invoice-bill-status-value,
.invoice-bill-total-paid{
  margin:0!important;
}

/* Paid amount: center vertically and horizontally */
.invoice-bill-status.is-paid .invoice-bill-total-paid{
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  width:100%!important;
}

/* Shift only the PAID icon and label slightly right */
.invoice-bill-status.is-paid .invoice-bill-status-value{
  transform:translateX(5px)!important;
}

.invoice-bill-status.is-paid .invoice-bill-status-value{
  transform:translateX(8px)!important;
}

.invoice-bill-status.is-paid .invoice-bill-total-paid>small{
  color:#555!important;
}

/* Equal, consistent invoice item column spacing */
.invoice-items-head,
.invoice-items-row{
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) 52px 90px!important;
  column-gap:10px!important;
  align-items:center!important;
}
.invoice-items-head span:first-child,
.invoice-item-serial{
  text-align:center!important;
}
.invoice-items-head span:nth-child(3),
.invoice-item-qty{
  text-align:center!important;
}
.invoice-items-head span:last-child,
.invoice-item-amount{
  text-align:right!important;
}
@media(max-width:480px){
  .invoice-items-head,
  .invoice-items-row{
    grid-template-columns:25px minmax(0,1fr) 42px 76px!important;
    column-gap:8px!important;
  }
}

/* Preserve numbering and amount columns; balance description and quantity */
.invoice-items-head,
.invoice-items-row{
  grid-template-columns:22px minmax(0,1fr) 35px 82px!important;
  column-gap:5px!important;
}
.invoice-items-head span:nth-child(2),
.invoice-items-row .invoice-item-description{
  min-width:0!important;
}
.invoice-items-head span:nth-child(3),
.invoice-items-row .invoice-item-qty{
  justify-self:stretch!important;
  text-align:center!important;
}

/* Slightly shift item description to the right */
.invoice-items-head span:nth-child(2),
.invoice-items-row .invoice-item-description{
  transform:translateX(5px)!important;
}

/* Move the complete item description cell right */
.invoice-items-head span:nth-child(2),
.invoice-items-row .invoice-item-description{
  margin-left:10px!important;
  width:calc(100% - 10px)!important;
  transform:none!important;
}

.invoice-items-head span:nth-child(2),
.invoice-items-row .invoice-item-description{
  margin-left:18px!important;
  width:calc(100% - 18px)!important;
}

.invoice-items-head span:nth-child(2),
.invoice-items-row .invoice-item-description{
  margin-left:26px!important;
  width:calc(100% - 26px)!important;
}

.invoice-items-head span:nth-child(2),
.invoice-items-row .invoice-item-description{
  margin-left:34px!important;
  width:calc(100% - 34px)!important;
}

/* Compact invoice totals card aligned to the right */
.invoice-totals-section{
  width:min(300px,calc(100% - 44px))!important;
  margin:0 22px 19px auto!important;
  box-sizing:border-box!important;
  padding:12px 15px!important;
}
.invoice-totals-section>div{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
@media(max-width:480px){
  .invoice-totals-section{
    width:min(280px,calc(100% - 26px))!important;
    margin:0 13px 16px auto!important;
  }
}

/* Premium compact invoice totals with row separators */
.invoice-totals-section{
  width:min(245px,calc(100% - 44px))!important;
  margin:0 22px 19px auto!important;
  padding:9px 12px!important;
  border-radius:10px!important;
}
.invoice-totals-section>div{
  padding:8px 0!important;
  border-bottom:1px solid #e9e5f2!important;
  font-size:10px!important;
}
.invoice-totals-section>div>b{
  font-size:10px!important;
}
.invoice-totals-section .invoice-total-grand{
  margin-top:0!important;
  padding:10px 0 3px!important;
  border-top:0!important;
  border-bottom:0!important;
  font-size:12px!important;
}
.invoice-totals-section .invoice-total-grand>b{
  font-size:16px!important;
}
@media(max-width:480px){
  .invoice-totals-section{
    width:min(235px,calc(100% - 26px))!important;
    margin:0 13px 16px auto!important;
  }
}

/* Shift invoice totals card further right */
.invoice-totals-section{
  margin-right:10px!important;
}
@media(max-width:480px){
  .invoice-totals-section{
    margin-right:6px!important;
  }
}

/* Align invoice totals closer to the right edge */
.invoice-totals-section{
  margin-right:2px!important;
}
@media(max-width:480px){
  .invoice-totals-section{
    margin-right:2px!important;
  }
}

/* Align totals card with the right edge of invoice content */
.invoice-totals-section{
  margin-right:20px!important;
}

/* Fine-tune invoice totals alignment */
.invoice-totals-section{
  margin-right:14px!important;
}
.invoice-totals-section>div{
  justify-content:flex-end!important;
  gap:18px!important;
}
.invoice-totals-section>div>span{
  text-align:right!important;
}
@media(max-width:480px){
  .invoice-totals-section{
    margin-right:14px!important;
  }
}

/* Tight two-column invoice totals layout */
.invoice-totals-section{
  width:max-content!important;
  min-width:0!important;
  max-width:calc(100% - 28px)!important;
  margin-right:14px!important;
  padding:9px 12px!important;
  box-sizing:border-box!important;
}
.invoice-totals-section>div{
  display:grid!important;
  grid-template-columns:max-content max-content!important;
  justify-content:end!important;
  align-items:center!important;
  column-gap:22px!important;
}
.invoice-totals-section>div>span{
  text-align:left!important;
  white-space:nowrap!important;
}
.invoice-totals-section>div>b{
  text-align:right!important;
  white-space:nowrap!important;
}
@media(max-width:480px){
  .invoice-totals-section{
    margin-right:14px!important;
  }
}

.invoice-totals-section>div>span{
  transform:translateX(-10px)!important;
}

/* Wider invoice totals card with left-shifted labels */
.invoice-totals-section{
  padding-left:18px!important;
  padding-right:14px!important;
}
.invoice-totals-section>div{
  column-gap:28px!important;
}
.invoice-totals-section>div>span{
  transform:translateX(-14px)!important;
}

/* Refined invoice totals width and label alignment */
.invoice-totals-section{
  padding-left:22px!important;
  padding-right:18px!important;
}
.invoice-totals-section>div{
  grid-template-columns:minmax(76px,max-content) max-content!important;
  column-gap:28px!important;
}
.invoice-totals-section>div>span{
  transform:none!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.invoice-totals-section>div>b{
  text-align:right!important;
  white-space:nowrap!important;
}

/* Premium dark purple Total Amount highlight */
.invoice-totals-section .invoice-total-grand{
  margin:8px -22px -9px!important;
  padding:11px 22px!important;
  background:linear-gradient(100deg,#6042c4,#39218f)!important;
  border:0!important;
  border-radius:0 0 9px 9px!important;
  color:#fff!important;
}
.invoice-totals-section .invoice-total-grand>span,
.invoice-totals-section .invoice-total-grand>b{
  color:#fff!important;
}

/* Combined premium invoice payment card */
.invoice-payment-combined{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:0!important;
  margin:0 20px 18px!important;
  padding:13px 12px!important;
  box-sizing:border-box!important;
  background:#f8f6fc!important;
  border:1px solid #e8e1f3!important;
  border-radius:12px!important;
  box-shadow:0 2px 8px #4930a508!important;
}
.invoice-payment-summary-column,
.invoice-payment-history-column{
  min-width:0!important;
}
.invoice-payment-summary-column{
  padding-right:12px!important;
  border-right:1px solid #e4dced!important;
}
.invoice-payment-history-column{
  padding-left:12px!important;
}
.invoice-payment-combined .invoice-section-heading{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  margin:0 0 11px!important;
  font-size:9px!important;
  line-height:1.3!important;
}
.invoice-payment-combined .invoice-section-heading>b{
  font-size:9px!important;
  white-space:nowrap!important;
}
.invoice-payment-combined .invoice-section-heading .invoice-section-icon{
  width:25px!important;
  height:25px!important;
  min-width:25px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.invoice-payment-combined .invoice-section-heading>small{
  margin-left:auto!important;
  font-size:8px!important;
  white-space:nowrap!important;
}
.invoice-payment-metrics>div{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  padding:7px 0!important;
  border-bottom:1px solid #e8e2ef!important;
}
.invoice-payment-metrics>div:last-child{
  border-bottom:0!important;
  padding-bottom:2px!important;
}
.invoice-payment-metrics small{
  color:#81788e!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.35px!important;
}
.invoice-payment-metrics b{
  color:#403653!important;
  font-size:12px!important;
  font-weight:800!important;
}
.invoice-payment-metrics .invoice-paid-text{
  color:#16866c!important;
}
.invoice-payment-metrics .invoice-due-text{
  color:#b97819!important;
}
.invoice-payment-combined .invoice-history-list{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
}
.invoice-payment-combined .invoice-history-row{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  gap:3px 5px!important;
  align-items:start!important;
  padding:8px 0!important;
  border-bottom:1px solid #e8e2ef!important;
}
.invoice-payment-combined .invoice-history-icon{
  grid-row:1 / span 2!important;
  width:22px!important;
  height:22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#6044c2!important;
  background:#eee9fa!important;
  border-radius:6px!important;
}
.invoice-payment-combined .invoice-history-info{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
.invoice-payment-combined .invoice-history-info>b{
  color:#403653!important;
  font-size:10px!important;
  overflow-wrap:anywhere!important;
}
.invoice-payment-combined .invoice-history-info>small{
  color:#81788e!important;
  font-size:8px!important;
  line-height:1.4!important;
}
.invoice-payment-combined .invoice-history-row>strong{
  grid-column:2!important;
  color:#16866c!important;
  font-size:11px!important;
  text-align:left!important;
}
.invoice-history-empty{
  padding:10px 0!important;
  color:#81788e!important;
  font-size:9px!important;
}
@media(max-width:480px){
  .invoice-payment-combined{
    margin-left:13px!important;
    margin-right:13px!important;
    padding:11px 9px!important;
  }
  .invoice-payment-summary-column{
    padding-right:8px!important;
  }
  .invoice-payment-history-column{
    padding-left:8px!important;
  }
  .invoice-payment-combined .invoice-section-heading{
    gap:4px!important;
  }
  .invoice-payment-combined .invoice-section-heading>b{
    font-size:8px!important;
  }
}

/* Full-width premium payment summary and history */
.invoice-payment-combined{
  display:grid!important;
  width:calc(100% - 40px)!important;
  max-width:none!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  margin:0 20px 18px!important;
  box-sizing:border-box!important;
  justify-self:stretch!important;
  align-self:stretch!important;
}
.invoice-payment-summary-column,
.invoice-payment-history-column{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.invoice-payment-combined .invoice-section-heading{
  width:100%!important;
  min-width:0!important;
  flex-wrap:nowrap!important;
}
.invoice-payment-metrics,
.invoice-payment-combined .invoice-history-list{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(max-width:480px){
  .invoice-payment-combined{
    width:calc(100% - 26px)!important;
    margin-left:13px!important;
    margin-right:13px!important;
    padding:12px 10px!important;
  }
}

/* Payment card full horizontal invoice width */
.invoice-preview-paper > .invoice-payment-combined{
  display:grid!important;
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  margin:18px 0 0!important;
  padding:16px 22px!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  justify-self:stretch!important;
  left:auto!important;
  right:auto!important;
}
.invoice-preview-paper > .invoice-payment-combined > *{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(max-width:480px){
  .invoice-preview-paper > .invoice-payment-combined{
    width:100%!important;
    margin:14px 0 0!important;
    padding:14px 15px!important;
  }
}

/* Fix: payment card spans the complete invoice grid */
.invoice-preview-paper > .invoice-payment-combined{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:18px 0 0!important;
  box-sizing:border-box!important;
}

/* Final vertical alignment for invoice payment columns */
.invoice-preview-paper > .invoice-payment-combined{
  align-items:center!important;
}
.invoice-payment-summary-column,
.invoice-payment-history-column{
  align-self:center!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  height:100%!important;
}
.invoice-payment-combined .invoice-section-heading{
  min-height:28px!important;
  display:flex!important;
  align-items:center!important;
}
.invoice-payment-combined .invoice-history-row{
  align-items:center!important;
}

/* Balanced inner spacing for payment summary and history */
.invoice-preview-paper > .invoice-payment-combined{
  padding-left:24px!important;
  padding-right:24px!important;
  column-gap:24px!important;
}
.invoice-payment-summary-column,
.invoice-payment-history-column{
  padding-left:0!important;
  padding-right:0!important;
  min-width:0!important;
}
@media(max-width:480px){
  .invoice-preview-paper > .invoice-payment-combined{
    padding-left:16px!important;
    padding-right:16px!important;
    column-gap:14px!important;
  }
}

/* Match payment card outer spacing with invoice totals card */
.invoice-preview-paper > .invoice-payment-combined{
  width:calc(100% - 44px)!important;
  margin:18px 22px 19px!important;
  padding:15px!important;
  box-sizing:border-box!important;
}
@media(max-width:480px){
  .invoice-preview-paper > .invoice-payment-combined{
    width:calc(100% - 26px)!important;
    margin:14px 13px 19px!important;
    padding:13px 12px!important;
  }
}

/* Clean transparent invoice thank-you footer */
.invoice-thankyou-footer{
  background:transparent!important;
  color:#403653!important;
  padding:18px 15px!important;
  margin-top:12px!important;
}
.invoice-thankyou-footer>b{
  color:#403653!important;
}
.invoice-thankyou-footer>small{
  color:#81788e!important;
}
.invoice-thankyou-footer>span{
  color:#d46b91!important;
}

/* Invoice redesign: Receipt-matched foundation */
.invoice-preview-screen{
  width:min(100%,760px)!important;
  max-width:760px!important;
  background:#f7f5fb!important;
}
.invoice-preview-scroll{
  flex:1!important;
  min-height:0!important;
  overflow-y:auto!important;
  padding:18px 15px 28px!important;
  -webkit-overflow-scrolling:touch;
}
.invoice-preview-paper{
  display:block!important;
  width:100%!important;
  max-width:570px!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:0!important;
  background:#fff!important;
  border:1px solid #ece8f8!important;
  border-radius:19px!important;
  overflow:hidden!important;
  box-shadow:0 7px 28px #30205a12!important;
  color:#39334e!important;
  box-sizing:border-box!important;
}
.invoice-preview-paper .receipt-preview-business{
  padding:17px 18px 13px!important;
}
.invoice-preview-paper .receipt-preview-business-details{
  flex-wrap:wrap;
  justify-content:center;
  gap:7px 13px;
}
.invoice-preview-paper .receipt-preview-heading{
  padding:12px 17px!important;
}
.invoice-preview-paper .receipt-preview-customer{
  align-items:center!important;
  gap:10px!important;
  padding:13px 17px!important;
}
.invoice-receipt-status{
  flex:0 0 112px;
  min-width:0;
  min-height:75px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:8px 6px;
  border-radius:11px;
  box-sizing:border-box;
  text-align:center;
}
.invoice-receipt-status.is-paid{
  color:#087c55;
  background:#eaf8f0;
  border:1px solid #d5efdf;
}
.invoice-receipt-status.is-pending{
  color:#a66b12;
  background:#fff5e5;
  border:1px solid #f5e4c4;
}
.invoice-receipt-status>small,
.invoice-receipt-status>span{
  font-size:7px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.35px;
}
.invoice-receipt-status>div{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:11px;
  font-weight:900;
}
.invoice-receipt-status>div svg{
  width:16px;
  height:16px;
  flex-shrink:0;
}
.invoice-receipt-status>strong{
  font-size:12px;
  line-height:1.15;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

/* Invoice totals: compact Receipt-style breakdown */
.invoice-preview-paper .receipt-preview-items{
  margin-top:0!important;
}
.invoice-receipt-total{
  max-width:280px!important;
  width:calc(100% - 36px)!important;
  margin:13px 18px 0 auto!important;
  padding:0 0 8px!important;
}
.invoice-receipt-total>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px solid #eeeaf4;
  font-size:11px;
}
.invoice-receipt-total>div>span{
  color:#716980;
  font-weight:650;
}
.invoice-receipt-total>div>b{
  color:#39334e;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.invoice-receipt-total>div>.invoice-receipt-discount{
  color:#b97819;
}
.invoice-preview-paper .receipt-preview-grand-total{
  margin-top:3px;
  padding:10px 11px!important;
  border:0!important;
  border-radius:8px;
  background:#f2edff;
}
.invoice-preview-paper .receipt-preview-grand-total>span{
  color:#4930bd;
  font-size:12px;
  font-weight:850;
}
.invoice-preview-paper .receipt-preview-grand-total>b{
  color:#4930bd;
  font-size:15px;
  font-weight:900;
}
.invoice-preview-paper .receipt-preview-payment-horizontal{
  margin:7px 18px 0!important;
}

/* Invoice payment history */
.invoice-receipt-history{
  margin:14px 18px 0;
  padding:11px 12px;
  border:1px solid #eee9f7;
  border-radius:10px;
  background:#fcfbff;
}
.invoice-receipt-history .receipt-preview-section-title{
  margin:0 0 7px!important;
}
.invoice-receipt-history-row{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 0;
  border-top:1px solid #eeeaf4;
}
.invoice-receipt-history-row>span{
  width:29px;
  height:29px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#6746c5;
  background:#f1edff;
}
.invoice-receipt-history-row>div{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.invoice-receipt-history-row>div>b{
  color:#39334e;
  font-size:10px;
  font-weight:800;
}
.invoice-receipt-history-row>div>small{
  color:#918ba1;
  font-size:8px;
}
.invoice-receipt-history-row>strong{
  color:#087c55;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}
.invoice-receipt-empty{
  margin:0;
  padding:8px 0 2px;
  color:#918ba1;
  font-size:10px;
  text-align:center;
}

/* Invoice UPI, note and Receipt-style footer */
.invoice-receipt-extra{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 18px 0;
  padding:10px 12px;
  border:1px solid #eee9f7;
  border-radius:9px;
  background:#fcfbff;
}
.invoice-receipt-extra>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.invoice-receipt-extra>div>b{
  color:#55416f;
  font-size:9px;
  font-weight:850;
}
.invoice-receipt-extra>div>span{
  color:#716980;
  font-size:10px;
  overflow-wrap:anywhere;
}
.invoice-receipt-extra img{
  width:72px;
  height:72px;
  flex:none;
  object-fit:contain;
  border:1px solid #eee9f7;
  border-radius:7px;
  background:#fff;
}
.invoice-preview-paper .receipt-preview-note{
  margin:12px 18px 0!important;
}
.invoice-preview-paper .receipt-preview-thanks{
  margin:12px 18px 0!important;
  padding:14px 0 16px!important;
  background:transparent!important;
}

/* Invoice print and share actions */
.invoice-preview-actions{
  width:100%;
  max-width:570px;
  margin:14px auto 0;
  display:flex;
  gap:10px;
}
.invoice-preview-actions button{
  min-height:43px;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:0;
  border-radius:11px;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.invoice-preview-actions .invoice-preview-print{
  color:#55416f;
  background:#eee9f8;
}
.invoice-preview-actions .invoice-preview-share{
  color:#fff;
  background:#5b3fd8;
}

/* Compact Invoice layout on mobile */
@media(max-width:420px){
  .invoice-preview-scroll{padding:12px 9px 22px!important}
  .invoice-preview-paper{border-radius:15px!important}
  .invoice-preview-paper .receipt-preview-business{padding:14px 12px 11px!important}
  .invoice-preview-paper .receipt-preview-heading{padding:11px 12px!important}
  .invoice-preview-paper .receipt-preview-customer{padding:11px 12px!important;gap:7px!important}
  .invoice-receipt-status{flex-basis:100px;min-height:70px}
  .invoice-preview-paper .receipt-preview-payment-horizontal{margin-left:12px!important;margin-right:12px!important}
  .invoice-receipt-history,.invoice-receipt-extra{margin-left:12px;margin-right:12px}
  .invoice-receipt-total{width:calc(100% - 24px)!important;margin-right:12px!important}
  .invoice-preview-actions{gap:8px}
}

/* Invoice print layout */
@media print{
  .invoice-preview-backdrop{
    position:static!important;
    display:block!important;
    padding:0!important;
    background:#fff!important;
  }
  .invoice-preview-screen{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .invoice-preview-topbar,
  .invoice-preview-actions{
    display:none!important;
  }
  .invoice-preview-scroll{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
  }
  .invoice-preview-paper{
    width:100%!important;
    max-width:570px!important;
    margin:0 auto!important;
    box-shadow:none!important;
    break-inside:avoid;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
}

/* Compact Invoice payment status badge */
.invoice-receipt-status{
  flex-basis:104px!important;
  min-height:52px!important;
  padding:6px 7px!important;
  gap:3px!important;
}
.invoice-receipt-status>small{
  font-size:7px!important;
}
.invoice-receipt-status>div{
  gap:4px!important;
  font-size:11px!important;
}
.invoice-receipt-status>div svg{
  width:14px!important;
  height:14px!important;
}

/* Premium BILL TO badge on Invoice */
.invoice-billto-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0 0 5px;
  padding:3px 8px;
  border-radius:5px;
  color:#4930bd;
  background:#f0ebff;
  border:1px solid #e4dcff;
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.65px;
}

/* Premium BILL TO badge - Invoice only */
.invoice-preview-paper .invoice-billto-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0 0 5px;
  padding:3px 8px;
  border-radius:5px;
  color:#4930bd;
  background:#f0ebff;
  border:1px solid #e4dcff;
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.65px;
}

/* Dark purple BILL TO badge text */
.invoice-billto-badge{
  color:#352080!important;
  font-weight:950!important;
}

/* Invoice: vertical divider before Payment Status */
.invoice-preview-paper .invoice-receipt-status{
  position:relative;
  margin-left:8px;
}
.invoice-preview-paper .invoice-receipt-status::before{
  content:"";
  position:absolute;
  left:-9px;
  top:5px;
  bottom:5px;
  width:1px;
  background:#ded4ef;
}
@media(max-width:420px){
  .invoice-preview-paper .invoice-receipt-status{
    margin-left:7px;
  }
  .invoice-preview-paper .invoice-receipt-status::before{
    left:-8px;
  }
}

/* Fine-tune Invoice vertical partition position */
.invoice-preview-paper .invoice-receipt-status::before{
  left:-13px!important;
}
@media(max-width:420px){
  .invoice-preview-paper .invoice-receipt-status::before{
    left:-11px!important;
  }
}

/* Invoice divider: move slightly further left */
.invoice-preview-paper .invoice-receipt-status::before{
  left:-17px!important;
}
@media(max-width:420px){
  .invoice-preview-paper .invoice-receipt-status::before{
    left:-15px!important;
  }
}

/* Invoice payment status: premium paid and pending colours */
.invoice-preview-paper .invoice-receipt-status.is-paid>div b{
  color:#087443!important;
}
.invoice-preview-paper .invoice-receipt-status.is-paid>div svg{
  width:21px!important;
  height:21px!important;
  padding:4px;
  box-sizing:border-box;
  color:#fff!important;
  background:#087c55;
  border-radius:50%;
  stroke:#fff!important;
}
.invoice-preview-paper .invoice-receipt-status.is-pending>div b{
  color:#a85b08!important;
}
.invoice-preview-paper .invoice-receipt-status.is-pending .receipt-preview-status-alert{
  color:#a85b08!important;
}

/* Pending icon: white exclamation inside orange circle */
.invoice-preview-paper .invoice-receipt-status.is-pending .receipt-preview-status-alert{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:50%;
  color:#fff!important;
  background:#b97819;
  font-size:11px;
  font-weight:900;
  line-height:1;
}

/* Invoice totals: consistent right-side amount alignment */
.invoice-receipt-total>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 112px!important;
  align-items:center!important;
  column-gap:12px!important;
}
.invoice-receipt-total>div>b{
  display:block!important;
  width:100%!important;
  text-align:right!important;
  justify-self:stretch!important;
}

/* Fine-tune regular invoice amounts slightly left */
.invoice-receipt-total>div:not(.receipt-preview-grand-total)>b{
  transform:translateX(-12px);
}

/* Invoice totals: right-align labels beneath Qty column */
.invoice-receipt-total>div>span{
  text-align:right!important;
  justify-self:stretch!important;
}

/* Fine-tune invoice totals label position */
.invoice-receipt-total>div>span{
  transform:translateX(-6px);
}

.invoice-receipt-total>div>span{
  transform:translateX(-10px);
}

.invoice-preview-paper .receipt-preview-grand-total>span{
  transform:translateX(-6px);
}

.invoice-preview-paper .receipt-preview-grand-total>span{
  transform:translateX(-3px);
}

.invoice-preview-paper .receipt-preview-grand-total>span{
  transform:translateX(0);
}

/* Compact invoice totals width without moving label or amount alignment */
.invoice-preview-paper .invoice-receipt-total{
  max-width:250px!important;
  width:calc(100% - 36px)!important;
}

.invoice-preview-paper .invoice-receipt-total{
  max-width:230px!important;
}

/* DoovaBook — Full-page More screen */
.more-page{
  width:100%;
  max-width:820px;
  margin:0 auto;
  padding:10px 0 28px;
}
.more-page-inner{
  width:100%;
  padding:18px 20px 26px;
  border:1px solid #eceaf7;
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#fdfcff 100%);
  box-shadow:0 8px 28px rgba(28,35,75,.06);
}
.more-page .more-sheet-heading{
  padding:4px 0 19px;
  margin-bottom:9px;
}
.more-page .more-section-label:first-of-type{
  padding-top:14px;
}
.more-page .more-menu-row{
  min-height:68px;
}
.more-page .more-legal-content{
  padding:12px 5px 18px;
}
@media(min-width:700px){
  .more-page{
    padding:16px 12px 32px;
  }
  .more-page-inner{
    padding:24px 28px 30px;
    border-radius:24px;
  }
}

/* More & Settings — match Orders and Customers header */
.main-column:has(.more-page) > .orders-tab-header{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #eeedf6;
}
.main-column:has(.more-page) > .orders-tab-header .orders-header-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#282344;
  font-size:19px;
  font-weight:850;
  letter-spacing:-.55px;
}
.main-column:has(.more-page) > .orders-tab-header .orders-header-title svg{
  width:20px;
  height:20px;
  flex:none;
  color:#7357df;
}

/* More & Settings — exact compact Orders header treatment */
.main-column:has(.more-page) > .orders-tab-header{
  height:52px !important;
  min-height:52px !important;
  margin:0 !important;
  padding:7px 12px !important;
  box-sizing:border-box;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:none !important;
}
.main-column:has(.more-page) .orders-header-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff !important;
  font-size:19px !important;
  font-weight:850;
  letter-spacing:-.55px;
}
.main-column:has(.more-page) .orders-header-title svg{
  width:20px;
  height:20px;
  flex:none;
  color:#fff !important;
}
@media(max-width:620px){
  .main-column:has(.more-page) > .orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    padding:6px 10px !important;
  }
}

/* Orders and Customers — balanced header-to-search spacing */
.page-content:has(.orders-filter-row) .orders-toolbar{
  margin-top:6px !important;
}
.page-content:has(.customers-toolbar) .customers-toolbar{
  margin-top:6px !important;
}

/* Business Profile — compact back arrow */
.business-profile-back-button{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  padding:0;
  margin-right:10px;
  border:1px solid #e8e1ff;
  border-radius:10px;
  background:#f4f0ff;
  color:#6740d5;
  cursor:pointer;
}
.business-profile-back-button svg{
  width:19px;
  height:19px;
  color:#6740d5;
}

/* Home Recent Orders — subtle vertical separators */
.delivery-section .delivery-order-amounts{
  position:relative;
}
.delivery-section .delivery-order-amounts::before{
  content:"";
  position:absolute;
  left:-7px;
  top:3px;
  bottom:3px;
  width:1px;
  background:#e7e2f1;
}
.delivery-section .delivery-order-amounts>span{
  position:relative;
}
.delivery-section .delivery-order-amounts>span:not(:first-child)::before{
  content:"";
  position:absolute;
  left:-5px;
  top:3px;
  bottom:3px;
  width:1px;
  background:#e7e2f1;
}

/* Orders and Customers — subtle vertical separators */
.orders-card-list .delivery-order-amounts,
.customers-card-list .delivery-order-amounts{
  position:relative;
}
.orders-card-list .delivery-order-amounts::before,
.customers-card-list .delivery-order-amounts::before{
  content:"";
  position:absolute;
  left:-7px;
  top:3px;
  bottom:3px;
  width:1px;
  background:#e7e2f1;
}
.orders-card-list .delivery-order-amounts>span,
.customers-card-list .delivery-order-amounts>span{
  position:relative;
}
.orders-card-list .delivery-order-amounts>span:not(:first-child)::before,
.customers-card-list .delivery-order-amounts>span:not(:first-child)::before{
  content:"";
  position:absolute;
  left:-5px;
  top:3px;
  bottom:3px;
  width:1px;
  background:#e7e2f1;
}

/* Invoice print: prevent blank first page */
@media print {
  body * { visibility:hidden!important; }
  .invoice-preview-backdrop,
  .invoice-preview-backdrop * { visibility:visible!important; }
  .invoice-preview-backdrop {
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    background:#fff!important;
  }
  .invoice-preview-screen {
    position:static!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .invoice-preview-scroll {
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
  }
  .invoice-preview-paper {
    margin:0 auto!important;
    break-inside:auto!important;
    page-break-before:avoid!important;
  }
}

/* DoovaBook — Premium Customer Details */
.customer-detail-view{padding-bottom:20px}
.customer-detail-hero{
  position:relative;
  overflow:hidden;
  margin:15px 18px 20px;
  padding:17px;
  border:1px solid #ddd5ff;
  border-radius:19px;
  background:linear-gradient(135deg,#f4f0ff 0%,#ebe5ff 55%,#f8f6ff 100%);
  box-shadow:0 5px 18px #4930bd10;
}
.customer-detail-hero:before{
  content:"";
  position:absolute;
  width:125px;height:125px;
  right:-42px;top:-55px;
  border-radius:50%;
  background:#7658df12;
}
.customer-detail-contact{position:relative;gap:13px}
.customer-detail-avatar{
  width:54px;height:54px;border-radius:17px;
  background:linear-gradient(145deg,#5b3fd8,#3820a9);
  font-size:21px;
  box-shadow:0 6px 15px #4930bd35,inset 0 1px 0 #ffffff45;
}
.customer-detail-identity h3{font-size:16px;color:#251653;letter-spacing:-.25px}
.customer-detail-identity p{
  display:flex;align-items:center;gap:7px;
  font-size:10px;color:#6d648b;
}
.customer-detail-identity p:first-of-type:before{
  content:"☎";font-size:11px;color:#6248c5;
}
.customer-detail-identity p:last-of-type:before{
  content:"⌖";font-size:13px;color:#6248c5;
}
.customer-detail-actions{
  position:relative;margin-top:15px;padding-top:13px;
  border-top:1px solid #dcd4f5;
}
.customer-detail-actions .btn{
  min-height:36px;border-radius:10px;font-weight:700;
}
.customer-detail-actions .btn.outline{
  border-color:#cfc4f6;background:#fff;color:#5036bd;
}
.customer-detail-actions .danger-text{
  background:#fff5f5;border:1px solid #f5dddd;color:#c34d59;
}
.customer-detail-section-heading{margin-bottom:12px}
.customer-detail-section-heading h3{font-size:13px;color:#29204d}
.customer-detail-section-heading p{font-size:10px}
.customer-detail-order-count{
  padding:6px 10px;border:1px solid #e3dcff;
  background:#f2efff;color:#5036bd;border-radius:9px;
}
.customer-detail-metrics{gap:10px;margin-bottom:22px}
.customer-detail-metrics>div{
  position:relative;overflow:hidden;
  min-height:76px;padding:13px 12px 11px 43px;
  border:1px solid #e9e5f5;border-radius:14px;
  background:linear-gradient(145deg,#fff,#fcfbff);
  box-shadow:0 3px 12px #29204d08;
}
.customer-detail-metrics>div:before{
  position:absolute;left:12px;top:13px;
  width:23px;height:23px;display:grid;place-items:center;
  border-radius:8px;background:#f0edff;color:#5b3fd8;
  font-size:13px;font-weight:800;
}
.customer-detail-metrics>div:nth-child(1):before{content:"▤"}
.customer-detail-metrics>div:nth-child(2):before{content:"₹"}
.customer-detail-metrics>div:nth-child(3):before{content:"✓";background:#e8f6f0;color:#16866c}
.customer-detail-metrics>div:nth-child(4):before{content:"◷";background:#fff3e3;color:#b97819}
.customer-detail-metrics small{font-size:9px;color:#858097;margin-bottom:7px}
.customer-detail-metrics b{font-size:14px;color:#292044}
.customer-detail-history{padding:0 18px}
.customer-detail-history .customer-detail-section-heading{margin-bottom:12px}
.customer-detail-order{
  position:relative;gap:10px;padding:14px;
  border:1px solid #e8e4f4;border-radius:15px;
  background:linear-gradient(145deg,#fff,#fdfcff);
  box-shadow:0 3px 12px #29204d08;
  transition:background .15s,border-color .15s;
}
.customer-detail-order:active{background:#f5f2ff;border-color:#cfc4f6}
.customer-detail-order-top>b{font-size:12px;color:#5036bd}
.customer-detail-order-top>span:before{
  content:"◷";margin-right:5px;color:#8a7cc1;
}
.customer-detail-order-items{
  padding:8px 9px;border-radius:9px;
  background:#f7f5fc;color:#625c75;font-size:10px;
}
.customer-detail-order-bottom{
  gap:8px;padding-top:10px;border-top:1px solid #eeebf5;
}
.customer-detail-order-bottom>span{font-size:9px}
.customer-detail-order-bottom b{font-size:11px}
.customer-detail-order-badges{align-items:center}
.customer-detail-order-badges .delivery-badge{border-radius:7px;font-weight:750}
.customer-detail-empty{border-radius:14px}

@media(max-width:620px){
  .customer-detail-hero{margin:12px 13px 17px;padding:14px}
  .customer-detail-metrics{gap:8px}
  .customer-detail-metrics>div{padding:11px 8px 10px 39px;min-height:70px}
  .customer-detail-metrics>div:before{left:9px;top:12px}
  .customer-detail-history{padding-left:13px;padding-right:13px}
  .customer-detail-order{padding:12px}
}

/* Business Profile — match Orders and Customers tab header */
.main-column:has(.business-profile-hero) > .topbar.orders-tab-header{
  justify-content:flex-start !important;
  min-height:0 !important;
  background:rgba(255,255,255,.94) !important;
  border-bottom:1px solid #eeedf6 !important;
}
.main-column:has(.business-profile-hero) > .topbar.orders-tab-header .orders-header-title{
  flex:0 0 auto;
  margin:0;
  gap:8px !important;
}

/* Business Profile — exactly match Orders purple header */
.main-column:has(.business-profile-hero) > .topbar.orders-tab-header{
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:7px 12px !important;
  justify-content:flex-start !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  position:static !important;
}
.main-column:has(.business-profile-hero) > .topbar.orders-tab-header .orders-header-title{
  color:#fff !important;
  font-size:19px !important;
  font-weight:850 !important;
  margin:0 !important;
}
.main-column:has(.business-profile-hero) > .topbar.orders-tab-header .orders-header-title svg{
  color:#fff !important;
}
@media(max-width:620px){
  .main-column:has(.business-profile-hero) > .topbar.orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:6px 10px !important;
  }
}

/* Reports — match Business Profile purple header */
.main-column:has(.reports-dashboard) > .topbar.orders-tab-header{
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:7px 12px !important;
  justify-content:flex-start !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  position:static !important;
}
.main-column:has(.reports-dashboard) > .topbar.orders-tab-header .orders-header-title{
  color:#fff !important;
  font-size:19px !important;
  font-weight:850 !important;
  margin:0 !important;
}
.main-column:has(.reports-dashboard) > .topbar.orders-tab-header .orders-header-title svg{
  color:#fff !important;
}
@media(max-width:620px){
  .main-column:has(.reports-dashboard) > .topbar.orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:6px 10px !important;
  }
}

/* Backup & Restore — match Reports and Business Profile headers */
.main-column:has(.backup-toolbar) > .topbar.orders-tab-header{
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:7px 12px !important;
  justify-content:flex-start !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  position:static !important;
}
.main-column:has(.backup-toolbar) > .topbar.orders-tab-header .orders-header-title{
  color:#fff !important;
  font-size:19px !important;
  font-weight:850 !important;
  margin:0 !important;
}
.main-column:has(.backup-toolbar) > .topbar.orders-tab-header .orders-header-title svg{
  color:#fff !important;
}
@media(max-width:620px){
  .main-column:has(.backup-toolbar) > .topbar.orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:6px 10px !important;
  }
}

/* Terms & Conditions and Privacy Policy — back header alignment */
.main-column:has(.more-page) > .topbar.orders-tab-header{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  padding:7px 12px !important;
  box-sizing:border-box !important;
}
.main-column:has(.more-page) > .topbar.orders-tab-header .business-profile-back-button{
  flex:0 0 32px !important;
  margin:0 10px 0 0 !important;
  align-self:center !important;
}
.main-column:has(.more-page) > .topbar.orders-tab-header .orders-header-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 !important;
  color:#fff !important;
  font-size:19px !important;
  font-weight:850 !important;
}
.main-column:has(.more-page) > .topbar.orders-tab-header .orders-header-title svg{
  color:#fff !important;
}
@media(max-width:620px){
  .main-column:has(.more-page) > .topbar.orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:6px 10px !important;
  }
}

/* Subscription header — match Orders header */
.main-column:has(.subscription-page) > .topbar.orders-tab-header{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  width:100% !important;
  height:52px !important;
  min-height:52px !important;
  margin:0 !important;
  padding:7px 12px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(105deg,#a83cff 0%,#6720e9 48%,#3514bd 100%) !important;
  box-shadow:0 5px 14px rgba(91,33,202,.20) !important;
}

.main-column:has(.subscription-page) > .topbar.orders-tab-header .business-profile-back-button{
  width:32px !important;
  height:32px !important;
  flex:0 0 32px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 10px 0 0 !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.35) !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
}

.main-column:has(.subscription-page) > .topbar.orders-tab-header .business-profile-back-button svg{
  width:19px !important;
  height:19px !important;
  color:#fff !important;
}

.main-column:has(.subscription-page) > .topbar.orders-tab-header .orders-header-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  margin:0 !important;
  color:#fff !important;
  font-size:19px !important;
  font-weight:850 !important;
  line-height:1 !important;
}

.main-column:has(.subscription-page) > .topbar.orders-tab-header .orders-header-title svg{
  width:20px !important;
  height:20px !important;
  flex:0 0 20px !important;
  color:#fff !important;
}

.main-column:has(.subscription-page) > .topbar.orders-tab-header .subscription-header-status{
  margin-left:auto !important;
}

@media(max-width:620px){
  .main-column:has(.subscription-page) > .topbar.orders-tab-header{
    height:48px !important;
    min-height:48px !important;
    padding:6px 10px !important;
  }
}


/* =====================================================
   DOOVABOOK — COMPACT PREMIUM REPORTS UI
   Visual-only overrides. Reports header excluded.
   ===================================================== */

.main-column:has(.reports-dashboard) .reports-dashboard{
  gap:10px!important;
  padding:0 0 18px!important;
}

.main-column:has(.reports-dashboard) .report-filter-panel,
.main-column:has(.reports-dashboard) .report-section,
.main-column:has(.reports-dashboard) .report-financial-section{
  padding:12px!important;
  border:1px solid #e9e5f5!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,#fff 0%,#fcfbff 100%)!important;
  box-shadow:0 3px 12px rgba(65,48,130,.045)!important;
}

.main-column:has(.reports-dashboard) .report-filter-heading b,
.main-column:has(.reports-dashboard) .report-section-heading h2{
  color:#30264f!important;
  font-weight:800!important;
  letter-spacing:-.2px;
}

.main-column:has(.reports-dashboard) .report-period-label,
.main-column:has(.reports-dashboard) .report-total-pill{
  background:#f0ebff!important;
  color:#6244c4!important;
  border:1px solid #e4dcff!important;
  padding:5px 8px!important;
  font-weight:750!important;
}

.main-column:has(.reports-dashboard) .report-period-options{
  gap:5px!important;
  margin-top:10px!important;
}

.main-column:has(.reports-dashboard) .report-period-options button{
  padding:6px 9px!important;
  border-radius:8px!important;
  font-size:9px!important;
  background:#f8f7fc!important;
  border-color:#eae7f2!important;
}

.main-column:has(.reports-dashboard) .report-period-options button.active{
  background:#6848d5!important;
  border-color:#6848d5!important;
  color:#fff!important;
  box-shadow:0 2px 6px rgba(104,72,213,.2)!important;
}

.main-column:has(.reports-dashboard) .report-financial-grid{
  gap:7px!important;
  margin-top:11px!important;
}

.main-column:has(.reports-dashboard) .report-financial-item{
  padding:10px 8px!important;
  border:1px solid rgba(105,80,170,.07)!important;
  border-radius:10px!important;
}

.main-column:has(.reports-dashboard) .report-financial-item strong{
  font-size:clamp(12px,3.5vw,16px)!important;
  font-weight:850!important;
  letter-spacing:-.35px;
  margin:5px 0 3px!important;
}

.main-column:has(.reports-dashboard) .report-collection-progress{
  margin-top:11px!important;
}

.main-column:has(.reports-dashboard) .report-progress-track{
  height:7px!important;
  background:#eeeaf7!important;
}

.main-column:has(.reports-dashboard) .report-progress-track span{
  background:linear-gradient(90deg,#9b63ed,#5635c5)!important;
}

.main-column:has(.reports-dashboard) .report-order-stats{
  gap:6px!important;
  margin-top:10px!important;
}

.main-column:has(.reports-dashboard) .report-order-stats>div{
  padding:8px 2px!important;
  border:1px solid #efedf5!important;
  background:#fbfaff!important;
  border-radius:9px!important;
}

.main-column:has(.reports-dashboard) .report-stat-icon{
  width:27px!important;
  height:27px!important;
  margin-bottom:5px!important;
}

.main-column:has(.reports-dashboard) .report-order-stats b{
  font-size:14px!important;
  font-weight:850!important;
}

.main-column:has(.reports-dashboard) .report-customer-summary{
  margin-top:9px!important;
  padding:9px!important;
  border:1px solid #eeeaf8!important;
  background:#f8f6ff!important;
  border-radius:9px!important;
}

.main-column:has(.reports-dashboard) .report-inventory-stats{
  gap:6px!important;
  margin-top:10px!important;
}

.main-column:has(.reports-dashboard) .report-inventory-stats>div{
  padding:9px 2px!important;
  border:1px solid #efedf5!important;
  border-radius:9px!important;
  background:#faf9fd!important;
}

.main-column:has(.reports-dashboard) .report-inventory-stats b{
  font-size:15px!important;
  font-weight:850!important;
}

.main-column:has(.reports-dashboard) .report-stock-list,
.main-column:has(.reports-dashboard) .report-ranking-list{
  margin-top:9px!important;
}

.main-column:has(.reports-dashboard) .report-stock-row{
  padding:7px 2px!important;
}

.main-column:has(.reports-dashboard) .report-ranking-row{
  padding:8px 2px!important;
  gap:8px!important;
}

.main-column:has(.reports-dashboard) .report-rank{
  width:24px!important;
  height:24px!important;
  border:1px solid #e8e1ff!important;
  background:#f1edff!important;
  color:#6547c9!important;
}

.main-column:has(.reports-dashboard) .report-table-wrap{
  margin-top:9px!important;
  border:1px solid #e9e5f2!important;
  border-radius:9px!important;
  box-shadow:0 2px 7px rgba(50,40,100,.025);
}

.main-column:has(.reports-dashboard) .report-detail-table th{
  padding:8px 7px!important;
  background:#f4f1fc!important;
  color:#62548c!important;
  font-weight:800!important;
}

.main-column:has(.reports-dashboard) .report-detail-table td{
  padding:8px 7px!important;
}

.main-column:has(.reports-dashboard) .report-detail-table tbody tr:active{
  background:#f7f4ff!important;
}

.main-column:has(.reports-dashboard) .report-download-section{
  padding:2px 0 8px!important;
}

.main-column:has(.reports-dashboard) .report-download-section .btn{
  min-height:42px!important;
  border-radius:10px!important;
  background:linear-gradient(105deg,#8054e5,#5130bf)!important;
  box-shadow:0 4px 11px rgba(91,63,190,.2)!important;
  font-size:12px!important;
  font-weight:750!important;
}

.main-column:has(.reports-dashboard) .report-download-section p{
  margin-top:6px!important;
  font-size:9px!important;
}

@media(max-width:380px){
  .main-column:has(.reports-dashboard) .report-filter-panel,
  .main-column:has(.reports-dashboard) .report-section,
  .main-column:has(.reports-dashboard) .report-financial-section{
    padding:10px!important;
  }
  .main-column:has(.reports-dashboard) .report-financial-grid{
    gap:5px!important;
  }
}


/* Customers cards — match Orders card spacing */
.customers-card-list{display:flex;flex-direction:column;gap:10px}

/* Customers cards — match Orders spacing exactly */
.customers-card-list{gap:8px!important}
.customers-card-list .customer-compact-card{margin-bottom:0!important}

/* Home notification panel — daily backup reminder */
.home-notification-button{position:relative!important}
.home-notification-dot{position:absolute;right:2px;top:2px;width:9px;height:9px;border-radius:50%;background:#e45b50;border:2px solid #fff}
.home-notification-panel{position:absolute;right:0;top:calc(100% - 10px);z-index:50;width:min(330px,calc(100vw - 32px));padding:15px;background:#fff;border:1px solid #e9e6f5;border-radius:15px;box-shadow:0 12px 32px rgba(35,27,83,.16);color:#25304a}
.home-notification-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.home-notification-panel-heading b{font-size:15px;font-weight:750}
.home-notification-panel-heading button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:#f4f2fa;color:#625b7d}
.home-notification-reminder{display:flex;align-items:flex-start;gap:11px;padding:12px;border-radius:12px;background:#f5f2ff}
.home-notification-reminder-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#e9e3ff;color:#5841c2}
.home-notification-reminder-copy{min-width:0}
.home-notification-reminder-copy b{font-size:13px;color:#30265f}
.home-notification-reminder-copy p{margin:4px 0;font-size:12px;line-height:1.45;color:#626078}
.home-notification-reminder-copy small{font-size:11px;color:#766da0}
.home-notification-toggle{display:flex;align-items:center;gap:9px;margin:13px 1px;font-size:12px;font-weight:600;color:#424b60}
.home-notification-toggle input{width:16px;height:16px;accent-color:#5B3FD8}
.home-notification-backup-button{width:100%;justify-content:center}

/* =========================================================
   DOOVABOOK — PREMIUM DESKTOP EXPERIENCE
   Desktop only: 901px and wider. Mobile styles untouched.
   ========================================================= */
@media (min-width: 901px) {

  body {
    background: #f3f4fa;
  }

  .app-shell {
    background: #f3f4fa;
  }

  .sidebar {
    background: linear-gradient(180deg, #4930bd 0%, #38239f 100%);
    box-shadow: 5px 0 28px rgba(35, 25, 90, .09);
    border-right: 1px solid rgba(255,255,255,.08);
  }

  .brand-lockup {
    padding-bottom: 29px;
  }

  .workspace-chip {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.13);
    border-radius: 13px;
  }

  .nav-group {
    margin-bottom: 25px;
  }

  .nav-link {
    min-height: 42px;
    border-radius: 11px;
    transition: background .18s ease, color .18s ease;
  }

  .nav-link:hover {
    background: rgba(255,255,255,.12);
  }

  .nav-link.active {
    background: rgba(255,255,255,.19);
    box-shadow: inset 3px 0 #d8d0ff;
  }

  .main-column {
    min-width: 0;
    background: #f5f6fb;
  }

  .topbar {
    height: 68px;
    padding-left: 38px;
    padding-right: 38px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid #e9e8f2;
    box-shadow: 0 3px 14px rgba(35, 28, 80, .025);
  }

  .page-content {
    width: 100%;
    max-width: 1580px;
    padding: 36px 42px 46px;
  }

  .hero-row,
  .page-heading {
    margin-bottom: 29px;
  }

  .hero-row h1,
  .page-heading h1 {
    letter-spacing: -1.4px;
  }

  .card,
  .table-card,
  .more-page-inner,
  .order-reference-card {
    border-color: #e8e8f2;
    box-shadow: 0 3px 14px rgba(35, 28, 80, .035);
  }

  .card {
    transition: box-shadow .18s ease, border-color .18s ease;
  }

  .card:hover {
    border-color: #ded9f4;
    box-shadow: 0 7px 22px rgba(49, 35, 110, .065);
  }

  .metric-card {
    padding: 20px 21px;
    border-radius: 17px;
  }

  .metric-value {
    font-size: 26px;
  }

  .recent-card,
  .quick-card,
  .inventory-card {
    padding: 22px;
    border-radius: 18px;
  }

  .dashboard-grid {
    gap: 20px;
  }

  .metrics-grid {
    gap: 17px;
    margin-bottom: 24px;
  }

  .table-card {
    border-radius: 16px;
    background: #fff;
  }

  .data-table th {
    padding-top: 15px;
    padding-bottom: 15px;
    background: #f8f8fd;
  }

  .data-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .data-table tbody tr {
    transition: background .15s ease;
  }

  .data-table tbody tr:hover {
    background: #f8f7ff;
  }

  .search-box,
  .toolbar .search-box {
    border-radius: 11px;
    background: #fff;
  }

  .btn {
    transition: transform .16s ease, box-shadow .16s ease,
      background .16s ease, border-color .16s ease;
  }

  .btn.primary:hover {
    box-shadow: 0 6px 15px rgba(91, 63, 216, .2);
  }

  input,
  select,
  textarea {
    border-color: #e1e1ed;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: #8069e5;
    box-shadow: 0 0 0 3px rgba(91, 63, 216, .09);
  }

  .app-footer {
    padding-left: 42px;
    padding-right: 42px;
    border-color: #e8e8f1;
  }

  /* Wider, refined Create/Edit Order window */
  .modal-backdrop:has(.order-create-form) {
    padding: 24px;
    align-items: center;
    background: rgba(20, 16, 48, .58);
    backdrop-filter: blur(7px);
  }

  .modal-wide:has(.order-create-form) {
    width: min(860px, calc(100vw - 80px));
    height: min(94dvh, 1000px);
    max-height: 94dvh;
    border: 1px solid #e6e1f6;
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(18, 12, 55, .25);
  }

  .order-reference-header {
    padding: 21px 27px 25px;
  }

  .order-reference-scroll {
    padding: 21px 27px 25px;
  }

  .order-reference-card {
    padding: 19px;
    border-radius: 16px;
  }

  .order-reference-fields {
    gap: 13px 15px;
  }

  .order-reference-footer {
    padding: 14px 27px;
  }

  /* Desktop delivery date: show and enable the native date input */
  .order-reference-fields .order-reference-control.order-reference-date {
    gap: 9px;
    min-width: 0;
  }

  .order-reference-fields .order-reference-date > span {
    display: none;
  }

  .order-reference-fields .order-reference-date input[type="date"] {
    position: static;
    inset: auto;
    display: block;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 3px;
    opacity: 1;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: #5140a5;
    color-scheme: light;
    font-size: 11px;
    cursor: pointer;
  }

  .order-reference-fields .order-reference-date input[type="date"]:focus {
    border: 0;
    box-shadow: none;
  }

  .order-reference-fields .order-reference-date input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    padding: 4px;
  }
}
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 620px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: 64px;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #FFFFFF;
    border-top: 1px solid #E9EAF0;
  }

  .mobile-bottom-nav button {
    flex: 1;
    min-width: 0;
    height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px;
    border: 0;
    background: transparent;
    color: #7B8190;
  }

  .mobile-bottom-nav .mobile-nav-icon {
    width: 34px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .mobile-bottom-nav button.active {
    color: #5B3FD8;
  }

  .mobile-bottom-nav button.active .mobile-nav-icon {
    background: #F0ECFF;
  }

  .mobile-bottom-nav button span:last-child {
    font-size: 9px;
    line-height: 12px;
    font-weight: 700;
  }

  .main-column {
    padding-bottom: 72px;
  }
}

/* DoovaBook mobile home screen */
.mobile-home-brand {
  display: none;
}

.delivery-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 0 12px;
  scrollbar-width: none;
}

.delivery-filters::-webkit-scrollbar {
  display: none;
}

.delivery-filters button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ECEAF4;
  border-radius: 22px;
  background: #FFFFFF;
  color: #656B7A;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
}

.delivery-filters button.selected {
  background: #5B3FD8;
  border-color: #5B3FD8;
  color: #FFFFFF;
}

.filter-count {
  font-size: 10px;
  opacity: .85;
}

.delivery-order-list {
  display: flex;
  flex-direction: column;
}

.delivery-order {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #F0EEF6;
  color: #25243A;
  cursor: pointer;
}

.delivery-order-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #F0ECFF;
  color: #5B3FD8;
}

.delivery-order-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.delivery-order-main > b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.delivery-order-main > small,
.delivery-order-total > small {
  color: #7B8190;
  font-size: 10px;
}

.delivery-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
}

.delivery-badge.today {
  background: #E8F8EF;
  color: #19834D;
}

.delivery-badge.tomorrow {
  background: #EDE9FF;
  color: #5B3FD8;
}

.delivery-badge.upcoming {
  background: #EAF3FF;
  color: #2864B4;
}

.delivery-badge.overdue {
  background: #FFF0EC;
  color: #C34228;
}

.delivery-order-total {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.delivery-order-total > b {
  font-size: 12px;
  white-space: nowrap;
}

.delivery-chevron {
  flex: 0 0 auto;
  color: #A1A4B1;
}

.delivery-empty {
  text-align: center;
  padding: 28px 12px;
}

.delivery-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0ECFF;
  color: #5B3FD8;
  border-radius: 16px;
}

.delivery-empty > b {
  display: block;
  font-size: 14px;
}

.delivery-empty > p {
  color: #7B8190;
  font-size: 12px;
  line-height: 1.6;
}

.delivery-all-button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.mobile-new-order {
  display: none;
}

@media (max-width: 620px) {
  .main-column {
    padding-bottom: 154px !important;
  }

  .page-content {
    padding-top: 12px !important;
  }

  .mobile-home-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 43px;
    margin: 0 0 15px;
  }

  .mobile-home-brand img {
    display: block;
    width: auto;
    max-width: 185px;
    height: 38px;
    object-fit: contain;
    object-position: left center;
  }

  .home-hero {
    margin-bottom: 16px;
  }

  .home-hero h1 {
    font-size: 23px !important;
    line-height: 1.25;
    margin: 5px 0;
  }

  .home-hero .subhead {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 5px;
  }

  .home-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 16px;
  }

  .home-metrics > * {
    min-width: 0;
  }

  .delivery-card {
    padding: 15px !important;
    border-radius: 18px !important;
  }

  .delivery-card .card-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .delivery-card .card-head h2 {
    font-size: 16px;
  }

  .delivery-card .card-head p {
    font-size: 11px;
  }

  .delivery-filters {
    margin-right: -2px;
  }

  .delivery-order {
    gap: 8px;
  }

  .delivery-order-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .delivery-order-main > b {
    font-size: 12px;
  }

  .delivery-order-main > small {
    font-size: 9px;
  }

  .delivery-order-total > b {
    font-size: 11px;
  }

  .delivery-chevron {
    display: none;
  }

  .desktop-new-order,
  .desktop-view-all {
    display: none !important;
  }

  .mobile-new-order {
    position: fixed;
    z-index: 39;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 76px;
    width: min(280px, calc(100vw - 48px));
    min-height: 48px;
    border-radius: 16px !important;
    box-shadow: 0 7px 22px rgba(91, 63, 216, .24);
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-bottom-nav {
    height: 64px;
    padding-bottom: max(5px, env(safe-area-inset-bottom));
  }
}

/* Mobile header: DoovaBook banner replaces the welcome heading */
.mobile-header-banner {
  display: none;
}

@media (max-width: 620px) {
  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 8px 14px !important;
  }

  .mobile-header-banner {
    display: block;
    width: auto;
    max-width: 180px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
    margin-right: auto;
  }

  .topbar .breadcrumb {
    display: none !important;
  }

  .topbar .top-actions {
    gap: 7px;
  }

  .topbar .offline-pill,
  .topbar .top-actions > .icon-btn {
    display: none !important;
  }

  .page-content {
    padding-top: 14px !important;
  }

  .home-metrics {
    margin-top: 0 !important;
  }
}

/* Refined DoovaBook order list and compact action */
.delivery-order-total > b {
  color: #5B3FD8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.delivery-order-total > small {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delivery-order {
  background: #FFFFFF;
  border-radius: 12px;
}

.delivery-order:active {
  background: #F8F6FF;
}

.delivery-order-main .delivery-badge {
  letter-spacing: .1px;
}

@media (max-width: 620px) {
  /* More stays in the bottom navigation */
  .topbar .mobile-menu {
    display: none !important;
  }

  .mobile-header-banner {
    margin-left: 0;
  }

  .delivery-order-list {
    max-height: none;
    overflow: visible;
  }

  .mobile-new-order {
    width: auto !important;
    min-width: 0;
    max-width: calc(100vw - 32px);
    padding: 0 22px !important;
    white-space: nowrap;
  }
}

/* Original DoovaBook-style home order cards */
.delivery-order {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px 12px !important;
  width: 100%;
  padding: 15px !important;
  margin-bottom: 12px;
  text-align: left;
  white-space: normal;
  background: #fff !important;
  border: 1px solid #eceaf4 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(40, 35, 80, .035);
}

.delivery-order-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0ecff !important;
  color: #5b3fd8 !important;
  font-size: 17px;
  font-weight: 750;
}

.delivery-order-main {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.delivery-order-main > b {
  color: #25233a !important;
  font-size: 15px !important;
  font-weight: 750;
}

.delivery-order-main > small {
  color: #7b8190 !important;
  font-size: 12px !important;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.delivery-order-main .delivery-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.delivery-order-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 3px;
  padding-top: 12px;
  border-top: 1px solid #efedf5;
}

.delivery-order-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #73798a;
  font-size: 12px;
}

.delivery-order-amounts {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 15px;
  margin-left: auto;
}

.delivery-order-amounts > span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.delivery-order-amounts small {
  color: #85899a;
  font-size: 10px;
}

.delivery-order-amounts b {
  color: #29263e;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.delivery-order-amounts .order-paid {
  color: #16845b;
}

.delivery-order-amounts .order-pending {
  color: #d97706;
}

@media (max-width: 390px) {
  .delivery-order {
    padding: 12px !important;
  }

  .delivery-order-amounts {
    gap: 10px;
  }

  .delivery-order-amounts b {
    font-size: 11px;
  }
}

/* Compact DoovaBook order cards */
.delivery-order {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 6px 10px !important;
  align-items: start !important;
  padding: 12px !important;
  margin-bottom: 9px;
  border: 1px solid #eceaf4 !important;
  border-radius: 14px !important;
  background: #fff !important;
  white-space: normal;
}

.delivery-order-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start !important;
  gap: 4px 8px !important;
  min-width: 0;
}

.delivery-order-main > b {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px !important;
  line-height: 1.3;
}

.delivery-order-main > small {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 11px !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.delivery-order-main .delivery-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.delivery-order-bottom {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px !important;
  width: 100%;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid #efedf5;
}

.delivery-order-date {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 10px !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.delivery-order-amounts {
  display: contents !important;
}

.delivery-order-amounts > span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
}

.delivery-order-amounts small {
  font-size: 10px !important;
  line-height: 1.2;
  white-space: nowrap;
}

.delivery-order-amounts b {
  font-size: 11px !important;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .delivery-order {
    padding: 10px !important;
  }

  .delivery-order-bottom {
    grid-template-columns: minmax(0, 0.85fr) repeat(3, minmax(0, 1fr));
    gap: 5px !important;
  }

  .delivery-order-amounts small {
    font-size: 9px !important;
  }

  .delivery-order-amounts b {
    font-size: 10px !important;
  }
}

/* Align payment labels directly above their amounts */
.delivery-order-amounts > span {
  align-items: center !important;
  text-align: center !important;
}

.delivery-order-amounts small,
.delivery-order-amounts b {
  width: 100%;
  text-align: center !important;
}

/* Keep the delivery date on one line */
.delivery-order-date {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
}

.delivery-order-date svg {
  flex-shrink: 0;
}

/* Give the delivery date room and space out payment columns */
.delivery-order-bottom {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important;
  column-gap: 12px !important;
}

.delivery-order-date {
  min-width: 0;
  font-size: 10px !important;
  letter-spacing: -0.2px;
}

.delivery-order-amounts > span {
  min-width: 0;
}

@media (max-width: 390px) {
  .delivery-order-bottom {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 0.9fr)) !important;
    column-gap: 7px !important;
  }

  .delivery-order-date {
    font-size: 9px !important;
  }
}

/* DoovaBook compact mobile Orders, Customers and Reports */
@media (max-width: 620px) {
  .table-card {
    padding: 12px !important;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .table-card .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-card .data-table {
    min-width: 680px;
    font-size: 12px;
  }

  .table-card .data-table th,
  .table-card .data-table td {
    padding: 10px 8px;
  }

  .table-card .data-table th {
    color: #7b8190;
    font-size: 10px;
  }

  .table-card .table-person {
    gap: 7px;
  }

  .table-card .person-avatar {
    flex-shrink: 0;
  }

  .table-card .order-id {
    color: #5b3fd8;
  }

  .table-note {
    font-size: 11px;
    line-height: 1.5;
  }

  .toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1 1 100%;
    min-width: 0;
  }

  .toolbar-meta {
    font-size: 12px;
  }

  .heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .heading-actions .btn {
    flex: 1 1 auto;
  }

  .report-grid {
    gap: 12px;
  }

  .report-metrics {
    gap: 10px;
  }

  .report-table-head {
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Orders page — summary cards and filters */
.orders-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.orders-metric {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 5px 10px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  text-align: left;
  color: #25223a;
  background: #fff;
  border: 1px solid #eceaf4;
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.orders-metric.selected {
  border-color: #5b3fd8;
  background: #faf9ff;
}

.orders-metric .metric-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #5b3fd8;
  background: #f0ecff;
  border-radius: 12px;
}

.orders-metric .metric-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: #7b8190;
  font-size: 12px;
  line-height: 1.35;
}

.orders-metric .metric-value {
  grid-column: 2;
  grid-row: 2;
  color: #25223a;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.orders-toolbar {
  margin-top: 14px;
  margin-bottom: 12px;
}

.orders-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  padding: 2px 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.orders-filter-row::-webkit-scrollbar {
  display: none;
}

.orders-filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  color: #626779;
  background: #fff;
  border: 1px solid #eceaf4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.orders-filter-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  color: #77718f;
  background: #f2f0f8;
  border-radius: 999px;
  font-size: 11px;
}

.orders-filter-chip.active {
  color: #fff;
  background: #5b3fd8;
  border-color: #5b3fd8;
}

.orders-filter-chip.active span {
  color: #5b3fd8;
  background: #fff;
}

.orders-card-list {
  margin-top: 4px;
}

.delivery-order-customer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.delivery-order-customer strong {
  color: #25223a;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.delivery-order-customer small {
  color: #85899a;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-order-items {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 3px;
  color: #73788a;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.delivery-badge.pending {
  color: #93630b;
  background: #fff4d9;
}

.delivery-badge.delivered {
  color: #16784b;
  background: #e3f7ec;
}

.delivery-badge.overdue {
  color: #c43849;
  background: #ffeaed;
}

@media (min-width: 700px) {
  .orders-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .orders-metric {
    padding: 11px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 5px 8px;
  }

  .orders-metric .metric-icon {
    width: 32px;
    height: 32px;
  }

  .orders-metric .metric-value {
    font-size: 21px;
  }

  .orders-filter-row {
    gap: 6px;
  }

  .orders-filter-chip {
    padding: 7px 10px;
  }
}

/* Orders screen floating action; Home styling remains unchanged */
.orders-mobile-new-order {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min( calc(100% - 32px), 360px );
  min-height: 50px;
  padding: 0 20px;
  white-space: nowrap;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(91, 63, 216, 0.25);
}

/* Orders-only heading and create icon */
.orders-top-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 22px;
}
.orders-top-heading h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #172033;
}
.orders-create-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #5B3FD8;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(91, 63, 216, 0.2);
}

/* Dedicated Orders header */
.orders-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.orders-header-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  color: #172033;
}

/* Slightly tighter spacing on the Orders screen only */
.orders-tab-header {
  margin-bottom: 8px !important;
}
.orders-tab-header + * {
  margin-top: 0 !important;
}

/* Reduce space between Orders header and four summary cards */
@media (max-width: 620px) {
  .main-column:has(.orders-tab-header) .page-content {
    padding-top: 6px !important;
  }
}

/* Further reduce gap above Orders summary cards */
@media (max-width: 620px) {
  .main-column:has(.orders-tab-header) .page-content {
    padding-top: 0 !important;
  }

  .main-column:has(.orders-tab-header) .orders-metrics {
    margin-top: 0 !important;
  }
}

/* Fine-tune spacing above Orders summary cards */
@media (max-width: 620px) {
  .main-column:has(.orders-tab-header) .page-content {
    padding-top: 6px !important;
  }
}

/* Orders summary cards — align with Home metric card design */
.orders-metric {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px;
  padding: 17px 18px 16px;
  border-color: #e8ebf2;
  border-radius: 15px;
  box-shadow: 0 2px 4px #24345203;
}

.orders-metric .metric-icon {
  grid-column: 1;
  grid-row: 1;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #5b3fd8;
  background: #f0ecff;
}

.orders-metric .metric-label {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px;
}

.orders-metric .metric-value {
  grid-column: 1;
  grid-row: 3;
  font-size: 19px;
}

.orders-metric.selected {
  border-color: #5b3fd8;
  background: #faf9ff;
}

@media (max-width: 620px) {
  .orders-metric {
    padding: 13px 12px;
    border-radius: 13px;
  }
}

/* Orders overview — match Home card layout */
.orders-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 6px;
  padding: 17px 18px 16px;
  text-align: left;
  min-height: 0;
}

.orders-metric .metric-icon {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.orders-metric .metric-label {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 12px;
  line-height: 1.35;
}

.orders-metric .metric-value {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 750;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .orders-metric {
    padding: 13px 12px;
    gap: 8px 6px;
    border-radius: 13px;
  }
}

/* Customers page — reuse Orders layout without altering Orders */
.customers-metrics {
  margin-top: 0;
}

.customers-toolbar {
  margin-top: 14px;
  margin-bottom: 12px;
}

.customers-card-list {
  gap: 10px;
}

.customer-card {
  cursor: default;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
}

.customer-card-main {
  min-width: 0;
}

.customer-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: #7b8190;
  font-size: 12px;
}

.customer-card-actions {
  grid-column: 3;
  grid-row: 1;
}

.customer-card-bottom {
  grid-column: 2 / -1;
  margin-top: 8px;
}

.customer-card .delivery-order-amounts {
  justify-content: flex-start;
  gap: 24px;
}

@media (max-width: 620px) {
  .customer-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .customer-card-bottom {
    grid-column: 1 / -1;
  }
}

/* Compact customer cards only */
.customers-card-list .customer-card {
  padding: 12px 14px;
  gap: 5px 10px;
  align-items: center;
}

.customers-card-list .customer-card .delivery-order-icon {
  width: 38px;
  height: 38px;
}

.customers-card-list .customer-card .delivery-order-customer strong {
  font-size: 14px;
}

.customers-card-list .customer-card .delivery-order-customer small,
.customers-card-list .customer-card .delivery-order-items,
.customers-card-list .customer-card .customer-last-order {
  font-size: 11px;
  line-height: 1.4;
}

.customers-card-list .customer-last-order {
  display: block;
  color: #858b99;
  margin-top: 2px;
}

.customers-card-list .customer-card-stats {
  margin-top: 3px;
  font-size: 11px;
}

.customers-card-list .customer-card-bottom {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

.customers-card-list .customer-card .delivery-order-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.customers-card-list .customer-card .delivery-order-amounts > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customers-card-list .customer-card .delivery-order-amounts small {
  font-size: 10px;
  color: #858b99;
}

.customers-card-list .customer-card .delivery-order-amounts b {
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .customers-card-list .customer-card {
    padding: 11px 12px;
  }

  .customers-card-list .customer-card-bottom {
    grid-column: 1 / -1;
  }
}

/* Customers-only compact card alignment */
.customers-card-list .customer-card {
  row-gap: 4px;
  padding: 10px 12px;
}

.customers-card-list .customer-card .customer-last-order {
  display: none;
}

.customers-card-list .customer-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

.customers-card-list .customer-card-bottom .customer-last-order-date {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  font-size: 11px;
  color: #64748b;
}

.customers-card-list .customer-card-bottom .delivery-order-amounts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: end;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.customers-card-list .customer-card-bottom .delivery-order-amounts > span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.customers-card-list .customer-card-bottom .delivery-order-amounts small {
  font-size: 10px;
  color: #858b99;
}

.customers-card-list .customer-card-bottom .delivery-order-amounts b {
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .customers-card-list .customer-card-bottom {
    gap: 6px;
  }

  .customers-card-list .customer-card-bottom .customer-last-order-date {
    font-size: 10px;
    gap: 3px;
  }

  .customers-card-list .customer-card-bottom .delivery-order-amounts {
    gap: 7px;
  }

  .customers-card-list .customer-card-bottom .delivery-order-amounts b {
    font-size: 11px;
  }
}

/* Force customer payment amounts to the far right */
.customers-card-list .customer-card-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: initial !important;
  width: 100% !important;
}

.customers-card-list .customer-card-bottom > .customer-last-order-date {
  grid-column: 1 !important;
  justify-self: start !important;
}

.customers-card-list .customer-card-bottom > .delivery-order-amounts {
  grid-column: 2 !important;
  justify-self: end !important;
  margin-left: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, max-content) !important;
  justify-content: end !important;
  text-align: right !important;
}

/* Customers: evenly spaced, aligned payment columns */
.customers-card-list .customer-card-bottom > .delivery-order-amounts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(58px, auto)) !important;
  column-gap: 12px !important;
  align-items: start !important;
  justify-content: end !important;
  justify-items: end !important;
  text-align: right !important;
  flex: 0 0 auto !important;
}

.customers-card-list .customer-card-bottom > .delivery-order-amounts > span {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.customers-card-list .customer-card-bottom > .delivery-order-amounts small {
  display: block !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.customers-card-list .customer-card-bottom > .delivery-order-amounts b {
  display: block !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
}

@media (max-width: 400px) {
  .customers-card-list .customer-card-bottom > .delivery-order-amounts {
    grid-template-columns: repeat(3, minmax(52px, auto)) !important;
    column-gap: 7px !important;
  }
}
\n
/* DoovaBook Reports premium styling */
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 17px;
}
.report-grid > .card,
.report-grid > section,
.report-grid .card {
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
}
.progress-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #edf0f6;
}
.progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.attention-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f6;
}
.attention-row:last-child {
  border-bottom: 0;
}
.report-empty {
  padding: 22px 12px;
  text-align: center;
  color: #929bad;
  font-size: 12px;
}
.report-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
}
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .report-grid { gap: 11px; }
  .report-grid > .card,
  .report-grid > section,
  .report-grid .card { padding: 14px; border-radius: 14px; }
  .report-table-head { padding: 13px; }
  .progress-legend { gap: 8px; }
}
