/* DBM Core v1.4 — Executive Dashboard */
.dbm-executive{background:#f4f7fb}
.dbm-executive .crm-main{min-width:0;padding:32px}
.executive-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}
.executive-heading{display:flex;align-items:flex-start;gap:14px;min-width:0}
.executive-heading h1{margin:.25rem 0 .35rem;font-size:clamp(1.9rem,3vw,2.7rem)}
.executive-subtitle{margin:0;color:var(--muted)}
.executive-date{flex:0 0 auto;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:right}
.executive-date span,.executive-date strong{display:block}
.executive-date span{color:var(--muted);font-size:.82rem}
.executive-date strong{margin-top:3px;color:var(--navy)}
.dbm-mobile-menu{display:none;width:44px;height:44px;flex:0 0 44px;padding:11px;border:1px solid var(--border);border-radius:11px;background:#fff}
.dbm-mobile-menu span{display:block;height:2px;margin:4px 0;border-radius:2px;background:var(--navy)}

.executive-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.executive-kpi{position:relative;display:block;min-width:0;padding:20px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(18,42,78,.055);color:var(--text);text-decoration:none;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.executive-kpi::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--navy)}
.executive-kpi:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(18,42,78,.09)}
.executive-kpi__label,.executive-kpi small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.executive-kpi__label{color:var(--muted);font-size:.9rem;font-weight:700}
.executive-kpi strong{display:block;margin:11px 0 8px;color:var(--navy);font-size:clamp(1.65rem,2.4vw,2.25rem);line-height:1.05}
.executive-kpi small{color:#768299}
.executive-kpi--success::before{background:#148044}
.executive-kpi--info::before{background:#1769aa}
.executive-kpi--warning::before{background:#d18b00}
.executive-kpi--danger::before{background:#c53333}

.executive-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:18px;margin-top:18px}
.executive-panel{min-width:0;padding:22px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(18,42,78,.04)}
.executive-panel--wide{grid-column:1}
.executive-panel__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.executive-panel__heading h2{margin:2px 0 0;font-size:1.18rem}
.executive-panel__heading p{margin:5px 0 0;color:var(--muted);font-size:.9rem}
.executive-panel__heading>a{flex:0 0 auto;color:var(--blue);font-size:.84rem;font-weight:700;text-decoration:none}
.executive-panel__eyebrow{color:#7a8799;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.executive-empty{margin:0;padding:18px;border-radius:11px;background:#f7f9fc;color:var(--muted)}

.executive-bars{height:260px;display:flex;align-items:flex-end;gap:13px;padding-top:10px}
.executive-bar{height:100%;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}
.executive-bar__value{font-size:.82rem;font-weight:800;color:var(--navy)}
.executive-bar__track{width:min(48px,72%);height:190px;display:flex;align-items:flex-end;border-radius:10px;background:#edf2f8;overflow:hidden}
.executive-bar__fill{display:block;width:100%;min-height:4px;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#2b8fd5,#0b4f8a)}
.executive-bar small{max-width:100%;overflow:hidden;color:var(--muted);font-size:.74rem;text-overflow:ellipsis;white-space:nowrap}

.executive-alerts{display:grid;gap:10px}
.executive-alert{display:flex;gap:11px;padding:13px;border:1px solid #e7edf5;border-radius:12px;background:#fbfcfe;color:var(--text);text-decoration:none}
.executive-alert__dot{width:9px;height:9px;flex:0 0 9px;margin-top:5px;border-radius:50%;background:#1769aa}
.executive-alert strong,.executive-alert small{display:block}
.executive-alert strong{font-size:.9rem}
.executive-alert small{margin-top:4px;color:var(--muted);font-size:.78rem;line-height:1.35}
.executive-alert--danger .executive-alert__dot{background:#c53333}
.executive-alert--warning .executive-alert__dot{background:#d18b00}
.executive-alert--success .executive-alert__dot{background:#148044}

.pipeline-summary{display:grid;gap:15px}
.pipeline-row{display:grid;grid-template-columns:minmax(120px,180px) minmax(120px,1fr) auto;align-items:center;gap:14px}
.pipeline-row__meta strong,.pipeline-row__meta span{display:block}
.pipeline-row__meta strong{font-size:.9rem}
.pipeline-row__meta span{margin-top:3px;color:var(--muted);font-size:.76rem}
.pipeline-row__bar{height:10px;border-radius:99px;background:#edf2f8;overflow:hidden}
.pipeline-row__bar span{display:block;height:100%;min-width:5%;border-radius:99px;background:linear-gradient(90deg,#1769aa,#2b8fd5)}
.pipeline-row__amount{color:var(--navy);font-size:.88rem;text-align:right}

.executive-list{display:grid}
.executive-list__row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #edf1f6}
.executive-list__row:last-child{border-bottom:0}
.executive-list__row strong,.executive-list__row small{display:block}
.executive-list__row strong{font-size:.88rem}
.executive-list__row small{margin-top:4px;color:var(--muted);font-size:.76rem}
.priority-dot{width:9px;height:9px;border-radius:50%;background:#8090a5}
.priority-dot--urgent{background:#c53333}
.priority-dot--high{background:#d18b00}
.priority-dot--normal{background:#1769aa}
.priority-dot--low{background:#148044}
.executive-status{padding:4px 7px;border-radius:999px;background:#edf3fb;color:var(--navy);font-size:.68rem;font-weight:800;text-transform:capitalize}

.executive-timeline{position:relative;display:grid;gap:0}
.executive-timeline::before{content:"";position:absolute;top:9px;bottom:9px;left:5px;width:2px;background:#e4ebf4}
.executive-timeline__item{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr);gap:11px;padding:0 0 15px}
.executive-timeline__item:last-child{padding-bottom:0}
.executive-timeline__marker{position:relative;z-index:1;width:12px;height:12px;margin-top:3px;border:3px solid #d7e9f7;border-radius:50%;background:#1769aa}
.executive-timeline__item strong,.executive-timeline__item small{display:block}
.executive-timeline__item strong{font-size:.86rem}
.executive-timeline__item small{margin-top:3px;color:var(--muted);font-size:.75rem}

.executive-documents{display:grid}
.executive-documents a{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #edf1f6;color:var(--text);text-decoration:none}
.executive-documents a:last-child{border-bottom:0}
.document-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#edf3fb;color:var(--navy);font-size:.62rem;font-weight:900}
.executive-documents strong,.executive-documents small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.executive-documents strong{font-size:.84rem}
.executive-documents small{margin-top:4px;color:var(--muted);font-size:.72rem}

@media(max-width:1180px){
  .executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .executive-layout{grid-template-columns:1fr}
  .executive-panel--wide{grid-column:auto}
}
@media(max-width:760px){
  .dbm-executive .crm-main{padding:18px}
  .dbm-mobile-menu{display:block}
  .executive-header{display:block}
  .executive-date{margin-top:15px;text-align:left}
  .executive-kpis{grid-template-columns:1fr}
  .executive-panel{padding:18px}
  .executive-panel__heading{display:block}
  .executive-panel__heading>a{display:inline-block;margin-top:9px}
  .executive-bars{height:230px;gap:7px}
  .executive-bar__track{height:165px}
  .pipeline-row{grid-template-columns:1fr auto}
  .pipeline-row__bar{grid-column:1/-1}
}
@media(max-width:420px){
  .dbm-executive .crm-main{padding:14px}
  .executive-heading{gap:10px}
  .executive-heading h1{font-size:1.7rem}
  .executive-panel{padding:15px}
  .executive-bar small{font-size:.65rem}
}
