| 1 |
/** |
| 2 |
* WP EasyCart Admin — Order List V2 styles (FREE) |
| 3 |
* Layers on admin-v2.css (loads globally). Uses the --ecv2-* design tokens. |
| 4 |
*/ |
| 5 |
|
| 6 |
/* ------------------------------------------------------------------ */ |
| 7 |
/* Saved views bar */ |
| 8 |
/* ------------------------------------------------------------------ */ |
| 9 |
.ecv2-order-views-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 12px; } |
| 10 |
.ecv2-order-views-icon { color:#f59e0b; font-size:16px; width:16px; height:16px; } |
| 11 |
.ecv2-order-view-pill-wrap { position:relative; display:inline-flex; align-items:center; } |
| 12 |
.ecv2-order-view-pill { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border:1px solid var(--ecv2-g300, #d1d5db); border-radius:999px; background:#fff; font-size:12px; font-weight:500; color:var(--ecv2-g700, #374151); cursor:pointer; transition:all .15s ease; } |
| 13 |
.ecv2-order-view-pill:hover { border-color:var(--ecv2-primary, #16a34a); color:var(--ecv2-primary, #16a34a); } |
| 14 |
.ecv2-order-view-pill-active { background:var(--ecv2-primary, #16a34a); border-color:var(--ecv2-primary, #16a34a); color:#fff; } |
| 15 |
.ecv2-order-view-pill-active:hover { color:#fff; } |
| 16 |
.ecv2-order-view-pill .dashicons { font-size:14px; width:14px; height:14px; } |
| 17 |
.ecv2-order-view-locked { color:var(--ecv2-g500, #6b7280); border-style:dashed; } |
| 18 |
.ecv2-order-view-save { border-style:dashed; } |
| 19 |
.ecv2-order-view-delete { position:absolute; top:-6px; right:-6px; width:16px; height:16px; line-height:14px; padding:0; border:none; border-radius:50%; background:var(--ecv2-g400, #9ca3af); color:#fff; font-size:11px; cursor:pointer; display:none; } |
| 20 |
.ecv2-order-view-pill-wrap:hover .ecv2-order-view-delete { display:block; } |
| 21 |
.ecv2-order-view-delete:hover { background:var(--ecv2-danger, #dc2626); } |
| 22 |
|
| 23 |
/* ------------------------------------------------------------------ */ |
| 24 |
/* Locked spreadsheet view button */ |
| 25 |
/* ------------------------------------------------------------------ */ |
| 26 |
.ecv2-view-btn-locked { position:relative; opacity:.65; } |
| 27 |
.ecv2-view-btn-locked .ecv2-view-btn-lock { position:absolute; bottom:-2px; right:-2px; font-size:11px; width:11px; height:11px; color:var(--ecv2-g500, #6b7280); } |
| 28 |
|
| 29 |
/* ------------------------------------------------------------------ */ |
| 30 |
/* Viewed dot + row states */ |
| 31 |
/* ------------------------------------------------------------------ */ |
| 32 |
.ecv2-order-dot { width:10px; height:10px; padding:0; border-radius:50%; border:2px solid var(--ecv2-blue, #2563eb); background:var(--ecv2-blue, #2563eb); cursor:pointer; display:inline-block; flex-shrink:0; vertical-align:middle; transition:all .15s ease; } |
| 33 |
.ecv2-order-dot:hover { transform:scale(1.25); } |
| 34 |
.ecv2-order-dot-viewed { background:transparent; border-color:var(--ecv2-g300, #d1d5db); } |
| 35 |
.ecv2-row-unviewed .ecv2-order-number, |
| 36 |
.ecv2-row-unviewed .ecv2-order-customer-name, |
| 37 |
.ecv2-row-unviewed .ecv2-order-total { font-weight:700; } |
| 38 |
.ecv2-row-cancelled .ecv2-cell, |
| 39 |
.ecv2-row-refunded .ecv2-cell { opacity:.62; } |
| 40 |
.ecv2-row-cancelled .ecv2-cell-orderstatus_id, |
| 41 |
.ecv2-row-refunded .ecv2-cell-orderstatus_id { opacity:1; } |
| 42 |
|
| 43 |
/* ------------------------------------------------------------------ */ |
| 44 |
/* Table layout */ |
| 45 |
/* Percentage widths on every header cell (overriding the px hints the */ |
| 46 |
/* PHP emits) so the browser has no "auto" column to guess at. In both */ |
| 47 |
/* fixed and auto layout this gives a stable, proportional grid that */ |
| 48 |
/* re-balances cleanly when a column is hidden by the container query. */ |
| 49 |
/* ------------------------------------------------------------------ */ |
| 50 |
.ecv2-table.ecv2-order-table { table-layout:fixed; } |
| 51 |
.ecv2-order-table .ecv2-col-check { width:3% !important; min-width:36px; } |
| 52 |
.ecv2-order-table .ecv2-col-order_number { width:6% !important; min-width:80px; } |
| 53 |
.ecv2-order-table .ecv2-col-order_date { width:8% !important; min-width:104px; } |
| 54 |
|
| 55 |
.ecv2-order-table .ecv2-col-billing_name { width:23% !important; min-width:180px; } |
| 56 |
.ecv2-order-table .ecv2-col-item_count { width:7% !important; min-width:92px; } |
| 57 |
.ecv2-order-table .ecv2-col-grand_total { width:8% !important; min-width:110px; } |
| 58 |
.ecv2-order-table .ecv2-col-payment_gateway { width:9% !important; min-width:120px; } |
| 59 |
.ecv2-order-table .ecv2-col-orderstatus_id { width:14% !important; min-width:176px; } |
| 60 |
.ecv2-order-table .ecv2-col-tracking_number { width:17% !important; min-width:200px; } |
| 61 |
.ecv2-order-table .ecv2-col-actions, |
| 62 |
.ecv2-order-table .ecv2-col-actions.ecv2-col-actions { width:5% !important; min-width:64px; } |
| 63 |
/* Content is constrained by its own wrappers (ellipsis / max-width:100%), never |
| 64 |
by clipping the cell — clipping would cut off the status and items popups. */ |
| 65 |
.ecv2-order-table tbody td { overflow:visible; } |
| 66 |
.ecv2-order-table .ecv2-cell > * { max-width:100%; } |
| 67 |
.ecv2-order-table tbody td { padding:8px 12px; vertical-align:middle; } |
| 68 |
.ecv2-order-table .ecv2-cell { min-width:0; } |
| 69 |
.ecv2-order-table .ecv2-cell-grand_total, |
| 70 |
.ecv2-order-table .ecv2-col-grand_total { text-align:right; } |
| 71 |
.ecv2-order-table .ecv2-col-grand_total .ecv2-sort-link { justify-content:flex-end; } |
| 72 |
.ecv2-order-table .ecv2-cell-grand_total .ecv2-order-total-wrap { align-items:flex-end; } |
| 73 |
|
| 74 |
/* Actions column: PRO row tools + 3-dot menu side by side */ |
| 75 |
.ecv2-order-actions-wrap { display:inline-flex; align-items:center; justify-content:flex-end; gap:2px; max-width:100%; } |
| 76 |
.ecv2-order-actions-wrap .ecv2-row-menu-wrap { flex-shrink:0; } |
| 77 |
|
| 78 |
/* ------------------------------------------------------------------ */ |
| 79 |
/* Order number + hover actions */ |
| 80 |
/* ------------------------------------------------------------------ */ |
| 81 |
.ecv2-order-number-wrap { display:flex; flex-direction:column; gap:1px; min-width:0; } |
| 82 |
.ecv2-order-number-head { display:flex; align-items:center; gap:6px; } |
| 83 |
.ecv2-order-number { font-size:13px; font-weight:600; text-decoration:none; white-space:nowrap; } |
| 84 |
.ecv2-order-number-wrap .ecv2-product-row-actions { flex-wrap:nowrap; white-space:nowrap; } |
| 85 |
.ecv2-order-number-wrap .ecv2-row-action-link { font-size:11px; } |
| 86 |
.ecv2-order-number-wrap .ecv2-row-action-sep { margin:0 3px; } |
| 87 |
|
| 88 |
/* ------------------------------------------------------------------ */ |
| 89 |
/* Customer cell */ |
| 90 |
/* ------------------------------------------------------------------ */ |
| 91 |
.ecv2-order-customer { display:flex; flex-direction:column; gap:1px; max-width:100%; min-width:0; } |
| 92 |
.ecv2-order-customer-name { font-size:13px; color:var(--ecv2-g800, #1f2937); display:flex; align-items:center; gap:5px; flex-wrap:nowrap; white-space:nowrap; min-width:0; } |
| 93 |
.ecv2-order-customer-name-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; } |
| 94 |
.ecv2-order-customer-name .ecv2-order-badge { flex-shrink:0; } |
| 95 |
.ecv2-order-customer-company { font-size:11px; color:var(--ecv2-g500, #6b7280); } |
| 96 |
.ecv2-order-customer-email { font-size:11px; color:var(--ecv2-g500, #6b7280); display:inline-flex; align-items:center; gap:3px; overflow:hidden; } |
| 97 |
.ecv2-order-copy-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } |
| 98 |
.ecv2-order-copy-btn { border:none; background:none; padding:0; cursor:pointer; color:var(--ecv2-g400, #9ca3af); line-height:1; opacity:0; transition:opacity .15s ease; } |
| 99 |
.ecv2-order-customer:hover .ecv2-order-copy-btn, |
| 100 |
.ecv2-order-track-chip:hover .ecv2-order-copy-btn { opacity:1; } |
| 101 |
.ecv2-order-copy-btn:hover { color:var(--ecv2-primary, #16a34a); } |
| 102 |
.ecv2-order-copy-btn .dashicons { font-size:13px; width:13px; height:13px; } |
| 103 |
|
| 104 |
/* Badges */ |
| 105 |
.ecv2-order-badge { display:inline-flex; align-items:center; gap:2px; padding:1px 7px; border-radius:999px; font-size:10px; font-weight:600; line-height:1.6; white-space:nowrap; } |
| 106 |
.ecv2-order-badge .dashicons { font-size:11px; width:11px; height:11px; } |
| 107 |
.ecv2-order-badge-guest { background:var(--ecv2-g100, #f3f4f6); color:var(--ecv2-g600, #4b5563); } |
| 108 |
.ecv2-order-badge-repeat { background:#ecfdf5; color:#047857; } |
| 109 |
.ecv2-order-badge-refund { background:#fef2f2; color:#b91c1c; } |
| 110 |
.ecv2-order-badge-promo { background:#eff6ff; color:#1d4ed8; } |
| 111 |
.ecv2-order-badge-flag { background:var(--ecv2-g100, #f3f4f6); color:var(--ecv2-g600, #4b5563); } |
| 112 |
|
| 113 |
/* ------------------------------------------------------------------ */ |
| 114 |
/* Items chip + popover */ |
| 115 |
/* ------------------------------------------------------------------ */ |
| 116 |
.ecv2-order-items-wrap { position:relative; display:inline-block; } |
| 117 |
.ecv2-order-items-chip { border:1px solid var(--ecv2-g300, #d1d5db); background:#fff; border-radius:999px; padding:3px 10px; font-size:12px; color:var(--ecv2-g700, #374151); cursor:pointer; white-space:nowrap; } |
| 118 |
.ecv2-order-items-chip:hover { border-color:var(--ecv2-primary, #16a34a); color:var(--ecv2-primary, #16a34a); } |
| 119 |
.ecv2-order-items-pop { display:none; position:absolute; top:calc(100% + 6px); left:0; z-index:100005; min-width:240px; max-width:320px; background:#fff; border:1px solid var(--ecv2-g200, #e5e7eb); border-radius:var(--ecv2-r, 8px); box-shadow:var(--ecv2-shlg, 0 10px 30px rgba(0,0,0,.12)); padding:8px 0; } |
| 120 |
.ecv2-order-items-pop-open { display:block; } |
| 121 |
.ecv2-order-items-row { display:flex; gap:8px; padding:4px 14px; font-size:12px; color:var(--ecv2-g700, #374151); } |
| 122 |
.ecv2-order-items-qty { color:var(--ecv2-g500, #6b7280); font-weight:600; flex-shrink:0; } |
| 123 |
.ecv2-order-items-title { overflow:hidden; text-overflow:ellipsis; } |
| 124 |
.ecv2-order-items-more { padding:5px 14px 2px; font-size:11px; color:var(--ecv2-g500, #6b7280); border-top:1px solid var(--ecv2-g100, #f3f4f6); margin-top:4px; } |
| 125 |
|
| 126 |
/* ------------------------------------------------------------------ */ |
| 127 |
/* Total cell */ |
| 128 |
/* ------------------------------------------------------------------ */ |
| 129 |
.ecv2-order-total-wrap { display:flex; flex-direction:column; gap:2px; align-items:flex-start; } |
| 130 |
.ecv2-order-total { font-size:13px; font-weight:600; color:var(--ecv2-g800, #1f2937); white-space:nowrap; } |
| 131 |
.ecv2-order-items-chip { max-width:100%; overflow:hidden; text-overflow:ellipsis; } |
| 132 |
|
| 133 |
/* ------------------------------------------------------------------ */ |
| 134 |
/* Payment chip */ |
| 135 |
/* ------------------------------------------------------------------ */ |
| 136 |
.ecv2-order-pay-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:3px 9px; border-radius:999px; white-space:nowrap; } |
| 137 |
.ecv2-order-pay-chip .dashicons { font-size:13px; width:13px; height:13px; } |
| 138 |
.ecv2-order-pay-ok { background:#ecfdf5; color:#047857; } |
| 139 |
.ecv2-order-pay-pending { background:#fffbeb; color:#b45309; } |
| 140 |
.ecv2-order-pay-digits { color:inherit; opacity:.7; font-size:11px; } |
| 141 |
|
| 142 |
/* ------------------------------------------------------------------ */ |
| 143 |
/* Status chip + inline menu */ |
| 144 |
/* ------------------------------------------------------------------ */ |
| 145 |
.ecv2-order-status-wrap { position:relative; display:block; max-width:100%; } |
| 146 |
.ecv2-order-status-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1.5px solid var(--ecv2-g300, #d1d5db); border-radius:999px; background:#fff; font-size:12px; font-weight:500; color:var(--ecv2-g800, #1f2937); cursor:pointer; max-width:100%; box-sizing:border-box; transition:box-shadow .15s ease; } |
| 147 |
.ecv2-order-status-chip:hover { box-shadow:0 1px 6px rgba(0,0,0,.12); } |
| 148 |
.ecv2-order-status-swatch { width:9px; height:9px; border-radius:50%; flex-shrink:0; border:1px solid rgba(0,0,0,.08); } |
| 149 |
.ecv2-order-status-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } |
| 150 |
.ecv2-order-status-caret { font-size:12px !important; width:12px !important; height:12px !important; color:var(--ecv2-g400, #9ca3af); flex-shrink:0; } |
| 151 |
.ecv2-order-status-saving .ecv2-order-status-chip { opacity:.5; pointer-events:none; } |
| 152 |
|
| 153 |
.ecv2-order-status-menu { display:none; position:absolute; top:calc(100% + 5px); left:0; z-index:100005; min-width:220px; max-height:320px; overflow-y:auto; background:#fff; border:1px solid var(--ecv2-g200, #e5e7eb); border-radius:var(--ecv2-r, 8px); box-shadow:var(--ecv2-shlg, 0 10px 30px rgba(0,0,0,.15)); padding:5px 0; } |
| 154 |
.ecv2-order-status-menu-open { display:block; } |
| 155 |
.ecv2-order-status-menu-up { top:auto; bottom:calc(100% + 5px); } |
| 156 |
.ecv2-order-status-item { display:flex; align-items:center; gap:8px; padding:6px 14px; font-size:12px; color:var(--ecv2-g700, #374151); text-decoration:none; } |
| 157 |
.ecv2-order-status-item:hover { background:var(--ecv2-g50, #f9fafb); color:var(--ecv2-g900, #111827); } |
| 158 |
.ecv2-order-status-item-active { font-weight:600; } |
| 159 |
.ecv2-order-status-check { margin-left:auto; color:var(--ecv2-primary, #16a34a); font-size:14px !important; width:14px !important; height:14px !important; } |
| 160 |
|
| 161 |
/* ------------------------------------------------------------------ */ |
| 162 |
/* Fulfillment cell */ |
| 163 |
/* ------------------------------------------------------------------ */ |
| 164 |
/* Two lines max: state (chip / button / dash) then method + flags. */ |
| 165 |
.ecv2-order-fulfill-wrap { display:flex; flex-direction:column; gap:2px; align-items:flex-start; min-width:0; max-width:100%; } |
| 166 |
.ecv2-order-fulfill-state { display:flex; align-items:center; min-width:0; max-width:100%; } |
| 167 |
.ecv2-order-fulfill-btn { display:inline-flex; align-items:center; gap:4px; padding-top:3px; padding-bottom:3px; } |
| 168 |
.ecv2-order-fulfill-btn .dashicons { font-size:14px; width:14px; height:14px; } |
| 169 |
.ecv2-order-fulfill-locked { opacity:.75; } |
| 170 |
.ecv2-order-fulfill-line2 { display:flex; align-items:center; gap:5px; min-width:0; max-width:100%; } |
| 171 |
.ecv2-order-fulfill-meta { font-size:11px; color:var(--ecv2-g500, #6b7280); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; } |
| 172 |
.ecv2-order-track-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:12px; min-width:0; max-width:100%; } |
| 173 |
.ecv2-order-track-chip .dashicons { font-size:13px; width:13px; height:13px; flex-shrink:0; } |
| 174 |
.ecv2-order-track-carrier { font-weight:600; flex-shrink:0; } |
| 175 |
.ecv2-order-track-carrier:after { content:'\00b7'; margin-left:4px; color:#93c5fd; } |
| 176 |
.ecv2-order-track-num { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; } |
| 177 |
.ecv2-order-flags { display:inline-flex; gap:3px; flex-shrink:0; } |
| 178 |
.ecv2-order-flags .ecv2-order-badge-flag { padding:1px 4px; } |
| 179 |
.ecv2-order-flags .ecv2-order-badge-text { display:none; } /* icon-only in the table; tooltip carries the label */ |
| 180 |
|
| 181 |
/* ------------------------------------------------------------------ */ |
| 182 |
/* Order card view */ |
| 183 |
/* ------------------------------------------------------------------ */ |
| 184 |
.ecv2-order-card { display:flex; flex-direction:column; } |
| 185 |
.ecv2-order-card-unviewed { border-left:3px solid var(--ecv2-blue, #2563eb); } |
| 186 |
.ecv2-order-card-head { display:flex; align-items:center; gap:8px; padding:12px 14px 0; } |
| 187 |
.ecv2-order-card-head .ecv2-order-number { font-size:14px; } |
| 188 |
.ecv2-order-card .ecv2-order-flags .ecv2-order-badge-text { display:inline; } |
| 189 |
.ecv2-order-card .ecv2-order-flags .ecv2-order-badge-flag { padding:1px 7px; } |
| 190 |
.ecv2-order-card .ecv2-order-fulfill-line2 { flex-wrap:wrap; } |
| 191 |
.ecv2-order-card-date { margin-left:auto; font-size:11px; color:var(--ecv2-g500, #6b7280); } |
| 192 |
.ecv2-order-card-body { padding:10px 14px 12px; display:flex; flex-direction:column; gap:8px; flex-grow:1; } |
| 193 |
.ecv2-order-card-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; } |
| 194 |
|
| 195 |
/* ------------------------------------------------------------------ */ |
| 196 |
/* Quick Edit drawer (V2) */ |
| 197 |
/* Right-side drawer using the same tokens as the filter drawer. */ |
| 198 |
/* ------------------------------------------------------------------ */ |
| 199 |
.ecv2-qe-backdrop { z-index:100010; } |
| 200 |
.ecv2-qe-drawer { position:fixed; top:0; right:0; bottom:0; width:480px; max-width:94vw; background:#fff; z-index:100011; box-shadow:-8px 0 30px rgba(0,0,0,.15); transform:translateX(100%); transition:transform .3s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column; } |
| 201 |
.ecv2-qe-drawer.ecv2-drawer-open { transform:translateX(0); } |
| 202 |
body.ecv2-qe-open { overflow:hidden; } |
| 203 |
.ecv2-qe-header .ecv2-drawer-header-left { min-width:0; } |
| 204 |
.ecv2-qe-order-id { color:var(--ecv2-g500, #6b7280); font-weight:500; } |
| 205 |
.ecv2-qe-status-pill { display:inline-flex; align-items:center; gap:5px; padding:2px 9px; border:1.5px solid var(--ecv2-g300, #d1d5db); border-radius:999px; font-size:11px; font-weight:500; color:var(--ecv2-g700, #374151); background:#fff; white-space:nowrap; } |
| 206 |
.ecv2-qe-body { padding:0; } |
| 207 |
.ecv2-qe-loading { display:flex; align-items:center; gap:8px; padding:40px 20px; color:var(--ecv2-g500, #6b7280); font-size:13px; justify-content:center; } |
| 208 |
.ecv2-spin { animation:ecv2-qe-spin 1s linear infinite; } |
| 209 |
@keyframes ecv2-qe-spin { to { transform:rotate(360deg); } } |
| 210 |
|
| 211 |
/* Summary block */ |
| 212 |
.ecv2-qe-summary { padding:16px 20px; background:var(--ecv2-g50, #f9fafb); border-bottom:1px solid var(--ecv2-g100, #f3f4f6); display:flex; flex-direction:column; gap:10px; } |
| 213 |
.ecv2-qe-summary-row { display:flex; justify-content:space-between; gap:16px; } |
| 214 |
.ecv2-qe-customer, .ecv2-qe-money { display:flex; flex-direction:column; gap:2px; min-width:0; font-size:12px; } |
| 215 |
.ecv2-qe-money { align-items:flex-end; text-align:right; flex-shrink:0; } |
| 216 |
.ecv2-qe-customer strong, .ecv2-qe-money strong { font-size:14px; color:var(--ecv2-g900, #111827); font-weight:600; } |
| 217 |
.ecv2-qe-muted { color:var(--ecv2-g500, #6b7280); font-size:12px; } |
| 218 |
.ecv2-qe-copy-line { display:inline-flex; align-items:center; gap:4px; color:var(--ecv2-g600, #4b5563); min-width:0; } |
| 219 |
.ecv2-qe-copy-line > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } |
| 220 |
.ecv2-qe-copy-line .ecv2-order-copy-btn, .ecv2-qe-copy-address { opacity:.6; } |
| 221 |
.ecv2-qe-copy-line:hover .ecv2-order-copy-btn, .ecv2-qe-copy-address:hover { opacity:1; } |
| 222 |
.ecv2-qe-flags { display:flex; gap:4px; flex-wrap:wrap; } |
| 223 |
.ecv2-qe-customer-notes { display:flex; gap:6px; font-size:12px; color:var(--ecv2-g600, #4b5563); background:#fffbeb; border:1px solid #fde68a; border-radius:var(--ecv2-r, 8px); padding:8px 10px; line-height:1.45; } |
| 224 |
.ecv2-qe-customer-notes .dashicons { color:#b45309; font-size:14px; width:14px; height:14px; flex-shrink:0; margin-top:1px; } |
| 225 |
|
| 226 |
/* Sections */ |
| 227 |
.ecv2-qe-section { padding:14px 20px; border-bottom:1px solid var(--ecv2-g100, #f3f4f6); } |
| 228 |
.ecv2-qe-section:last-child { border-bottom:none; } |
| 229 |
.ecv2-qe-section-label { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; } |
| 230 |
.ecv2-qe-section-label > span:first-child { font-size:11px; text-transform:uppercase; letter-spacing:.7px; color:var(--ecv2-g500, #6b7280); font-weight:700; } |
| 231 |
.ecv2-qe-count { font-size:11px; font-weight:600; background:var(--ecv2-g100, #f3f4f6); color:var(--ecv2-g600, #4b5563); padding:1px 7px; border-radius:999px; } |
| 232 |
|
| 233 |
/* Items */ |
| 234 |
.ecv2-qe-items { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; } |
| 235 |
.ecv2-qe-item { display:flex; align-items:flex-start; gap:8px; font-size:13px; } |
| 236 |
.ecv2-qe-item-qty { color:var(--ecv2-g500, #6b7280); font-weight:600; flex-shrink:0; width:26px; font-variant-numeric:tabular-nums; } |
| 237 |
.ecv2-qe-item-main { flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; } |
| 238 |
.ecv2-qe-item-title { color:var(--ecv2-g800, #1f2937); } |
| 239 |
.ecv2-qe-item-total { flex-shrink:0; color:var(--ecv2-g600, #4b5563); font-variant-numeric:tabular-nums; } |
| 240 |
.ecv2-qe-items-more { margin-top:6px; background:none; border:none; padding:0; cursor:pointer; font-size:12px; color:var(--ecv2-primary, #16a34a); } |
| 241 |
.ecv2-qe-items-more:hover { text-decoration:underline; } |
| 242 |
|
| 243 |
/* Address */ |
| 244 |
.ecv2-qe-address { font-style:normal; font-size:13px; line-height:1.5; color:var(--ecv2-g700, #374151); } |
| 245 |
|
| 246 |
/* Editable sections */ |
| 247 |
.ecv2-qe-section-edit { background:#fff; } |
| 248 |
.ecv2-qe-status-field { display:flex; align-items:center; gap:10px; } |
| 249 |
.ecv2-qe-status-field .ecv2-order-status-swatch { width:12px; height:12px; } |
| 250 |
.ecv2-qe-select.ecv2-select { max-width:none !important; width:100%; } |
| 251 |
.ecv2-qe-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; } |
| 252 |
.ecv2-qe-field-wide { grid-column:1 / -1; } |
| 253 |
.ecv2-qe-field .ecv2-input { width:100%; box-sizing:border-box; } |
| 254 |
.ecv2-qe-check { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ecv2-g700, #374151); cursor:pointer; margin-top:10px; } |
| 255 |
.ecv2-qe-check input { margin:0; } |
| 256 |
.ecv2-qe-check-strong { margin-top:0; font-weight:500; } |
| 257 |
.ecv2-qe-notify { background:var(--ecv2-g50, #f9fafb); transition:background .15s ease; } |
| 258 |
.ecv2-qe-notify-on { background:#ecfdf5; } |
| 259 |
.ecv2-qe-hint { margin:6px 0 0 24px; font-size:11px; color:var(--ecv2-g500, #6b7280); line-height:1.4; } |
| 260 |
|
| 261 |
/* Footer */ |
| 262 |
.ecv2-qe-footer { padding:12px 20px; } |
| 263 |
.ecv2-qe-full-link { display:inline-flex; align-items:center; gap:2px; font-size:12px; color:var(--ecv2-g600, #4b5563); text-decoration:none; } |
| 264 |
.ecv2-qe-full-link:hover { color:var(--ecv2-primary, #16a34a); } |
| 265 |
.ecv2-qe-full-link .dashicons { font-size:14px; width:14px; height:14px; } |
| 266 |
.ecv2-qe-footer-actions { display:flex; gap:8px; } |
| 267 |
|
| 268 |
/* ------------------------------------------------------------------ */ |
| 269 |
/* Duplicate order drawer (V2) — layers on the quick edit drawer */ |
| 270 |
/* ------------------------------------------------------------------ */ |
| 271 |
.ecv2-dup-drawer { width:520px; } |
| 272 |
.ecv2-dup-notice { display:flex; gap:10px; margin:16px 20px 0; padding:10px 12px; background:#fffbeb; border:1px solid #fde68a; border-radius:var(--ecv2-r, 8px); font-size:12px; color:#78350f; line-height:1.45; } |
| 273 |
.ecv2-dup-notice .dashicons { color:#b45309; flex-shrink:0; font-size:16px; width:16px; height:16px; margin-top:1px; } |
| 274 |
.ecv2-dup-notice strong { display:block; color:#92400e; margin-bottom:2px; } |
| 275 |
.ecv2-dup-summary { margin-top:12px; } |
| 276 |
.ecv2-dup-address { font-size:12px; color:var(--ecv2-g500, #6b7280); } |
| 277 |
|
| 278 |
/* Reason presets */ |
| 279 |
.ecv2-dup-reasons { display:flex; flex-direction:column; gap:6px; } |
| 280 |
.ecv2-dup-reason { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:9px 12px; border:1px solid var(--ecv2-g200, #e5e7eb); border-radius:var(--ecv2-r, 8px); cursor:pointer; transition:all .15s ease; } |
| 281 |
.ecv2-dup-reason:hover { border-color:var(--ecv2-g300, #d1d5db); background:var(--ecv2-g50, #f9fafb); } |
| 282 |
.ecv2-dup-reason:has(input:checked) { border-color:var(--ecv2-primary, #16a34a); background:var(--ecv2-primary-light, #ecfdf5); } |
| 283 |
.ecv2-dup-reason input { grid-row:1 / span 2; margin:0; } |
| 284 |
.ecv2-dup-reason-title { font-size:13px; font-weight:600; color:var(--ecv2-g800, #1f2937); } |
| 285 |
.ecv2-dup-reason-desc { font-size:11px; color:var(--ecv2-g500, #6b7280); } |
| 286 |
|
| 287 |
/* Items with qty steppers */ |
| 288 |
.ecv2-dup-items-tools { display:inline-flex; align-items:center; gap:8px; } |
| 289 |
.ecv2-dup-items-tools .ecv2-qe-items-more { margin:0; } |
| 290 |
.ecv2-dup-item { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:10px; padding:6px 0; border-bottom:1px solid var(--ecv2-g100, #f3f4f6); } |
| 291 |
.ecv2-dup-item:last-child { border-bottom:none; } |
| 292 |
.ecv2-dup-item-off .ecv2-dup-item-main, .ecv2-dup-item-off .ecv2-dup-item-qty { opacity:.45; } |
| 293 |
.ecv2-dup-item-check input { margin:0; } |
| 294 |
.ecv2-dup-item-main { min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; font-size:13px; } |
| 295 |
.ecv2-dup-item-unit { font-size:11px; } |
| 296 |
.ecv2-dup-item-qty { display:inline-flex; align-items:center; border:1px solid var(--ecv2-g200, #e5e7eb); border-radius:var(--ecv2-r, 8px); overflow:hidden; } |
| 297 |
.ecv2-dup-qty-btn { border:none; background:var(--ecv2-g50, #f9fafb); width:26px; height:28px; cursor:pointer; color:var(--ecv2-g600, #4b5563); font-size:14px; line-height:1; padding:0; } |
| 298 |
.ecv2-dup-qty-btn:hover { background:var(--ecv2-g100, #f3f4f6); color:var(--ecv2-g900, #111827); } |
| 299 |
.ecv2-dup-qty-input { width:40px; height:28px; border:none; border-left:1px solid var(--ecv2-g200, #e5e7eb); border-right:1px solid var(--ecv2-g200, #e5e7eb); text-align:center; font-size:13px; padding:0; -moz-appearance:textfield; } |
| 300 |
.ecv2-dup-qty-input::-webkit-outer-spin-button, .ecv2-dup-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; } |
| 301 |
.ecv2-dup-qty-input:focus { outline:none; box-shadow:inset 0 0 0 2px var(--ecv2-primary-light, #ecfdf5); } |
| 302 |
.ecv2-dup-item-total { min-width:72px; text-align:right; font-size:13px; font-variant-numeric:tabular-nums; color:var(--ecv2-g700, #374151); } |
| 303 |
|
| 304 |
/* Pricing */ |
| 305 |
.ecv2-dup-pricing { display:flex; gap:6px; margin-bottom:10px; } |
| 306 |
.ecv2-dup-pill { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid var(--ecv2-g200, #e5e7eb); border-radius:999px; font-size:12px; font-weight:500; color:var(--ecv2-g700, #374151); cursor:pointer; } |
| 307 |
.ecv2-dup-pill:has(input:checked) { border-color:var(--ecv2-primary, #16a34a); background:var(--ecv2-primary-light, #ecfdf5); color:var(--ecv2-primary, #16a34a); } |
| 308 |
.ecv2-dup-pill input { margin:0; } |
| 309 |
.ecv2-dup-pricing-opts .ecv2-qe-check { margin-top:6px; } |
| 310 |
.ecv2-dup-opts-disabled { opacity:.45; pointer-events:none; } |
| 311 |
.ecv2-dup-totals { margin-top:12px; padding:10px 12px; background:var(--ecv2-g50, #f9fafb); border-radius:var(--ecv2-r, 8px); font-size:12px; color:var(--ecv2-g600, #4b5563); display:flex; flex-direction:column; gap:4px; } |
| 312 |
.ecv2-dup-totals > div { display:flex; justify-content:space-between; font-variant-numeric:tabular-nums; } |
| 313 |
.ecv2-dup-totals-grand { margin-top:4px; padding-top:6px; border-top:1px solid var(--ecv2-g200, #e5e7eb); font-size:13px; font-weight:600; color:var(--ecv2-g900, #111827); } |
| 314 |
.ecv2-dup-hint { margin-left:0; } |
| 315 |
#ecv2-dup-footer-summary { font-size:13px; font-weight:600; color:var(--ecv2-g800, #1f2937); } |
| 316 |
|
| 317 |
/* ------------------------------------------------------------------ */ |
| 318 |
/* Responsive tweaks */ |
| 319 |
/* ------------------------------------------------------------------ */ |
| 320 |
@media screen and ( max-width: 782px ) { |
| 321 |
.ecv2-order-views-bar { overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; } |
| 322 |
.ecv2-order-status-menu { max-height:260px; } |
| 323 |
.ecv2-table.ecv2-order-table { table-layout:auto; } |
| 324 |
.ecv2-qe-grid { grid-template-columns:1fr; } |
| 325 |
.ecv2-health-dashboard-grouped { flex-wrap:wrap; } |
| 326 |
.ecv2-health-group-period { margin-left:0; } |
| 327 |
.ecv2-health-group { flex-wrap:wrap; } |
| 328 |
} |