/* EASTERP_CLIENT_WORKSPACE_UX_SHELL_V2
   Shared visual shell only.
   Authentication, tenant/entity authority, entitlements and backend
   module contracts remain unchanged. */

:root{
  --cw2-ink:#10233f;
  --cw2-ink-2:#1b3358;
  --cw2-muted:#5c6b7a;
  --cw2-paper:#eef1f4;
  --cw2-surface:#ffffff;
  --cw2-line:#dde3e9;
  --cw2-accent:#a8522b;
  --cw2-accent-dark:#8a4322;
  --cw2-accent-tint:#f5e5da;
  --cw2-good:#2f7d5a;
  --cw2-good-tint:#e1f0e8;
  --cw2-warning:#8a6420;
  --cw2-warning-tint:#fbf1dd;
  --cw2-radius:12px;
  --cw2-shadow:0 8px 22px rgba(16,35,63,.07);
}

body.easterp-shell-v2{
  background:var(--cw2-paper);
  color:var(--cw2-ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* =========================
   CLIENT WORKSPACE DASHBOARD
   ========================= */

body.easterp-shell-v2 .nav{
  min-height:60px;
  height:60px;
  padding:0 24px;
  background:var(--cw2-surface);
  border-bottom:1px solid var(--cw2-line);
  box-shadow:none;
}

body.easterp-shell-v2 .client-logo-slot{
  width:34px;
  height:34px;
  border:1px solid var(--cw2-line);
  border-radius:9px;
  background:#fff;
}

body.easterp-shell-v2 .client-brand-copy strong{
  color:var(--cw2-ink);
  font-size:14px;
  font-weight:750;
}

body.easterp-shell-v2 .client-brand-copy small{
  color:var(--cw2-muted);
}

body.easterp-shell-v2 .client-workspace-badge{
  background:var(--cw2-paper);
  color:var(--cw2-ink);
  border:1px solid var(--cw2-line);
  padding:6px 10px;
}

body.easterp-shell-v2 .nav-user{
  color:var(--cw2-ink);
  font-size:12px;
}

body.easterp-shell-v2 .notification-button{
  width:36px;
  height:36px;
  border:1px solid var(--cw2-line);
  border-radius:9px;
  background:var(--cw2-surface);
  color:var(--cw2-ink);
}

body.easterp-shell-v2 .notification-button:hover{
  background:var(--cw2-paper);
}

body.easterp-shell-v2 .notification-badge{
  border-color:#fff;
}

/* Sidebar */
body.easterp-shell-v2 .client-shell-sidebar{
  top:60px;
  width:250px;
  background:var(--cw2-ink);
  color:#c9d4e2;
  box-shadow:none;
  border-right:0;
  padding-top:8px;
}

body.easterp-shell-v2 .client-shell-sidebar-toggle{
  width:34px;
  height:34px;
  margin:10px 14px 8px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  font-size:16px;
}

body.easterp-shell-v2 .client-shell-group-label{
  padding:14px 18px 6px;
  color:#6b7e97;
  font-size:10px;
  letter-spacing:.07em;
}

body.easterp-shell-v2 .client-shell-nav-link,
body.easterp-shell-v2 .client-shell-nav-disabled{
  min-height:38px;
  margin:1px 10px;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  color:#b9c6d8;
  font-size:13px;
  font-weight:600;
  position:relative;
}

body.easterp-shell-v2 .client-shell-nav-link:hover,
body.easterp-shell-v2 .client-shell-nav-link:focus-visible{
  background:var(--cw2-ink-2);
  color:#fff;
}

body.easterp-shell-v2 .client-shell-nav-link.active{
  background:var(--cw2-ink-2);
  color:#fff;
}

body.easterp-shell-v2 .client-shell-nav-link.active::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  width:3px;
  height:18px;
  transform:translateY(-50%);
  border-radius:0 3px 3px 0;
  background:var(--cw2-accent);
}

body.easterp-shell-v2 .client-shell-icon{
  width:18px;
  flex-basis:18px;
  font-size:14px;
}

/* EASTERP_CLIENT_WORKSPACE_UX_SHELL_V2_REVIEW_REMEDIATION */
body.easterp-shell-v2 .client-shell-sidebar.collapsed{
  width:var(--easterp-shell-sidebar-collapsed);
}

body.easterp-shell-v2 .page.client-shell-content.sidebar-collapsed{
  margin-left:var(--easterp-shell-sidebar-collapsed);
}

/* Dashboard content */
body.easterp-shell-v2 .page.client-shell-content{
  margin-left:250px;
  max-width:none;
  padding:28px 32px 60px;
}

body.easterp-shell-v2 .client-shell-dashboard-header{
  align-items:flex-end;
  margin:0 0 20px;
}

body.easterp-shell-v2 .client-shell-dashboard-header h1{
  color:var(--cw2-ink);
  font-size:27px;
  font-weight:700;
  letter-spacing:-.02em;
}

body.easterp-shell-v2 .client-shell-dashboard-header p{
  margin-top:5px;
  color:var(--cw2-muted);
  font-size:13.5px;
}

body.easterp-shell-v2 .client-shell-status{
  border:0;
  border-radius:999px;
  background:var(--cw2-good-tint);
  color:var(--cw2-good);
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
}

body.easterp-shell-v2 .client-module-entitlement-status{
  margin-bottom:22px;
  border:1px solid var(--cw2-line);
  border-radius:10px;
  background:var(--cw2-surface);
  color:var(--cw2-muted);
  padding:11px 14px;
}

body.easterp-shell-v2 .client-module-entitlement-status.is-warning{
  border-color:#ebd9ae;
  background:var(--cw2-warning-tint);
  color:#6b5015;
}

body.easterp-shell-v2 .client-shell-section-title{
  margin:26px 0 12px;
  color:var(--cw2-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:none;
}

body.easterp-shell-v2 .client-shell-module-grid{
  grid-template-columns:repeat(3,minmax(200px,1fr));
  gap:14px;
  margin-bottom:24px;
}

body.easterp-shell-v2 .client-shell-module-card{
  min-height:138px;
  padding:18px;
  border:1px solid var(--cw2-line);
  border-radius:var(--cw2-radius);
  background:var(--cw2-surface);
  color:var(--cw2-ink);
  box-shadow:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}

body.easterp-shell-v2 .client-shell-module-card:hover,
body.easterp-shell-v2 .client-shell-module-card:focus-visible{
  transform:translateY(-2px);
  border-color:#c7d0da;
  box-shadow:var(--cw2-shadow);
}

body.easterp-shell-v2 .client-shell-card-icon{
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--cw2-accent-tint);
  color:var(--cw2-accent-dark);
}

body.easterp-shell-v2 .client-shell-module-card strong{
  margin:2px 0 0;
  font-size:14.5px;
  font-weight:700;
}

body.easterp-shell-v2 .client-shell-module-card span:not(.client-shell-card-icon){
  color:var(--cw2-muted);
  font-size:12.5px;
  line-height:1.45;
}

body.easterp-shell-v2 .section-card,
body.easterp-shell-v2 .metric-card{
  border:1px solid var(--cw2-line);
  border-radius:var(--cw2-radius);
  box-shadow:none;
}

body.easterp-shell-v2 .section-card:hover,
body.easterp-shell-v2 .metric-card:hover{
  border-color:#c7d0da;
}

/* =========================
   SALES WORKSPACE
   ========================= */

body.easterp-shell-v2.sales-workspace .topbar{
  height:60px;
  min-height:60px;
  padding:0 24px;
  background:var(--cw2-surface);
  color:var(--cw2-ink);
  border-bottom:1px solid var(--cw2-line);
}

body.easterp-shell-v2.sales-workspace .brand{
  color:var(--cw2-ink);
  font-size:14px;
  font-weight:750;
}

body.easterp-shell-v2.sales-workspace .brand small{
  color:var(--cw2-muted);
  font-size:11px;
}

body.easterp-shell-v2.sales-workspace .context-pill{
  border:1px solid var(--cw2-line);
  background:var(--cw2-paper);
  color:var(--cw2-muted);
  border-radius:8px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10.5px;
}

body.easterp-shell-v2.sales-workspace .layout{
  grid-template-columns:250px minmax(0,1fr);
  min-height:calc(100vh - 60px);
}

body.easterp-shell-v2.sales-workspace .sidebar{
  background:var(--cw2-ink);
  color:#c9d4e2;
  padding:10px;
}

body.easterp-shell-v2.sales-workspace .side-label{
  padding:14px 8px 6px;
  color:#6b7e97;
  font-size:10px;
  letter-spacing:.07em;
}

body.easterp-shell-v2.sales-workspace .side-link{
  min-height:38px;
  margin:1px 0;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  color:#b9c6d8;
  font-size:13px;
  font-weight:600;
}

body.easterp-shell-v2.sales-workspace .side-link:hover{
  background:var(--cw2-ink-2);
  color:#fff;
}

body.easterp-shell-v2.sales-workspace .side-link.active{
  background:var(--cw2-ink-2);
  color:#fff;
  position:relative;
}

body.easterp-shell-v2.sales-workspace .side-link.active::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  width:3px;
  height:18px;
  transform:translateY(-50%);
  background:var(--cw2-accent);
}

