.wallet-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.wallet-stats article{background:#fff;border:1px solid #e9edf3;border-radius:12px;box-shadow:0 10px 32px #2336530a;padding:20px}.wallet-stats span,.wallet-stats small{display:block;font-size:12px;color:#78879a}.wallet-stats strong{display:block;font:700 23px Manrope,sans-serif;color:#152238;margin:14px 0 9px}.wallet-topup{margin-top:20px;border:0;border-radius:8px;background:#356df3;color:white;padding:12px 17px;font-weight:700;font-size:13px;opacity:.6;cursor:not-allowed}.wallet-error{color:#a32430;font-size:13px}.activity .empty{text-align:left;border-radius:8px;background:#f5f7fb;padding:14px;color:#78879a;font-size:13px}.activity .panel h2{font-size:17px;margin:0}.activity .panel .note{font-size:13px;line-height:1.5}@media(max-width:700px){.wallet-stats{gap:8px}.wallet-stats article{padding:13px}.wallet-stats strong{font-size:18px}.wallet-stats span,.wallet-stats small{font-size:11px}}

.orders-tools{margin:18px 0 20px}
.order-status-cards{display:grid;grid-template-columns:repeat(6,minmax(112px,1fr));gap:10px;overflow:auto;padding:2px 0 10px}
.order-status-card{display:grid;gap:5px;text-align:left;background:#fff;border:1px solid #e4eaf2;border-radius:10px;padding:13px 14px;color:#596a81;cursor:pointer;min-width:112px}
.order-status-card strong{font:700 20px Manrope,sans-serif;color:#152238}
.order-status-card span{font-size:11px;white-space:nowrap}
.order-status-card.active{border-color:#a9c0ff;background:#edf3ff;box-shadow:0 0 0 2px #356df314}
.order-filter-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #e9edf3;border-radius:11px}
.order-filter-row label{display:grid;gap:6px;color:#596a81;font-size:11px;font-weight:700;min-width:140px;flex:1}
.order-filter-row label.order-search{flex:2;min-width:220px}
.order-filter-row input,.order-filter-row select{width:100%;min-height:39px;border:1px solid #dce3ed;border-radius:8px;background:#fbfcfe;padding:8px 10px;font:500 12px 'DM Sans',sans-serif;color:#27374f}
.order-filter-row button,.order-actions>button{min-height:39px;padding:9px 13px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#42536b;font-size:12px;font-weight:700;cursor:pointer}
.order-filter-row button:hover,.order-actions>button:hover:not(:disabled){border-color:#8eafff;background:#f3f6ff}
.order-actions{display:flex;align-items:center;gap:9px;margin:12px 0}
.order-actions #export-orders{background:#356df3;color:#fff;border-color:#356df3}
.order-actions #cancel-selected{color:#a32430}
.order-actions button:disabled{opacity:.45;cursor:not-allowed}
.selection-count,.order-data-note{font-size:12px;color:#78879a}
.column-picker{position:relative;font-size:12px;color:#465a75}
.column-picker>details{display:inline-block;position:relative;margin-left:5px}
.column-picker summary{cursor:pointer;border:1px solid #dce3ed;border-radius:8px;padding:10px 12px;background:#fff}
#column-options{position:absolute;z-index:10;top:calc(100% + 5px);right:0;min-width:190px;display:grid;gap:8px;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 28px #1a2b471c}
#column-options label{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:500;white-space:nowrap}
#column-options input{accent-color:#356df3}
.activity .table-wrap table{min-width:850px}
.activity .table-wrap th{position:sticky;top:0;background:#f8f9fc;z-index:1}
.order-reference{color:#245bd5;font-weight:700}
.status-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf3ff;color:#245bd5;font-size:11px;font-weight:700}
.status-delivered,.status-returned{background:#eaf8ef;color:#187847}
.status-pending,.status-cancellation_pending{background:#fff5e5;color:#966012}
.status-exception,.status-failed,.status-submission_unknown,.status-cancellation_unknown{background:#fff0f0;color:#a32430}
.table-action{color:#245bd5;font-weight:700}
.link-button{border:0;background:transparent;color:#a32430;font-size:12px;font-weight:700;padding:0;cursor:pointer}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;font-size:12px;color:#78879a}
.pagination>div{display:flex;gap:8px}
.pagination button{border:1px solid #dce3ed;border-radius:7px;background:#fff;padding:8px 12px;color:#42536b;cursor:pointer}
.pagination button:disabled{opacity:.45;cursor:not-allowed}
.cancel-dialog{width:min(520px,calc(100% - 28px));border:0;border-radius:14px;padding:0;box-shadow:0 25px 70px #12213c3d}
.cancel-dialog::backdrop{background:#13223e80}
.cancel-dialog form{padding:24px}
.cancel-dialog h2{margin:0 0 10px;font:700 20px Manrope,sans-serif;color:#152238}
.cancel-dialog p{font-size:13px;line-height:1.55;color:#53647b}
.cancel-dialog label{display:block;margin-top:16px;font-size:13px;font-weight:700;color:#40516a}
.cancel-dialog textarea{display:block;width:100%;min-height:85px;margin-top:7px;padding:10px;border:1px solid #dce3ed;border-radius:8px;font:inherit}
.cancel-dialog .cancel-confirm{display:flex;gap:9px;align-items:flex-start;font-weight:500;line-height:1.5}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
.dialog-actions button{border:0;border-radius:8px;background:#a32430;color:#fff;padding:10px 14px;font-weight:700}
.dialog-actions .secondary{background:#edf1f7;color:#46536a}
.dialog-actions button:disabled{opacity:.55}
@media(max-width:850px){.order-status-cards{grid-template-columns:repeat(3,minmax(110px,1fr))}.order-filter-row label{min-width:calc(50% - 10px)}}
@media(max-width:600px){.order-status-cards{grid-template-columns:repeat(2,minmax(108px,1fr))}.order-filter-row{align-items:stretch}.order-filter-row label,.order-filter-row label.order-search{min-width:100%;flex:auto}.order-actions{flex-wrap:wrap}.order-actions .selection-count{width:100%}.activity .panel{padding:16px}.pagination{align-items:flex-start;flex-direction:column}}
.sort-header{border:0;background:transparent;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;padding:0;cursor:pointer;white-space:nowrap}
.sort-header:hover{color:#245bd5}


.order-actions #print-selected{background:#edf3ff;color:#245bd5;border-color:#c9d8ff}.order-row-actions{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-8px 0 12px #1726420a;display:flex;align-items:center;gap:8px}.order-row-actions a:first-child:not(.action-button){font-weight:700}.action-button{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid;border-radius:7px;padding:7px 10px;font:700 11px 'DM Sans',sans-serif;text-decoration:none;cursor:pointer}.print-action{color:#245bd5;background:#edf3ff;border-color:#d5e1ff}.cancel-action{color:#a32430;background:#fff1f2;border-color:#f4cbd0}.order-row-actions .action-button:hover{filter:brightness(.97)}.activity .table-wrap th:last-child{position:sticky;right:0;z-index:3;background:#f8f9fc;box-shadow:-8px 0 12px #1726420a}

.order-status-cards.waybill-status-cards{grid-template-columns:repeat(4,minmax(120px,1fr))}.waybill-status-cards .order-status-card span{font-size:12px}@media(max-width:600px){.order-status-cards.waybill-status-cards{grid-template-columns:repeat(2,minmax(120px,1fr))}}


/* Order Management reference layout */
.activity{max-width:none;width:100%;margin:0;padding:0 14px 32px}
.module-breadcrumb{display:flex;align-items:center;gap:12px;padding:16px 14px 12px;color:#93a0b3;font-size:13px}
.module-breadcrumb b{font-weight:400;color:#c5ccd6}.module-breadcrumb strong{font-weight:500;color:#66778e}
.module-tabs{display:flex;align-items:center;gap:34px;margin:0 -14px 22px;padding:0 14px;height:46px;background:#fff;box-shadow:0 8px 18px #1d2e4708}
.module-tabs a{height:100%;display:flex;align-items:center;position:relative;color:#3e4b61;text-decoration:none;font-size:14px;font-weight:500}
.module-tabs a.active{color:#e91c2c;font-weight:700}.module-tabs a.active:after{content:"";position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:18px;height:3px;border-radius:3px;background:#e91c2c}
#activity-main.module-order-view .module-heading,#activity-main.module-order-view>.tabs{display:none}
#activity-main.module-order-view .orders-tools{margin:0 0 18px}
.order-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:18px 22px;align-items:end;background:#fff;padding:12px 0 16px}
.order-filter-grid label{display:grid;gap:6px;color:#45546b;font-size:13px;font-weight:500;min-width:0}
.order-filter-grid input,.order-filter-grid select{width:100%;height:34px;border:1px solid #d8dee8;border-radius:8px;background:#fff;padding:7px 12px;font:400 12px 'DM Sans',sans-serif;color:#46556c;outline:none}
.order-filter-grid input:focus,.order-filter-grid select:focus{border-color:#8cacf6;box-shadow:0 0 0 3px #3b6ff21a}
.filter-buttons{display:flex;gap:12px;align-items:center}
.filter-buttons button{height:34px;min-width:64px;padding:0 14px;border:1px solid #d7dce5;border-radius:4px;background:#fff;color:#4f5e73;font:400 12px 'DM Sans',sans-serif;cursor:pointer}
.filter-buttons #order-filter-search{background:#356df3;border-color:#356df3;color:#fff}
.order-actions{display:flex;align-items:center;gap:12px;padding:8px 0 12px;margin:0;border-bottom:1px solid #e7eaf0}
.order-actions>button{height:34px;min-height:34px;padding:0 15px;border-radius:7px;font-size:12px}
.order-actions #print-selected{background:#fff;color:#485971;border-color:#bdc6d4}
.order-actions #cancel-selected{background:#fff;color:#c33a42;border-color:#bdc6d4}
.order-actions #export-orders{background:#fff;color:#485971;border-color:#bdc6d4}
.order-actions .column-picker{margin-left:auto;white-space:nowrap}
.order-actions .column-picker summary{height:34px;padding:9px 12px;border-radius:4px}
.order-actions .selection-count{white-space:nowrap}
.order-status-cards.order-management-status-cards,.order-status-cards.waybill-status-cards{display:flex;align-items:stretch;gap:36px;overflow:auto;padding:10px 10px 16px;border-bottom:1px solid #eceff3}
.order-status-cards .order-status-card{display:flex;align-items:center;gap:7px;position:relative;min-width:max-content;padding:7px 0 10px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#435268;font-size:14px}
.order-status-cards .order-status-card strong{order:2;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#eef1f5;color:#66778e;font:600 11px 'DM Sans',sans-serif}
.order-status-cards .order-status-card span{order:1;font-size:14px;color:inherit}
.order-status-cards .order-status-card.active{background:transparent;color:#e91c2c}
.order-status-cards .order-status-card.active:after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:20px;height:3px;border-radius:3px;background:#e91c2c}
.order-status-cards .order-status-card.active strong{background:#e91c2c;color:white}
#activity-main.module-order-view .panel{padding:12px 0;background:transparent;border:0;box-shadow:none}
#activity-main.module-order-view .panel h2{display:none}
#activity-main.module-order-view #table-note{margin:0 0 10px;color:#8c96a6}
#activity-main.module-order-view .table-wrap{border:1px solid #e0e4eb;border-radius:8px;background:#fff}
#activity-main.module-order-view table{min-width:1150px}
#activity-main.module-order-view th{background:#f4f5f7;color:#697485}
#activity-main.module-order-view td{padding:12px 10px}
#activity-main.module-order-view .pagination{background:#fff;padding:14px;border:1px solid #e6e9ef;border-top:0}
@media(max-width:1050px){.order-filter-grid{grid-template-columns:repeat(3,minmax(145px,1fr))}}
@media(max-width:700px){.activity{padding:0 10px 24px}.module-tabs{gap:22px;overflow:auto;white-space:nowrap}.module-tabs a{font-size:12px}.order-filter-grid{grid-template-columns:repeat(2,minmax(135px,1fr));gap:12px}.order-actions{flex-wrap:wrap}.order-actions .column-picker{margin-left:0}.order-status-cards.order-management-status-cards,.order-status-cards.waybill-status-cards{gap:20px}}
@media(max-width:420px){.order-filter-grid{grid-template-columns:1fr}.order-actions .selection-count{width:100%}}

.invoice-action{color:#146c4a;background:#eaf8f0;border-color:#c8ecd7}
