/* Shared internal-page rhythm, forms and data tables for the merchant panel. */
.merchant-panel .main{padding:28px 30px 40px}.merchant-panel .pagehead{align-items:center;margin-bottom:24px;gap:16px}.merchant-panel .pagehead h1{font-size:25px;line-height:1.6}.merchant-panel .card{box-shadow:0 4px 18px #16243a03;border-radius:16px}.merchant-panel .card .field{margin-bottom:20px}.merchant-panel .toolbar{background:var(--surface);padding:16px;border:1px solid var(--line);border-radius:12px;gap:12px;align-items:center}.merchant-panel .toolbar input,.merchant-panel .toolbar select{border-radius:9px}.merchant-panel .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.merchant-panel table th{background:var(--soft);font-weight:500;color:var(--muted);padding:15px 17px;white-space:nowrap}.merchant-panel table td{padding:20px 17px;vertical-align:middle;border-bottom:1px solid var(--line)}.merchant-panel table tr:last-child td{border-bottom:0}.merchant-panel .icon-btn{border-radius:10px}.merchant-panel .data-workspace{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 3px 12px #18243a03}.merchant-panel .workspace-table{width:100%;border-collapse:separate;border-spacing:0;font-size:15px}.merchant-panel .workspace-table th:first-child{border-start-start-radius:12px;border-end-start-radius:12px}.merchant-panel .workspace-table th:last-child{border-start-end-radius:12px;border-end-end-radius:12px}.merchant-panel .workspace-table td{padding:20px 15px;color:var(--text)}.merchant-panel .workspace-table tbody tr:hover{background:var(--soft)}.merchant-panel .workspace-table a{color:inherit}.table-sort{display:inline-flex;align-items:center;gap:7px;text-decoration:none}.table-sort span{font-size:12px;color:var(--muted);letter-spacing:-2px}.table-sort:hover{color:var(--primary)!important;text-decoration:none}.merchant-panel .list-primary{background:#e6097f;border-color:#e6097f;color:white;box-shadow:none}.merchant-panel .list-primary:hover{background:#c9006c}.order-filters{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto auto;gap:10px;align-items:start;margin-bottom:20px}.merchant-panel .list-search{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:0 13px;background:var(--surface);min-width:0;margin:0}.list-search .i{color:var(--muted);width:20px;height:20px;flex:none}.merchant-panel .list-search input{border:0;padding-inline:0;background:transparent;box-shadow:none;width:100%;min-width:0;font-size:14px;height:47px}.merchant-panel .order-filters select{height:49px;min-width:0;border-radius:12px;font-size:14px;width:100%}.merchant-panel .order-filters>.btn{height:49px}.list-toggle{display:flex;gap:9px;align-items:center;min-height:49px;padding:8px 11px;border:1px solid var(--line);border-radius:12px;white-space:nowrap}.merchant-panel .list-toggle input{width:32px;height:19px;min-height:0;appearance:none;border-radius:99px;background:#dfe5ed;position:relative;cursor:pointer;margin:0;flex:none}.list-toggle input:before{content:'';position:absolute;top:3px;inset-inline-start:3px;width:11px;height:11px;border-radius:50%;background:#fff;transition:transform .15s}.merchant-panel .list-toggle input:checked{background:#e6097f}.list-toggle input:checked:before{inset-inline-start:auto;inset-inline-end:3px}.list-toggle span{font-size:12px;color:var(--muted)}.advanced-list-filters{grid-column:1/-1}.advanced-list-filters summary{font-size:13px;cursor:pointer;color:var(--primary);width:fit-content}.advanced-list-filters>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.advanced-list-filters>div select{width:200px}.advanced-list-filters .hint{margin:9px 0 0;font-size:12px}.orders-grid{min-width:1160px}.order-reference,.row-actions,.coupon-code{display:flex;gap:8px;align-items:center}.order-reference>a{font-weight:700}.merchant-panel .row-actions .icon-btn,.merchant-panel .order-reference .icon-btn,.merchant-panel .coupon-code .icon-btn{width:34px;height:34px;min-height:0;padding:7px;background:var(--surface);border:1px solid var(--line);color:var(--muted);box-shadow:0 2px 3px #00000003}.merchant-panel .row-actions .icon-btn:hover{color:var(--primary);border-color:var(--primary)}.row-actions form{display:inline-flex;margin:0}.row-actions .i{width:17px;height:17px}.merchant-panel .inline-state-form{margin:0}.merchant-panel .state-select{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding-inline:10px;background:var(--surface);min-width:145px;margin:0;font-size:14px;box-shadow:0 2px 4px #00000003}.merchant-panel .state-select select{font-size:14px;line-height:1.5;min-height:37px;height:37px;border:0;border-radius:8px;min-width:0;padding:3px 0;background-color:transparent;box-shadow:none;width:100%;color:var(--text)}.state-dot{width:8px;height:8px;flex:none;background:#8b9ca3;border-radius:50%}.state-select.confirmed .state-dot,.state-select.closed .state-dot,.state-select.paid .state-dot,.state-select.delivered .state-dot{background:#00bf76}.state-select.shipped .state-dot,.state-select.ready .state-dot{background:#f2ad00}.state-select.refunded .state-dot{background:#00b879}.state-select.rejected .state-dot{background:#ff5566}.state-select.saving{opacity:.55}.cell-truncate{display:block;max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;font-size:13px;color:var(--muted)}.workspace-footer .pagination{margin:0}.list-notice{padding:12px 15px;margin-bottom:16px;background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:9px}.list-notice.error{color:#cf2545;border-color:#ffc4ce}.product-filters{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:20px}.product-filters .list-search{flex:1;min-width:230px}.product-filter-options{display:contents}.product-filter-options>summary{order:2;cursor:pointer;list-style:none;height:49px}.product-filters>.btn{order:1;height:49px}.filter-options-body{order:3;flex-basis:100%;display:flex;gap:10px;flex-wrap:wrap;padding:15px;background:var(--soft);border-radius:12px}.product-filter-options:not([open])>.filter-options-body{display:none}.filter-options-body select{flex:1;min-width:150px}.product-cell{display:flex;align-items:center;gap:14px}.product-cell img,.product-placeholder{width:48px;height:48px;object-fit:cover;flex:none;border-radius:9px;background:var(--soft);display:grid;place-items:center}.product-cell small{font-size:11px;color:var(--muted)}.products-grid{min-width:1040px}.products-grid .select-cell{width:35px}.merchant-panel .workspace-table input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:#e6097f}.list-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:5px 10px;border-radius:6px;white-space:nowrap}.list-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.list-badge.success{color:#00a968;background:#def9eb}.list-badge.neutral{color:#7d8b9e;background:#edf1f5}.list-badge.warning{color:#a87500;background:#fff4d7}.list-badge.danger{color:#fa4562;background:#ffe0e6}.product-bulk{display:flex;gap:12px;align-items:center;background:var(--soft);padding:12px;border-radius:10px;margin-bottom:14px}.product-bulk select{width:auto;min-height:36px!important}.product-bulk[hidden]{display:none}.listing-bottom{display:flex;justify-content:flex-end;margin-top:20px}.coupons-grid{min-width:1160px}.coupon-code{color:#0066c0;font-weight:700}.coupon-value{display:inline-block;background:var(--soft);padding:5px 13px;border-radius:4px;white-space:nowrap}.coupons-grid .row-actions .icon-btn{border-radius:50%;width:39px;height:39px}.coupons-grid th,.coupons-grid td{text-align:center}.coupons-grid th:first-child,.coupons-grid td:first-child{text-align:start}
@media(max-width:1350px){.order-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.list-toggle{justify-content:center}.order-filters>.btn{width:100%}}
@media(max-width:700px){.merchant-panel .main{padding:20px 14px 30px}.merchant-panel .data-workspace{padding:14px;border-radius:14px}.merchant-panel .pagehead h1{font-size:23px}.order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.list-toggle{grid-column:1/-1}.order-filters>.btn{grid-column:1/-1}.product-filters .list-search{min-width:100%;flex-basis:100%}.product-filters>.btn,.product-filter-options>summary{flex:1}.product-bulk{flex-wrap:wrap}.merchant-panel .workspace-table td{padding:16px 12px}.workspace-footer{flex-wrap:wrap}.product-cell .cell-truncate{max-width:220px}}

@media(min-width:981px) and (max-width:1650px){.merchant-panel .orders-grid{min-width:1030px}.merchant-panel .orders-grid td,.merchant-panel .orders-grid th{padding-inline:9px}.merchant-panel .orders-grid .state-select{min-width:128px;padding-inline:8px}.merchant-panel .orders-grid .state-select select{font-size:13px}.orders-grid .cell-truncate{max-width:130px}.orders-grid .order-reference{gap:4px}.orders-grid .order-reference .icon-btn{width:28px;height:28px;padding:5px}}
