/* ==========================================================================
   YAZ unified frame (Phase 3): one application bar + one look for every
   module sidebar, title area and content spacing. Loaded with yaz-brand.css.
   ========================================================================== */

.yaz-appbar{position:relative;z-index:900;font-family:var(--yaz-font,'Tajawal',sans-serif);color:#fff}
.yaz-appbar *{box-sizing:border-box}
.yaz-appbar-main{display:flex;align-items:center;gap:18px;min-height:58px;padding:0 20px;background:#2A1649;border-bottom:3px solid #BEA06C}
.yaz-appbar-brand{display:flex;align-items:center;gap:10px;color:#fff!important;text-decoration:none!important;flex:0 0 auto}
.yaz-appbar-brand img{height:30px;width:auto;display:block}
.yaz-appbar-brand-text{font-weight:700;font-size:15px;white-space:nowrap}
.yaz-appbar-systems{display:flex;align-items:center;gap:4px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.yaz-appbar-systems::-webkit-scrollbar{display:none}
.yaz-appbar-systems a{flex:0 0 auto;padding:7px 12px;border-radius:9px;color:#E5DDF9!important;text-decoration:none!important;font-size:14px;font-weight:500;white-space:nowrap;transition:background .15s}
.yaz-appbar-systems a:hover{background:rgba(195,179,242,.16);color:#fff!important}
.yaz-appbar-systems a.is-active{background:#F5F2FB;color:#2A1649!important;font-weight:700}
.yaz-appbar-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.yaz-appbar-icon,.yaz-appbar-logout{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;color:#E5DDF9!important;background:rgba(195,179,242,.12)}
.yaz-appbar-lang{padding:7px 10px;border-radius:10px;color:#E5DDF9!important;text-decoration:none!important;font-size:13px;background:rgba(195,179,242,.12)}
.yaz-appbar-lang:hover{background:rgba(195,179,242,.24);color:#fff!important}
.yaz-appbar-icon:hover,.yaz-appbar-logout:hover{background:rgba(195,179,242,.24);color:#fff!important}
.yaz-appbar-user{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:12px;text-decoration:none!important;color:#fff!important;background:rgba(195,179,242,.12)}
[dir=rtl] .yaz-appbar-user{padding:4px 4px 4px 10px}
.yaz-appbar-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:#BEA06C;color:#2A1649;font-weight:700}
.yaz-appbar-user-text{display:flex;flex-direction:column;line-height:1.2}
.yaz-appbar-user-text strong{font-size:13px;color:#fff}
.yaz-appbar-user-text small{font-size:11px;color:#C3B3F2}
.yaz-appbar-crumbs{background:#fff;border-bottom:1px solid rgba(42,22,73,.10);padding:8px 20px}
.yaz-appbar-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;list-style:none;font-size:13px;color:#6E6777}
.yaz-appbar-crumbs li{display:flex;align-items:center;gap:6px}
.yaz-appbar-crumbs li+li::before{content:'‹';color:#BEA06C;font-weight:700}
[dir=ltr] .yaz-appbar-crumbs li+li::before{content:'›'}
.yaz-appbar-crumbs a{color:#482A82!important;text-decoration:none!important}
.yaz-appbar-crumbs a:hover{text-decoration:underline!important}
.yaz-appbar-crumbs [aria-current] span{color:#141223;font-weight:700}

@media (max-width:900px){
  .yaz-appbar-brand-text,.yaz-appbar-user-text{display:none}
  .yaz-appbar-main{gap:10px;padding:0 12px;flex-wrap:wrap}
  .yaz-appbar-systems{order:3;flex:1 0 100%;padding-bottom:8px}
  .yaz-appbar-actions{margin-inline-start:auto}
  .yaz-appbar-crumbs{padding:6px 12px}
}

/* ---------- Module chrome unified under the app bar ---------- */
body[data-yaz-module]{background-color:#F5F2FB}

/* Duplicate brand blocks (logo + product name) — the app bar now carries the brand */
body[data-yaz-module] .crm-top .brand,
body[data-yaz-module] .yhr-brand,
body[data-yaz-module] .tasks-brand-card,
body[data-yaz-module] .users-brand{display:none!important}

/* Sticky module layouts start below the app bar instead of under it */
body[data-yaz-module] .yhr-sidebar,
body[data-yaz-module] .users-sidebar,
body[data-yaz-module] .tasks-sidebar,
body[data-yaz-module] #crmSidebar{top:12px}

/* One sidebar look: white surface, violet active item, lilac hover */
body[data-yaz-module] .yhr-sidebar,
body[data-yaz-module] .users-sidebar,
body[data-yaz-module] .tasks-sidebar,
body[data-yaz-module] #crmSidebar{background:#FFFFFF!important;border-color:rgba(42,22,73,.10)!important;color:#141223}
body[data-yaz-module] .yhr-nav a,
body[data-yaz-module] .users-nav a,
body[data-yaz-module] .tasks-nav-button,
body[data-yaz-module] #crmSidebar .side-link{border-radius:10px!important;color:#23213A!important;transition:background .15s}
body[data-yaz-module] .yhr-nav a:hover,
body[data-yaz-module] .users-nav a:hover,
body[data-yaz-module] .tasks-nav-button:hover,
body[data-yaz-module] #crmSidebar .side-link:hover{background:#EAE9F9!important}
body[data-yaz-module] .yhr-nav a.active,
body[data-yaz-module] .users-nav a.active,
body[data-yaz-module] .users-nav a[aria-current=page],
body[data-yaz-module] .tasks-nav-button.is-active,
body[data-yaz-module] #crmSidebar .side-link.active{background:#2A1649!important;color:#FFFFFF!important;box-shadow:inset -3px 0 0 #BEA06C}
body[data-yaz-module] .yhr-nav a.active *,
body[data-yaz-module] .users-nav a.active *,
body[data-yaz-module] .users-nav a[aria-current=page] *,
body[data-yaz-module] .tasks-nav-button.is-active *,
body[data-yaz-module] #crmSidebar .side-link.active *{color:#FFFFFF!important}

/* One page-title look inside modules */
body[data-yaz-module] .crm-top h1, body[data-yaz-module] .yhr-topbar h1, body[data-yaz-module] .users-topbar h1,
body[data-yaz-module] .topbar h1, body[data-yaz-module] .heading h2{color:#2A1649}

/* Workspace pages (Documents, Assets, Sessions, Audit, Quotations) had their own small header: the app bar replaces it */
body[data-yaz-module] > header:not(.yaz-appbar){display:none!important}
/* Documents / Assets / Sessions / Audit workspace spacing */
body[data-yaz-module=documents] main, body[data-yaz-module=assets] main,
body[data-yaz-module=profile] main{padding-top:20px}

@media print{.yaz-appbar{display:none!important}}

/* ---- Page sweep fixes (2026-11-08) ---- */
/* App bar: never let module styles wrap the systems row */
.yaz-appbar .yaz-appbar-systems{flex-wrap:nowrap!important}
.yaz-appbar nav a{white-space:nowrap}
/* No sideways page scroll from module layouts (off-canvas menus, wide tables) */
body[data-yaz-module]{overflow-x:hidden}
/* Users: the main column may shrink; wide tables scroll inside their card */
body[data-yaz-module] .users-main{min-width:0!important;max-width:100%}
body[data-yaz-module] .users-table-wrap{overflow-x:auto!important;max-width:100%}
/* Tasks: language + back-to-portal pills duplicate the app bar (and lose their text on narrow screens) */
body[data-yaz-module=tasks] .tasks-top-action.is-accent,
body[data-yaz-module=tasks] a.tasks-top-action[href^="/portal"]{display:none!important}
/* HR: secondary buttons used white text on a light card — make them readable everywhere */
body[data-yaz-module=hr] .yhr-btn.secondary{color:#2A1649!important;-webkit-text-fill-color:#2A1649!important;background:#FFFFFF!important;border:1px solid rgba(42,22,73,.18)!important}
body[data-yaz-module] .users-content{grid-template-columns:minmax(0,1fr)!important}
body[data-yaz-module] .users-content > *{min-width:0}
/* Off-canvas menus (Notifications) must not widen the page */
html:has(body[data-yaz-module]){overflow-x:clip}
body[data-yaz-module]{overflow-x:clip}
/* CRM: its header language button duplicates the app bar's */
body[data-yaz-module=crm] .lang-toggle-g67b4{display:none!important}

/* ---- Design review fixes (2026-11-08) ---- */
/* App bar: current system stays highlighted even when a module script strips its class */
.yaz-appbar .yaz-appbar-systems a[aria-current=page]{background:#F5F2FB!important;color:#2A1649!important;font-weight:700}
/* CRM (Phase 3b): one tab row only — the header tabs duplicated the CRM navigation (which also has Analytics) */
body[data-yaz-module=crm] .crm-top .top-nav{display:none!important}
/* Tajawal everywhere, including code/keyboard hints */
body[data-yaz-module] code,body[data-yaz-module] kbd,body[data-yaz-module] samp,body[data-yaz-module] pre,
body[data-yaz-module] [style*=monospace],body[data-yaz-module] .event-key{font-family:var(--yaz-font,'Tajawal',sans-serif)!important}
/* Notification preferences: technical event keys are not shown in the UI */
body[data-yaz-module=notifications] .event-key{display:none!important}
/* Readable secondary texts flagged by the contrast audit */
body[data-yaz-module=tasks] .tasks-nav-description{color:#6E6777!important}
body[data-yaz-module=employees] .users-table th,body[data-yaz-module=employees] .users-table thead{color:#5E5868!important}
/* HR (Phase 3b): under 1024px the side menu becomes one compact, scrollable tab row (same pattern as CRM) */
@media (max-width:1023px){
  body[data-yaz-module=hr] .yhr-shell{display:block!important}
  body[data-yaz-module=hr] .yhr-sidebar{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:12px 12px 0!important;padding:8px!important;border-radius:16px!important;transform:none!important;overflow:visible!important}
  body[data-yaz-module=hr] .yhr-sidebar > :not(.yhr-nav){display:none!important}
  body[data-yaz-module=hr] .yhr-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;scrollbar-width:none;padding:0!important;margin:0!important}
  body[data-yaz-module=hr] .yhr-nav::-webkit-scrollbar{display:none}
  body[data-yaz-module=hr] .yhr-nav a{flex:0 0 auto!important;padding:8px 14px!important;margin:0!important;min-height:0!important;white-space:nowrap}
  body[data-yaz-module=hr] .yhr-nav a span span,body[data-yaz-module=hr] .yhr-nav a small{display:none!important}
  body[data-yaz-module=hr] .yhr-nav a strong{font-size:14px!important}
  body[data-yaz-module=hr] .yhr-main{margin:0!important;width:auto!important;max-width:100%!important}
}
/* Only one language switch: the app bar's. Hide in-page "English" links inside modules. */
html[lang=ar] body[data-yaz-module] a[href*="lang=en"]:not(.yaz-appbar-lang),
body[data-yaz-module] .yhr-language-action,body[data-yaz-module] .users-language-button{display:none!important}
/* HR developer footer ("YAZ HR Core · Premium Light Experience …") */
body[data-yaz-module=hr] .yhr-footer{display:none!important}
.yaz-appbar .yaz-appbar-systems a[data-yaz-current]{background:#F5F2FB!important;color:#2A1649!important;font-weight:700!important;transition:none!important}
body[data-yaz-module=tasks] .tasks-account-number{color:#6E6777!important}
body[data-yaz-module=tasks] table th,body[data-yaz-module=tasks] thead th{color:#5E5868!important}
body[data-yaz-module=notifications] .status-name,body[data-yaz-module] [class*=mono]{font-family:var(--yaz-font,'Tajawal',sans-serif)!important}
/* Workspace pages: page label + "back to portal" button duplicate the app bar & breadcrumbs */
body[data-yaz-module] main > .heading > div > .muted:first-child{display:none!important}
body[data-yaz-module] main > .heading > a.button.secondary[href^="/portal"]{display:none!important}
/* Native date/time fields: keep day/month/year order readable in RTL pages */
html body input[type=date],html body input[type=datetime-local],html body input[type=time],html body input[type=month]{direction:ltr!important;text-align:right!important}
/* HR: its own breadcrumb line and back-to-portal pill duplicate the app bar */
body[data-yaz-module=hr] .yhr-crumb,body[data-yaz-module=hr] .yhr-portal-action{display:none!important}
/* Notifications: "back to portal" buttons duplicate the app bar */
body[data-yaz-module=notifications] .topbar a[href^="/portal"],body[data-yaz-module=notifications] .sidebar a[href^="/portal"]{display:none!important}
/* Tasks: own breadcrumb duplicates the app bar; search text must clear its icon */
body[data-yaz-module=tasks] .tasks-breadcrumb{display:none!important}
body[data-yaz-module=tasks] .tasks-search{padding-inline-start:38px!important}
@media (max-width:680px){body[data-yaz-module=tasks] .tasks-search-shortcut{display:none!important}}
/* Users (Phase 3b): under 1024px the side menu becomes one compact, scrollable tab row (same pattern as CRM/HR) */
@media (max-width:1023px){
  body[data-yaz-module=employees] .users-v1-shell{display:block!important}
  body[data-yaz-module=employees] .users-sidebar{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:12px 12px 0!important;padding:8px!important;border-radius:16px!important;transform:none!important;overflow:visible!important}
  body[data-yaz-module=employees] .users-sidebar > :not(.users-nav){display:none!important}
  body[data-yaz-module=employees] .users-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;scrollbar-width:none;padding:0!important;margin:0!important}
  body[data-yaz-module=employees] .users-nav::-webkit-scrollbar{display:none}
  body[data-yaz-module=employees] .users-nav a{flex:0 0 auto!important;padding:8px 14px!important;margin:0!important;min-height:0!important;white-space:nowrap}
  body[data-yaz-module=employees] .users-main{margin:0!important;width:auto!important;max-width:100%!important}
}
/* Module drawers/modals must sit above the app bar (their title and close button were hidden behind it) */
.yaz-appbar{z-index:50!important}
/* CRM drawer: the second "edit deal" button is a duplicate of the first */
body[data-yaz-module=crm] [data-g71b-edit-deal]{display:none!important}
body[data-yaz-module=crm] .g73f-disabled-note{color:#6E6777!important}

/* Notifications: white side menu like every other module */
body[data-yaz-module=notifications] .sidebar{background:#FFFFFF!important;background-image:none!important;color:#23213A!important;border-inline-start:1px solid rgba(42,22,73,.10)!important;box-shadow:none!important}
body[data-yaz-module=notifications] .sidebar *{color:#23213A!important;-webkit-text-fill-color:#23213A!important}
body[data-yaz-module=notifications] .sidebar small,body[data-yaz-module=notifications] .sidebar .nav-title,body[data-yaz-module=notifications] .sidebar .nav-label{color:#6E6777!important;-webkit-text-fill-color:#6E6777!important}
body[data-yaz-module=notifications] .sidebar .brand{display:none!important}
body[data-yaz-module=notifications] .sidebar .nav-link{background:transparent!important;background-image:none!important;border-radius:10px!important;box-shadow:none!important}
body[data-yaz-module=notifications] .sidebar .nav-link:hover{background:#EAE9F9!important}
body[data-yaz-module=notifications] .sidebar .nav-link.active{background:#2A1649!important;box-shadow:inset -3px 0 0 #BEA06C!important}
body[data-yaz-module=notifications] .sidebar .nav-link.active *{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important}
body[data-yaz-module=notifications] .sidebar .nav-icon,body[data-yaz-module=notifications] .sidebar .count{background:#EAE9F9!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}
body[data-yaz-module=notifications] .sidebar .nav-link.active .nav-icon,body[data-yaz-module=notifications] .sidebar .nav-link.active .count{background:rgba(255,255,255,.16)!important}
body[data-yaz-module=notifications] .sidebar .admin-send-launchpad{background:#F5F2FB!important;background-image:none!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:12px!important;box-shadow:none!important}
body[data-yaz-module=notifications] .sidebar .admin-send-action{background:#FFFFFF!important;background-image:none!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:10px!important;box-shadow:none!important}
body[data-yaz-module=notifications] .sidebar .admin-send-action-icon{background:#EAE9F9!important;background-image:none!important}

/* Home, English, phones: header menus stay on screen */
@media (max-width:720px){html[dir=ltr] .header-dropdown .dropdown-panel{position:fixed!important;left:17px!important;right:17px!important;inset-inline-start:17px!important;inset-inline-end:17px!important;width:auto!important;top:76px!important}}

/* CRM: action buttons on one line (brand and nav are hidden, so the first grid column was only 260px) */
body[data-yaz-module=crm] .crm-top{grid-template-columns:minmax(0,1fr)!important;min-height:0!important}
body[data-yaz-module=crm] .crm-top .top-actions{width:100%!important;justify-content:flex-end!important}

/* Request and quotation details: breathing room before section headings */
body[data-yaz-module] .panel .data + h3{margin-top:22px!important}

/* Logout and error pages: the light logo needs a dark tile on a white card */
.card>img[src*="yaz-logo.png"]{background:#2A1649;padding:10px 16px;border-radius:12px;box-sizing:content-box}

/* Arabic browsers: date placeholders render letter-reversed unless the field is right-to-left */
html.yaz-ar-browser body :is(input[type=date],input[type=datetime-local],input[type=month],input[type=time]),
html.yaz-ar-browser body :is(input[type=date],input[type=datetime-local],input[type=month],input[type=time])::-webkit-datetime-edit,
html.yaz-ar-browser body :is(input[type=date],input[type=datetime-local],input[type=month],input[type=time])::-webkit-datetime-edit-fields-wrapper{direction:rtl!important;unicode-bidi:normal!important}
html.yaz-ar-browser body input::-webkit-datetime-edit-month-field,
html.yaz-ar-browser body input::-webkit-datetime-edit-day-field,
html.yaz-ar-browser body input::-webkit-datetime-edit-year-field,
html.yaz-ar-browser body input::-webkit-datetime-edit-hour-field,
html.yaz-ar-browser body input::-webkit-datetime-edit-minute-field,
html.yaz-ar-browser body input::-webkit-datetime-edit-ampm-field{direction:rtl!important;unicode-bidi:normal!important}

/* ==========================================================================
   One page pattern for every module:
   title bar (title, short description, main action) > KPI cards > filters > list
   ========================================================================== */
.yaz-page-desc{margin:4px 0 0!important;color:#6E6777!important;-webkit-text-fill-color:#6E6777!important;font-size:14px!important;font-weight:400!important;line-height:1.6!important}

/* Documents, assets, quotations, reports, sessions, audit */
body[data-yaz-module] main > .heading{background:#fff;border:1px solid rgba(42,22,73,.10);border-radius:var(--yaz-card-radius);box-shadow:var(--yaz-card-shadow);padding:18px 24px;margin-bottom:16px}
body[data-yaz-module] main > .heading h1{font-size:24px!important;margin:0!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important}

/* Title bar shared by HR, Tasks, CRM */
:is(.yhr-hero-card,.tasks-hero-content,.g73f-hero,.insight-strip .hero){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:24px!important;align-items:center!important;min-height:0!important;width:auto!important;height:auto!important;padding:18px 24px!important}
:is(.yhr-hero-card,.g73f-hero,.insight-strip .hero),.tasks-hero{background:#fff!important;background-image:none!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:var(--yaz-card-radius)!important;box-shadow:var(--yaz-card-shadow)!important;color:#23213A!important;overflow:visible!important}
:is(.yhr-hero-card,.tasks-hero,.g73f-hero,.insight-strip .hero)::before,:is(.yhr-hero-card,.tasks-hero,.g73f-hero,.insight-strip .hero)::after,.tasks-hero-content::before,.tasks-hero-content::after{display:none!important;content:none!important}
.tasks-hero{min-height:0!important;padding:0!important}
.tasks-hero-content{max-width:none!important;background:transparent!important}
:is(.yhr-eyebrow,.tasks-hero-badge){display:none!important}
.g73f-hero > :first-child:not(h1):not(h2):not(p):not(div){display:none!important}
.yhr-hero-card h2,.tasks-hero-title,.g73f-hero :is(h1,h2),.insight-strip .hero :is(h1,h2){grid-column:1!important;font-size:24px!important;line-height:1.35!important;margin:0!important;max-width:none!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important;background:none!important}
.yhr-hero-card > p,.tasks-hero-text,.g73f-hero > p,.insight-strip .hero p{grid-column:1!important;font-size:14px!important;line-height:1.6!important;margin:4px 0 0!important;max-width:none!important;color:#6E6777!important;-webkit-text-fill-color:#6E6777!important;font-weight:400!important}
.yhr-hero-actions,.tasks-hero-actions,.g73f-hero > :is(.g73f-actions,div:last-child){grid-column:2!important;grid-row:1 / span 3!important;margin:0!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-end!important;max-width:520px}
:is(.yhr-hero-actions,.tasks-hero-actions,.g73f-hero) :is(a,button){background:#EAE9F9!important;background-image:none!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important;border:0!important;box-shadow:none!important;min-height:40px!important;border-radius:10px!important;padding:0 16px!important;font-size:13.5px!important;font-weight:700!important}
:is(.yhr-hero-actions,.tasks-hero-actions) :is(a,button):first-child{background:#2A1649!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
:is(.yhr-hero-actions,.tasks-hero-actions) :is(a,button):first-child *{color:#fff!important;-webkit-text-fill-color:#fff!important}
.g73f-hero span{color:#6E6777!important;-webkit-text-fill-color:#6E6777!important;background:none!important;border:0!important;padding:0!important}

/* Order: title bar, KPI cards, filters, list */
.yhr-main,.tasks-main{display:flex!important;flex-direction:column!important}
.yhr-hero{order:-2!important;display:block!important;margin-bottom:0!important;min-height:0!important}
.yhr-kpi-grid{margin-top:14px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.tasks-hero{order:-2!important}
.tasks-metrics-grid{order:-1!important}
body[data-yaz-module=crm] .crm-layout .main{display:flex!important;flex-direction:column!important}
.insight-strip{order:-1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.insight-strip .hero{grid-column:1 / -1!important;order:-1!important}
.g73f-clients-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.g73f-clients-overview .g73f-hero{grid-column:1 / -1!important}

/* Users and Notifications already have a title bar: the decorative banners go */
body[data-yaz-module=employees] .users-hero{display:none!important}
.users-topbar{background:#fff!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:var(--yaz-card-radius)!important;box-shadow:var(--yaz-card-shadow)!important;min-height:0!important}
.users-topbar h1{font-size:24px!important;color:#2A1649!important}
body[data-yaz-module=notifications] .hero:has(.hero-card){display:none!important}
body[data-yaz-module=notifications] .hero{background:#F5F2FB!important;background-image:none!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:var(--yaz-card-radius)!important;box-shadow:none!important;min-height:0!important;padding:14px 20px!important}
body[data-yaz-module=notifications] .hero :is(h2,p,span){color:#23213A!important;-webkit-text-fill-color:#23213A!important}
body[data-yaz-module=notifications] .hero h2{font-size:16px!important;margin:0!important}
body[data-yaz-module=notifications] .hero p{font-size:14px!important;margin:2px 0 0!important}
body[data-yaz-module=notifications] .hero .readonly{background:#EAE9F9!important;width:auto!important}

@media (max-width:760px){
  :is(.yhr-hero-card,.tasks-hero-content,.g73f-hero,.insight-strip .hero){grid-template-columns:minmax(0,1fr)!important;padding:16px!important}
  .yhr-hero-actions,.tasks-hero-actions,.g73f-hero > :is(.g73f-actions,div:last-child){grid-column:1!important;grid-row:auto!important;justify-content:flex-start!important;margin-top:12px!important;max-width:none}
  .yhr-kpi-grid,.insight-strip,.g73f-clients-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yhr-hero-card h2,.tasks-hero-title,.g73f-hero :is(h1,h2),.insight-strip .hero :is(h1,h2){font-size:21px!important}
  body[data-yaz-module] main > .heading{padding:14px 16px}
}

/* Login and verification */
.center .brand .logo{background:#2A1649!important;background-image:none!important;border-radius:12px!important;padding:8px 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:auto!important;box-shadow:none!important}
.center .brand .logo img{height:34px!important;width:auto!important;max-width:none!important}
.center .brand p{color:#6E6777!important;-webkit-text-fill-color:#6E6777!important}
.center form.grid{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.center form.grid label,.center form label{color:#23213A!important;-webkit-text-fill-color:#23213A!important}
/* Task details: readable secondary text and comfortable small buttons on phones */
.yaz-task-details-dialog .yaz-task-actions-empty{color:#6E6777!important;-webkit-text-fill-color:#6E6777!important}
.yaz-task-details-dialog span{--yaz-muted:#6E6777}
@media (max-width:760px){
  .yaz-task-details-dialog :is(.yaz-task-checklist-state,.is-order,.is-danger,.yaz-task-resource-delete),.yaz-task-details-dialog button{min-height:36px!important;min-width:36px!important}
  .users-rp-modal-close{min-height:40px!important;min-width:40px!important}
}

/* Tasks and CRM: stronger rules over each module's own heading styles */
html body .tasks-hero :is(h1,.tasks-hero-title){font-size:24px!important;line-height:1.35!important;margin:0!important;max-width:none!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important;background:none!important}
html body .tasks-hero .tasks-hero-text{font-size:14px!important;margin:4px 0 0!important;color:#6E6777!important;-webkit-text-fill-color:#6E6777!important}
html body .tasks-hero .tasks-hero-actions{margin:0!important}
html body .tasks-hero .tasks-hero-actions :is(a,button){background:#EAE9F9!important;background-image:none!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important;border:0!important;box-shadow:none!important}
html body .tasks-hero .tasks-hero-actions :is(a,button) *{color:inherit!important;-webkit-text-fill-color:inherit!important}
html body .tasks-hero .tasks-hero-actions :is(a,button):first-child{background:#2A1649!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .insight-strip .smart-card{grid-column:1 / -1!important;order:-1!important;background:#fff!important;background-image:none!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:var(--yaz-card-radius)!important;box-shadow:var(--yaz-card-shadow)!important;padding:18px 24px!important;min-height:0!important}
html body .insight-strip .smart-card::before,html body .insight-strip .smart-card::after{display:none!important}
html body .insight-strip .smart-card small{display:none!important}
html body .insight-strip .smart-card strong{display:block!important;font-size:24px!important;line-height:1.35!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important}
html body .insight-strip .smart-card p{font-size:14px!important;margin:4px 0 0!important;color:#6E6777!important;-webkit-text-fill-color:#6E6777!important}
@media (max-width:760px){html body .tasks-hero :is(h1,.tasks-hero-title),html body .insight-strip .smart-card strong{font-size:21px!important}html body .insight-strip .smart-card{padding:16px!important}}

/* Notifications banners: decorative icon tile removed with the lighter banner */
body[data-yaz-module=notifications] .hero > :last-child:not(.readonly):not(:has(h2)){display:none!important}

/* CRM overview blocks: title bar across, then one row of KPI cards */
html body :is(.g73f-clients-overview,.g76c-followups-overview,.g76d-overview,.g77a-overview){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
html body :is(.g73f-clients-overview,.g76c-followups-overview,.g76d-overview,.g77a-overview) > *{grid-row:auto!important;grid-column:auto!important;min-height:0!important}
html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero){grid-column:1 / -1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:24px!important;align-items:center!important;background:#fff!important;background-image:none!important;border:1px solid rgba(42,22,73,.10)!important;border-radius:var(--yaz-card-radius)!important;box-shadow:var(--yaz-card-shadow)!important;padding:18px 24px!important;min-height:0!important;height:auto!important;overflow:visible!important}
html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero)::before,html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero)::after{display:none!important}
html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero) > small{display:none!important}
html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero) h1{grid-column:1!important;font-size:24px!important;line-height:1.35!important;margin:0!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important}
html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero) p{grid-column:1!important;font-size:14px!important;margin:4px 0 0!important;max-width:none!important;color:#6E6777!important;-webkit-text-fill-color:#6E6777!important}
html body :is(.g76c-actions,.g77a-actions,.g73f-actions){grid-column:2!important;grid-row:1 / span 2!important;margin:0!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-end!important;max-width:520px}
html body :is(.g76c-actions,.g77a-actions,.g73f-actions) a{background:#EAE9F9!important;background-image:none!important;color:#2A1649!important;-webkit-text-fill-color:#2A1649!important;border:0!important;box-shadow:none!important;min-height:40px!important;border-radius:10px!important}
@media (max-width:760px){
  html body :is(.g73f-clients-overview,.g76c-followups-overview,.g76d-overview,.g77a-overview){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero){grid-template-columns:minmax(0,1fr)!important;padding:16px!important}
  html body :is(.g76c-actions,.g77a-actions,.g73f-actions){grid-column:1!important;grid-row:auto!important;justify-content:flex-start!important;margin-top:12px!important}
  html body :is(.g73f-hero,.g76c-followups-hero,.g76d-hero,.g77a-hero) h1{font-size:21px!important}
}

/* English app bar: longer labels must all fit at desktop widths */
@media (min-width:1100px){html[lang=en] .yaz-appbar-systems{gap:2px!important}html[lang=en] .yaz-appbar-systems a{padding-inline:8px!important;font-size:12px!important;white-space:nowrap!important}}

/* Login and verification: language switch, styled like the app bar button */
.yaz-auth-langbar{display:flex;justify-content:flex-end;margin-bottom:12px}
.yaz-auth-lang{padding:7px 12px;border-radius:10px;background:#2A1649;color:#E5DDF9!important;-webkit-text-fill-color:#E5DDF9;text-decoration:none!important;font-size:13px;line-height:1.3}
.yaz-auth-lang:hover{background:#482A82;color:#fff!important;-webkit-text-fill-color:#fff}
.yaz-auth-lang:focus-visible{outline:2px solid #BEA06C;outline-offset:2px}

/* English login and verification read left to right */
html[dir=ltr] body:has(.login-card),html[dir=ltr] .login-card,html[dir=ltr] .login-card *{direction:ltr!important}
html[dir=ltr] .login-card :is(h1,h2,p,label){text-align:left!important}
html[dir=ltr] .login-card input:not([name=otp_code]){text-align:left!important}
html[dir=ltr] .login-card .brand h1::after{margin-left:0!important;margin-right:auto!important}
/* Pending-action badge on the Documents tab and the inbox title (2026-11-10) */
.yaz-appbar .yaz-appbar-badge,.yaz-inbox-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-inline-start:6px;border-radius:999px;background:#A91472;color:#fff!important;font-family:Tajawal,sans-serif;font-size:12px;font-weight:700;line-height:1;vertical-align:middle}
.yaz-inbox-count{min-width:24px;height:24px;font-size:13px}
.yaz-appbar .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
