/* STD V9.3.3 · Núcleo visual comercial consolidado.
   Sustituye únicamente los estilos todavía necesarios del antiguo workflow patch.
   No contiene renderers, observers ni lógica de negocio. */

/* Selector de esquema: Propuestas / Contratos */
.std-plan-choice{display:grid;gap:10px;padding:4px 0 8px}
.std-plan-choice label{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #d7e4ee;border-radius:12px;background:#f8fbfd;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.std-plan-choice label:hover{border-color:#9fcde0;background:#f5fbfe}
.std-plan-choice label:has(input:checked){border-color:#1aa8cf;background:#eefaff;box-shadow:0 0 0 2px rgba(26,168,207,.10)}
.std-plan-choice input{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#078db6}
.std-plan-choice span{display:flex;flex-direction:column;gap:3px;min-width:0}
.std-plan-choice b{color:#0e2d60;font-size:13px;line-height:1.25}
.std-plan-choice small{display:block;color:#64748b;font-size:11px;line-height:1.4}

/* Contenedor y tarjetas de Propuestas / Contratos */
.std-flow-shell{padding:18px;min-height:100%;background:#eef5fb}
.std-flow-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;margin-bottom:16px;background:#fff;border:1px solid #d7e4ee;border-radius:16px;box-shadow:0 8px 24px rgba(15,45,80,.05)}
.std-flow-heading h2{margin:0;color:#0e2d60;font-size:23px}.std-flow-heading p{margin:4px 0 0;color:#64748b;font-size:13px}.std-flow-heading>span{padding:7px 11px;border-radius:999px;background:#e5f6fd;color:#047da7;font-weight:800;font-size:12px}
.std-flow-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:15px;align-items:start}
.std-flow-card{min-width:0;padding:16px;background:#fff;border:1px solid #dce7ef;border-radius:15px;box-shadow:0 5px 16px rgba(15,45,80,.05)}
.std-flow-card-head{display:flex;align-items:center;gap:11px;min-width:0}.std-flow-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;background:linear-gradient(135deg,#0b78a5,#13b7d5);color:#fff;font-weight:850}
.std-flow-card-head>div{min-width:0}.std-flow-card h3{margin:0;color:#102d58;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.std-flow-card p{margin:3px 0 0;color:#718195;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.std-plan-badges{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}.std-plan-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.std-plan-badge.tradicional{background:#e5f4ff;color:#0879a5}.std-plan-badge.representacion{background:#e5faf5;color:#14806b}.std-plan-badge.empty{background:#f2f4f7;color:#697586}
.std-flow-meta{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-top:1px solid #edf2f6;color:#64748b;font-size:11px}
.std-flow-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-top:9px}.std-flow-actions button{min-height:38px;border:1px solid #cbdbe6;border-radius:9px;background:#fff;color:#31576d;font-weight:800;cursor:pointer}.std-flow-actions button.primary{border:0;background:#078db6;color:#fff}.std-flow-actions button.full{grid-column:1/-1}.std-flow-actions button:disabled{opacity:.4;cursor:not-allowed}
.std-flow-empty{grid-column:1/-1;padding:50px;text-align:center;border:1px dashed #cbdbe6;border-radius:16px;background:#fff;color:#718195}
.std-flow-card.pending{border-style:dashed;background:linear-gradient(180deg,#fff,#fbfdff)}

/* Cabecera y pestañas comerciales */
.std-flow-title-with-icon{display:flex;align-items:center;gap:12px;min-width:0}
.std-flow-title-with-icon .advisorPageIcon{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#e9f5fc;color:#087ca5;display:grid;place-items:center}
.std-flow-title-with-icon .advisorPageIcon svg{width:21px;height:21px}
#advisorTitle{display:flex;align-items:center;gap:10px}
#advisorTitle .std-module-icon{width:40px;height:40px;border-radius:12px;background:#e9f5fc;color:#087ca5;display:grid;place-items:center;flex:0 0 40px}
#advisorTitle .std-module-icon svg{width:21px;height:21px}
.std-proposal-tabs{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}
.std-proposal-tabs button{border:1px solid #cbdbe6;border-radius:10px;background:#fff;color:#31576d;padding:9px 14px;font-weight:800;cursor:pointer}
.std-proposal-tabs button.active{background:#078db6;color:#fff;border-color:#078db6}
.std-proposal-tabs b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;margin-left:5px;border-radius:999px;background:rgba(255,255,255,.22);font-size:11px}

@media(max-width:850px){
  .std-flow-heading{align-items:flex-start;flex-direction:column}
  .std-flow-grid{grid-template-columns:1fr}
}
