/* Affiroma 24436 — final runtime UI/data reconciliation. Loaded after 24435. */
:root{--a36-ink:#1f2d27;--a36-muted:#6b7872;--a36-line:#dfe7e3;--a36-soft:#f7faf8;--a36-green:#0f765b;--a36-green-soft:#eaf4ef}

/* --------------------------------------------------------------------------
   Canonical portal shell stability
   -------------------------------------------------------------------------- */
body.a24436-agent-dashboard .aep-dashboard,
body.a24436-agent-reports .aep-dashboard,
body.a24436-agent-order-detail .aep-dashboard{display:grid!important;grid-template-columns:minmax(238px,258px) minmax(0,1fr)!important;gap:22px!important;align-items:start!important;width:100%!important;max-width:none!important}
body.a24436-agent-dashboard .aep-sidebar,
body.a24436-agent-reports .aep-sidebar,
body.a24436-agent-order-detail .aep-sidebar,
body.a24436-agent-reports .aep-sidebar-holder .aep-sidebar{width:100%!important;min-width:0!important;max-width:none!important;background:#fff!important;border:1px solid var(--a36-line)!important;border-radius:14px!important;color:var(--a36-ink)!important;box-shadow:none!important;font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif!important}
body.a24436-agent-dashboard .aep-sidebar a,
body.a24436-agent-reports .aep-sidebar a,
body.a24436-agent-order-detail .aep-sidebar a{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:44px!important;height:auto!important;margin:1px 0!important;padding:9px 12px!important;border-radius:8px!important;background:transparent!important;color:#26362f!important;font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif!important;font-size:15.5px!important;line-height:1.5!important;font-weight:750!important;letter-spacing:0!important;white-space:normal!important;text-align:right!important;text-decoration:none!important;box-shadow:none!important}
body.a24436-agent-dashboard .aep-sidebar a.active,
body.a24436-agent-reports .aep-sidebar a.active,
body.a24436-agent-order-detail .aep-sidebar a.active,
body.a24436-agent-dashboard .aep-sidebar a[aria-current="page"],
body.a24436-agent-reports .aep-sidebar a[aria-current="page"],
body.a24436-agent-order-detail .aep-sidebar a[aria-current="page"]{background:var(--a36-green-soft)!important;color:#0b654f!important;box-shadow:inset -3px 0 #0f7b60!important}
body.a24436-agent-dashboard .aep-sidebar h2,
body.a24436-agent-reports .aep-sidebar h2,
body.a24436-agent-order-detail .aep-sidebar h2{font-family:inherit!important;font-size:21px!important;line-height:1.35!important;font-weight:850!important}
body.a24436-agent-reports .aep-sidebar-holder{width:auto!important;min-width:0!important;max-width:none!important}
body.a24436-agent-dashboard .aep-content,
body.a24436-agent-reports .aep-content,
body.a24436-agent-order-detail .aep-content{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important}

/* Vendor shell geometry intentionally inherits the canonical Stage164 contract.
   Do not set grid columns/areas here: Stage164 owns main=fluid and side=250px. */
body.a24436-vendor-agents .affiroma-stage164-menu a,
body.a24436-vendor-orders .affiroma-stage164-menu a,
body.a24436-vendor-shipping-reports .affiroma-stage164-menu a{font-size:16px!important;line-height:1.55!important;font-weight:750!important;min-height:45px!important;padding:9px 12px!important}

/* --------------------------------------------------------------------------
   Agent performance reports — balanced commercial table geometry
   -------------------------------------------------------------------------- */
body.a24436-agent-reports .a24384-v291-report{font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif!important}
body.a24436-agent-reports .a24384-report-head{margin:0 0 14px!important}
body.a24436-agent-reports .a24384-report-head h1{font-size:27px!important;line-height:1.3!important;font-weight:850!important;color:var(--a36-ink)!important}
body.a24436-agent-reports .a24384-report-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
body.a24436-agent-reports .a24384-report-grid>article{width:100%!important;min-width:0!important;margin:0!important;padding:16px!important;border:1px solid var(--a36-line)!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important}
body.a24436-agent-reports .a24384-report-grid>article>h3{margin:0 0 10px!important;font-size:20px!important;line-height:1.4!important;font-weight:850!important;color:var(--a36-ink)!important}
body.a24436-agent-reports .a24384-section-filter{margin:0 0 11px!important;border:1px solid #e5ebe8!important;border-radius:10px!important;background:#fbfcfb!important}
body.a24436-agent-reports .a24384-section-filter summary{min-height:46px!important;padding:10px 12px!important;font-size:13.5px!important}
body.a24436-agent-reports .a24384-report-table{width:100%!important;max-width:100%!important;overflow-x:auto!important;border:1px solid #e3e9e6!important;border-radius:11px!important;background:#fff!important}
body.a24436-agent-reports .a24384-report-table table{width:100%!important;min-width:790px!important;table-layout:fixed!important;border-collapse:collapse!important}
body.a24436-agent-reports .a24384-report-table th,
body.a24436-agent-reports .a24384-report-table td{padding:11px 9px!important;border-inline-start:1px solid #e5ebe8!important;border-bottom:1px solid #e5ebe8!important;vertical-align:middle!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body.a24436-agent-reports .a24384-report-table th:first-child,
body.a24436-agent-reports .a24384-report-table td:first-child{border-inline-start:0!important}
body.a24436-agent-reports .a24384-report-table th{background:#f8faf9!important;color:#617069!important;font-size:13.5px!important;line-height:1.35!important;font-weight:800!important}
body.a24436-agent-reports .a24384-report-table th small{display:block!important;margin-top:3px!important;font-size:10.5px!important;line-height:1.3!important;font-weight:650!important;color:#87928d!important}
body.a24436-agent-reports .a24384-report-table td{font-size:13.5px!important;line-height:1.5!important;color:var(--a36-ink)!important}
body.a24436-agent-reports .a24384-report-table td.name,
body.a24436-agent-reports .a24384-report-table th.name{text-align:right!important}
body.a24436-agent-reports .a24384-report-table td.market,
body.a24436-agent-reports .a24384-report-table th.market{width:auto!important;max-width:none!important;min-width:0!important;padding-inline:7px!important}
body.a24436-agent-reports .a24384-market-cell{display:grid!important;justify-items:center!important;gap:2px!important}
body.a24436-agent-reports .a24384-market-cell strong{font-size:13.5px!important}
body.a24436-agent-reports .a24384-market-cell small{font-size:11px!important}

/* Per-family geometry: order status column is deliberately compact, not dominant. */
body.a24436-agent-reports .a24384-cols-market th.market,body.a24436-agent-reports .a24384-cols-market td.market{width:14%!important}
body.a24436-agent-reports .a24384-cols-market th.orders,body.a24436-agent-reports .a24384-cols-market td.orders{width:29%!important}
body.a24436-agent-reports .a24384-cols-market th.qty,body.a24436-agent-reports .a24384-cols-market td.qty{width:10%!important}
body.a24436-agent-reports .a24384-cols-market th.finance,body.a24436-agent-reports .a24384-cols-market td.finance{width:47%!important}
body.a24436-agent-reports .a24384-cols-agent-traders th.name,body.a24436-agent-reports .a24384-cols-agent-traders td.name{width:22%!important}
body.a24436-agent-reports .a24384-cols-agent-traders th.market,body.a24436-agent-reports .a24384-cols-agent-traders td.market{width:10%!important}
body.a24436-agent-reports .a24384-cols-agent-traders th.orders,body.a24436-agent-reports .a24384-cols-agent-traders td.orders{width:27%!important}
body.a24436-agent-reports .a24384-cols-agent-traders th.qty,body.a24436-agent-reports .a24384-cols-agent-traders td.qty{width:8%!important}
body.a24436-agent-reports .a24384-cols-agent-traders th.finance,body.a24436-agent-reports .a24384-cols-agent-traders td.finance{width:33%!important}
body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent th.name,body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent td.name{width:22%!important}
body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent th.market,body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent td.market{width:10%!important}
body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent th.orders,body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent td.orders{width:27%!important}
body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent th.qty,body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent td.qty{width:8%!important}
body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent th.finance,body.a24436-agent-reports .a24384-cols-stores.a24384-cols-agent td.finance{width:33%!important}
body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent th.name,body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent td.name{width:19%!important}
body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent th.source,body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent td.source{width:14%!important}
body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent th.market,body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent td.market{width:9%!important}
body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent th.orders,body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent td.orders{width:24%!important}
body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent th.qty,body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent td.qty{width:7%!important}
body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent th.finance,body.a24436-agent-reports .a24384-cols-products.a24384-cols-agent td.finance{width:27%!important}

body.a24436-agent-reports .a24384-vgroup-stack{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important;min-width:0!important}
body.a24436-agent-reports .a24384-vgroup-stack>strong{grid-column:1/-1!important;margin:0!important;padding:0 0 5px!important;font-size:16px!important;line-height:1.15!important;font-weight:850!important;text-align:center!important}
body.a24436-agent-reports .a24384-vgroup-stack>span{display:grid!important;gap:3px!important;align-content:center!important;min-width:0!important;min-height:54px!important;padding:6px 4px!important;border-radius:8px!important;font-size:12px!important;line-height:1.2!important;text-align:center!important}
body.a24436-agent-reports .a24384-vgroup-stack>span b{display:block!important;font-size:10.5px!important;line-height:1.2!important;font-weight:750!important;white-space:normal!important}
body.a24436-agent-reports td.orders .a24384-vgroup-stack>span{min-height:50px!important;padding:5px 3px!important}
body.a24436-agent-reports td.orders .a24384-vgroup-stack>strong{font-size:15px!important}
body.a24436-agent-reports .a24384-source-link{font-weight:800!important;text-decoration:none!important}

/* --------------------------------------------------------------------------
   Vendor warehouse reports — commercial geometry, readable dates/products
   -------------------------------------------------------------------------- */
body.a24436-vendor-warehouse-report .affiroma-stage95-page{font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif!important;color:var(--a36-ink)!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-head{padding:15px 17px!important;border-radius:13px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-head h2{font-size:26px!important;line-height:1.3!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-filter.warehouses{display:grid!important;grid-template-columns:1.05fr 1fr 1fr 1.1fr 1.1fr auto auto!important;gap:10px!important;align-items:end!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-filter label{font-size:13.5px!important;line-height:1.4!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-filter input,
body.a24436-vendor-warehouse-report .affiroma-stage95-filter select{min-height:44px!important;font-size:14px!important;border-radius:9px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-kpis div{padding:13px 15px!important;border-radius:12px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-card{padding:15px!important;border-radius:13px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-card h3{font-size:20px!important;line-height:1.4!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;border-radius:10px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact{width:100%!important;min-width:820px!important;table-layout:fixed!important;border-collapse:collapse!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th,
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact td{padding:12px 10px!important;border-inline-start:1px solid #e3e9e6!important;border-bottom:1px solid #e3e9e6!important;font-size:14px!important;line-height:1.45!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th{font-size:13.5px!important;font-weight:850!important;background:#f7f9f8!important;color:#52615a!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th:nth-child(1),body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact td:nth-child(1){width:18%!important;min-width:145px!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th:nth-child(2),body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact td:nth-child(2){width:30%!important;min-width:220px!important;text-align:right!important;font-weight:750!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th:nth-child(3),body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact td:nth-child(3){width:19%!important;min-width:145px!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th:nth-child(4),body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact td:nth-child(4){width:10%!important;min-width:78px!important;text-align:center!important;font-size:15px!important;font-weight:850!important}
body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact th:nth-child(5),body.a24436-vendor-warehouse-report .affiroma-stage95-table.compact td:nth-child(5){width:23%!important;min-width:165px!important;text-align:center!important}
body.a24436-vendor-warehouse-report .a24261-surface-warehouse{margin-top:18px!important;padding-top:2px!important}

/* --------------------------------------------------------------------------
   Order Journey readability — vendor, agent and admin
   -------------------------------------------------------------------------- */
body.a24436-agent-order-detail .a24434-role-journey .a24432-head h2,
body.a24436-vendor-orders .a24434-role-journey .a24432-head h2{font-size:26px!important;line-height:1.3!important;font-weight:850!important;color:var(--a36-ink)!important}
body.a24436-agent-order-detail .a24434-role-journey .a24432-head p,
body.a24436-vendor-orders .a24434-role-journey .a24432-head p{font-size:14.5px!important;line-height:1.65!important;color:#66746e!important}
body.a24436-agent-order-detail .a24434-role-journey .a24432-kicker,
body.a24436-vendor-orders .a24434-role-journey .a24432-kicker{font-size:11.5px!important;line-height:1.4!important;font-weight:850!important}
body.a24436-agent-order-detail .a24434-role-journey .a24432-steps b,
body.a24436-vendor-orders .a24434-role-journey .a24432-steps b{font-size:15px!important;line-height:1.4!important;font-weight:850!important}
body.a24436-agent-order-detail .a24434-role-journey .a24432-steps span,
body.a24436-vendor-orders .a24434-role-journey .a24432-steps span{font-size:12.5px!important;line-height:1.45!important}
body.a24436-agent-order-detail .a24434-role-journey .a24432-order-meta strong,
body.a24436-vendor-orders .a24434-role-journey .a24432-order-meta strong{font-size:15px!important;line-height:1.45!important}
body.a24436-agent-order-detail .a24417-order-grid dt,
body.a24436-agent-order-detail .a24417-order-grid dd{font-size:13.5px!important;line-height:1.55!important}
body.a24436-agent-order-detail .a24417-order-grid h2{font-size:22px!important}
body.a24436-agent-order-detail .a24417-product-table th{font-size:12.5px!important}
body.a24436-agent-order-detail .a24417-product-table td{font-size:13.5px!important;line-height:1.5!important}
body.a24436-vendor-orders .a24422-vendor-order-single .affiroma-stage85-details-grid p{font-size:13.5px!important;line-height:1.55!important}
body.a24436-vendor-orders .a24422-vendor-order-single .affiroma-stage91-table th,
body.a24436-vendor-orders .a24422-vendor-order-single .affiroma-stage91-table td{font-size:13px!important;line-height:1.45!important;padding:10px 9px!important}
body.a24436-vendor-orders .a24422-vendor-order-single .affiroma-stage85-items-table th{font-size:12.5px!important}
body.a24436-vendor-orders .a24422-vendor-order-single .affiroma-stage85-items-table td{font-size:13.5px!important;line-height:1.5!important}

body.wp-admin .a24433-journey{font-family:"IBM Plex Sans Arabic","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important}
body.wp-admin .a24433-title h2{font-size:24px!important;line-height:1.3!important;font-weight:800!important}
body.wp-admin .a24433-title p{font-size:13.5px!important;line-height:1.6!important}
body.wp-admin .a24433-steps li b{font-size:13.5px!important;line-height:1.4!important;font-weight:800!important}
body.wp-admin .a24433-steps li span{font-size:11.5px!important;line-height:1.4!important}
body.wp-admin .a24433-product-copy b{font-size:14px!important;line-height:1.45!important}
body.wp-admin .a24433-product-copy span,body.wp-admin .a24433-product-copy small{font-size:12px!important;line-height:1.45!important}

@media(max-width:1180px){
 body.a24436-agent-dashboard .aep-dashboard,body.a24436-agent-reports .aep-dashboard,body.a24436-agent-order-detail .aep-dashboard{grid-template-columns:220px minmax(0,1fr)!important;gap:16px!important}
 body.a24436-vendor-warehouse-report .affiroma-stage95-filter.warehouses{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
 body.a24436-agent-dashboard .aep-dashboard,body.a24436-agent-reports .aep-dashboard,body.a24436-agent-order-detail .aep-dashboard{display:block!important}
 body.a24436-agent-dashboard .aep-sidebar,body.a24436-agent-reports .aep-sidebar,body.a24436-agent-order-detail .aep-sidebar{margin-bottom:14px!important}
 body.a24436-agent-reports .a24384-report-table table{min-width:760px!important}
 body.a24436-vendor-warehouse-report .affiroma-stage95-filter.warehouses,body.a24436-vendor-warehouse-report .affiroma-stage95-kpis{grid-template-columns:1fr!important}
}
