/* Redwave Dashboard Style 1.0 — one visual system for Staff, Seller and Driver portals */
body.rwl-app{
  --rw-ink:#13233A; --rw-muted:#5B6B80; --rw-navy:#0F2747; --rw-navy-2:#173A66;
  --rw-red:#B3122E; --rw-red-dark:#8E0E24; --rw-paper:#F3F6F9; --rw-surface:#FFFFFF;
  --rw-line:#DCE3EC; --rw-line-strong:#C3CEDB; --rw-ok:#1F7A4D; --rw-warn:#A86400;
  --rw-radius:8px; --rw-font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background:var(--rw-paper); color:var(--rw-ink); font-family:var(--rw-font);
}
body.rwl-app .wp-site-blocks{background:var(--rw-paper)}
body.rwl-app .rwl-office, body.rwl-app .rwl-client, body.rwl-app .rwl-driver,
body.rwl-app .rwl-office :is(input,select,textarea,button), body.rwl-app .rwl-client :is(input,select,textarea,button), body.rwl-app .rwl-driver :is(input,select,textarea,button){font-family:var(--rw-font)}

/* ---------- App bar: keep logo + links, drop the public tracking box ---------- */
body.rwl-app header.wp-block-template-part{background:var(--rw-surface); border-bottom:1px solid var(--rw-line); position:relative; z-index:20}
body.rwl-app header.wp-block-template-part > header{padding-top:10px!important; padding-bottom:10px!important}
body.rwl-app header.wp-block-template-part #redwave-track, body.rwl-app header.wp-block-template-part .rwl-public{display:none!important}
body.rwl-app header.wp-block-template-part img{width:168px!important; height:auto!important}
body.rwl-app header.wp-block-template-part nav a{font-size:14px; font-weight:500; color:var(--rw-navy)}
body.rwl-app main#wp--skip-link--target{padding-top:20px!important; padding-bottom:32px!important; margin-top:0!important}
body.rwl-app main .entry-content > *{max-width:1440px!important; margin-left:auto!important; margin-right:auto!important}
body.rwl-app footer.wp-block-template-part{border-top:1px solid var(--rw-line); background:var(--rw-surface); font-size:13px}
body.rwl-app footer.wp-block-template-part > *{padding-top:14px!important; padding-bottom:14px!important}

