/* ==========================================================================
   VALSTR — Global Styles + Page Structure + Caspio Bridge Skin (Responsive)
   ========================================================================== */

/* ========== Theme Tokens ========== */
:root{
  --bg: #f7f8fc;
  --panel: #ffffff;
  --ink: #0b1426;
  --muted: #6a7280;
  --primary: #0b117a;
  --primary-600: #1d2cf3;
  --accent: #2b6bff;
  --ring: #e7e9f2;
  --tile: #eaf2ff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(16,24,40,.08);
}

/* Reset + Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  color:var(--ink);
  background:var(--bg);
}

.flex-col-center {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;       /* horizontal center */
	height: 100%;  
	padding-top: 15px;
}


.embed-box * {
	font-family: Poppins !important;
}

.input, input, select, textarea {
  font-family: 'Poppins';
}

/* ========== Utilities ========== */
.hidden{display:none !important;}
.center{text-align:center}
.muted{color:var(--muted)}
.small{font-size:.92rem}
.w-full{width:100%}
.rounded{border-radius:var(--radius)}
.shadow{box-shadow:var(--shadow)}
.ring{border:1px solid var(--ring)}
.grid{display:grid}
.gap-sm{gap:10px}
.gap-md{gap:16px}
.gap-lg{gap:20px}
.gap-xl{gap:10px}


/* ========== Cards ========== */

.flex-col{display:flex;flex-flow:row;align-items:stretch;gap:16px;}

@media (max-width:1200px){
  .flex-col{display:flex;flex-flow:row wrap;align-items:stretch;gap:16px;}
}

.card{
  background:var(--panel);
  border:1px solid #c0d0ff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card-title{
  margin:0 0 12px 4px;
  font-size:22px;
  font-weight:700;
  letter-spacing:-0.01em;
  color:#162b73;
}

.card-col{
  background:linear-gradient(180deg,#ffffff 0%,#f8faff 100%);
  border:1px solid #c0d0ff;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(38,70,176,.10);
  padding:14px;
  min-width: 25%;
  flex-grow: 1;
  display:flex;
  transition:transform .2s ease, box-shadow .2s ease;
  flex-direction:column;
}

.card-description {
  background:linear-gradient(180deg,#f7f9ff 0%,#eef2ff 100%);
  border:1px solid #c0d0ff;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(38,70,176,.10);
  padding:16px;
  min-width:280px;
  flex-grow:1;
  display:flex;
  transition:transform .2s ease, box-shadow .2s ease;
  flex-direction:column;
  gap:8px;
}

.card-description p,
.card-description li,
.card-description label,
.card-description .small{
  margin:0;
  line-height:1.35;
}

.card-description > * + *{
  margin-top:6px;
}

.card-description h1{
  margin-block-start:.18em;
  margin-block-end:.28em;
  line-height:1.15;
  color:#162b73;
}
  
  .card-divider{
  background:#f5faff;
  border:1px solid var(--ring);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:8px;
  height: 100%;
  max-width: 100px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  opacity: 0.6;
  cursor: pointer;
  transition: 0.3s;
  justify-content: start;
  align-items: center;
  overflow: hidden;
  }
  
  .small-col { 
	max-width: 30%;
	opacity: 0.6;
  }
  
  .card-divider:hover {
	  opacity: 1;
  }
  
  .divider-text {
	  color: #bdd3f8;
	  font-size: 15px;
	  text-align: center;
	  line-height: 22px;
  }
  
  .divider-arrow {
	  font-size: 50px;
	  color: #bdd3f8;
	  text-align: center;

  }
  
  .divider-content {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	height: 100%;
  }
  
  /* UNUSED (candidate): empty placeholder rule retained for audit. */
  #large-right {
    /* no declarations */
  }

  #large-left {
    transition: opacity 250ms ease, transform 350ms ease, visibility 0s linear 250ms;
  }
	#large-left.is-hidden {
	  opacity: 0;
	  transform: translateX(-8px);
	  visibility: hidden;           /* delayed via transition above */
	  transition: opacity 250ms ease, transform 350ms ease, visibility 0s;
	}
  


/* ========== Buttons ========== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:800;}
.btn-primary{background:linear-gradient(145deg, #2f55ff 0%, #1231cf 65%, #0b269f 100%);color:#fff;box-shadow:0 10px 26px rgba(13,44,255,.35);transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;}
.btn-primary:hover{filter:brightness(1.1);}
.btn-ghost{background:#eef3ff;color:var(--ink);border:1px solid var(--ring);}
.btn-ghost:hover{background:#e6edff;}

/* ========== Inputs ========== */
.input,input,select,textarea{
  width:100%;padding:12px;border:1px solid var(--ring);border-radius:12px;background:#fbfcff;
  font-size:1rem;outline:none;transition:box-shadow .15s,border-color .15s;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--accent);box-shadow:0 0 0 4px rgba(43,107,255,.18);background:#fff;
}

button {
	font-family: Poppins;
}



/* ==========================================================================
   Page Structure
   ========================================================================== */