body.easterp-shell-v2.sales-workspace .content{
  max-width:1180px;
  width:100%;
  margin:0 auto;
  padding:28px 32px 60px;
}

body.easterp-shell-v2.sales-workspace .page-head{
  align-items:flex-end;
  margin-bottom:22px;
}

body.easterp-shell-v2.sales-workspace h1{
  color:var(--cw2-ink);
  font-size:27px;
  letter-spacing:-.02em;
}

body.easterp-shell-v2.sales-workspace .subtitle{
  color:var(--cw2-muted);
  font-size:13.5px;
}

body.easterp-shell-v2.sales-workspace .return{
  min-height:36px;
  padding:8px 12px;
  border:1px solid var(--cw2-line);
  border-radius:8px;
  color:var(--cw2-ink);
  background:#fff;
  font-size:12.5px;
  font-weight:650;
}

body.easterp-shell-v2.sales-workspace .status{
  padding:11px 14px;
  margin-bottom:18px;
  border:1px solid var(--cw2-line);
  border-radius:10px;
  background:#fff;
  color:var(--cw2-muted);
}

body.easterp-shell-v2.sales-workspace .status.ok{
  border-color:#c9e2d5;
  background:var(--cw2-good-tint);
  color:var(--cw2-good);
}

body.easterp-shell-v2.sales-workspace .status.error{
  border-color:#f3b7b2;
  background:#fff6f5;
  color:#b42318;
}

body.easterp-shell-v2.sales-workspace .summary-grid{
  gap:14px;
  margin-bottom:22px;
}

body.easterp-shell-v2.sales-workspace .summary-card,
body.easterp-shell-v2.sales-workspace .panel{
  border:1px solid var(--cw2-line);
  border-radius:var(--cw2-radius);
  box-shadow:none;
  background:#fff;
}

body.easterp-shell-v2.sales-workspace .summary-card{
  padding:16px 18px;
}

body.easterp-shell-v2.sales-workspace .summary-card span{
  color:var(--cw2-muted);
  font-size:11.5px;
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
}

body.easterp-shell-v2.sales-workspace .summary-card strong{
  margin-top:8px;
  color:var(--cw2-ink);
  font-size:23px;
}

body.easterp-shell-v2.sales-workspace .panel{
  padding:0;
  overflow:hidden;
}

body.easterp-shell-v2.sales-workspace .panel h2{
  margin:0;
  padding:14px 16px;
  border-bottom:1px solid var(--cw2-line);
  font-size:14px;
}

body.easterp-shell-v2.sales-workspace .data-table th{
  background:#fafbfc;
  color:var(--cw2-muted);
  font-size:10.5px;
  font-weight:700;
}

body.easterp-shell-v2.sales-workspace .data-table td{
  padding:12px 16px;
  border-bottom:1px solid #eef1f4;
  font-size:13px;
}

