/* Merchant marketplace redesign preview — scoped to the market surface. */
.market-refined{font-family:Tajawal,sans-serif;color:#183b30;max-width:1440px;margin-inline:auto}
.market-refined button,.market-refined input{font-family:inherit}
.market-refined .market-tabs{margin:0 0 30px;padding:0;gap:28px;border-bottom:1px solid #dce5df;flex-wrap:nowrap;overflow:auto}
.market-refined .market-tabs button{white-space:nowrap;position:relative;padding:17px 2px;border:0;border-radius:0;background:transparent;color:#76817c;font-size:16px;font-weight:700;box-shadow:none}
.market-refined .market-tabs button.active{color:#0c6045;background:transparent}
.market-refined .market-tabs button.active:after{content:'';position:absolute;inset-inline:0;bottom:0;height:3px;background:#0c6045;border-radius:4px 4px 0 0}
.market-refined .market-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 25px}
.market-refined .market-toolbar h2{font-size:26px;line-height:1.3;margin:0 0 7px;letter-spacing:-.4px}
.market-refined .market-toolbar p{font-size:15px;color:#7c8881;margin:0;line-height:1.5}
.market-refined .market-toolbar-actions{display:flex;gap:10px;align-items:center}
.market-refined .button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 17px;font:700 15px Tajawal,sans-serif;border:1px solid transparent;border-radius:9px;box-shadow:none;line-height:1.3;cursor:pointer;text-decoration:none;transition:background .15s}
.market-refined .button.primary{background:#116347;color:white;border-color:#116347}
.market-refined .button.primary:hover{background:#084e36}
.market-refined .button.secondary{background:#fff;color:#405c4e;border-color:#dce5df}
.market-refined .button.secondary:hover{background:#f2f6f3}
.market-refined .button:focus-visible,.market-refined input:focus-visible,.market-refined .market-tabs button:focus-visible{outline:3px solid #8bb9a0;outline-offset:3px}
.market-refined .market-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}
.market-refined .market-overview>div{display:flex;flex-direction:column;gap:18px;background:white;border:1px solid #e2e9e3;border-radius:14px;padding:23px 24px}
.market-refined .market-overview span{font-size:15px;color:#758178}
.market-refined .market-overview strong{font-size:34px;line-height:1.1;font-weight:700;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.market-refined .market-overview .remaining{background:#eaf4ed;border-color:#cee3d4;color:#0d6243}
.market-refined .market-overview .remaining span{color:#47735b}
.market-refined .market-balance-panel{background:#fff;border:1px solid #e0e7e1;border-radius:16px;overflow:hidden}
.market-refined .market-table-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px}
.market-refined .market-table-heading h3{font-size:20px;margin:0}
.market-refined .market-table-heading input{width:285px;max-width:60%;border:1px solid #e1e8e2;border-radius:9px;background:#fafcf9;padding:11px 14px;font-size:14px;min-height:42px}
.market-refined .balance-table-scroll{border:0;border-radius:0;margin:0}
.market-refined .balance-table{width:100%;min-width:940px;border-collapse:collapse;font-size:15px}
.market-refined .balance-table thead{background:#f5f8f4}
.market-refined .balance-table th{font-size:13px;font-weight:700;color:#7b877e;padding:15px 20px;text-align:right;white-space:nowrap;border-block:1px solid #eaf0e9}
.market-refined .balance-table td{padding:24px 20px;border-bottom:1px solid #edf1ed;vertical-align:middle;font-size:15px;color:#395346;font-variant-numeric:tabular-nums}
.market-refined .balance-table tbody tr:last-child td{border-bottom:0}
.market-refined .balance-table td strong{font-size:16px;color:#254a39;display:block;white-space:nowrap}
.market-refined .balance-table small{display:block;margin-top:6px;font-size:12px;color:#96a097}
.market-refined .balance-table .balance-remaining{font-weight:700;font-size:21px;color:#126747}
.market-refined .balance-table-actions{display:flex;gap:8px;flex-wrap:nowrap}
.market-refined .balance-table-actions .button{font-size:13px;padding:9px 12px;min-height:36px;white-space:nowrap}
.market-refined .balance-table-actions .secondary{border:0;background:transparent;color:#4e6d5d}
.market-refined .market-empty{border:1px solid #e1e9e2;background:white;padding:50px 25px}
.market-refined .market-content>h3{font-size:20px;margin:30px 0 18px}
@media(max-width:1000px){.market-refined .market-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.market-refined .market-tabs{gap:20px}.market-refined .market-toolbar{align-items:flex-start}}
@media(max-width:600px){.market-refined .market-toolbar{flex-direction:column}.market-refined .market-toolbar h2{font-size:23px}.market-refined .market-overview{gap:10px}.market-refined .market-overview>div{padding:18px;gap:12px}.market-refined .market-overview strong{font-size:29px}.market-refined .market-table-heading{padding:18px}.market-refined .market-tabs button{font-size:14px}.market-refined .market-toolbar-actions{width:100%}.market-refined .market-toolbar-actions .primary{margin-inline-start:auto}}
.market-dialog .button,.pack-ledger-dialog .button{border:1px solid #dce5df;border-radius:9px;min-height:42px;padding:10px 17px;box-shadow:none;font:700 15px Tajawal,sans-serif;cursor:pointer;background:#fff;color:#405c4e}.market-dialog .button.primary,.pack-ledger-dialog .button.primary{background:#116347;color:#fff;border-color:#116347}.market-dialog h2,.pack-ledger-dialog h2{font-size:23px;line-height:1.5}.market-dialog p,.pack-ledger-dialog p{line-height:1.7;color:#758178}.market-refined [hidden]{display:none!important}
.market-refined .market-pack-switch{display:inline-flex;gap:4px;padding:5px;background:#eaf0e9;border-radius:11px;margin:0 0 28px}.market-refined .market-pack-switch .button{background:transparent;border:0;min-height:40px;padding:10px 22px;color:#69806f}.market-refined .market-pack-switch .button.selected{background:#fff;color:#14583e;box-shadow:0 2px 5px #173d2b0a}.market-refined .market-pack-switch .button:focus-visible{outline:3px solid #8bb9a0}

/* Constrain the portal grid track; wide tables scroll inside their panel. */
.market-refined{grid-template-columns:minmax(0,1fr)}.market-refined .market-content,.market-refined .market-balance-panel{min-width:0;max-width:100%}.market-refined .balance-table-scroll{max-width:100%;overflow-x:auto}.market-refined .market-tabs{min-width:0;max-width:100%}

/* Full-width offer catalogue and compact, task-oriented controls. */
.market-refined{width:100%;min-width:0;box-sizing:border-box;margin:0}
.market-refined .market-tabs{display:flex;width:fit-content;max-width:100%;gap:5px;padding:5px;margin:0 0 28px;border:1px solid #dce4dc;border-radius:14px;background:#edf1e9;overflow-x:auto}
.market-refined .market-tabs button{padding:12px 22px;border-radius:10px;font-size:15px;color:#4d5c54;min-height:44px}
.market-refined .market-tabs button.active{background:#14553c;color:#fff;box-shadow:0 2px 5px #14553c12}
.market-refined .market-tabs button.active:after{display:none}
.market-catalog-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 26px}
.market-eyebrow{font-size:12px;letter-spacing:.2px;font-weight:700;color:#576b5d}
.market-catalog-intro h2{font-size:27px;line-height:1.5;color:#142b21;margin:5px 0 8px}
.market-catalog-intro p{font-size:15px;line-height:1.9;color:#5e6b61;margin:0;max-width:640px}
.market-catalog-intro>.button{flex-shrink:0}
.market-catalog-controls{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:20px 22px;border:1px solid #dce4da;border-radius:16px;background:#f9faf6;margin-bottom:24px}
.market-catalog-controls label{display:grid;gap:8px;font-size:13px;font-weight:700;flex:1;max-width:560px;color:#354a3d}
.market-catalog-controls input{width:100%;box-sizing:border-box;padding:13px 15px;min-height:46px;font-size:15px;font-weight:400;border:1px solid #cfd9cc;border-radius:10px;background:#fff;color:#142b21}
.market-result-count{font-size:13px;color:#536b59;white-space:nowrap;padding-bottom:14px}
.market-refined .market-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px;align-items:stretch;margin:0}
.market-refined .market-offer-card{padding:22px;border:1px solid #dce4da;border-radius:18px;background:#fff;gap:18px;box-shadow:0 4px 20px #163c2505}
.market-offer-seller{display:flex;align-items:center;gap:11px}.market-seller-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf2e6;color:#14553c;font-size:20px;font-weight:700;flex-shrink:0}
.market-offer-seller strong{font-size:14px;color:#243e2d}.market-offer-seller small{display:block;font-size:12px;color:#65736a;margin-top:4px}
.market-refined .market-offer-card h3{font-size:21px;line-height:1.6;color:#152e21;margin:0}
.market-offer-description{font-size:14px;line-height:1.8;color:#56665b;margin:0}
.market-offer-quantity{display:flex;align-items:baseline;gap:8px;background:#f5f6ed;border:1px solid #e5e9db;border-radius:12px;padding:16px;color:#233e2b}
.market-offer-quantity strong{font-size:27px;font-variant-numeric:tabular-nums}.market-offer-quantity span{font-size:14px}
.market-offer-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e5e9e0;padding-top:18px;margin-top:auto}
.market-offer-footer small{display:block;font-size:11px;color:#647166;margin-bottom:5px}.market-offer-footer strong{font-size:20px;line-height:1.6;color:#143d28;white-space:nowrap;font-variant-numeric:tabular-nums}
.market-refined .market-offer-card .market-design{aspect-ratio:1.8;border-radius:12px;background:#f5f6ef}
.market-refined .market-offer-card .market-map{font-size:12px;margin:0;color:#4d6654;text-decoration:underline}
.market-catalog-empty{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:270px;justify-content:center;gap:14px;background:linear-gradient(135deg,#f1f4e9,#faf9f3);border:1px solid #dce4d5;border-radius:20px;padding:44px 24px}
.market-empty-symbol{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#e4ebd7;color:#14553c;font-size:38px;line-height:1}
.market-catalog-empty h3{font-size:22px;color:#1b3625;line-height:1.5;margin:0}.market-catalog-empty p{font-size:14px;color:#5d6b60;line-height:1.9;max-width:510px;margin:0 0 6px}
@media(max-width:700px){.market-catalog-intro{align-items:flex-start;flex-wrap:wrap;gap:16px}.market-catalog-intro h2{font-size:23px}.market-catalog-intro p{font-size:14px}.market-catalog-controls{padding:16px;gap:10px;align-items:stretch;flex-direction:column}.market-result-count{padding:0}.market-refined .market-tabs{width:100%;box-sizing:border-box}.market-refined .market-tabs button{padding:11px 14px;flex:1}.market-offer-footer{flex-wrap:wrap}.market-catalog-empty{padding:30px 18px}.market-catalog-empty h3{font-size:19px}}