/* Sidebar */
.sidebar{
  position:fixed;inset:0 auto 0 0;width:230px;background:#0a0f3e;color:#eaf0ff;
  display:flex;flex-direction:column;padding:20px 16px;
  transform:translateX(0);transition:transform .25s ease;z-index:50;
}
.brand{display:flex;align-items:center;gap:10px;padding:6px 10px 18px;border-bottom:1px solid rgba(255,255,255,.08);}
.sidebar-close{margin-left:auto;display:none;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;}
.brand-mark{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#66a6ff,#1e2cff);}
.brand-name{font-weight:800;letter-spacing:.5px;}
.side-nav{margin-top:16px;display:grid;gap:8px;}
.side-link{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:12px;padding:12px 10px;border-radius:12px;color:#eaf0ff;text-decoration:none;font-weight:600;}
.side-link:hover{background:rgba(255,255,255,.06);}
.side-link.active{background:rgba(255,255,255,.12);}
.side-footer{margin-top:auto;display:flex;gap:10px;padding:8px 6px;}
.bubble{width:44px;height:44px;border-radius:14px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;}

/* Shell */
.shell{margin-left:230px;min-height:100%;display:flex;flex-direction:column;}

/* Topbar */
.topbar{height:64px;background:#050a33;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:40;gap:12px;}
.nav-toggle{display:none;border:0;background:transparent;color:#fff;font-size:24px;align-items:center;justify-content:center;line-height:1;min-width:40px;min-height:40px;}
.top-actions{display:flex;align-items:center;gap:12px;min-width:0;}
.top-icon{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.1);color:#fff;position:relative;}
.badge{position:absolute;right:-6px;top:-6px;background:#ff3b30;color:#fff;font-size:10px;border-radius:999px;padding:2px 6px;font-weight:700;}
.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid rgba(255,255,255,.35);}
.avatar img{width:100%;height:100%;object-fit:cover;display:block;}

.top-user-org{display:flex;align-items:center;gap:20px;}
.top-user-name{line-height:1;display:inline-flex;align-items:center;}
.top-org-switch-form{display:flex;align-items:center;gap:8px;margin:0;}
.top-org-select{width:auto;min-width:230px;margin:0;padding:5px!important;border-radius:4px!important;}
.top-org-switch-btn{padding:10px 14px;border-radius:12px;font-weight:700;line-height:1.1;border-radius:4px!important;height:37px;}
.top-logout-form{margin:0 0 0 auto;}
.top-logout-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;height:37px;border-radius:4px;font-weight:700;line-height:1.1;border:1px solid #b31515;background:#db1f1f;color:#fff;cursor:pointer;}
.top-logout-btn:hover{background:#b31515;border-color:#9f1010;}
.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(1,7,36,.5);border:0;z-index:45;}

/* Logo */
.logo{
  height:auto;
  width:100%;
  display:block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}
/* Content */
.content{padding:10px;display:grid;gap:24px;}

/* Hero */
.hero{position:relative;height:220px;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);}
.hero-img{width:100%;height:100%;object-fit:cover;filter:brightness(.65);}
.hero-greeting{position:absolute;inset:0;display:grid;place-items:center;text-align:center;}
.hero h1{color:#fff;font-size:clamp(28px,3.2vw,44px)!important;margin:0;font-weight:800!important;}
.highlight{color:#cfe4ff;}


.home-hero-modern{
  position:relative;
  border-radius:20px;
  padding:22px 24px;
  overflow:hidden;
  background:linear-gradient(135deg,#08103f 0%,#1f5fff 50%,#6d8dff 100%);
  color:#fff;
  box-shadow:0 14px 30px rgba(9,26,84,.35);
}
.home-hero-modern__content{position:relative;z-index:2;}
.home-hero-modern__eyebrow{margin:0 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.8);font-weight:600;}
.home-hero-modern h1{margin:0;font-size:clamp(22px,2.8vw,34px);line-height:1.2;font-weight:800;}
.home-hero-modern__sub{margin:8px 0 0;font-size:14px;color:rgba(255,255,255,.86);}
.home-hero-modern__glow{position:absolute;right:-50px;top:-50px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.4),rgba(255,255,255,0));pointer-events:none;}

.key-stats-modern{width:100%;max-width:100%;background:linear-gradient(180deg,#f7f9ff 0%,#eef2ff 100%);padding:18px;}
.key-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;}
.key-stat-tile{
  background:#fff;
  border:1px solid #dde5ff;
  border-radius:14px;
  padding:14px;
  min-height:130px;
  display:flex;
  flex-direction:column;
  gap:8px;
  box-shadow:0 8px 20px rgba(38,70,176,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.key-stat-tile:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(38,70,176,.16);}
.key-stat-head{display:flex;align-items:center;gap:10px;}
.key-stat-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#2f60ff,#6b88ff);color:#fff;font-size:14px;flex-shrink:0;}
.key-stat-label{font-size:14px;color:#273149;font-weight:700;line-height:1.3;}
.key-stat-desc{font-size:12px;color:#6e7a95;font-weight:600;line-height:1.45;letter-spacing:.01em;}
.key-stat-value{margin-top:auto;font-size:19px;font-weight:800;color:#1d44d1;}

.capability-overview-modern{
  width:100%;
  max-width:100%;
  background:linear-gradient(180deg,#f7f9ff 0%,#eef2ff 100%);
  padding:18px;
}
.capability-overview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.capability-panel{
  background:#fff;
  border:1px solid #dde5ff;
  border-radius:14px;
  padding:14px;
  box-shadow:0 8px 20px rgba(38,70,176,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.capability-panel--risks{grid-column:1 / span 1;}
.capability-panel__head h4{margin:0;font-size:15px;line-height:1.35;color:#273149;display:flex;align-items:center;gap:8px;}
.capability-panel__head h4 i{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(135deg,#2f60ff,#6b88ff);color:#fff;font-size:12px;flex-shrink:0;}
.capability-panel__head p{margin:3px 0 0;font-size:12px;color:#6e7a95;font-weight:600;line-height:1.4;}
.capability-item{
  background:#f7f9ff;
  border:1px solid #dce4ff;
  border-radius:10px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  color:#273149;
  font-weight:700;
}
.capability-item span:last-child{color:#1d44d1;white-space:nowrap;}
.capability-item--single span:last-child{color:inherit;}

@media (max-width: 900px){
  .capability-overview-grid{grid-template-columns:1fr;}
  .capability-panel--risks{grid-column:auto;}
}
/* Section Head */
.section-head{display:flex;align-items:center;gap:10px;}
.section-head h2{margin:0;font-size:20px;}

/* ==========================================================================
   Embed Containers
   ========================================================================== */
.embed-box{
  border-radius:14px;
  min-height:200px;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);
  height: 100%;
  align-items: flex-start;
}

.grid-container {
	display: flex;
	flex-wrap: wrap;
}

.comms-container {
	display: flex;
	flex-wrap: wrap;
}

.width-49 {
	max-width: 49% !important;
	background: #ededef;
}

.grid-box {
	background: #fff;
	flex-direction: column;
	flex: 1 0 49%;
	margin: 5px;
	max-width: 48%;
	min-height: 130px;
	min-width: 150px;
	padding: 10px;
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	justify-content: space-between;
}

.grid-title {
	font-size: 21px;
	color: #0b1426;
	align-self: flex-start;
	font-weight: 800;
	line-height: 19px;
}

.grid-stat {
	font-size: 40px;
	color: #2b6bff;
	align-self: flex-end;
	font-weight: 800;
	line-height: 30px;
}

.home-col {
	background: #fff;
	flex-direction: column;
	flex: 1 0 24%;
	margin: 5px;
	max-width: 23%;
	min-width: 100px;
	padding: 10px;
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	justify-content: space-between;
}

/* ==========================================================================
   Caspio Bridge Skin
   ========================================================================== */
.cbFormTable{width:100%;}
.cbFormLabelCell{padding:8px 10px;color:var(--muted);font-weight:600;}
.cbFormDataCell{padding:8px 10px;}
input.cbTextbox,textarea.cbTextarea,select.cbSelect{composes: input;}
input.cbSubmitButton,button.cbSubmitButton,a.cbButton{composes: btn-primary;}
a.cbButton.secondary,button.cbButton.secondary{composes: btn-ghost;}
.cbError{color:#9f1239;background:#fff1f2;border:1px solid #fecdd3;padding:8px 10px;border-radius:10px;margin-top:6px;}
.cbResultSetTable{width:100%;border-collapse:separate;border-spacing:0;background:var(--panel);border:1px solid var(--ring);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);}
.cbResultSetTable th{background:#f3f6ff;padding:12px;font-weight:700;color:var(--ink);}
.cbResultSetTable td{padding:12px;border-top:1px solid var(--ring);}
.cbResultSetTable tr:hover{background:#f7faff;}
.cbPager{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;}
.cbPager a,.cbPager span{padding:8px 12px;border:1px solid var(--ring);border-radius:10px;text-decoration:none;color:var(--ink);}
.cbPager .cbCurrentPage{background:#eef3ff;font-weight:700;}
.cbChart{background:var(--panel);border:1px solid var(--ring);border-radius:14px;box-shadow:var(--shadow);padding:14px;}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large tablets / smaller desktops */
@media (max-width:1200px){
  .content{padding:16px}
}

/* Tablets */
@media (max-width:980px){
  body.sidebar-open{overflow:hidden}
  .shell{margin-left:0}
  .nav-toggle{display:inline-flex}
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-close{display:inline-flex}
  .sidebar-backdrop.open{display:block}
  .hero{height:200px}
}

/* Mobile */
@media (max-width:720px){
  .content{padding:14px}
  .hero{height:160px}
  .section-head h2{font-size:18px}
  .side-link{padding:10px 8px}
  .card{padding:12px}
}

/* ==========================================================================
   Modules (modern card-style buttons)
   ========================================================================== */
.modules{
  display:flex;
  flex-direction:column;
  gap:16px;
  background:linear-gradient(180deg,#f7f9ff 0%,#edf2ff 100%);
  border:1px solid #dbe4ff;
  border-radius:18px;
  box-shadow:0 12px 26px rgba(31,64,170,.12);
  padding:20px;
}
.modules .card-title{
  margin:0 0 12px 4px;
}

.module-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;
  width:100%;
}

.module-btn{
  display:grid;
  grid-template-rows:auto 1fr;
  align-items:start;
  gap:12px;
  min-height:188px;
  width:100%;
  padding:18px 16px;
  border-radius:18px;
  text-decoration:none;
  color:#ffffff;
  background:linear-gradient(145deg,#2f55ff 0%,#1231cf 65%,#0b269f 100%);
  box-shadow:0 10px 28px rgba(10, 31, 132, 0.25), inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.module-btn:hover,
.module-btn:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(10, 31, 132, 0.35), inset 0 1px 0 rgba(255,255,255,.22);
  filter:brightness(1.08);
}

.module-head{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.module-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: rgba(255,255,255,.16);
}

.module-icon img{
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.module-title{
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.module-description{
  font-size: .84rem;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}

@media (max-width: 980px){
  .module-row{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));}
}

@media (max-width: 720px){
  .module-row{grid-template-columns:1fr;}
  .module-btn{min-height:auto;}
}

/* ==========================================================================
   Main content: flexible column layout
   ========================================================================== */
.flex-cols{
  display: flex;
  flex-wrap: wrap;              /* allows columns to wrap on smaller screens */
  gap: 16px;                    /* matches your spacing scale */
  align-items: stretch;
}

/* Generic column: grows, but won’t get narrower than 280px */
.col{
  flex: 1 1 320px;              /* grow | shrink | preferred width */
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Optional fixed-width columns (use as needed) */
.col-fixed-280{ flex: 0 0 280px; }
.col-fixed-320{ flex: 0 0 320px; }
.col-fixed-360{ flex: 0 0 360px; }
.col-fixed-400{ flex: 0 0 400px; }


/* Make a column sticky (e.g., filters/nav) under the 64px topbar */
.col-sticky{ position: sticky; top: 88px; }

/* Column items often are cards; these keep a consistent look */
.col .card{ padding: 16px; }

/* Responsive tweaks */
@media (max-width: 980px){
  .flex-cols{ gap: 14px; }
  /* Columns naturally wrap; no extra rules required */
}
@media (max-width: 720px){
  .flex-cols{ gap: 12px; }
  .col{ min-width: 100%; }      /* stack to a single column on narrow screens */
}


/* ==========================================================================
   Progress Tracker / Flow Chart
   ========================================================================== */
:root{
  --circle: 36px;
  --track: 3px;
  --gap: 12px;
}

/* layout */
.progress-tracker{
  display:flex;
  align-items:center;
  gap:var(--gap);
  margin:0;
  padding:20px;
  background:linear-gradient(135deg,#07103c 0%,#1d58ec 55%,#6387ff 100%);
  border-radius:18px;
  box-shadow:0 12px 28px rgba(9,26,84,.35);
}

/* steps */
.progress-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.progress-circle{
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  background:rgba(225,236,255,.2);
  border:1px solid rgba(255,255,255,.35);
  color:#eaf1ff;
  display:grid;
  place-items:center;
  font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.progress-label{
  margin-top:8px;
  font-size:.95rem;
  font-weight:700;
  color:#dce7ff !important;
  line-height:1.2;
  max-width:16ch;
  text-wrap:balance;
}

.progress-label > a {
	color:#dce7ff !important;
  text-decoration:none;
}

.completed > .progress-label > a {
	color:#bfffe8 !important;
}

.active > .progress-label > a {
	color:#ffffff !important;
}

/* connectors between steps (the rail pieces) */
.progress-connector{
  flex:1 1 auto;          /* this makes the line stretch between circles */
  height:var(--track);
  background:rgba(187,208,255,.45);
  border-radius:999px;
  align-self:center;       /* aligns with circle center line */
}

/* states */
.progress-step.completed .progress-circle{ background:#7ef0c5; color:#063626; border-color:transparent; }
.progress-step.active .progress-circle{
  background:#ffffff;
  color:#1d49d7;
  border-color:transparent;
  box-shadow:0 0 0 4px rgba(255,255,255,.24);
  transform:scale(1.04);
}
.progress-step.completed .progress-label{ color:#bfffe8 !important; }
.progress-step.active .progress-label{ color:#ffffff !important; }

.progress-connector.completed{ background:#7ef0c5; }

/* stack on narrow screens */
@media (max-width: 720px){
  .progress-tracker{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .progress-connector{ display: none; }
  .progress-step{
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .progress-label{ margin-top: 0; max-width: none; }
}
/* ==========================================================================
   Right-aligned Button Menu
   ========================================================================== */
.button-menu{
  display: flex;
  justify-content: flex-end;  /* push buttons to the right */
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;             /* allows wrap on smaller screens */
}

.button-menu .btn-wide, #goals-assistant button{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #2f55ff 0%, #1231cf 65%, #0b269f 100%);
  box-shadow: 0 10px 26px rgba(13,44,255,.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.button-menu .btn-wide:hover, #goals-assistant button:hover{
  box-shadow: 0px 4px 26px rgba(13, 44, 255, .35);
  filter: brightness(1.1);
}

.btn-wide{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #2f55ff 0%, #1231cf 65%, #0b269f 100%);
  box-shadow: 0 10px 26px rgba(13,44,255,.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-wide:hover{
  box-shadow: 0px 4px 26px rgba(13, 44, 255, .35);
  filter: brightness(1.1);
}

.help-btn {
  background: linear-gradient(145deg, #2fffff 0%, #128bcf 65%, #0b889f 100%) !important;
}



/* Mobile: stack buttons full width */
@media (max-width: 720px){
  .button-menu{
    justify-content: center;
  }
  .button-menu .btn-wide{
    flex: 1 1 100%;
    min-width: unset;
  }
}

/* RAG TABLE */

.rag-table {
	width: 100%;
	margin: 10px;
	font-style: normal;
}

.rag-row {
  display: flex;
  border: 1px solid #262626;
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.rag-number {
  font-weight: bold;
  padding: 12px 20px;
  min-width: 60px;
  text-align: center;
  color: black;
}

/* Levels with RAG colors */
.level-1 {
  background-color: #e53935; /* red */
}

.level-2 {
  background-color: #fb8c00; /* orange */
}

.level-3 {
  background-color: #fdd835; /* yellow */
}

.level-4 {
  background-color: #43a047; /* light green */
}

.level-5 {
  background-color: #2e7d32; /* dark green */
}

.rag-text {
  padding: 12px;
  flex: 1;
  color: black;
}

/* CUSTOM EMBEDS */

.cbResultSetModifyButton {
	background: #2b6bff !important;
	border-radius: 4px !important;
	text-transform: capitalize !important;
	border: 0 !important;
	width: auto !important;
}
	
.cbResultSetCancelButton {
	background: #d60000 !important;
	border-radius: 4px !important;
	text-transform: capitalize !important;
	border: 0 !important;
	width: auto !important;
	color: #fff !important;
}
	

.ST21326CA4C55A42449672C137A699553E {
width: 100%;
padding: 10px;
}

.cbResultSetData {
	font-family: Poppins !important;
	font-size: 16px !important;
}

.cbResultSetTable {
	border-radius: 5px !important;
	background: #e8e6f1 !important;
	border: 1px solid #262626 !important;
}

.cbResultSetGroup1Label {
	font-size: 18px !important;
}

.cbResultSetLabelLink {
	font-size: 18px !important;
	font-weight: bold !important;
}

.cbResultSetHeaderCell {
	background: var(--accent) !important;
}

.cbResultSetLabel {
	font-family: Poppins !important;
	font-size: 16px !important;
}

.cbUpdateButton, .cbSearchButton, .cbSubmitButton {
	display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 200px !important;
  padding: 16px 24px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  font-family: Poppins !important;
  border-radius: 14px !important;
  border: 0 !important;
  color: #fff !important;
  background: var(--accent) !important;
  box-shadow: 0 10px 26px rgba(13,44,255,.35) !important;
  cursor: pointer !important; 
  text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
  text-transform: none !important;
  height: 58px !important;
}

.cbUpdateButton:hover, .cbSearchButton:hover, .cbSubmitButton:hover{
  box-shadow: 0px 4px 26px rgba(13, 44, 255, .35);
  filter: brightness(1.1);
}

.cbFormTextField {
	min-width: 250px;
}
	
/* CHECKBOXES */

:root {
  --form-control-color: green;
  --form-control-disabled: #959495;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 0.82rem;
  height: 0.82rem;
  margin: 2px 0 2px 0;
  border: 1px solid #9fb0cb;
  border-radius: 3px;
  background: #ffffff;
  display: inline-grid;
  place-content: center;
  transform: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  /* Windows High Contrast Mode */
  background-color: #2b6cf0;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}

input[type="checkbox"]:disabled {
  --form-control-color: var(--form-control-disabled);

  color: var(--form-control-disabled);
  cursor: not-allowed;
}


.cbFormFieldCell > .GoalsFormLimit:nth-child(n+17) {
  display: none !important;
}

.GoalsFormLimit > span {
	font-size: 16px !important;
}

.GoalsFormLimit > span > label {
	padding-left: 5px !important;
}

.Dialog, .Window, #Alert {
	background: var(--panel) !important;
    border: 1px solid var(--ring) !important;
    border-radius: 5px !important;
    box-shadow: var(--shadow) !important;
    padding: 16px !important;
    min-width: 280px !important;
	overflow: hidden !important;
	font-family: Poppins !important;
}

.Title {
	background-color: #2b6bff !important;
	border-bottom: 0 !important;
	
}

.TitleText {
	font-size: 18px !important;
	font-weight: bold !important;
	color: #fff !important;
}

.ClsBtn {
	background: transparent !important;
}

.cbBulkFormData {
	font-family: Poppins !important;
	font-size: 14px !important;
}

.ButtonsCtnr {
	background: transparent !important;
	border-top: 0 !important;
	text-align: center !important;
	display: flex;
}

.SimpleButton {
	display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px !important;
	font-family: Poppins !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    border: 0 !important;
    color: #fff !important;
    background: #6390f7 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
	-webkit-text-shadow: none !important;
    text-shadow: none !important;
	flex-grow: 1;
	margin-left: 10px !important;
	margin-right: 10px !important;
}

.ActionButton {
	background: var(--accent) !important;
}


.cbResultSetActionsContainerCellspacing.cbResultSetActionsContainer.cbActionPanel > ul {
       background: #2b6bff !important;
       border-radius: 5px;
       padding: 8px;
       }

.cbActionPanel ul li {
       margin-right: 8px !important;
}

.cbResultSetBulkEditActionLink {
       color: #fff !important;
       font-weight: 800 !important; 
       font-size: 15px !important;
}

.cbResultSetBulkEditActionLink > img {
       display: none !important;
}

.cbResultSetActionsContainer {
padding-left: 0 !important;
padding-right: 0 !important;
}

.assessment-table {
	display: flex;
	flex-direction: row;
	width: 100%;
	align-items: center;
	flex-wrap: wrap;
}

.assessment-table > .module-btn {
	margin: 10px;
	width: 24%;
	display: flex;
	justify-content: space-between;
	flex-grow: 0 !important;
}
	

.cbResultSetHeaderCellNumberDate, .cbResultSetHeaderCheckBoxCell {
	background: var(--accent) !important;
}

.cbResultSetRecordIndex {
	font-size: 16px !important;
}

.cbResultSetCheckBoxCell {
	border-bottom: 1px solid var(--ring) !important;
}


/* baseline */
.sticky-box {
  position: sticky;
  top: 90px;              /* or e.g. 16px */
  z-index: 1;          /* stay above content */
  background: #fff;    /* avoid see-through when fixed at top */
  /* optional: width: fit-content; or a fixed width if layout shifts */
}

.assessment-title{ 
	font-size: 24px; 
	}
	
.ST21326CA4C55A42449672C137A699553E .cbResultSetTableCell {
	padding: 8px 8px !important;
}

/* ==========================================================================
   Help Modal
   ========================================================================== */

.help-btn, .help-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-family: "Poppins" !important;
}

/* Optional: small circular icon button */
.help-icon{
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--ring);
  background:#eef3ff;
  color:var(--ink);
  font-weight:800;
  line-height:1;
}
.help-icon:hover{ filter:brightness(1.02); }

.help-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
}

/* Backdrop */
.help-backdrop{
  position:absolute;
  inset:0;
  background:rgba(11,20,38,.55);
}

/* Dialog */
.help-dialog{
  position:relative;
  width:min(720px, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  background:var(--panel);
  border:1px solid var(--ring);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Header */
.help-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--ring);
  background:#f3f6ff;
}

.help-title{
  margin:0;
  font-size:18px;
  font-weight:800;
}

.help-close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--ring);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.help-close:hover{ background:#fbfcff; }

/* Body */
.help-body{
  padding:16px;
  overflow:auto;
  color:var(--ink);
}
.help-body p{ margin:0 0 12px; color:var(--ink); }
.help-body .muted{ color:var(--muted); }

/* Footer */
.help-footer{
  padding:14px 16px;
  border-top:1px solid var(--ring);
  display:flex;
  justify-content:flex-end;
  gap:10px;
  background:#fff;
}


/* ==========================================================================
   Tabs
   ========================================================================== */

/* Root tabs container */
.tabs{
  display: grid;
  grid-template-columns: 1fr 360px; /* content | tabs (wider rail) */
  background: var(--panel);
  border: 1px solid #c0d0ff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.tabs > * {
	  font-family: Poppins !important;
}

/* --------------------------------------------------------------------------
   Tabs header (RIGHT SIDE)
   -------------------------------------------------------------------------- */
.tabs-head{
  order: 2;
  padding: 18px;
  background: #f3f6ff;
  border-left: 1px solid var(--ring);
  display: flex;
  align-items: flex-start;
}

/* Vertical tab list */
.tablist{
  display: flex;
  flex-direction: column;
  gap: 16px; /* increased spacing */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Individual tab button */
.tab{
  appearance: none;
  width: 100%;
  text-align: left;

  padding: 14px 18px;       /* larger click target */
  border-radius: 16px;      /* heavier pill shape */
  border: 1px solid var(--ring);

  background: #ffffff;
  color: var(--ink);

  font-size: 0.95rem;
  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(16,24,40,.06);
  transition:
    background .12s ease,
    box-shadow .12s ease,
    transform .12s ease,
    filter .12s ease;
}



/* Active tab */
.tab[aria-selected="true"]{
  background: linear-gradient(145deg, #2f55ff 0%, #1231cf 65%, #0b269f 100%);
  color: #ffffff;
  border-color: rgba(13,44,255,.35);
  box-shadow: 0 10px 26px rgba(13,44,255,.25);
}

/* Keyboard focus */
.tab:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(43,107,255,.18),
    0 10px 26px rgba(16,24,40,.10);
}

/* --------------------------------------------------------------------------
   Tabs body (LEFT SIDE)
   -------------------------------------------------------------------------- */
.tabs-body{
  order: 1;
  padding: 18px;
}

/* Individual tab panel */
.tabpanel{
  min-height: 200px;
}

/* Hidden panels */
.tabpanel.hidden{
  display: none !important;
}

/* Optional inner wrapper to match embed-box / card aesthetic */
.tabpanel-inner{
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
}

/* --------------------------------------------------------------------------
   Responsive fallback (stack tabs on top on small screens)
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .tabs{
    grid-template-columns: 1fr;
  }

  .tabs-head{
    order: 1;
    border-left: 0;
    border-bottom: 1px solid var(--ring);
  }

  .tablist{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .tab{
    width: auto;
  }

  .tabs-body{
    order: 2;
  }
}




@media (max-width: 980px){
  .top-user-org{flex-wrap:wrap;justify-content:flex-end;}
  .top-org-select{min-width:180px;}
}

/* ==========================================================================
   Responsive hardening (global)
   ========================================================================== */


html, body {
  max-width: 100%;
}

.flex-col > * {
  min-width: 0;
}
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

.content,
.card,
.card-col,
.card-description,
.embed-box,
.tabs,
.help-dialog,
.progress-tracker {
  min-width: 25%;
}

.grid-container,
.comms-container,
.assessment-table {
  gap: 10px;
}

.grid-box {
  flex: 1 1 280px;
  max-width: 100%;
}

.home-col {
  flex: 1 1 220px;
  max-width: 22%;
}

.assessment-table > .module-btn {
  flex: 1 1 220px;
  width: auto;
  max-width: 100%;
}

.cbResultSetTable,
.rag-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .top-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
  }

  .top-user-org {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .top-user-name {
    display: none;
  }

  .top-org-switch-form {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .top-logout-btn {
    padding: 8px 10px;
  }

  .top-org-select {
    width: auto;
    min-width: 120px;
    max-width: 36vw;
  }

  .top-org-switch-btn {
    width: auto;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .card-divider {
    max-width: none;
    min-height: 82px;
  }

  .small-col {
    max-width: none;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .flex-col > .card-col,
  .flex-col > .card-description,
  .flex-col > .card-divider {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 720px) {
  .flex-col{ flex-flow: column nowrap; }
  .content {
    gap: 8px;
    padding: 2px;
  }

  .card-col,
  .card-description {
    min-width: 100%;
  }

  .card-col {
    padding: 2px;
    border-radius: 8px;
  }

  .embed-box {
    border: 0;
    padding: 0;
    border-radius: 8px;
  }

  .grid-box,
  .home-col,
  .module-btn,
  .assessment-table > .module-btn,
  .button-menu .btn-wide,
  .cbUpdateButton,
  .cbSearchButton,
  .cbSubmitButton {
    min-width: 100% !important;
    width: 100% !important;
  }

  .grid-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .grid-stat {
    font-size: 30px;
    line-height: 1.1;
  }

  .assessment-title {
    font-size: 20px;
  }

  .sticky-box {
    position: static;
  }
}

@media (max-width: 520px) {
  .hero {
    height: 136px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: clamp(20px, 8vw, 26px) !important;
    padding: 0 8px;
  }

  .progress-tracker {
    padding: 12px;
  }

  .top-icon,
  .avatar {
    width: 34px;
    height: 34px;
  }
}


/* ==========================================================================
   APP01/APP02 mobile maturity statements bottom sheet
   ========================================================================== */
@media (max-width: 980px) {
  .app-assessment-layout .card-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .has-mobile-bottom-sheet {
    padding-bottom: 0;
  }

  .has-mobile-bottom-sheet > .card-col:nth-child(2) {
    display: none;
  }

  .has-mobile-bottom-sheet.show-maturity-sheet > .card-col:nth-child(2) {
    display: flex;
  }

  .mobile-bottom-sheet {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    z-index: 80;
    margin: 0 !important;
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--ring);
    border-bottom: 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(16,24,40,.18);
    max-height: 40vh;
    min-height: 140px;
    overflow-y: auto;
    padding: 8px;
    font-size: 0.88rem;
  }

  .mobile-bottom-sheet .rag-row { margin-bottom: 6px; }
  .mobile-bottom-sheet .rag-number { min-width: 42px; padding: 7px 9px; font-size: 0.82rem; }
  .mobile-bottom-sheet .rag-text { padding: 7px; font-size: 0.82rem; line-height: 1.2; }
  .mobile-bottom-sheet .rag-question { position: sticky; top: 0; background: #fff; margin: 0; padding: 0 0 6px; font-size: 0.95rem; z-index: 2; }

  .maturity-sheet-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--ring);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
  }
}


@media (max-width: 420px) {
  .topbar {
    padding: 6px 8px;
    gap: 6px;
  }

  .nav-toggle {
    min-width: 34px;
    min-height: 34px;
    font-size: 20px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-org-select {
    min-width: 96px;
    max-width: 34vw;
    padding: 4px !important;
  }

  .top-org-switch-btn {
    padding: 6px 8px;
    font-size: .82rem;
  }

  .top-logout-btn span {
    display: none;
  }

  .top-logout-btn {
    width: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
    font-size: .95rem;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px){
  .home-hero-modern{padding:18px;}
  .key-stats-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
}

/* ==========================================================================
   APP02 Assessments modernisation
   ========================================================================== */
.app02-summary-card{
  background:linear-gradient(180deg,#f7f9ff 0%,#edf2ff 100%);
  border:1px solid #dbe4ff;
  border-radius:18px;
  box-shadow:0 12px 26px rgba(31,64,170,.12);
}

.app02-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
}

.app02-assessments-card{
  margin-top:2px;
}

.app02-assessment-grid{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

.app02-assessment-btn{
  min-height:210px;
}

.app02-assessment-btn .module-icon i{
  font-size:20px;
  color:#fff;
}

.app02-progress{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  width:fit-content;
  font-size:.79rem;
  font-weight:700;
  color:#f5f8ff;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  padding:6px 10px;
}

.app02-empty-state{
  display:flex;
  align-items:flex-start;
  gap:14px;
  border:1px solid #ffd9d9;
  background:linear-gradient(180deg,#fff8f8 0%,#ffecec 100%);
}

.app02-empty-state h3{
  margin:0 0 4px;
  color:#a12828;
}

.app02-empty-state p{
  margin:0;
  color:#8f3535;
}

.app02-empty-state__icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#a12828;
  background:rgba(161,40,40,.12);
}

@media (max-width:720px){
  .app02-assessment-grid{grid-template-columns:1fr;}
  .app02-assessment-btn{min-height:auto;}
}
/* Temporary placeholder used while report tabs are being implemented */
.report-placeholder {
  min-height: 140px;
}

/* ==========================================================================
   APP09 Operating Model
   ========================================================================== */
.app09-intro{
  background:linear-gradient(180deg,#f7f9ff 0%,#eef2ff 100%);
}
.app09-stepper-card{margin-top:12px;}
.app09-stepper{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.app09-stepper__item{
  display:flex;
  flex-direction:column;
  gap:6px;
  border:1px solid #d9e6ff;
  border-radius:12px;
  padding:10px;
  text-decoration:none;
  background:#fff;
}
.app09-stepper__index{
  width:24px;
  height:24px;
  border-radius:999px;
  background:#e9efff;
  color:#2649d6;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
}
.app09-stepper__label{font-size:13px;font-weight:700;color:#1d2a56;}
.app09-stepper__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  font-size:11px;
  font-weight:700;
  border-radius:999px;
  padding:3px 8px;
  background:#edf0f5;
  color:#4f5d7a;
}
.app09-stepper__badge[data-status="complete"]{background:#e5f7ed;color:#167745;}
.app09-stepper__badge[data-status="in-progress"]{background:#e8efff;color:#2946ce;}
.app09-stepper__item.is-active{border-color:#2d4ed2;box-shadow:0 6px 18px rgba(25,60,197,.12);}
.app09-stepper__item.is-complete .app09-stepper__index{background:#e5f7ed;color:#167745;}

.app09-warning h3{margin:0 0 6px;}
.app09-warning ul{margin:0;padding-left:20px;}

.app09-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.app09-summary-card{margin-top:12px;}
.app09-kpi-card{
  background:#fff;
  border:1px solid #cfe0ff;
  border-radius:12px;
  padding:12px 14px;
}
.app09-kpi-card__title{margin:0;font-size:12px;font-weight:700;color:#6a7593;}
.app09-kpi-card__value{margin:6px 0 2px;font-size:24px;font-weight:800;color:#2348d8;line-height:1;}
.app09-kpi-card__sub{margin:0;font-size:12px;color:#6a7593;}

.app09-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.app09-column h2{margin:0 0 8px;font-size:20px;color:#1d2a56;line-height:1.1;}
.app09-card{
  background:#fff;
  border:1px solid #cfe0ff;
  border-radius:12px;
  padding:14px;
  margin-bottom:12px;
}
.app09-card__index{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#4262da;margin-bottom:6px;}
.app09-card h3{margin:0;font-size:18px;line-height:1.2;color:#1d2a56;}
.app09-card p{margin:6px 0;font-size:13px;color:#5b6888;}
.app09-card span{font-size:13px;font-weight:600;color:#1f9653;}
.app09-card--primary{
  background:linear-gradient(180deg,#2f4ed0 0%,#2847c7 100%);
  border-color:#2948c8;
}
.app09-card--primary h3,
.app09-card--primary p,
.app09-card--primary span{color:#fff;}
.app09-actions{margin-top:8px;display:flex;gap:8px;}
.app09-modules-card{margin-top:12px;}
.app09-module-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  justify-items:start;
}
.app09-module-btn{
  width:100%;
  min-height:0px;
}
.app09-module-btn--primary{
  background:linear-gradient(145deg,#2e48c9 0%,#1737c6 55%,#0b269f 100%);
}
.app09-dashboard-nav--active{
  border-color:#3558d8;
  box-shadow:0 0 0 2px rgba(53,88,216,.2) inset;
}

.app09-table-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid #e6e6e6;
  border-radius:6px;
  margin-top:6px;
}
.app09-table{
  width:100%;
  min-width:100%;
  border-collapse:collapse;
  font-size:15px;
  table-layout:fixed;
}
.app09-table thead tr{background:linear-gradient(145deg,#2f55ff 0%,#1231cf 65%,#0b269f 100%);}
.app09-table thead th{
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
  background:transparent;
  color:#fff;
  text-align:left;
  padding:12px 14px;
  font-weight:700;
}
.app09-table td{
  white-space:normal;
  overflow-wrap:anywhere;
  padding:4px 12px;
  border-top:1px solid #ececec;
  background:#fff;
  vertical-align:middle;
  font-size:13px;
}
.app09-table tbody tr:nth-child(even) td{background:#fafafa;}
.app09-table tbody tr.app09-s2-function-row td{
  background:#edf2ff;
  font-weight:700;
  color:#1d2a56;
}
.app09-table tbody tr.app09-s2-dirty td{
  background:#fff8e8;
}
.app09-table tfoot th{
  background:#f3f3f3;
  color:#1d2a56;
  font-weight:800;
  border-top:1px solid #e4e4e4;
  padding:10px 14px;
}
.app09-table select,.app09-table input{
  width:100%;
  max-width:100%;
  padding:4px 6px;
  border:1px solid transparent;
  border-radius:4px;
  font-size:13px;
  background:transparent;
  box-shadow:none;
}
.s4-capability-cell{
  font-weight:700;
  color:#1d2a56;
}
.s4-role-cell{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.s4-role-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef3ff;
  color:#1d2a56;
  font-size:12px;
  line-height:1;
}
.s4-role-pill__name{
  font-weight:700;
}
.s4-role-pill input.s4-role-headcount{
  width:48px;
  min-width:48px;
  height:22px;
  border:1px solid #d4dbef;
  border-radius:5px;
  background:#fff;
  text-align:center;
  padding:0 4px;
  font-size:12px;
}
.s4-role-pill .app09-del{
  border-radius:999px;
  padding:0 7px;
  min-height:20px;
  line-height:1;
}
.s4-add-role{
  padding:3px 9px;
  min-height:24px;
  font-size:12px;
  font-weight:400;
  border-radius:999px;
  background:#1a46d6;
  color:#fff;
  border:1px solid rgba(18,49,207,.85);
}
.s4-headcount-cell{
  text-align:right;
}
.s4-headcount-value{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid #d4dbef;
  background:#f6f8ff;
  font-weight:700;
  color:#1d2a56;
}
.s4-add-role-wrap{
  margin-top:6px;
  display:flex;
  justify-content:flex-end;
}
.app09-role-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
}
.app09-role-modal[hidden]{
  display:none !important;
}
.app09-role-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(11,20,38,.55);
}
.app09-role-modal__dialog{
  position:relative;
  width:min(460px, calc(100vw - 24px));
  background:#fff;
  border:1px solid #dce3f4;
  border-radius:12px;
  box-shadow:0 18px 45px rgba(18,49,207,.2);
  padding:16px;
}
.app09-role-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.app09-role-modal__header h4{
  margin:0;
}
.app09-role-modal__close{
  border:1px solid #d4dbef;
  border-radius:8px;
  width:34px;
  height:34px;
  font-size:20px;
  line-height:1;
  color:#1d2a56;
  background:#fff;
}
.app09-role-modal__actions{
  justify-content:flex-end;
  margin-top:12px;
}
#s4-core-table tfoot .s4-core-subtotal-label{
  text-align:left;
}
#s4-core-table tfoot .s4-core-subtotal-value{
  text-align:right;
}
.app09-report-signals{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 14px;
}
.app09-report-signal{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.app09-report-signal--positive{background:#e8faef;color:#18633a;}
.app09-report-signal--warning{background:#fff3dd;color:#8c5a00;}
.app09-report-signal--risk{background:#ffe6e6;color:#a12828;}
.app09-report-signal--neutral{background:#eff2f8;color:#465474;}
.app09-report-inline-summary{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:6px 0 8px;
  font-size:12px;
  color:#4a5575;
}

@media (max-width:980px){
  .app09-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .app09-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .app09-grid{grid-template-columns:1fr;}
  .app09-card h3{font-size:18px;}
  .app09-card span{font-size:13px;}
  .app09-stepper{grid-template-columns:repeat(2,minmax(0,1fr));}
  .s4-headcount-cell{text-align:left;}
  .s4-add-role-wrap{justify-content:flex-start;}
  .s4-headcount-value{margin-bottom:4px;}
}
@media (max-width:640px){
  .app09-kpis{grid-template-columns:1fr;}
  .app09-module-grid{grid-template-columns:1fr;}
  .app09-stepper{grid-template-columns:1fr;}
  .s4-role-pill{
    width:100%;
    justify-content:space-between;
  }
  .app09-role-modal__dialog{
    width:min(96vw, 420px);
    padding:14px;
  }
  .app09-role-modal__actions{
    flex-wrap:wrap;
  }
}
.app09-form-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:8px;
}
.app09-form-grid--wide{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.app09-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.app09-field label{
  margin:0;
  font-size:12px;
  font-weight:700;
  color:#1d2a56;
}
.app09-form-grid .input,
.app09-form-grid--wide .input{
  min-height:36px;
  padding:7px 10px;
  font-size:13px;
}
.app09-del{
  padding:6px 10px;
  border-radius:8px;
  border:1px solid #cfdaf7;
  background:#f7faff;
  cursor:pointer;
}
.app09-dashboard-bars{
  display:grid;
  gap:10px;
}
.app09-dashboard-bar{
  border:1px solid #d8e3ff;
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}
.app09-dashboard-bar__meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  color:#1d2a56;
  margin-bottom:8px;
}
.app09-dashboard-bar__track{
  width:100%;
  height:10px;
  border-radius:999px;
  background:#edf2ff;
  overflow:hidden;
}
.app09-dashboard-bar__track span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(145deg,#2f55ff 0%,#1231cf 65%,#0b269f 100%);
}
.app09-rag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:66px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.app09-rag--red{background:#ffe8e8;color:#a12828;}
.app09-rag--amber{background:#fff4dc;color:#8a5b00;}
.app09-rag--green{background:#e6f7ea;color:#1e7d3f;}
.app09-heat{
  display:inline-flex;
  min-width:58px;
  justify-content:center;
  border-radius:999px;
  padding:3px 10px;
  font-weight:700;
  font-size:12px;
}
.app09-score-cell{
  text-align:center;
}
.app09-heat--low{background:#ffe8e8;color:#a12828;}
.app09-heat--mid{background:#fff4dc;color:#8a5b00;}
.app09-heat--high{background:#e6f7ea;color:#1e7d3f;}
@media (max-width:1200px){
  .app09-form-grid,
  .app09-form-grid--wide{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:720px){
  .app09-form-grid,
  .app09-form-grid--wide{grid-template-columns:1fr;}
}
.app09-tools-groups{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.app09-capability-group{
  border:1px solid #dfe5fb;
  border-radius:8px;
  padding:12px;
  background:#fcfdff;
}
.app09-capability-group__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.app09-capability-group__header h5{
  margin:0;
  color:#1d2a56;
  font-size:15px;
}
.app09-output-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.app09-output-box{
  border:1px solid #d8deef;
  border-radius:12px;
  padding:12px;
  background:#f7f9ff;
}
.app09-output-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}
.app09-output-item{
  display:block;
  padding:10px 12px;
  border:1px solid #d1daf5;
  border-radius:10px;
  text-decoration:none;
  color:#1d2a56;
  font-weight:600;
  background:#fff;
}
.app09-output-item:hover{
  border-color:#5f7cf1;
  background:#edf2ff;
}
.app09-dashboard-shell{margin-top:12px;}
.app09-dashboard-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.app09-dashboard-tab{
  border:1px solid #d1daf5;
  background:#fff;
  color:#2742b7;
  border-radius:999px;
  padding:8px 14px;
  font-weight:700;
  cursor:pointer;
}
.app09-dashboard-tab.is-active{
  background:#1f4de3;
  color:#fff;
  border-color:#1f4de3;
}
.app09-dashboard-panel{display:none;}
.app09-dashboard-panel.is-active{display:block;}
.app09-dashboard-inner-card{margin-bottom:12px;}
@media (max-width:760px){
  .app09-output-columns{grid-template-columns:1fr;}
}
