/* Souq Nizwa: merchant dashboard, narrow screens. */
.merchant-dashboard,.merchant-dashboard .panel,.merchant-dashboard .field,.merchant-dashboard .stat{min-width:0}
.merchant-dashboard .merchant-insights{margin-top:24px;display:grid;gap:18px}
.merchant-dashboard .merchant-insights .panel{margin:0}
.merchant-dashboard .merchant-table td.mono{display:table-cell;direction:rtl}
.merchant-dashboard .merchant-table td.mono .merchant-cell-value{direction:ltr;unicode-bidi:isolate}
.merchant-dashboard .form-grid>.full{grid-column:1/-1}
@media(max-width:760px){
 .merchant-dashboard .page-title{font-size:1.7rem}
 .merchant-dashboard>.section-head{flex-wrap:wrap;align-items:center}
 .merchant-dashboard .panel{padding:16px 12px;border-radius:16px}
 .merchant-dashboard .section-head>.btn{min-height:44px}
 .merchant-dashboard .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
 .merchant-dashboard .stat{padding:13px;overflow-wrap:anywhere}
 .merchant-dashboard .stat strong{font-size:1.7rem;margin-top:6px}
 .merchant-dashboard .dash-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0}
 .merchant-dashboard .dash-tabs button{min-height:48px;padding:10px 5px;font-size:.85rem;line-height:1.6;color:var(--ink)}
 .merchant-dashboard .dash-tabs button.active{color:#fff}
 .merchant-dashboard .table-wrap{overflow:visible}
 .merchant-dashboard .merchant-table{display:block;width:100%;min-width:0;border-collapse:separate}
 .merchant-dashboard .merchant-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .merchant-dashboard .merchant-table tbody{display:grid;gap:14px}
 .merchant-dashboard .merchant-table tr{display:block;min-width:0;border:1px solid var(--stroke);border-radius:14px;background:#fff;overflow:hidden}
 .merchant-dashboard .merchant-table td,.merchant-dashboard .merchant-table td.mono{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:12px;direction:rtl;align-items:start;text-align:right;border:0;border-bottom:1px solid var(--stroke);font-size:1rem;line-height:1.7}
 .merchant-dashboard .merchant-table td::before{content:attr(data-label);font-size:.88rem;font-weight:700;color:var(--muted)}
 .merchant-dashboard .merchant-table td:first-child{background:#f4f8f5;font-weight:700}
 .merchant-dashboard .merchant-table tr td:last-child{border-bottom:0}
 .merchant-dashboard .merchant-table td[colspan]{display:block;text-align:center;padding:24px 12px}
 .merchant-dashboard .merchant-table td[colspan]::before{content:none}
 .merchant-dashboard .merchant-cell-value{min-width:0;overflow-wrap:anywhere}
 .merchant-dashboard .merchant-cell-value .space-top{max-width:100%!important}
 .merchant-dashboard .merchant-table .actions{gap:8px}
 .merchant-dashboard .merchant-table .actions .btn{flex:1 1 70px;min-height:44px;padding:10px 8px;font-size:.95rem}
 .merchant-dashboard .merchant-table select{width:100%;max-width:none;min-height:46px;background:#fff;font-size:16px;color:var(--ink)}
 .merchant-dashboard .form-grid{grid-template-columns:minmax(0,1fr)}
 .merchant-dashboard .input,.merchant-dashboard .select,.merchant-dashboard .textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;font-size:16px;min-height:48px}
 .merchant-dashboard input[type=time]{appearance:none;-webkit-appearance:none;direction:ltr;text-align:center}
 .merchant-dashboard input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:center}
 .merchant-dashboard .field{line-height:1.8}
 .merchant-dashboard .form-actions .btn{width:100%;min-height:48px;font-size:16px}
 .merchant-dashboard .smart-interest ul{padding-inline-start:20px;overflow-wrap:anywhere;line-height:1.9}
 .merchant-dashboard .merchant-insights h2{font-size:1.25rem;line-height:1.7}
 .merchant-dashboard .merchant-insights p{line-height:1.9}
}
@media(max-width:360px){
 .merchant-dashboard .merchant-table td,.merchant-dashboard .merchant-table td.mono{grid-template-columns:76px minmax(0,1fr);gap:8px;padding:10px}
}

/* Search and status filters, release 23. */
.merchant-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin-top:18px}
.merchant-filters>*{min-width:0}.merchant-filter-actions{display:flex;gap:8px;flex-wrap:wrap}
.merchant-result-count{font-size:.9rem;line-height:1.8;margin:12px 0}
@media(max-width:760px){.merchant-filters{grid-template-columns:minmax(0,1fr);gap:12px}.merchant-filter-actions .btn{flex:1;min-height:46px}.merchant-filters .input,.merchant-filters .select{font-size:16px}}

/* Order clarity and copy action, release 24. */
.merchant-order-code{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.merchant-order-code>span{overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}
.merchant-order-code>.btn{direction:rtl;white-space:normal;min-height:44px;font-weight:600}
.merchant-order-status{display:inline-block;padding:6px 10px;border-radius:12px;font-size:.9rem;line-height:1.7;font-weight:700;background:#f1f3f0;color:#34483f}
.merchant-order-status.pending{background:#fff0d5;color:#755012}
.merchant-order-status.confirmed{background:#e7efff;color:#24487c}
.merchant-order-status.delivered{background:#e1f3e6;color:#205537}
.merchant-order-status.cancelled{background:#ffe8e0;color:#903e2d}
