/* Módulo Mi cuenta dashboard (Ecomm) + piezas comunes de las páginas de cuenta de los módulos */
.ecomm-dash { display: flex; flex-direction: column; gap: 1.25rem; }
.ecomm-dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; border-radius: var(--b2b-radius, 14px); color: #fff;
    background: radial-gradient(420px 220px at 100% 0%, rgba(47, 166, 203, .55), transparent 70%), linear-gradient(135deg, var(--b2b-primary, #1B5585) 0%, #123E63 100%); box-shadow: var(--b2b-shadow, 0 8px 24px rgba(16, 40, 60, .08)); }
.ecomm-dash-hero__id { display: flex; align-items: center; gap: 1rem; }
.ecomm-dash-hero__avatar { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .4); font-size: 1.3rem; font-weight: 800; flex: none; }
.ecomm-dash-hero__hello { font-size: .85rem; opacity: .85; }
.ecomm-dash-hero__title { color: #fff !important; font-size: 1.6rem !important; margin: .1rem 0 .5rem; }
.ecomm-dash-hero__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ecomm-dash-hero__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ecomm-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 600; }
.ecomm-chip--accent { background: #fff; color: var(--b2b-primary, #1B5585); }
.ecomm-dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ecomm-kpi { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.2rem; background: #fff; border-radius: var(--b2b-radius, 14px); box-shadow: var(--b2b-shadow, 0 8px 24px rgba(16, 40, 60, .06)); position: relative; }
.ecomm-kpi__icon { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--b2b-primary-50, #E9F1F8); color: var(--b2b-primary, #1B5585); }
.ecomm-kpi__icon svg { width: 20px; height: 20px; }
.ecomm-kpi--ok .ecomm-kpi__icon { background: #E6F6EC; color: #18A957; }
.ecomm-kpi--warn .ecomm-kpi__icon { background: #FFF3E0; color: #E39300; }
.ecomm-kpi__label { font-size: .76rem; font-weight: 600; color: var(--b2b-muted, #6B7A88); padding-right: 2.6rem; }
.ecomm-kpi__value { font-size: 1.5rem; font-weight: 800; color: #1D1D1F; letter-spacing: -.01em; margin-top: .2rem; }
.ecomm-kpi__hint { font-size: .74rem; color: #9AA6B1; }
.ecomm-dash-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.ecomm-tile { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; background: #fff; border-radius: 12px; box-shadow: var(--b2b-shadow, 0 8px 24px rgba(16, 40, 60, .06)); text-decoration: none; color: #1D1D1F; transition: transform .18s, box-shadow .18s; }
.ecomm-tile:hover { transform: translateY(-3px); box-shadow: var(--b2b-shadow-hover, 0 18px 40px rgba(16, 40, 60, .12)); color: var(--b2b-primary, #1B5585); }
.ecomm-tile__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--b2b-primary-50, #E9F1F8); color: var(--b2b-primary, #1B5585); margin-bottom: .45rem; }
.ecomm-tile__icon svg { width: 20px; height: 20px; }
.ecomm-tile__title { font-weight: 700; font-size: .9rem; }
.ecomm-tile__desc { font-size: .72rem; color: var(--b2b-muted, #6B7A88); line-height: 1.3; }
.ecomm-dash-card { background: #fff; border-radius: var(--b2b-radius, 14px); box-shadow: var(--b2b-shadow, 0 8px 24px rgba(16, 40, 60, .06)); padding: 1.2rem 1.3rem; margin-bottom: 1.25rem; }
.ecomm-dash-card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.ecomm-dash-card__head h2 { font-size: 1.02rem !important; margin: 0; }
.ecomm-dash-card__head a { font-size: .82rem; font-weight: 600; text-decoration: none; }
.ecomm-dash-orders { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ecomm-dash-orders th { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b2b-muted, #6B7A88); padding: .45rem .4rem; border-bottom: 1px solid var(--b2b-line, #E3E9EE); }
.ecomm-dash-orders td { padding: .55rem .4rem; border-bottom: 1px solid var(--b2b-line, #E3E9EE); }
.ecomm-dash-orders tr:last-child td { border-bottom: 0; }
.ecomm-dash-orders a { font-weight: 700; text-decoration: none; font-family: ui-monospace, Consolas, monospace; }
.ecomm-state { display: inline-block; padding: .12rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 700; background: #EEF2F5; color: #4A5560; }
.ecomm-state--paid { background: #E6F6EC; color: #138A47; }
.ecomm-state--awaiting_payment, .ecomm-state--partially_paid { background: #FFF3E0; color: #B87700; }
.ecomm-dash-product { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--b2b-line, #E3E9EE); }
.ecomm-dash-product:last-child { border-bottom: 0; }
.ecomm-dash-product__info { display: flex; flex-direction: column; min-width: 0; }
.ecomm-dash-product__code { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; font-weight: 700; color: var(--b2b-primary, #1B5585); }
.ecomm-dash-product__name { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecomm-dash-product__meta { font-size: .74rem; color: var(--b2b-muted, #6B7A88); }

/* Páginas de cuenta de los módulos */
.ecomm-panel { background: #fff; border-radius: var(--b2b-radius, 14px); box-shadow: var(--b2b-shadow, 0 8px 24px rgba(16, 40, 60, .06)); padding: 1.5rem 1.6rem; }
.ecomm-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ecomm-panel__title { font-size: 1.6rem !important; margin: 0 0 .25rem; }
.ecomm-panel__lead { color: var(--b2b-muted, #6B7A88); margin: 0; font-size: .9rem; }
.ecomm-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--b2b-soft, #F4F7F9); }
.ecomm-tabs a { padding: .4rem .85rem; border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--b2b-muted, #6B7A88); text-decoration: none; }
.ecomm-tabs a.is-active { background: #fff; color: var(--b2b-primary, #1B5585); box-shadow: 0 1px 3px rgba(16, 40, 60, .1); }
.ecomm-history-tools { display: flex; gap: .75rem; margin-bottom: .9rem; }
.ecomm-history-tools .form-control { max-width: 360px; }
.ecomm-history .ecomm-buy-row { margin-top: 0; }
.ecomm-empty { text-align: center; padding: 2.5rem 1rem; color: var(--b2b-muted, #6B7A88); }
.ecomm-empty__icon { width: 46px; height: 46px; color: #B5C2CE; margin-bottom: .6rem; }
@media (max-width: 1199px) { .ecomm-dash-tiles { grid-template-columns: repeat(3, 1fr); } .ecomm-dash-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ecomm-dash-tiles { grid-template-columns: repeat(2, 1fr); } .ecomm-dash-kpis { grid-template-columns: 1fr; } }
