/* Production role-based workspaces and customer tracking; demo UI kept in a separate plugin. */

.eaf-ws{--eaf-ws-purple:#654998;--eaf-ws-border:#e2dce9;--eaf-ws-tint:#f6f2fb;direction:rtl;color:#273044;font-family:inherit;font-size:14px;line-height:1.7}
.eaf-ws *{box-sizing:border-box}
.eaf-ws .eaf-ws-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}
.eaf-ws .eaf-ws-heading h1{font-size:23px;font-weight:600;margin:4px 0;color:#352746;line-height:1.45}
.eaf-ws .eaf-ws-heading p{margin:5px 0;color:#647084}
.eaf-ws .eaf-ws-eyebrow{font-size:12px;color:var(--eaf-ws-purple);font-weight:600}
.eaf-ws-portal-intro{background:#fff;border:1px solid var(--eaf-ws-border);border-radius:15px;padding:18px;margin-bottom:16px}
.eaf-ws .eaf-ws-user{background:var(--eaf-ws-tint);border:1px solid #e3d9f1;border-radius:20px;color:#5a427e;padding:6px 12px;font-weight:600}
.eaf-ws .eaf-ws-role-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.eaf-ws .eaf-ws-role-tab{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#594878;background:#fff;border:1px solid #ded5e7;border-radius:11px;padding:9px 12px;min-height:42px;font-weight:600}
.eaf-ws .eaf-ws-role-tab:hover,.eaf-ws .eaf-ws-role-tab:focus-visible{border-color:#8c6eb4;outline:2px solid #b09ad0;outline-offset:1px}
.eaf-ws .eaf-ws-role-tab.is-active{background:#eee7f9;border-color:#8c6eb4;color:#4f337e}
.eaf-ws .eaf-ws-role-tab .dashicons{width:18px;height:18px;font-size:18px}
.eaf-ws .eaf-ws-tip{font-size:12px;color:#647084;margin:0}
.eaf-account-shipments{--eaf-ws-purple:#654998;direction:rtl;font-family:inherit;color:#273044;line-height:1.8}
.eaf-account-shipments *{box-sizing:border-box}.eaf-account-shipments h2{font-size:20px;margin:0 0 12px}
.eaf-account-shipments .eaf-account-description{margin:0 0 18px;color:#617085}
.eaf-account-shipments .eaf-account-order{border:1px solid #e3deeb;border-radius:13px;padding:16px;margin:12px 0;background:#fff}
.eaf-account-shipments .eaf-account-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.eaf-account-shipments .eaf-account-badge{border:1px solid #d7c7e8;background:#f6f1fb;color:#654998;padding:3px 9px;border-radius:7px;font-size:12px}
.eaf-account-shipments .eaf-account-order a.eaf-account-view{display:inline-flex;min-height:40px;align-items:center;border-radius:9px;padding:7px 13px;background:#7058af;color:#fff;text-decoration:none}
.eaf-account-shipments .eaf-account-pagination{display:flex;gap:8px;justify-content:center;margin:20px 0}

@media(max-width:782px){.eaf-ws{font-size:16px}.eaf-ws .eaf-ws-heading h1{font-size:21px}}

/* 0.4.59: no-task state in the existing workdesk, not a separate dashboard. */
.eaf-portal-main .eaf-table-wrap[hidden],.eaf-panel .eaf-table-wrap[hidden]{display:none!important}
.eaf-board-no-tasks{display:flex;align-items:center;gap:16px;direction:rtl;border:1px dashed #c2b3da;background:#f9f7fd;border-radius:14px;padding:24px;margin:18px 0;color:#43345f}
.eaf-board-no-tasks>.dashicons{width:42px;height:42px;font-size:34px;display:inline-flex;align-items:center;justify-content:center;color:#32825f;background:#ecf8ef;border-radius:50%;flex:none}
.eaf-board-no-tasks strong{font-size:16px}.eaf-board-no-tasks p{margin:5px 0 0;color:#625979;line-height:1.8}
.eaf-pick-product-meta{display:block;color:#625979;font-size:12px;margin-top:3px}
@media(max-width:600px){.eaf-board-no-tasks{padding:16px;align-items:flex-start;gap:11px}}

/* 0.4.79 — An order closed by WooCommerce can retain incomplete historical milestones. */
.eaf-orders-table .eaf-workflow-status-warning{display:block;margin-top:5px;font-size:11.5px;line-height:1.65;color:#864b1f;white-space:normal;font-weight:600}

/* 0.4.84 — reduce nonproductive space in operator workspaces only. */
.eaf-ws .eaf-ws-heading{margin:10px 0!important;gap:10px!important}
.eaf-ws-portal-intro{padding:12px 14px!important;margin-bottom:10px!important}
.eaf-ws .eaf-ws-role-tabs{gap:7px!important;margin:9px 0!important}
.eaf-board-no-tasks{padding:15px 17px!important;margin:10px 0!important;gap:12px!important}
@media(max-width:600px){.eaf-board-no-tasks{padding:12px!important}}

/* 0.4.99 — compact role-based operator hub, only on the standalone portal. */
.eaf-portal-main .eaf-ws-portal-intro{padding:12px 16px!important;margin:0 0 10px!important;border-radius:12px;box-shadow:none}
.eaf-portal-main .eaf-ws .eaf-ws-heading{margin:0 0 8px!important;gap:0!important}
.eaf-portal-main .eaf-ws .eaf-ws-heading h1{font-size:18px;margin:0;line-height:1.6;font-weight:700}
.eaf-portal-main .eaf-ws .eaf-ws-role-tabs{margin:0!important;gap:7px!important}
.eaf-portal-main .eaf-ws .eaf-ws-role-tab{min-height:37px;padding:6px 11px;font-size:13px;border-radius:9px}
.eaf-portal-main .eaf-panel .eaf-head{margin:6px 0 8px!important;gap:8px}
.eaf-portal-main .eaf-panel .eaf-head h1{font-size:18px!important;margin:0!important}
.eaf-portal-main .eaf-board-no-tasks{padding:11px 14px!important;margin:7px 0!important;border-style:solid;border-color:#e4dced;background:#fbfafc}
.eaf-portal-main .eaf-board-no-tasks>.dashicons{width:28px;height:28px;font-size:22px;background:#edf7ef}
.eaf-portal-main .eaf-board-no-tasks strong{font-size:13px;font-weight:600}
@media(max-width:600px){
 .eaf-portal-main .eaf-ws-portal-intro{padding:10px!important}
 .eaf-portal-main .eaf-ws .eaf-ws-role-tab{flex:1 1 auto;justify-content:center}
}

/* 0.4.100 — compact single-stage workdesk; role tabs are omitted by PHP. */
.eaf-portal-main .eaf-ws-portal-intro.eaf-ws-single-stage{padding:9px 14px!important}
.eaf-portal-main .eaf-ws-portal-intro.eaf-ws-single-stage .eaf-ws-heading{margin:0!important}
@media(max-width:600px){.eaf-portal-main .eaf-ws-portal-intro.eaf-ws-single-stage{padding:9px 12px!important}}

/* 0.4.101 — no duplicate «سفارش‌ها» heading in operator portal.
   The optional view-size control appears only when actual order rows exist. */
.eaf-portal-main .eaf-panel .eaf-head.eaf-operator-board-head{justify-content:flex-start;margin:2px 0 6px!important}
.eaf-portal-main .eaf-panel .eaf-head.eaf-operator-board-head[hidden]{display:none!important}
.eaf-portal-main .eaf-panel .eaf-head.eaf-operator-board-head .eaf-head-controls{min-width:0}