body.rwl-app header.wp-block-template-part .wp-block-navigation .rh-nav-cta a{background:var(--rw-red); color:#fff!important; padding:8px 14px; border-radius:6px; font-weight:600; text-decoration:none}
body.rwl-app header.wp-block-template-part .wp-block-navigation .rh-nav-cta a:hover{background:var(--rw-red-dark)}

/* ---------- Type ---------- */
body.rwl-app .rwl-office h2, body.rwl-app .rwl-client h2, body.rwl-app .rwl-driver h2{font-size:24px; line-height:1.25; font-weight:700; letter-spacing:-.01em; color:var(--rw-ink); margin:0 0 4px}
body.rwl-app .rwl-office h3, body.rwl-app .rwl-client h3, body.rwl-app .rwl-driver h3{font-size:18px; line-height:1.3; font-weight:600; color:var(--rw-ink); margin:24px 0 8px}
body.rwl-app .rwl-office h4, body.rwl-app .rwl-client h4, body.rwl-app .rwl-driver h4{font-size:15px; font-weight:600; color:var(--rw-ink)}
body.rwl-app .rwl-office p, body.rwl-app .rwl-client p, body.rwl-app .rwl-driver p{font-size:14px; line-height:1.55; color:var(--rw-muted); max-width:75ch}
body.rwl-app [role="status"]{color:var(--rw-ink)!important}

/* ---------- Form controls ---------- */
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) :is(input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=date],input[type=search],input:not([type]),select,textarea){
  min-height:40px; padding:8px 11px; border:1px solid var(--rw-line-strong); border-radius:6px; background:#fff; color:var(--rw-ink); font-size:14px; box-shadow:none; box-sizing:border-box}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) textarea{min-height:64px; line-height:1.45}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) :is(input,select,textarea):focus{outline:none; border-color:var(--rw-navy-2); box-shadow:0 0 0 3px rgba(23,58,102,.18)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) label{font-size:13px; font-weight:500; color:var(--rw-ink)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) ::placeholder{color:#8A98AA}

/* ---------- Buttons ---------- */
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) :is(button,input[type=submit],.button){
  min-height:40px; padding:8px 16px; border-radius:6px; border:1px solid var(--rw-red); background:var(--rw-red); color:#fff;
  font-size:14px; font-weight:600; line-height:1.2; cursor:pointer; text-decoration:none; box-shadow:none; transition:background-color .15s}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) :is(button,input[type=submit],.button):hover{background:var(--rw-red-dark); border-color:var(--rw-red-dark)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--rw-navy-2); outline-offset:2px}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button:disabled{opacity:.55; cursor:not-allowed}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button[data-stop], body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button[data-find]{background:#fff; color:var(--rw-navy); border-color:var(--rw-line-strong)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button[data-stop]:hover, body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button[data-find]:hover{background:var(--rw-paper)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) a{color:var(--rw-navy-2)}

/* ---------- Tables ---------- */
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) table{width:100%; border-collapse:separate; border-spacing:0; background:#fff; border:1px solid var(--rw-line); border-radius:var(--rw-radius); overflow:hidden; font-size:13.5px}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) table th{background:#EEF2F7; color:var(--rw-ink); font-weight:600; text-align:start; padding:10px 12px; border-bottom:1px solid var(--rw-line); white-space:nowrap}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) table td{padding:10px 12px; border-bottom:1px solid #EDF1F5; vertical-align:top; color:var(--rw-ink)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) table tbody tr:last-child td{border-bottom:0}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) table tbody tr:hover td{background:#F7F9FC}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) td, body.rwl-app .rwl-metrics strong, body.rwl-app .rwl-order-tile strong{font-variant-numeric:tabular-nums}

/* ---------- STAFF PORTAL ---------- */
body.rwl-app .rwl-office.rwl-management-workspace{display:grid!important; grid-template-columns:248px minmax(0,1fr); gap:0; background:var(--rw-surface); border:1px solid var(--rw-line); border-radius:10px; overflow:visible; box-shadow:none}
body.rwl-app .rwl-office .rwl-orders-sidebar{background:var(--rw-navy)!important; border-radius:10px 0 0 10px; padding:18px 0!important; position:sticky; top:12px; align-self:start; max-height:calc(100vh - 24px); overflow-y:auto; width:auto!important}
body.admin-bar.rwl-app .rwl-office .rwl-orders-sidebar{top:44px; max-height:calc(100vh - 56px)}
body.rwl-app .rwl-office .rwl-orders-sidebar a{display:block; padding:9px 20px!important; color:#C9D5E6!important; font-size:14px!important; font-weight:500; line-height:1.3; text-decoration:none!important; border-left:3px solid transparent; background:none!important}
body.rwl-app .rwl-office .rwl-orders-sidebar a:hover{color:#fff!important; background:rgba(255,255,255,.06)!important}
body.rwl-app .rwl-office .rwl-orders-sidebar a[aria-current], body.rwl-app .rwl-office .rwl-orders-sidebar a.is-active, body.rwl-app .rwl-office .rwl-orders-sidebar a.current{color:#fff!important; border-left-color:var(--rw-red); background:rgba(255,255,255,.1)!important; font-weight:600}
body.rwl-app .rwl-office .rwl-orders-sidebar :is(p,strong,h2,h3,span):first-child{color:#fff; font-size:13px; letter-spacing:.02em; padding:0 20px 12px; margin:0 0 8px; border-bottom:1px solid rgba(255,255,255,.12)}
body.rwl-app .rwl-office .rwl-orders-workspace{padding:20px 28px 28px!important; min-width:0; background:var(--rw-surface)}
body.rwl-app .rwl-office .rwl-orders-workspace > :first-child{margin-top:0}
body.rwl-app .rwl-office .rwl-management{background:transparent!important; padding:0!important}
body.rwl-app .rwl-office .rwl-metrics{display:grid!important; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px}
body.rwl-app .rwl-office .rwl-metrics article{background:#fff!important; border:1px solid var(--rw-line)!important; border-top:1px solid var(--rw-line)!important; border-radius:var(--rw-radius)!important; padding:14px 16px!important; box-shadow:none!important; position:relative}
body.rwl-app .rwl-office .rwl-metrics article::before{content:""; position:absolute; left:0; top:12px; bottom:12px; width:3px; border-radius:0 3px 3px 0; background:var(--rw-navy-2)}
body.rwl-app .rwl-office .rwl-metrics article strong{display:block; font-size:26px!important; line-height:1.15; font-weight:700; color:var(--rw-ink)!important}
body.rwl-app .rwl-office .rwl-metrics article :is(span,p,small){font-size:13px!important; color:var(--rw-muted)!important; margin-top:4px}
body.rwl-app .rwl-office form{background:transparent}
body.rwl-app .rwl-office .rwl-orders-workspace > nav, body.rwl-app .rwl-office [role=tablist]{border-bottom:1px solid var(--rw-line)}
body.rwl-app .rwl-office a[href*="rwl_"]:is(.button,[class*=button]){text-decoration:none}

/* tab strip + action links rendered as buttons */
body.rwl-app .rwl-office .rwl-orders-workspace a:is([class*=action],[class*=btn]){text-decoration:none}

/* ---------- SELLER CENTER ---------- */
body.rwl-app .rwl-client.rwl-dashboard{background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; max-width:1440px}
body.rwl-app .rwl-client .rwl-dashboard-header{background:var(--rw-surface)!important; color:var(--rw-ink)!important; border:1px solid var(--rw-line)!important; border-radius:10px!important; padding:16px 24px!important; margin:0 0 16px!important; box-shadow:none!important; display:flex; align-items:baseline; gap:14px; flex-wrap:wrap}
body.rwl-app .rwl-client .rwl-dashboard-header p{font-size:13px!important; color:var(--rw-red)!important; font-weight:600; margin:0!important; letter-spacing:.02em; order:2}
body.rwl-app .rwl-client .rwl-dashboard-header h2{color:var(--rw-ink)!important; font-size:24px!important; margin:0!important; order:1}
body.rwl-app .rwl-client .rwl-preview-notice{background:#FFF7E6!important; border:1px solid #F1D49A!important; color:#5C4200!important; border-radius:var(--rw-radius); padding:10px 14px!important; font-size:13.5px}
body.rwl-app .rwl-client .rwl-client-workspace{display:grid!important; grid-template-columns:232px minmax(0,1fr); gap:0; background:var(--rw-surface); border:1px solid var(--rw-line); border-radius:10px; overflow:visible}
body.rwl-app .rwl-client .rwl-dashboard-nav{background:var(--rw-navy)!important; border:0!important; border-radius:10px 0 0 10px; padding:14px 0!important; display:flex!important; flex-direction:column; gap:0!important; position:sticky; top:12px; align-self:start}
body.admin-bar.rwl-app .rwl-client .rwl-dashboard-nav{top:44px}
body.rwl-app .rwl-client .rwl-dashboard-nav a{display:block; background:none!important; border:0!important; border-left:3px solid transparent!important; border-radius:0!important; box-shadow:none!important; padding:10px 20px!important; color:#C9D5E6!important; font-size:14px!important; font-weight:500; text-decoration:none!important; margin:0!important}
body.rwl-app .rwl-client .rwl-dashboard-nav a:hover{color:#fff!important; background:rgba(255,255,255,.06)!important}
body.rwl-app .rwl-client .rwl-dashboard-nav a:is([aria-current],.is-active,.is-selected,.current){color:#fff!important; border-left-color:var(--rw-red)!important; background:rgba(255,255,255,.1)!important; font-weight:600}
body.rwl-app .rwl-client .rwl-workspace-content{padding:20px 28px 28px!important; min-width:0; border:0!important; background:transparent!important}
body.rwl-app .rwl-client .rwl-workspace-content > h3:first-child{margin-top:0; font-size:20px}
body.rwl-app .rwl-client .rwl-order-filter{display:grid!important; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px 14px; align-items:end; background:#F7F9FC!important; border:1px solid var(--rw-line)!important; border-radius:var(--rw-radius)!important; padding:16px!important; box-shadow:none!important}
body.rwl-app .rwl-client .rwl-order-filter label{display:flex; flex-direction:column; gap:6px}
body.rwl-app .rwl-client .rwl-order-filter .rwl-tracking-filter{grid-column:1/-1}
body.rwl-app .rwl-client .rwl-order-tiles{display:grid!important; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-top:16px}
body.rwl-app .rwl-client .rwl-order-tile{display:flex!important; flex-direction:column; gap:2px; background:#fff!important; border:1px solid var(--rw-line)!important; border-radius:var(--rw-radius)!important; padding:12px 14px!important; text-decoration:none!important; color:var(--rw-ink)!important; box-shadow:none!important}
body.rwl-app .rwl-client .rwl-order-tile strong{font-size:22px; font-weight:700; color:var(--rw-ink)}
body.rwl-app .rwl-client .rwl-order-tile span{font-size:13px; color:var(--rw-muted)}
body.rwl-app .rwl-client .rwl-order-tile:hover{border-color:var(--rw-line-strong)!important; background:#F7F9FC!important}
body.rwl-app .rwl-client .rwl-order-tile.is-selected{border-color:var(--rw-navy-2)!important; box-shadow:inset 0 0 0 1px var(--rw-navy-2)!important}

/* ---------- DRIVER PORTAL (phone first) ---------- */
body.rwl-app .rwl-driver{max-width:640px!important; margin:0 auto!important; background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important}
body.rwl-app .rwl-driver > h2{background:var(--rw-navy)!important; color:#fff!important; border-radius:10px!important; padding:14px 18px!important; font-size:20px!important; margin:0 0 10px!important}
body.rwl-app .rwl-driver details{background:#fff; border:1px solid var(--rw-line); border-radius:var(--rw-radius); padding:0; margin:10px 0}
body.rwl-app .rwl-driver details > summary{padding:12px 16px; font-weight:600; font-size:15px; cursor:pointer; list-style-position:inside}
body.rwl-app .rwl-driver details[open] > summary{border-bottom:1px solid var(--rw-line)}
body.rwl-app .rwl-driver dl{display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; padding:12px 16px; font-size:14px; background:#fff; border:1px solid var(--rw-line); border-radius:var(--rw-radius)}
body.rwl-app .rwl-driver details dl{border:0}
body.rwl-app .rwl-driver dt{color:var(--rw-muted)}
body.rwl-app .rwl-driver dd{margin:0; font-weight:600; color:var(--rw-ink); text-align:end; font-variant-numeric:tabular-nums}
body.rwl-app .rwl-driver [data-rwl-scanner]{background:#fff; border:1px solid var(--rw-line); border-radius:10px; padding:14px; display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end}
body.rwl-app .rwl-driver [data-rwl-scanner] > label{flex:1 1 100%; display:flex; flex-direction:column; gap:6px}
body.rwl-app .rwl-driver [data-rwl-scanner] input{min-height:48px!important; font-size:17px!important; letter-spacing:.04em}
body.rwl-app .rwl-driver [data-rwl-scanner] button{min-height:48px!important; font-size:15px!important; flex:1 1 auto}
body.rwl-app .rwl-driver [data-rwl-scanner] button[data-start]{flex:1 1 100%}
body.rwl-app .rwl-driver [data-rwl-scanner] video{width:100%; border-radius:var(--rw-radius); background:#000; margin-top:4px}
body.rwl-app .rwl-driver [data-rwl-scanner] [role=status]{flex:1 1 100%; margin:2px 0 0; font-size:14px}
body.rwl-app .rwl-driver article{background:#fff!important; border:1px solid var(--rw-line)!important; border-radius:10px!important; padding:14px 16px!important; margin:0 0 10px!important; box-shadow:none!important}
body.rwl-app .rwl-driver > div > article strong{display:block; font-size:22px; font-weight:700; color:var(--rw-ink)}
body.rwl-app .rwl-driver > div:has(> article){display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px}
body.rwl-app .rwl-driver > div:has(> article) > article{margin:0!important}
body.rwl-app .rwl-driver article[data-rwl-awb] h4{display:inline-block; margin:0 0 8px; padding:4px 10px; border:1.5px dashed var(--rw-line-strong); border-radius:6px; font-size:14px; letter-spacing:.03em}
body.rwl-app .rwl-driver article[data-rwl-awb]:focus{outline:2px solid var(--rw-navy-2); outline-offset:2px}
body.rwl-app .rwl-driver > nav{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px}
body.rwl-app .rwl-driver > p > a[href*="logout"], body.rwl-app .rwl-driver a[href*="action=logout"]{display:inline-block; font-size:14px; color:var(--rw-red)}

/* link-buttons are secondary actions; real submit buttons stay red */
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) a.button{background:#fff; color:var(--rw-navy); border:1px solid var(--rw-line-strong); display:inline-flex; align-items:center; text-decoration:none!important}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) a.button:hover{background:#EEF2F7; border-color:var(--rw-navy-2); color:var(--rw-navy)}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) :is(p,div):has(> a.button + a.button){display:flex; flex-wrap:wrap; gap:8px}
body.rwl-app .rwl-office .rwl-orders-tabbar{display:flex; gap:4px; border-bottom:1px solid var(--rw-line)!important; margin:0 0 18px!important; padding:0!important; background:transparent!important}
body.rwl-app .rwl-office .rwl-orders-tabbar > *{padding:10px 4px!important; margin-right:18px; font-size:14px; font-weight:600; color:var(--rw-ink)!important; border:0!important; border-bottom:2px solid var(--rw-red)!important; background:transparent!important; border-radius:0!important}
body.rwl-app .rwl-office .rwl-orders-tabbar > a{border-bottom-color:transparent!important; color:var(--rw-muted)!important; font-weight:500; text-decoration:none!important}

/* search dropdown toggles: quiet, attached to their field */
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) .rwl-search-dropdown{display:flex; align-items:stretch}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) .rwl-search-dropdown > :is(input,textarea){border-top-right-radius:0!important; border-bottom-right-radius:0!important; flex:1 1 auto; min-width:0}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button.rwl-search-toggle{min-height:40px; min-width:34px; padding:0 8px; background:#F3F6F9; color:var(--rw-muted); border:1px solid var(--rw-line-strong); border-left:0; border-radius:0 6px 6px 0; font-size:12px; font-weight:400}
body.rwl-app :is(.rwl-office,.rwl-client,.rwl-driver,.rwl-management) button.rwl-search-toggle:hover{background:#E6ECF3; color:var(--rw-ink); border-color:var(--rw-line-strong)}
body.rwl-app .entry-content{margin-top:0!important; margin-left:0!important; margin-right:0!important; width:auto!important; max-width:none!important}
body.rwl-app .rwl-office.rwl-management-workspace, body.rwl-app .rwl-client.rwl-dashboard, body.rwl-app .rwl-driver{margin-top:0!important}

body.rwl-app .rwl-client .rwl-client-workspace{padding:0!important}
body.rwl-app .rwl-client .rwl-dashboard-nav a{min-height:0!important; height:auto!important; line-height:1.35!important; display:flex!important; align-items:center}
body.rwl-app .rwl-client .rwl-workspace-content > hr:first-child, body.rwl-app .rwl-client .rwl-workspace-content > :first-child{border-top:0; margin-top:0}

/* driver: put scanning right under the title, since it's the main job on the road */
body.rwl-app .rwl-driver{display:flex!important; flex-direction:column}
body.rwl-app .rwl-driver > *{order:0}
body.rwl-app .rwl-driver > h2, body.rwl-app .rwl-driver > h2 + p{order:-3}
body.rwl-app .rwl-driver > h3:has(+ [data-rwl-scanner]){order:-2; margin-top:14px}
body.rwl-app .rwl-driver > [data-rwl-scanner]{order:-1; margin-bottom:8px}
body.rwl-app .rwl-driver > h2 + p{margin:0 0 4px; text-align:end}
body.rwl-app .rwl-driver > dl{border:1px solid var(--rw-line)}
body.rwl-app .rwl-driver dl > :is(dt,dd){padding:6px 0; border-bottom:1px solid #EDF1F5}
body.rwl-app .rwl-driver dl > :is(dt,dd):nth-last-child(-n+2){border-bottom:0}

/* signed-out screens: a focused, narrower column */
body.rwl-app:not(.logged-in) .rwl-client.rwl-dashboard{max-width:880px!important; margin-left:auto!important; margin-right:auto!important}
body.rwl-app:not(.logged-in) .rwl-office:not(.rwl-management-workspace){max-width:560px!important; margin-left:auto!important; margin-right:auto!important}
body.rwl-app:not(.logged-in) :is(.rwl-client,.rwl-office,.rwl-driver) form{background:#fff; border:1px solid var(--rw-line); border-radius:10px; padding:18px}
body.rwl-app:not(.logged-in) :is(.rwl-client,.rwl-office,.rwl-driver) form input:not([type=hidden]){width:100%}

/* staff sign-in screen */
body.rwl-app:not(.logged-in) section.rwl-management{max-width:560px!important; margin:0 auto!important; background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; font-family:var(--rw-font)}
body.rwl-app section.rwl-management > h2{background:var(--rw-navy)!important; color:#fff!important; border-radius:10px!important; padding:14px 18px!important; font-size:20px!important; margin:0 0 10px!important}
body.rwl-app section.rwl-management :is(input,button,select){font-family:var(--rw-font)}
body.rwl-app section.rwl-management h3{font-size:16px; font-weight:600; margin:22px 0 8px; color:var(--rw-ink)}
body.rwl-app section.rwl-management label{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}

body.rwl-app .rwl-account-card header{background:var(--rw-navy)!important}
body.rwl-app .rwl-account-card header h3{color:#C9D5E6!important; margin:0 10px 0 0!important; font-size:14px!important}
body.rwl-app .rwl-account-card header strong{color:#fff!important}
body.rwl-app .rwl-account-card header span{color:#C9D5E6!important}
body.rwl-app .rwl-account-card h4{font-size:16px; margin:22px 0 10px; padding-top:14px; border-top:1px solid var(--rw-line)}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  body.rwl-app .rwl-office.rwl-management-workspace, body.rwl-app .rwl-client .rwl-client-workspace{grid-template-columns:1fr}
  body.rwl-app .rwl-office .rwl-orders-sidebar, body.rwl-app .rwl-client .rwl-dashboard-nav{position:static; max-height:none; border-radius:10px 10px 0 0; display:flex!important; flex-direction:row!important; flex-wrap:nowrap; overflow-x:auto; padding:6px 0!important}
  body.rwl-app .rwl-office .rwl-orders-sidebar a, body.rwl-app .rwl-client .rwl-dashboard-nav a{white-space:nowrap; border-left:0!important; border-bottom:3px solid transparent!important; padding:10px 14px!important}
  body.rwl-app .rwl-office .rwl-orders-sidebar a:is([aria-current],.is-active,.current), body.rwl-app .rwl-client .rwl-dashboard-nav a:is([aria-current],.is-active,.is-selected,.current){border-bottom-color:var(--rw-red)!important}
  body.rwl-app .rwl-office .rwl-orders-sidebar :is(p,strong,h2,h3,span):first-child{display:none}
  body.rwl-app .rwl-office .rwl-orders-workspace, body.rwl-app .rwl-client .rwl-workspace-content{padding:16px!important}
  body.rwl-app :is(.rwl-office,.rwl-client) table{display:block; overflow-x:auto; white-space:nowrap}
}
@media (max-width:600px){
  body.rwl-app main#wp--skip-link--target{padding-left:10px!important; padding-right:10px!important; padding-top:12px!important}
  body.rwl-app .rwl-client .rwl-dashboard-header{padding:12px 16px!important}
  body.rwl-app .rwl-client .rwl-dashboard-header h2{font-size:20px!important}
  body.rwl-app .rwl-office .rwl-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.rwl-app .rwl-office .rwl-metrics article strong{font-size:20px!important}
  body.rwl-app .rwl-client .rwl-order-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){body.rwl-app *{transition:none!important}}
@media print{body.rwl-app header.wp-block-template-part, body.rwl-app footer.wp-block-template-part, body.rwl-app .rwl-orders-sidebar, body.rwl-app .rwl-dashboard-nav{display:none!important} body.rwl-app .rwl-office.rwl-management-workspace, body.rwl-app .rwl-client .rwl-client-workspace{display:block!important; border:0}}