body.easterp-shell-v2.sales-workspace .data-table tr:hover td{
  background:#fafbfc;
}

@media(max-width:1180px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(2,minmax(190px,1fr));
  }
}

@media(max-width:900px){
  body.easterp-shell-v2 .page.client-shell-content,
  body.easterp-shell-v2 .page.client-shell-content.sidebar-collapsed{
    margin-left:0;
    padding:20px 16px 40px;
  }

  body.easterp-shell-v2 .client-shell-sidebar{
    width:250px;
  }

  body.easterp-shell-v2.sales-workspace .layout{
    grid-template-columns:1fr;
  }

  body.easterp-shell-v2.sales-workspace .sidebar{
    display:none;
  }

  body.easterp-shell-v2.sales-workspace .content{
    padding:20px 16px 40px;
  }
}

@media(max-width:600px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:1fr;
  }

  body.easterp-shell-v2 .client-shell-dashboard-header{
    align-items:flex-start;
  }
}

/* EASTERP_CLIENT_WORKSPACE_UX_SHELL_V2_VISUAL_COMPLETION_V1
   Presentation-only completion. Authority and runtime contracts unchanged. */
body.easterp-shell-v2 .nav{
  min-height:64px;
  height:64px;
  padding:0 28px;
  background:var(--cw2-ink);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 4px 16px rgba(16,35,63,.10);
}

body.easterp-shell-v2 .client-logo-slot{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.24);
}

body.easterp-shell-v2 .client-brand-copy strong,
body.easterp-shell-v2 .nav-user{
  color:#fff;
}

body.easterp-shell-v2 .client-brand-copy small{
  color:#bcc8d8;
}

body.easterp-shell-v2 .client-workspace-badge{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
}

body.easterp-shell-v2 .notification-button{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
}

body.easterp-shell-v2 .notification-button:hover{
  background:rgba(255,255,255,.14);
}

body.easterp-shell-v2 .notification-badge{
  border-color:var(--cw2-ink);
}

body.easterp-shell-v2 .client-shell-sidebar{
  top:64px;
  padding-top:10px;
}

body.easterp-shell-v2 .client-shell-sidebar-toggle{
  margin:10px 12px 10px;
}

body.easterp-shell-v2 .client-shell-group-label{
  padding:13px 16px 5px;
  color:#7890aa;
  font-size:9.5px;
  letter-spacing:.09em;
}

body.easterp-shell-v2 .client-shell-nav-link,
body.easterp-shell-v2 .client-shell-nav-disabled{
  min-height:36px;
  margin:1px 8px;
  padding:7px 10px;
  border-radius:7px;
  font-size:12.5px;
}

body.easterp-shell-v2 .client-shell-nav-link.active{
  background:#203c63;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}

body.easterp-shell-v2 .page.client-shell-content{
  padding:30px 36px 56px;
}

body.easterp-shell-v2 .client-shell-dashboard-header{
  margin-bottom:16px;
}

body.easterp-shell-v2 .client-shell-dashboard-header h1{
  font-size:28px;
  font-weight:750;
}

body.easterp-shell-v2 .client-shell-dashboard-header p{
  max-width:760px;
  margin-top:4px;
  font-size:13px;
}

body.easterp-shell-v2 .client-shell-status{
  padding:7px 11px;
  border:1px solid #cfe3d8;
  font-size:11.5px;
}

body.easterp-shell-v2 .client-module-entitlement-status{
  margin-bottom:18px;
  padding:10px 13px;
  border-radius:9px;
  font-size:12px;
}

body.easterp-shell-v2 .client-shell-section-title{
  margin:22px 0 10px;
  color:var(--cw2-ink);
  font-size:12.5px;
  font-weight:750;
  letter-spacing:0;
}

body.easterp-shell-v2 .client-shell-module-grid{
  grid-template-columns:repeat(5,minmax(180px,1fr));
  gap:12px;
  margin-bottom:20px;
}

body.easterp-shell-v2 .client-shell-module-card{
  min-height:126px;
  padding:16px;
  border-radius:10px;
  gap:7px;
}

body.easterp-shell-v2 .client-shell-card-icon{
  width:32px;
  height:32px;
  border-radius:8px;
}

body.easterp-shell-v2 .client-shell-module-card strong{
  margin-top:1px;
  font-size:14px;
}

body.easterp-shell-v2 .client-shell-module-card span:not(.client-shell-card-icon){
  font-size:12px;
  line-height:1.4;
}

body.easterp-shell-v2.sales-workspace .topbar{
  height:64px;
  min-height:64px;
  padding:0 28px;
  background:var(--cw2-ink);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 4px 16px rgba(16,35,63,.10);
}

body.easterp-shell-v2.sales-workspace .brand{
  color:#fff;
}

body.easterp-shell-v2.sales-workspace .brand small{
  color:#bcc8d8;
}

body.easterp-shell-v2.sales-workspace .context-pill{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#dce5ef;
}

body.easterp-shell-v2.sales-workspace .layout{
  min-height:calc(100vh - 64px);
}

body.easterp-shell-v2.sales-workspace .content{
  max-width:1320px;
  padding:30px 36px 56px;
}

@media(max-width:1400px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(4,minmax(180px,1fr));
  }
}

@media(max-width:1180px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(3,minmax(180px,1fr));
  }
}

@media(max-width:900px){
  body.easterp-shell-v2 .nav{
    padding:0 16px;
  }

  body.easterp-shell-v2 .page.client-shell-content,
  body.easterp-shell-v2 .page.client-shell-content.sidebar-collapsed{
    padding:20px 16px 40px;
  }

  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(2,minmax(170px,1fr));
  }

  body.easterp-shell-v2.sales-workspace .topbar{
    padding:0 16px;
  }
}

@media(max-width:600px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:1fr;
  }
}


/* EASTERP_CLIENT_WORKSPACE_UX_SHELL_V2_FULL_WORKSPACE_COMPLETION_V1
   Shared presentation contract for all published Client Workspace surfaces.
   Backend authorization, tenant/entity context, entitlement authority,
   module routes and business logic remain unchanged. */

body.easterp-shell-v2.core-module-workspace,
body.easterp-shell-v2.communications-workspace,
body.easterp-shell-v2.whatsapp-inbox-workspace{
  --cw2-module-sidebar:220px;
  background:var(--cw2-paper);
  color:var(--cw2-ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* Unified application header */
body.easterp-shell-v2.core-module-workspace .topbar,
body.easterp-shell-v2.communications-workspace .topbar,
body.easterp-shell-v2.whatsapp-inbox-workspace .topbar{
  min-height:60px;
  height:60px;
  padding:0 20px;
  background:var(--cw2-ink);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:none;
}

body.easterp-shell-v2.core-module-workspace .brand,
body.easterp-shell-v2.communications-workspace .brand,
body.easterp-shell-v2.whatsapp-inbox-workspace .brand{
  color:#fff;
  font-size:14px;
  font-weight:750;
}

body.easterp-shell-v2.core-module-workspace .brand small,
body.easterp-shell-v2.communications-workspace .brand small,
body.easterp-shell-v2.whatsapp-inbox-workspace .workspace,
body.easterp-shell-v2.whatsapp-inbox-workspace .user-email{
  color:#c4d0df;
  font-size:10.5px;
}

body.easterp-shell-v2.core-module-workspace .context-pill,
body.easterp-shell-v2.communications-workspace .context-pill{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:10.5px;
}

body.easterp-shell-v2.whatsapp-inbox-workspace .return-button,
body.easterp-shell-v2.whatsapp-inbox-workspace .return-link{
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:11.5px;
}

/* Core operational module shell */
body.easterp-shell-v2.core-module-workspace .layout{
  grid-template-columns:var(--cw2-module-sidebar) minmax(0,1fr);
  min-height:calc(100vh - 60px);
}

body.easterp-shell-v2.core-module-workspace .sidebar{
  background:var(--cw2-ink);
  color:#c7d3e1;
  padding:10px;
}

body.easterp-shell-v2.core-module-workspace .side-label{
  padding:13px 10px 5px;
  color:#71849d;
  font-size:9.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

body.easterp-shell-v2.core-module-workspace .side-link{
  min-height:36px;
  margin:1px 0;
  padding:8px 10px;
  border:0;
  border-radius:7px;
  color:#bcc9d9;
  font-size:12.5px;
  font-weight:650;
}

body.easterp-shell-v2.core-module-workspace .side-link:hover,
body.easterp-shell-v2.core-module-workspace .side-link:focus-visible{
  background:var(--cw2-ink-2);
  color:#fff;
}

body.easterp-shell-v2.core-module-workspace .side-link.active{
  position:relative;
  background:var(--cw2-ink-2);
  color:#fff;
}

body.easterp-shell-v2.core-module-workspace .side-link.active::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  width:3px;
  height:18px;
  transform:translateY(-50%);
  border-radius:0 3px 3px 0;
  background:var(--cw2-accent);
}

body.easterp-shell-v2.core-module-workspace .content{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  padding:24px 28px 48px;
  min-width:0;
}

body.easterp-shell-v2.core-module-workspace .page-head{
  align-items:flex-end;
  margin-bottom:18px;
}

body.easterp-shell-v2.core-module-workspace h1{
  color:var(--cw2-ink);
  font-size:25px;
  font-weight:750;
  letter-spacing:-.02em;
}

body.easterp-shell-v2.core-module-workspace .subtitle{
  margin-top:5px;
  color:var(--cw2-muted);
  font-size:12.5px;
}

body.easterp-shell-v2.core-module-workspace .return{
  min-height:34px;
  padding:7px 11px;
  border:1px solid var(--cw2-line);
  border-radius:8px;
  background:#fff;
  color:var(--cw2-ink);
  font-size:11.5px;
  font-weight:650;
}

body.easterp-shell-v2.core-module-workspace .status{
  margin-bottom:16px;
  padding:10px 13px;
  border:1px solid var(--cw2-line);
  border-radius:9px;
  background:#fff;
  color:var(--cw2-muted);
}

body.easterp-shell-v2.core-module-workspace .status.ok{
  border-color:#c9e2d5;
  background:var(--cw2-good-tint);
  color:var(--cw2-good);
}

body.easterp-shell-v2.core-module-workspace .status.error{
  border-color:#f3b7b2;
  background:#fff6f5;
  color:#b42318;
}

body.easterp-shell-v2.core-module-workspace .summary-grid{
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:12px;
  margin-bottom:18px;
}

body.easterp-shell-v2.core-module-workspace .summary-card,
body.easterp-shell-v2.core-module-workspace .panel{
  border:1px solid var(--cw2-line);
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}

body.easterp-shell-v2.core-module-workspace .summary-card{
  padding:14px 16px;
}

body.easterp-shell-v2.core-module-workspace .summary-card span{
  color:var(--cw2-muted);
  font-size:10.5px;
  font-weight:650;
  letter-spacing:0;
  text-transform:none;
}

body.easterp-shell-v2.core-module-workspace .summary-card strong{
  margin-top:7px;
  color:var(--cw2-ink);
  font-size:21px;
}

body.easterp-shell-v2.core-module-workspace .panel{
  padding:0;
  margin-bottom:14px;
  overflow:hidden;
}

body.easterp-shell-v2.core-module-workspace .panel h2{
  margin:0;
  padding:13px 15px;
  border-bottom:1px solid var(--cw2-line);
  color:var(--cw2-ink);
  font-size:13.5px;
}

body.easterp-shell-v2.core-module-workspace .data-table th{
  padding:10px 14px;
  background:#fafbfc;
  color:var(--cw2-muted);
  font-size:10px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}

body.easterp-shell-v2.core-module-workspace .data-table td{
  padding:11px 14px;
  border-bottom:1px solid #eef1f4;
  font-size:12.5px;
}

body.easterp-shell-v2.core-module-workspace .data-table tr:hover td{
  background:#fafbfc;
}

/* Communications pages: preserve their functional page structures */
body.easterp-shell-v2.communications-workspace .page,
body.easterp-shell-v2.whatsapp-inbox-workspace .page{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  padding:24px 28px 48px;
}

body.easterp-shell-v2.communications-workspace .page-header,
body.easterp-shell-v2.whatsapp-inbox-workspace .page-header{
  margin-bottom:18px;
}

body.easterp-shell-v2.communications-workspace .page-header h1,
body.easterp-shell-v2.whatsapp-inbox-workspace .page-header h1{
  color:var(--cw2-ink);
  font-size:25px;
  font-weight:750;
  letter-spacing:-.02em;
}

body.easterp-shell-v2.communications-workspace .page-header p,
body.easterp-shell-v2.whatsapp-inbox-workspace .page-header p{
  margin-top:5px;
  color:var(--cw2-muted);
  font-size:12.5px;
}

/* Shared professional controls */
body.easterp-shell-v2.core-module-workspace input,
body.easterp-shell-v2.core-module-workspace select,
body.easterp-shell-v2.core-module-workspace textarea,
body.easterp-shell-v2.communications-workspace input,
body.easterp-shell-v2.communications-workspace select,
body.easterp-shell-v2.communications-workspace textarea,
body.easterp-shell-v2.whatsapp-inbox-workspace input,
body.easterp-shell-v2.whatsapp-inbox-workspace select,
body.easterp-shell-v2.whatsapp-inbox-workspace textarea{
  border-color:#d7dee7;
  border-radius:8px;
  outline:none;
}

body.easterp-shell-v2.core-module-workspace input:focus,
body.easterp-shell-v2.core-module-workspace select:focus,
body.easterp-shell-v2.core-module-workspace textarea:focus,
body.easterp-shell-v2.communications-workspace input:focus,
body.easterp-shell-v2.communications-workspace select:focus,
body.easterp-shell-v2.communications-workspace textarea:focus,
body.easterp-shell-v2.whatsapp-inbox-workspace input:focus,
body.easterp-shell-v2.whatsapp-inbox-workspace select:focus,
body.easterp-shell-v2.whatsapp-inbox-workspace textarea:focus{
  border-color:#b9c6d5;
  box-shadow:0 0 0 3px rgba(168,82,43,.10);
}

/* WhatsApp Inbox keeps its internal conversation/sidebar semantics */
body.easterp-shell-v2.whatsapp-inbox-workspace .inbox-shell{
  border:1px solid var(--cw2-line);
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}

body.easterp-shell-v2.whatsapp-inbox-workspace .filter.active{
  background:var(--cw2-accent);
  border-color:var(--cw2-accent);
  color:#fff;
}

body.easterp-shell-v2.whatsapp-inbox-workspace .conversation:hover,
body.easterp-shell-v2.whatsapp-inbox-workspace .conversation.active{
  background:#faf6f2;
}

body.easterp-shell-v2.whatsapp-inbox-workspace .connection-status{
  background:var(--cw2-good-tint);
  color:var(--cw2-good);
}

/* Responsive completion */
@media(max-width:1180px){
  body.easterp-shell-v2.core-module-workspace .summary-grid{
    grid-template-columns:repeat(2,minmax(130px,1fr));
  }
}

@media(max-width:900px){
  body.easterp-shell-v2.core-module-workspace .layout{
    grid-template-columns:1fr;
  }

  body.easterp-shell-v2.core-module-workspace .sidebar{
    display:none;
  }

  body.easterp-shell-v2.core-module-workspace .content,
  body.easterp-shell-v2.communications-workspace .page,
  body.easterp-shell-v2.whatsapp-inbox-workspace .page{
    padding:18px 14px 36px;
  }
}

@media(max-width:600px){
  body.easterp-shell-v2.core-module-workspace .summary-grid{
    grid-template-columns:1fr;
  }

  body.easterp-shell-v2.core-module-workspace .topbar,
  body.easterp-shell-v2.communications-workspace .topbar,
  body.easterp-shell-v2.whatsapp-inbox-workspace .topbar{
    padding:0 12px;
  }
}

/* ==========================================================
   EASTERP_CLIENT_WORKSPACE_UX_SHELL_V2_FINAL_VISUAL_REMEDIATION_V1

   Presentation-only remediation based on authenticated staging
   visual certification.

   Preserves:
   - Firebase Authentication
   - tenant/entity authority
   - vendor-published module entitlement authority
   - backend callable contracts
   - business logic
   - WhatsApp delivery and ownership behavior
   ========================================================== */

body.easterp-shell-v2{
  overflow-x:hidden;
}

body.easterp-shell-v2 .page.client-shell-content{
  width:auto;
  min-width:0;
  overflow-x:hidden;
}

body.easterp-shell-v2 .client-shell-dashboard-header,
body.easterp-shell-v2 .client-module-entitlement-status,
body.easterp-shell-v2 section{
  min-width:0;
  max-width:100%;
}

/* Dashboard grid must remain inside the usable shell width. */
body.easterp-shell-v2 .client-shell-module-grid{
  width:100%;
  min-width:0;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-auto-rows:1fr;
}

body.easterp-shell-v2 .client-shell-module-card{
  width:100%;
  min-width:0;
  height:100%;
}

body.easterp-shell-v2 .client-shell-module-card strong,
body.easterp-shell-v2 .client-shell-module-card span{
  min-width:0;
  overflow-wrap:anywhere;
}

/* Header/status geometry. */
body.easterp-shell-v2 .client-shell-dashboard-header{
  gap:18px;
}

body.easterp-shell-v2 .client-shell-dashboard-header > div{
  min-width:0;
  flex:1 1 auto;
}

body.easterp-shell-v2 .client-shell-status{
  flex:0 0 auto;
  max-width:100%;
}

/* Stable application header while workspace content scrolls. */
body.easterp-shell-v2 .nav,
body.easterp-shell-v2.sales-workspace .topbar,
body.easterp-shell-v2.core-module-workspace .topbar,
body.easterp-shell-v2.communications-workspace .topbar,
body.easterp-shell-v2.whatsapp-inbox-workspace .topbar{
  position:sticky;
  top:0;
  z-index:60;
}

/*
  Tenant/entity identifiers remain authoritative internally.
  Do not expose raw technical IDs as ordinary user-facing metadata.
*/
body.easterp-shell-v2.sales-workspace .context-pill,
body.easterp-shell-v2.core-module-workspace .context-pill,
body.easterp-shell-v2.communications-workspace .context-pill{
  display:none;
}

/* Normalize module workspace content geometry. */
body.easterp-shell-v2.sales-workspace .content,
body.easterp-shell-v2.core-module-workspace .content,
body.easterp-shell-v2.communications-workspace .page,
body.easterp-shell-v2.whatsapp-inbox-workspace .page{
  width:100%;
  min-width:0;
  max-width:1500px;
}

/* Tables scroll inside their content panel, never the application shell. */
body.easterp-shell-v2 .panel,
body.easterp-shell-v2 .section-card{
  min-width:0;
  max-width:100%;
}

body.easterp-shell-v2 .panel > div[style*="overflow:auto"],
body.easterp-shell-v2 .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

body.easterp-shell-v2 .data-table{
  max-width:100%;
}

/* Keyboard accessibility. */
body.easterp-shell-v2 a:focus-visible,
body.easterp-shell-v2 button:focus-visible,
body.easterp-shell-v2 input:focus-visible,
body.easterp-shell-v2 select:focus-visible,
body.easterp-shell-v2 textarea:focus-visible{
  outline:2px solid var(--cw2-accent);
  outline-offset:2px;
}

/* Responsive dashboard grid. */
@media(max-width:1600px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:1280px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:960px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.easterp-shell-v2 .client-shell-dashboard-header{
    align-items:flex-start;
  }
}

@media(max-width:600px){
  body.easterp-shell-v2 .client-shell-module-grid{
    grid-template-columns:1fr;
  }

  body.easterp-shell-v2 .client-shell-dashboard-header{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  body.easterp-shell-v2 .client-shell-status{
    white-space:normal;
  }
}

/* ==========================================================
   EASTERP_CLIENT_WORKSPACE_PLANNED_SHELL_CONVERGENCE_V1

   Approved EastERP Client Workspace planned UI/UX convergence.
   Presentation and entitlement-filtered navigation only.
   ========================================================== */

body.planned-shell-mounted,
body.planned-shell-dashboard{
  --planned-sidebar:248px;
  --planned-header:64px;
  background:var(--cw2-paper);
  overflow-x:hidden;
}

/* ---------- persistent application header ---------- */

.planned-shell-header{
  position:sticky;
  top:0;
  z-index:100;
  height:var(--planned-header);
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 22px;
  background:var(--cw2-ink);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.planned-shell-logo{
  width:38px;
  height:38px;
  border-radius:10px;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto;
  color:#315fe9;
  font-weight:900;
}

.planned-shell-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.planned-shell-brand{
  min-width:0;
}

.planned-shell-brand strong{
  display:block;
  color:#fff;
  font-size:15px;
}

.planned-shell-brand span{
  display:block;
  margin-top:2px;
  color:#c3cede;
  font-size:11px;
}

.planned-shell-header-spacer{
  flex:1 1 auto;
}

.planned-shell-workspace-pill{
  flex:0 0 auto;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
}

.planned-shell-header-button{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
}

.planned-shell-header-button:hover{
  background:rgba(255,255,255,.16);
}

.planned-shell-menu-button{
  display:none;
}

.planned-shell-user-pill{
  display:flex;
  align-items:center;
  gap:9px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,.14);
}

.planned-shell-user-avatar{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#2b4a75;
  color:#fff;
  font-size:11.5px;
  font-weight:800;
}

.planned-shell-user-meta{
  line-height:1.2;
}

.planned-shell-user-meta strong{
  display:block;
  color:#fff;
  font-size:12.5px;
  font-weight:700;
}

.planned-shell-user-meta span{
  display:block;
  color:#a9b8cb;
  font-size:10.5px;
}

/* ---------- shell and navigation ---------- */

.planned-shell-layout{
  display:grid;
  grid-template-columns:
    var(--planned-sidebar)
    minmax(0,1fr);
  min-height:
    calc(100vh - var(--planned-header));
}

.planned-shell-sidebar{
  position:sticky;
  top:var(--planned-header);
  height:
    calc(100vh - var(--planned-header));
  overflow:auto;
  align-self:start;
  padding:12px 10px 24px;
  background:var(--cw2-ink);
  color:#c3cfdd;
}

.planned-shell-sidebar-close{
  width:36px;
  height:36px;
  display:none;
  place-items:center;
  margin:2px 4px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:9px;
  background:rgba(255,255,255,.06);
  color:#fff;
}

.planned-shell-nav-group{
  margin-top:8px;
}

.planned-shell-nav-title{
  padding:10px 10px 5px;
  color:#7890aa;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.planned-shell-nav-link{
  position:relative;
  min-height:38px;
  display:flex;
  align-items:center;
  gap:10px;
  margin:1px 0;
  padding:8px 10px;
  border-radius:8px;
  color:#c4d0df;
  text-decoration:none;
  font-size:13px;
  font-weight:650;
}

.planned-shell-nav-link:hover,
.planned-shell-nav-link:focus-visible{
  background:var(--cw2-ink-2);
  color:#fff;
}

.planned-shell-nav-link.active{
  background:#203c63;
  color:#fff;
}

.planned-shell-nav-link.active::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  width:3px;
  height:18px;
  transform:translateY(-50%);
  border-radius:0 3px 3px 0;
  background:var(--cw2-accent);
}

.planned-shell-nav-icon{
  width:18px;
  flex:0 0 18px;
  text-align:center;
}

.planned-shell-content{
  width:100%;
  min-width:0;
  overflow-x:hidden;
  padding:28px 30px 48px;
}

.planned-shell-crumb{
  margin-bottom:18px;
  color:var(--cw2-muted);
  font-size:12.5px;
  font-weight:600;
}

.planned-shell-crumb b{
  color:var(--cw2-ink);
  font-weight:800;
}

/* ---------- normalize preserved module surfaces ---------- */

body.planned-shell-mounted
.planned-shell-content
> .content,
body.planned-shell-mounted
.planned-shell-content
> .page,
body.planned-shell-mounted
.planned-shell-content
> main{
  width:100% !important;
  max-width:1500px !important;
  min-width:0 !important;
  margin:0 auto !important;
  padding:0 !important;
}

body.planned-shell-mounted .page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

body.planned-shell-mounted .page-head h1,
body.planned-shell-mounted
.planned-shell-content > main > h1{
  margin:0;
  color:var(--cw2-ink);
  font-size:28px;
  font-weight:750;
  letter-spacing:-.02em;
}

body.planned-shell-mounted .subtitle,
body.planned-shell-mounted .page-header p{
  color:var(--cw2-muted);
  font-size:13px;
}

body.planned-shell-mounted .summary-grid{
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}

body.planned-shell-mounted .summary-card{
  min-width:0;
  padding:15px 16px;
  border:1px solid var(--cw2-line);
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}

body.planned-shell-mounted .summary-card span{
  color:var(--cw2-muted);
  font-size:10.5px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}

body.planned-shell-mounted .summary-card strong{
  display:block;
  margin-top:7px;
  color:var(--cw2-ink);
  font-size:22px;
}

body.planned-shell-mounted .panel,
body.planned-shell-mounted .matrix-card,
body.planned-shell-mounted .context-card{
  max-width:100%;
  min-width:0;
  border:1px solid var(--cw2-line);
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}

body.planned-shell-mounted .panel{
  overflow:hidden;
  padding:0;
  margin-bottom:16px;
}

body.planned-shell-mounted .panel h2{
  margin:0;
  padding:13px 15px;
  border-bottom:1px solid var(--cw2-line);
  color:var(--cw2-ink);
  font-size:14px;
}

body.planned-shell-mounted
.panel > div[style*="overflow:auto"],
body.planned-shell-mounted .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

body.planned-shell-mounted .data-table{
  width:100%;
  max-width:100%;
}

body.planned-shell-mounted
.planned-shell-technical-response{
  display:none;
}

body.planned-shell-mounted
.context-pill{
  display:none !important;
}

/* Status success becomes transient toast; errors remain visible. */

.planned-shell-toast{
  position:fixed;
  left:50%;
  bottom:22px;
  z-index:150;
  opacity:0;
  pointer-events:none;
  transform:
    translateX(-50%)
    translateY(12px);
  transition:.25s ease;
  padding:11px 16px;
  border-radius:10px;
  background:var(--cw2-ink);
  color:#fff;
  box-shadow:
    0 12px 28px
    rgba(16,35,63,.28);
  font-size:12.5px;
  font-weight:650;
}

.planned-shell-toast.show{
  opacity:1;
  transform:
    translateX(-50%)
    translateY(0);
}

/* ---------- dashboard convergence ---------- */

body.planned-shell-dashboard .nav{
  height:64px;
  min-height:64px;
  padding:0 22px;
  background:var(--cw2-ink);
}

body.planned-shell-dashboard
.client-brand-copy strong{
  color:#fff;
  font-size:15px;
}

body.planned-shell-dashboard
.client-brand-copy small{
  color:#c3cede;
  font-size:11px;
}

body.planned-shell-dashboard
.client-workspace-badge{
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
}

body.planned-shell-dashboard
.notification-button{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
}

body.planned-shell-dashboard
.client-shell-sidebar{
  top:64px;
  width:248px;
  background:var(--cw2-ink);
}

body.planned-shell-dashboard
.page.client-shell-content{
  margin-left:248px;
  padding:28px 30px 48px;
}

body.planned-shell-dashboard
.client-shell-module-card{
  min-height:128px;
  padding:16px;
  border-radius:10px;
}

body.planned-shell-dashboard
.client-shell-card-icon{
  width:34px;
  height:34px;
  margin-bottom:3px;
  border-radius:9px;
}

body.planned-shell-dashboard
.planned-shell-user-source{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
}

body.planned-shell-dashboard
.planned-shell-dashboard-user{
  margin-left:0;
}

/* ---------- keyboard accessibility ---------- */

.planned-shell-header-button:focus-visible,
.planned-shell-nav-link:focus-visible,
.planned-shell-sidebar-close:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
}

/* ---------- responsive drawer ---------- */

.planned-shell-scrim{
  display:none;
}

@media(max-width:1180px){
  body.planned-shell-mounted .summary-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .planned-shell-menu-button,
  .planned-shell-sidebar-close{
    display:grid;
  }

  .planned-shell-layout{
    grid-template-columns:1fr;
  }

  .planned-shell-sidebar{
    position:fixed;
    top:64px;
    left:0;
    z-index:130;
    width:270px;
    height:calc(100vh - 64px);
    transform:translateX(-100%);
    transition:transform .2s ease;
    box-shadow:
      20px 0 40px
      rgba(0,0,0,.25);
  }

  .planned-shell-scrim{
    position:fixed;
    top:64px;
    right:0;
    bottom:0;
    left:0;
    z-index:120;
    background:rgba(10,18,30,.45);
  }

  body.planned-shell-drawer-open{
    overflow:hidden;
  }

  body.planned-shell-drawer-open
  .planned-shell-sidebar{
    transform:translateX(0);
  }

  body.planned-shell-drawer-open
  .planned-shell-scrim{
    display:block;
  }

  .planned-shell-content{
    padding:20px 16px 40px;
  }

  .planned-shell-workspace-pill{
    display:none;
  }

  body.planned-shell-mounted .page-head{
    align-items:flex-start;
  }

  /* Dashboard keeps its existing entitlement-aware mobile behavior. */
  body.planned-shell-dashboard
  .page.client-shell-content,
  body.planned-shell-dashboard
  .page.client-shell-content.sidebar-collapsed{
    margin-left:0;
    padding:20px 16px 40px;
  }
}

@media(max-width:680px){
  .planned-shell-header{
    gap:8px;
    padding:0 10px;
  }

  .planned-shell-brand span,
  .planned-shell-user-meta{
    display:none;
  }

  body.planned-shell-mounted .summary-grid{
    grid-template-columns:1fr;
  }

  body.planned-shell-mounted .page-head{
    flex-direction:column;
    gap:10px;
  }

  body.planned-shell-mounted .page-head h1,
  body.planned-shell-mounted
  .planned-shell-content > main > h1{
    font-size:24px;
  }
}

/* ==========================================================
   CLIENT WORKSPACE MODULE PRESENTATION FIDELITY V1
   ========================================================== */

.cw-domain-summary-card{
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.cw-domain-summary-card span{
  color:var(--cw2-muted,#657180);
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.cw-domain-summary-card strong{
  color:var(--cw2-ink,#10263f);
  font-size:29px;
  line-height:1;
  font-weight:750;
  letter-spacing:-.025em;
}

.cw-domain-panel{
  overflow:hidden;
}

.cw-domain-panel-head{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 20px;
  border-bottom:1px solid var(--cw2-line,#dfe4e8);
}

.cw-domain-panel-head h2{
  margin:0;
  font-size:15px;
  color:var(--cw2-ink,#10263f);
}

.cw-domain-panel-head > span{
  min-width:28px;
  height:28px;
  padding:0 9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#f0f2f4;
  color:#5e6975;
  font-size:12px;
  font-weight:700;
}

.cw-domain-table-wrap{
  overflow:auto;
}

.cw-domain-table{
  width:100%;
  min-width:880px;
  border-collapse:collapse;
}

.cw-domain-table th{
  height:42px;
  padding:0 16px;
  background:#f7f8f9;
  border-bottom:1px solid var(--cw2-line,#dfe4e8);
  color:#687582;
  font-size:11px;
  font-weight:750;
  letter-spacing:.045em;
  text-transform:uppercase;
  text-align:left;
  white-space:nowrap;
}

.cw-domain-table td{
  min-height:48px;
  padding:13px 16px;
  border-bottom:1px solid #edf0f2;
  color:#263849;
  font-size:13px;
  vertical-align:middle;
}

.cw-domain-table tbody tr:last-child td{
  border-bottom:0;
}

.cw-domain-table tbody tr:hover td{
  background:#fbfbfa;
}

.cw-domain-table .num{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.cw-domain-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}

.cw-domain-badge.good{
  background:#e7f3eb;
  color:#28714a;
}

.cw-domain-badge.warn{
  background:#f6edda;
  color:#8a6423;
}

.cw-domain-badge.neutral{
  background:#eceff2;
  color:#5e6975;
}

.cw-domain-empty{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  color:#77828c;
  font-size:13px;
  text-align:center;
}

.cw-financial-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}

.cw-financial-grid > div{
  min-height:104px;
  padding:20px;
  border-right:1px solid var(--cw2-line,#dfe4e8);
}

.cw-financial-grid > div:last-child{
  border-right:0;
}

.cw-financial-grid span{
  display:block;
  margin-bottom:12px;
  color:#6b7782;
  font-size:11px;
  font-weight:750;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.cw-financial-grid strong{
  color:var(--cw2-ink,#10263f);
  font-size:21px;
  font-variant-numeric:tabular-nums;
}

@media(max-width:900px){
  .cw-financial-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cw-financial-grid > div:nth-child(2){
    border-right:0;
  }

  .cw-financial-grid > div:nth-child(-n+2){
    border-bottom:1px solid var(--cw2-line,#dfe4e8);
  }
}

@media(max-width:600px){
  .cw-domain-summary-card{
    min-height:96px;
  }

  .cw-domain-summary-card strong{
    font-size:25px;
  }

  .cw-financial-grid{
    grid-template-columns:1fr;
  }

  .cw-financial-grid > div{
    border-right:0;
    border-bottom:1px solid var(--cw2-line,#dfe4e8);
  }

  .cw-financial-grid > div:last-child{
    border-bottom:0;
  }
}

/* ==========================================================
   CLIENT WORKSPACE FINAL VISUAL CONVERGENCE V1
   Authoritative prototype:
   - no legacy Return to EastERP Main control
   - desktop navigation is persistent
   - menu controls are mobile-only
   ========================================================== */

body.easterp-shell-v2 .return,
body.easterp-shell-v2 a.return,
body.planned-shell-active .return,
body.planned-shell-active a.return{
  display:none !important;
}

@media(min-width:901px){
  body.easterp-shell-v2 .client-shell-sidebar-toggle,
  body.easterp-shell-v2 .planned-shell-menu-button,
  body.planned-shell-active .client-shell-sidebar-toggle,
  body.planned-shell-active .planned-shell-menu-button{
    display:none !important;
  }
}

/* ==========================================================
   EASTERP_CLIENT_WORKSPACE_INTERACTIVE_OPERATIONS_V1
   ========================================================== */

.cw-operation-tabs-shell{
  min-width:0;
}

.cw-operation-tabs{
  display:flex;
  align-items:center;
  gap:4px;
  overflow-x:auto;
  margin:0 0 16px;
  padding:4px;
  border:1px solid var(--cw2-line);
  border-radius:11px;
  background:var(--cw2-surface);
  scrollbar-width:thin;
}

.cw-operation-tab{
  flex:0 0 auto;
  min-height:38px;
  padding:8px 13px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--cw2-muted);
  cursor:pointer;
  font:inherit;
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
}

.cw-operation-tab:hover{
  background:var(--cw2-paper);
  color:var(--cw2-ink);
}

.cw-operation-tab.active{
  background:var(--cw2-ink);
  color:#fff;
}

.cw-operation-tab:focus-visible{
  outline:2px solid var(--cw2-accent);
  outline-offset:2px;
}

.cw-operation-panel[hidden]{
  display:none !important;
}

.cw-operation-panel{
  min-width:0;
}

.cw-operation-panel > .cw-domain-panel:first-child{
  margin-top:0;
}

@media(max-width:680px){
  .cw-operation-tabs{
    margin-left:-2px;
    margin-right:-2px;
  }

  .cw-operation-tab{
    min-height:40px;
    padding:9px 12px;
  }
}
