/* ============================================================================
 * comisiones.css — Módulo de Comisiones y Metas AT&T RedMóvil (BtoS & BtoM)
 * Integrado con el sistema de diseño "Señal" del Cotizador + Identidad AT&T.
 * ==========================================================================*/

@keyframes comFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes comPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 159, 219, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 159, 219, 0); }
}

/* Icono SVG para la pestaña "Comisiones" en barra lateral y barra superior */
.side-nav .tab[data-vista="comisiones"],
.rd-on .rd-left .tab[data-vista="comisiones"] {
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M14.8 9.5c0-1.1-1.2-1.8-2.8-1.8s-2.8.7-2.8 1.8c0 1.2 1.2 1.6 2.8 2s2.8.8 2.8 2c0 1.1-1.2 1.8-2.8 1.8s-2.8-.7-2.8-1.8'/%3E%3C/svg%3E");
}
.tab[data-vista="comisiones"]::before { content: '$'; }

.com-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 0 36px;
  animation: comFadeUp 0.28s ease-out;
}

/* ---------------- BANNER HERO EJECUTIVO "SEÑAL" (OPCIÓN A) ---------------- */
.com-banner {
  background: #17181D;
  border: 1px solid #23252C;
  border-left: 4px solid #4F46E5;
  border-radius: 16px;
  padding: 16px 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
  z-index: 20;
}
.com-suc-dd {
  position: relative;
  display: inline-block;
}
.com-suc-dd__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font: 700 12.5px/1.2 inherit;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 210px;
  max-width: 280px;
  transition: border-color .16s ease, background .16s ease;
}
.com-suc-dd__btn:hover,
.com-suc-dd.is-open .com-suc-dd__btn {
  background: rgba(255,255,255,0.14);
  border-color: #818CF8;
}
.com-suc-dd__btn-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.com-suc-dd__chev {
  font-size: 11px;
  opacity: .8;
  transition: transform .18s ease;
  flex-shrink: 0;
}
.com-suc-dd.is-open .com-suc-dd__chev { transform: rotate(180deg); }
.com-suc-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  width: 100%;
  background: rgba(28, 30, 38, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(129,140,248,0.45);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.45);
  z-index: 120;
  overflow: hidden;
}
.com-suc-dd__menu[hidden] { display: none !important; }
.com-suc-dd__search-wrap {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(20, 22, 29, 0.50);
}
.com-suc-dd__search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font: 600 12.5px/1.2 inherit;
  outline: none;
}
.com-suc-dd__search::placeholder { color: rgba(255,255,255,0.52); }
.com-suc-dd__search:focus { border-color: #818CF8; background: rgba(255,255,255,0.12); }
.com-suc-dd__list {
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(129,140,248,0.45) transparent;
}
.com-suc-dd__list::-webkit-scrollbar { width: 6px; }
.com-suc-dd__list::-webkit-scrollbar-track { background: transparent; }
.com-suc-dd__list::-webkit-scrollbar-thumb { background: rgba(129,140,248,0.42); border-radius: 99px; }
.com-suc-dd__list::-webkit-scrollbar-thumb:hover { background: rgba(129,140,248,0.7); }
.com-suc-dd__item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #E2E8F0;
  font: 600 12.5px/1.3 inherit;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.com-suc-dd__item[hidden] { display: none !important; }
.com-suc-dd__item:hover { background: rgba(79,70,229,0.28); color: #fff; }
.com-suc-dd__item.is-selected { background: #4F46E5; color: #fff; font-weight: 700; }
.com-suc-dd__empty {
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.com-banner::after {
  display: none;
}
.com-banner__left {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1;
}
.com-globe {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.com-globe svg { width: 42px; height: 42px; display: block; }
.com-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A5A1F7;
  margin-bottom: 2px;
}
.com-eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.com-title h1 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}
.com-title p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  margin: 2px 0 0;
}

.com-banner__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 1;
}
.com-seg {
  display: inline-flex;
  background: #23252C;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px;
  border-radius: 11px;
  gap: 3px;
}
.com-seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.74);
  cursor: pointer;
  transition: all 0.16s ease;
}
.com-seg__btn svg { width: 15px; height: 15px; }
.com-seg__btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.com-seg__btn.is-active {
  background: #4F46E5;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.75);
}
.com-seg__btn.is-active svg { color: #fff; }

.com-select-bar {
  background: #23252C;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 7px 11px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.com-select-bar:focus { border-color: #818CF8; }
.com-select-bar option { color: #15171C; background: #fff; }

.com-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #4F46E5;
  color: #fff;
  border: 1px solid #6366F1;
  padding: 8px 15px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.85);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.com-btn-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.com-btn-cta svg { width: 15px; height: 15px; }

/* ---------------- BARRA DE NAVEGACIÓN DE MES ---------------- */
.com-monthbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ---------------- AVISO INFORMATIVO (DISCLAIMER) ---------------- */
.com-disclaimer-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 3.5px solid #F59E0B;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.com-disclaimer-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.com-disclaimer-text {
  font-size: 12px;
  color: #92400E;
  line-height: 1.4;
  font-weight: 500;
}
.com-disclaimer-text b {
  font-weight: 700;
  color: #78350F;
}
.com-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 12px;
  padding: 4px 6px;
  box-shadow: var(--shadow);
}
.com-mbtn {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink, #15171C);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.14s ease, color 0.14s ease;
}
.com-mbtn:hover { background: #EEEDFB; color: #4338CA; }
.com-mbtn svg { width: 15px; height: 15px; }
.com-month-label {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink, #15171C);
  padding: 0 10px;
  min-width: 145px;
  text-align: center;
  text-transform: capitalize;
}

/* ---------------- 4 TARJETAS DE CORTE (DÍAS 8, 15, 23, FIN DE MES) ---------------- */
.com-cortes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.com-corte-card {
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.com-corte-card:hover {
  transform: translateY(-2px);
  border-color: #C7C5F5;
  box-shadow: var(--shadow-h);
}
.com-corte-card.is-active {
  border: 1.5px solid #4F46E5;
  background: linear-gradient(180deg, #F3F2FE 0%, #FFFFFF 90%);
  box-shadow: 0 10px 26px -12px rgba(79, 70, 229, 0.35);
}
.com-corte-card.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: #4F46E5;
}
.com-corte-meta { display: flex; flex-direction: column; gap: 2px; }
.com-corte-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5F6673);
}
.com-corte-eyebrow svg { width: 13px; height: 13px; color: #4F46E5; }
.com-corte-card.is-active .com-corte-eyebrow { color: #4338CA; }
.com-corte-dates {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink, #15171C);
}
.com-corte-sub { font-size: 11.5px; color: var(--muted, #5F6673); }
.com-corte-num { text-align: right; }
.com-corte-num strong {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink, #15171C);
  display: block;
}
.com-corte-card.is-active .com-corte-num strong { color: #4338CA; }
.com-corte-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #EEEDFB;
  color: #312E81;
  margin-top: 2px;
}
.com-corte-pill--ok { background: #DCFCE7; color: #15803D; }
.com-corte-pill--muted { background: #F1F5F9; color: #64748B; }

/* ---------------- TARJETAS DE METAS Y COMISIÓN ---------------- */
.com-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 1.55fr;
  gap: 10px;
  margin-bottom: 16px;
}
.com-metrics-row--mgr {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.55fr;
  gap: 10px;
}
.com-tiers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}
.com-tier-cell {
  position: relative;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 3px 4px;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.com-tier-cell:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}
.com-tier-cell[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #15171C;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.55);
  white-space: pre;
  z-index: 60;
  pointer-events: none;
}
.com-tier-cell:first-child[data-tip]:hover::after {
  left: 0;
  transform: none;
}
.com-tier-cell:last-child[data-tip]:hover::after {
  left: auto;
  right: 0;
  transform: none;
}
.com-tier-cell.is-current {
  background: rgba(255, 255, 255, 0.26);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.com-tier-cell small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
}
.com-tier-cell b {
  display: block;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}
.com-mcard {
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.com-mcard:hover {
  transform: translateY(-1px);
  border-color: #D9D6F6;
  box-shadow: var(--shadow-h);
}
.com-mcard--total {
  background: linear-gradient(135deg, #17181D 0%, #312E81 100%);
  border-color: #312E81;
  color: #fff;
  transition: all 0.3s ease;
}
.com-mcard--total-rojo {
  background: linear-gradient(135deg, #450A0A 0%, #991B1B 100%) !important;
  border-color: #DC2626 !important;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.28);
}
.com-mcard--total-rojo .com-mcard__top { color: #FECACA !important; }
.com-mcard--total-rojo .com-mcard__val small { color: #FECACA !important; }

.com-mcard--total-naranja {
  background: linear-gradient(135deg, #451A03 0%, #C2410C 100%) !important;
  border-color: #EA580C !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}
.com-mcard--total-naranja .com-mcard__top { color: #FED7AA !important; }
.com-mcard--total-naranja .com-mcard__val small { color: #FED7AA !important; }

.com-mcard--total-verde {
  background: linear-gradient(135deg, #022C22 0%, #047857 100%) !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}
.com-mcard--total-verde .com-mcard__top { color: #A7F3D0 !important; }
.com-mcard--total-verde .com-mcard__val small { color: #A7F3D0 !important; }
.com-mcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted, #5F6673);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  gap: 4px;
}
.com-mcard--total .com-mcard__top { color: #C7D2FE; }
.com-mcard__ic {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: #EEEDFB;
  color: #4F46E5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.com-mcard__ic svg { width: 13px; height: 13px; }
.com-mcard__edit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: #312E81;
  background: #EEEDFB;
  border: 1px solid #D9D6F6;
  padding: 2.5px 7px;
  border-radius: 7px;
  text-transform: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease;
}
.com-mcard__edit:hover { background: #E3E0F8; }
.com-mcard__edit svg { width: 11px; height: 11px; color: #4F46E5; }
.com-mcard__val {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink, #15171C);
  margin: 5px 0 3px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.com-mcard__val small {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #5F6673);
}
.com-mcard--total .com-mcard__val { color: #fff; font-size: 22px; }
.com-mcard--total .com-mcard__val small { color: #C7D2FE; font-size: 11.5px; }

.com-mbar {
  width: 100%;
  height: 5px;
  background: #ECECEE;
  border-radius: 99px;
  overflow: hidden;
  margin: 4px 0 5px;
}
.com-mbar__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4F46E5, #6366F1);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.com-mbar__fill--indigo {
  background: linear-gradient(90deg, #4338CA, #818CF8);
}
.com-mcard__foot {
  font-size: 11px;
  color: var(--muted, #5F6673);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.com-mcard--total .com-mcard__foot { color: rgba(255,255,255,0.88); }

/* ---------------- LAYOUT PRINCIPAL: CALENDARIO + CAPTURA ---------------- */
.com-work-grid {
  display: grid;
  grid-template-columns: 1fr 415px;
  gap: 16px;
  align-items: start;
}

.com-panel-card {
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.com-panel-card__head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line, #E7E7E2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.com-panel-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #15171C);
}
.com-panel-card__title svg { width: 18px; height: 18px; color: #4F46E5; }
.com-cal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted, #5F6673);
}
.com-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.com-lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.com-cal-days-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #FAFAFC;
  border-bottom: 1px solid var(--line, #E7E7E2);
  padding: 7px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #5F6673);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.com-cal-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.com-cday {
  min-height: 86px;
  border-right: 1px solid #EFEFEA;
  border-bottom: 1px solid #EFEFEA;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}
.com-cday--empty { background: #FAFAFA; cursor: default; }

/* 1. Cortes Pasados: Rojo tenue */
.com-cday--past {
  background: #FEF2F2;
  border-right-color: #FECACA;
  border-bottom-color: #FECACA;
}
.com-cday--past:hover { background: #FEE2E2; }
.com-cday--past .com-cday__num { color: #991B1B; }
.com-cday--past.com-cday--cutoff {
  background: linear-gradient(180deg, #FEE2E2 0%, #FEF2F2 100%);
  box-shadow: inset 0 0 0 1.5px #F87171;
}

/* 2. Semana de Corte Actual: Índigo Señal suave */
.com-cday--current {
  background: #F5F4FE;
  border-right-color: #DCD9F8;
  border-bottom-color: #DCD9F8;
}
.com-cday--current:hover { background: #EEEDFB; }
.com-cday--current .com-cday__num { color: #4338CA; font-weight: 800; }
.com-cday--current.com-cday--cutoff {
  background: linear-gradient(180deg, #EEEDFB 0%, #F5F4FE 100%);
  box-shadow: inset 0 0 0 1.5px #6366F1;
}

/* 3. Cortes Próximos: Gris neutro */
.com-cday--future {
  background: #F4F4F5;
  border-right-color: #E5E7EB;
  border-bottom-color: #E5E7EB;
}
.com-cday--future:hover { background: #E5E7EB; }
.com-cday--future .com-cday__num { color: #64748B; }
.com-cday--future.com-cday--cutoff {
  background: linear-gradient(180deg, #E5E7EB 0%, #F4F4F5 100%);
  box-shadow: inset 0 0 0 1.5px #94A3B8;
}

.com-cday--selected {
  box-shadow: inset 0 0 0 2.5px #4F46E5 !important;
}
.com-cday__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.com-cday__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2, #272A33);
}
.com-cutoff-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: #4F46E5;
  color: #fff;
}
.com-cutoff-tag--past   { background: #DC2626; color: #fff; }
.com-cutoff-tag--current{ background: #4F46E5; color: #fff; }
.com-cutoff-tag--future { background: #64748B; color: #fff; }
.com-cutoff-tag svg { width: 9px; height: 9px; }

/* Tarjetas superiores de corte con la misma semántica de 3 colores */
.com-corte-card--past {
  background: #FFF8F8;
  border-color: #FECACA;
}
.com-corte-card--past .com-corte-eyebrow { color: #B91C1C; }
.com-corte-card--past .com-corte-eyebrow svg { color: #DC2626; }
.com-corte-card--future {
  background: #FAFAFC;
  border-color: #E7E7E2;
}
.com-corte-card--future .com-corte-eyebrow { color: #64748B; }
.com-corte-card--future .com-corte-eyebrow svg { color: #94A3B8; }

.com-cday__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0;
}
.com-sp-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 5px;
  background: #EEEDFB;
  color: #312E81;
  border-left: 2.5px solid #4F46E5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.com-sp-chip--plata     { background: #F3F4F6; color: #4B5563; border-left-color: #66737C; }
.com-sp-chip--oro       { background: #FEF9C3; color: #92400E; border-left-color: #C88408; }
.com-sp-chip--black     { background: #F1F5F9; color: #0F172A; border-left-color: #111820; }
.com-sp-chip--platino   { background: #ECFDF5; color: #065F46; border-left-color: #00A990; }
.com-sp-chip--diamante  { background: #E0F2FE; color: #0369A1; border-left-color: #3D9DD3; }
.com-sp-chip--titanio   { background: #F1F5F9; color: #334155; border-left-color: #343E44; }
.com-sp-chip--ilimitado { background: #EEF2FF; color: #4338CA; border-left-color: #4F46E5; }
.com-cday__sum {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink, #15171C);
  text-align: right;
}

/* ---------------- INDICADORES DE REGLAS KPI OFICIALES ---------------- */
.com-rules-strip {
  margin-top: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 16px;
  padding: 15px 18px;
  box-shadow: var(--shadow);
}
.com-rules-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.com-rules-strip__head b {
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.com-rules-strip__head b svg { width: 16px; height: 16px; color: #4F46E5; }
.com-rules-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #5F6673);
}
.com-rules-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.com-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1120px) {
  .com-rules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .com-rules-grid { grid-template-columns: 1fr; }
}
.com-rbox {
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-top: 3.5px solid #94A3B8;
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.com-rbox:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-h);
}
.com-rbox--ok   { border-top-color: #16A34A; }
.com-rbox--warn { border-top-color: #D97706; }
.com-rbox--fail { border-top-color: #DC2626; }
.com-rbox__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.com-rbox__title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink, #15171C);
  letter-spacing: -0.2px;
}
.com-rbox__subtitle {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted, #5F6673);
  margin-top: 1px;
}
.com-rbox__badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 99px;
  background: #DCFCE7;
  color: #15803D;
  white-space: nowrap;
}
.com-rbox__badge--warn { background: #FEF3C7; color: #92400E; }
.com-rbox__badge--fail { background: #FEE2E2; color: #B91C1C; }
.com-rbox__badge--off  { background: #F1F5F9; color: #64748B; }
.com-rbox__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 0;
}
.com-rbox__metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.com-rbox__metric b {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink, #15171C);
}
.com-rbox__metric span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted, #5F6673);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.com-rbox__detail {
  text-align: right;
  font-size: 11.5px;
  color: var(--ink, #15171C);
  line-height: 1.35;
}
.com-rbox__detail small {
  display: block;
  font-size: 10.5px;
  color: var(--muted, #5F6673);
  margin-top: 1px;
}
.com-rbox__bar {
  height: 6px;
  border-radius: 99px;
  background: #ECECEE;
  overflow: hidden;
}
.com-rbox__bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #16A34A;
}
.com-rbox--warn .com-rbox__bar > i { background: #D97706; }
.com-rbox--fail .com-rbox__bar > i { background: #DC2626; }
.com-rbox__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  border-top: 1px dashed #E7E7E2;
  padding-top: 7px;
  margin-top: 1px;
}
.com-rbox__status {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
}
.com-rbox__status.ok   { color: #15803D; }
.com-rbox__status.warn { color: #92400E; }
.com-rbox__status.fail { color: #B91C1C; }
.com-rbox__bono {
  font-size: 11.5px;
  color: var(--muted, #5F6673);
  white-space: nowrap;
}
.com-rbox__bono b {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink, #15171C);
  margin-left: 2px;
}
.com-rbox__bono b.ok   { color: #16A34A; }
.com-rbox__bono b.warn { color: #D97706; }

/* ---------------- DETALLE DE MOVIMIENTOS DEL DÍA SELECCIONADO ---------------- */
.com-day-detail {
  margin-top: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow: var(--shadow);
}
.com-day-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.com-day-detail__head b {
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.com-day-detail__head b svg { width: 16px; height: 16px; color: #4F46E5; flex-shrink: 0; }

/* ---------------- FORMULARIO LATERAL DE REGISTRO (ESTILO SEÑAL) ---------------- */
.com-capture-head {
  background: #17181D;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #4F46E5;
}
.com-capture-head h3 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.com-capture-head h3 svg { width: 17px; height: 17px; color: #A5A1F7; }
.com-capture-body {
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.com-step-lbl {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2, #272A33);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.com-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #4F46E5;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.com-input, .com-select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1.5px solid var(--line, #E7E7E2);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #15171C);
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.com-input:focus, .com-select:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.com-plazos-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 8px;
}
.com-plazo-btn {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line, #E7E7E2);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink, #15171C);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(21, 23, 28, .05);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}
.com-plazo-btn:not(.is-active):hover {
  border-color: #A5A1F7;
  background: #F3F2FE;
  color: #312E81;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -9px rgba(79, 70, 229, .5);
}
.com-plazo-btn.is-active {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  border-color: #4338CA;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(67, 56, 202, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.com-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.com-pcard {
  border: 1.5px solid var(--line, #E7E7E2);
  border-radius: 11px;
  padding: 8px 10px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}
.com-pcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--m, #4F46E5);
}
.com-pcard:hover {
  border-color: #A5A1F7;
  background: #FAFAFE;
}
.com-pcard.is-selected {
  border-color: #4F46E5;
  background: #EEEDFB;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.16);
}
.com-pcard__name { font-size: 11.5px; font-weight: 700; color: var(--ink, #15171C); }
.com-pcard__com {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #4338CA;
}

.com-addon-list { display: flex; flex-wrap: wrap; gap: 6px; }
.com-achip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--line, #E7E7E2);
  background: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2, #272A33);
  cursor: pointer;
  transition: all 0.14s ease;
}
.com-achip svg { width: 13px; height: 13px; color: var(--muted, #5F6673); }
.com-achip:hover {
  border-color: #A5A1F7;
  background: #F3F2FE;
  color: #312E81;
}
.com-achip.is-active {
  border-color: #4F46E5;
  background: #4F46E5;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.65);
}
.com-achip.is-active svg { color: #fff; }

.com-recibo {
  background: #17181D;
  border: 1px solid #23252C;
  border-left: 4px solid #4F46E5;
  border-radius: 13px;
  padding: 12px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.com-recibo__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
.com-recibo__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 7px;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: #A5A1F7;
}
.com-recibo__total strong {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 19px;
  color: #fff;
}

.com-btn-save {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 0;
  background: #4F46E5;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.8);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.com-btn-save:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.com-btn-save:disabled { opacity: 0.6; cursor: not-allowed; }
.com-btn-save svg { width: 16px; height: 16px; }

/* ---------------- VISTA GERENCIAL BtoM ---------------- */
.com-mgr-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  align-items: start;
}
.com-table-wrap { overflow-x: auto; }
.com-table { width: 100%; border-collapse: collapse; }
.com-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted, #5F6673);
  padding: 10px 14px;
  background: #FAFAFC;
  border-bottom: 1px solid var(--line, #E7E7E2);
}
.com-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #EFEFEA;
  font-size: 13px;
  vertical-align: middle;
}
.com-exec-name { font-weight: 700; color: var(--ink, #15171C); display: block; }
.com-exec-sub { font-size: 11px; color: var(--muted, #5F6673); }
.com-mini-bar {
  width: 78px;
  height: 6px;
  background: #ECECEE;
  border-radius: 99px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
.com-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #6366F1);
}
.com-abtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid #D9D6F6;
  background: #EEEDFB;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #312E81;
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.com-abtn:hover { background: #E3E0F8; border-color: #C7C5F5; color: #1E1B4B; }
.com-abtn svg { width: 13px; height: 13px; color: #4F46E5; }
.com-abtn--primary {
  background: #4F46E5;
  border-color: #4F46E5;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, 0.7);
}
.com-abtn--primary:hover { background: #4338CA; border-color: #4338CA; color: #fff; }
.com-abtn--primary svg { color: #fff; }

.com-mov-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
}
.com-mov-item {
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border-left: 4px solid #4F46E5;
}
.com-mov-left b { font-size: 13px; display: block; color: var(--ink, #15171C); }
.com-mov-left span { font-size: 11.5px; color: var(--muted, #5F6673); }
.com-mov-right { text-align: right; flex-shrink: 0; }
.com-mov-right .btos { font-size: 11.5px; font-weight: 700; color: #4F46E5; display: block; }
.com-mov-right .btom {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #312E81;
  display: block;
}

/* ---------------- MODAL DE METAS Y TABLAS OFICIALES (ESTILO SEÑAL) ---------------- */
.com-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(21, 23, 28, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.com-modal-backdrop[hidden] { display: none; }
.com-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: #fff;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(21, 23, 28, 0.55);
}
.com-modal-card--wide { max-width: 1080px; }
.com-modal-head {
  background: #17181D;
  border-bottom: 2px solid #4F46E5;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.com-modal-head h3 { font-family: 'Familjen Grotesk', sans-serif; font-size: 17px; margin: 0; }
.com-modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #F4F4F5; }
.com-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line, #E7E7E2);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fff;
}

/* Barra de pestañas didácticas dentro del modal de Esquema Oficial */
.com-guide-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line, #E7E7E2);
  overflow-x: auto;
  flex-shrink: 0;
}
.com-gtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line, #E7E7E2);
  background: #FAFAFC;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #5F6673;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.com-gtab svg { width: 15px; height: 15px; color: #4F46E5; flex-shrink: 0; }
.com-gtab:hover { border-color: #C7C5F5; background: #F3F2FE; color: #312E81; }
.com-gtab.is-active {
  background: #4F46E5;
  color: #fff;
  border-color: #4F46E5;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.65);
}
.com-gtab.is-active svg { color: #fff; }

/* Diagrama de Fórmula Visual */
.com-formula-banner {
  background: #17181D;
  border: 1px solid #23252C;
  border-radius: 15px;
  padding: 16px 18px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr;
  align-items: center;
  gap: 10px;
}
.com-fstep {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 11px 13px;
}
.com-fstep--res {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  border-color: #818CF8;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.65);
}
.com-fstep__tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #A5A1F7; display: block; margin-bottom: 3px; }
.com-fstep--res .com-fstep__tag { color: #E0E7FF; }
.com-fstep b { font-family: 'Familjen Grotesk', sans-serif; font-size: 14.5px; display: block; margin-bottom: 3px; }
.com-fstep span { font-size: 11px; color: rgba(255,255,255,0.78); line-height: 1.35; display: block; }
.com-fop { font-family: 'Familjen Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #818CF8; text-align: center; }

/* Tarjetas didácticas de reglas y KPIs */
.com-didactic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.com-dcard {
  background: #fff;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--c, #4F46E5);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.com-dcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.com-dcard__title { display: inline-flex; align-items: center; gap: 8px; font-family: 'Familjen Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.com-dcard__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #EEEDFB; color: var(--c, #4F46E5); flex-shrink: 0; }
.com-dcard__ic svg { width: 16px; height: 16px; }
.com-dcard__pill { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #ECFDF5; color: #047857; }
.com-dcard p { font-size: 12.5px; color: #334155; line-height: 1.45; margin: 0; }
.com-dcard__example {
  background: #FAFAFC;
  border: 1px dashed #D9D6F6;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #475569;
}

/* Tarjetas de Planes y Add-ons en la Guía */
.com-gplan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.com-gplan-card {
  background: #fff;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 13px;
  padding: 12px 14px 12px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.com-gplan-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--m, #4F46E5);
}
.com-gplan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.com-gplan-name { font-family: 'Familjen Grotesk', sans-serif; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.com-gplan-renta { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #F1F5F9; color: #475569; }
.com-gplan-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.com-gplan-box { background: #FAFAFC; border: 1px solid #E7E7E2; border-radius: 9px; padding: 6px 8px; text-align: center; }
.com-gplan-box--total { background: #EEEDFB; border-color: #C7C5F5; }
.com-gplan-box--mgr { background: #F5F3FF; border-color: #C4B5FD; }
.com-gplan-box small { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: #64748B; margin-bottom: 2px; }
.com-gplan-box b { font-family: 'Familjen Grotesk', sans-serif; font-size: 15px; color: var(--ink); }
.com-gplan-box--total b { color: #312E81; font-size: 16px; }
.com-gplan-box--mgr b { color: #4F46E5; font-size: 15px; }
.com-gplan-kpis { display: flex; flex-wrap: wrap; gap: 4px; font-size: 10.5px; color: #475569; }
.com-gplan-kpis span { background: #F1F5F9; padding: 2px 6px; border-radius: 5px; font-weight: 600; }

@media (max-width: 860px) {
  .com-formula-banner { grid-template-columns: 1fr; }
  .com-fop { display: none; }
  .com-didactic-grid, .com-gplan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  .com-cortes-row { grid-template-columns: repeat(2, 1fr); }
  .com-metrics-row { grid-template-columns: repeat(3, 1fr); }
  .com-metrics-row--mgr { grid-template-columns: repeat(3, 1fr); }
  .com-work-grid, .com-mgr-grid { grid-template-columns: 1fr; }
  .com-rules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .com-metrics-row, .com-metrics-row--mgr { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .com-cortes-row, .com-metrics-row, .com-metrics-row--mgr, .com-rules-grid { grid-template-columns: 1fr; }
  .com-cday { min-height: 68px; padding: 4px; }
}

/* ============================================================================
 * REDISEÑO VISTA EJECUTIVO (2026-11) — solo presentación, sin cambios de cálculo.
 * Encabezado con frase de avance, cortes compactos, ventas del corte,
 * calendario plegable, tarjetas de plan con renta/comisión y botón flotante.
 * ==========================================================================*/

/* ---- Encabezado de avance del corte ---- */
.com-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid var(--line, #E7E7E2);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.com-hero__main {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.com-hero__eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338CA;
}
.com-hero__title {
  margin: 0;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink, #15171C);
}
.com-hero__title em { font-style: normal; color: #4F46E5; }
.com-hero__sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted, #5F6673); }
.com-hero__bar {
  position: relative;
  height: 12px;
  margin-top: 8px;
  background: #E8E8F0;
  border-radius: 99px;
}
.com-hero__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: #4F46E5;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.com-hero__mark {
  position: absolute; top: -4px; bottom: -4px;
  width: 2px; margin-left: -1px;
  background: #A3A8B8;
  border-radius: 2px;
}
.com-hero__mark--70 { background: #15171C; }
.com-hero__scale { position: relative; height: 16px; font-size: 11.5px; font-weight: 600; color: var(--muted, #5F6673); }
.com-hero__scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.com-hero__scale span:last-child { transform: translateX(-100%); }
.com-hero__scale span:first-child { color: #15171C; font-weight: 800; }

.com-hero__breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.com-hb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}
.com-hb-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
  flex-shrink: 0;
}
.com-hb-pill b { color: #0F172A; font-weight: 700; }
.com-hb-pill--ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.com-hb-pill--ok i { background: #16A34A; }
.com-hb-pill--ok b { color: #14532D; }
.com-hb-pill--mid { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.com-hb-pill--mid i { background: #D97706; }
.com-hb-pill--mid b { color: #78350F; }
.com-hb-pill--off { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.com-hb-pill--off i { background: #DC2626; }
.com-hb-pill--off b { color: #7F1D1D; }

.com-hero__money {
  flex: 1 1 300px;
  min-width: 0;
  background: #17181D;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid #6366F1;
}
.com-hero__money--mid { border-top-color: #F59E0B; }
.com-hero__money--ok { border-top-color: #22C55E; }
.com-hero__money-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #C7D2FE; }
.com-hero__pill { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.com-hero__amount { font-family: 'Familjen Grotesk', sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.com-hero__amount small { font-size: 13px; font-weight: 600; color: #C7D2FE; }
.com-hero__minibar { height: 5px; background: rgba(255,255,255,0.16); border-radius: 99px; overflow: hidden; }
.com-hero__minibar div { height: 100%; background: #fff; border-radius: 99px; }
.com-hero__tiers-lbl { font-size: 11px; color: #A5B4FC; }
.com-hero__money .com-tiers-strip { margin-top: 0; }
.com-hero__foot { font-size: 12px; color: #D1D5DB; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 8px; }
.com-hero__foot b { color: #fff; }

/* ---- Cortes compactos ---- */
.com-cortes-row--compact { gap: 10px; margin-bottom: 14px; }
.com-cortes-row--compact .com-corte-card { padding: 10px 14px; box-shadow: none; }
.com-cortes-row--compact .com-corte-dates { font-size: 14px; }
.com-cortes-row--compact .com-corte-num strong { font-size: 17px; }

/* ---- Métricas: 5 tarjetas que se acomodan solas ---- */
.com-metrics-row:not(.com-metrics-row--mgr) {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* ---- Ventas del corte ---- */
.com-misventas { margin-bottom: 14px; }
.com-misventas__count { font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted, #5F6673); margin-left: 4px; }
.com-mv-list { display: flex; flex-direction: column; }
.com-mv-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid #F1F1F4;
}
.com-mv-row:first-child { border-top: 0; }
/* "Ver más": las ventas más viejas quedan ocultas hasta que se abren. */
.com-mv-row[hidden] { display: none !important; }
.com-mv-vermas {
  display: block; width: calc(100% - 36px); margin: 8px 18px 14px; padding: 10px 14px;
  border: 1px dashed #C7C9F7; border-radius: 12px; background: #F6F6FE; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: #4338CA; text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.com-mv-vermas:hover { background: #EEF0FF; border-color: #6366F1; }
html[data-theme="dark"] .com-mv-vermas { background: rgba(129, 140, 248, .1); border-color: rgba(129, 140, 248, .35); color: #c7d2fe; }
.com-mv-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; background: #F4F4F8; border-radius: 10px; padding: 5px 0; }
.com-mv-date b { font-size: 10.5px; font-weight: 700; color: var(--muted, #5F6673); text-transform: uppercase; }
.com-mv-date span { font-family: 'Familjen Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink, #15171C); }
.com-mv-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.com-mv-info b { font-size: 13.5px; color: var(--ink, #15171C); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-mv-info span { font-size: 12px; color: var(--muted, #5F6673); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-mv-ref { font-weight: 500; color: var(--muted, #5F6673) !important; font-size: 12px !important; }
.com-mv-amt { font-family: 'Familjen Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink, #15171C); }
.com-mv-actions { display: flex; gap: 6px; }
.com-abtn--danger { background: #FEF2F2 !important; border-color: #FECACA !important; color: #B91C1C !important; }
.com-mv-empty { padding: 18px; font-size: 13px; color: var(--muted, #5F6673); }

/* ---- Calendario plegable ---- */
.com-cal-fold { margin-bottom: 14px; }
.com-cal-fold__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px dashed #C9C8DA;
  border-radius: 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #4338CA;
  cursor: pointer;
  text-align: left;
}
.com-cal-fold__toggle:hover { border-color: #4F46E5; background: #FAFAFE; }
.com-cal-fold__toggle > svg { width: 18px; height: 18px; flex: none; }
.com-cal-fold__toggle span { flex: 1; }
.com-cal-fold__chev { display: inline-flex; width: 18px; height: 18px; transition: transform 0.2s ease; }
.com-cal-fold__chev svg { width: 18px; height: 18px; }
.com-cal-fold.is-open .com-cal-fold__chev { transform: rotate(90deg); }
.com-cal-fold.is-open .com-cal-fold__toggle { margin-bottom: 10px; border-style: solid; }

/* ---- Tarjetas de plan: renta y comisión separadas ---- */
.com-pcard { gap: 8px; min-height: 54px; }
.com-pcard__left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.com-pcard__renta { font-size: 11px; color: var(--muted, #5F6673); font-weight: 500; }
.com-pcard__right { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.com-pcard__right small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6366F1; }
.com-recibo__note { font-size: 11px; line-height: 1.4; color: #A5B4FC; margin-top: 6px; }

/* ---- Botón flotante "Registrar venta" ---- */
.com-fab {
  position: fixed;
  right: 20px;
  bottom: calc(24px + var(--safe-b, 0px));
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #4F46E5;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(79, 70, 229, 0.6);
  animation: comFadeUp 0.2s ease-out;
}
.com-fab[hidden] { display: none; }
.com-fab:hover { background: #4338CA; }
.com-fab svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .com-fab { bottom: calc(92px + var(--safe-b, 0px)); right: 14px; }
}
@media (max-width: 620px) {
  .com-hero { padding: 16px; }
  .com-hero__amount { font-size: 28px; }
  .com-mv-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px 14px; }
  .com-mv-actions { grid-column: 2 / -1; }
}

/* ============================================================================
 * REDISEÑO CONSOLIDADO TIENDA (GERENTE · BtoM) — solo presentación.
 * ==========================================================================*/
.com-metrics-row--mgr { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important; }
.com-mgr-grid { grid-template-columns: 1fr !important; }

/* A quién empujar hoy */
.com-push { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.com-push__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #9A3412; text-transform: uppercase; letter-spacing: 0.04em; }
.com-push__lbl svg { width: 14px; height: 14px; }
.com-push__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 44px; padding: 7px 12px;
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px;
  font: inherit; text-align: left; cursor: pointer;
}
.com-push__item:hover { border-color: #F97316; background: #FFEDD5; }
.com-push__item b { font-size: 13px; color: var(--ink, #15171C); }
.com-push__item span { font-size: 11.5px; color: #9A3412; font-weight: 600; }

/* Aviso de reparto incompleto */
.com-alert-reparto {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: #FFFBEB; border: 1px solid #F59E0B; border-radius: 14px;
  padding: 12px 16px; margin-bottom: 14px;
}
.com-alert-reparto__ic { width: 36px; height: 36px; border-radius: 10px; background: #FEF3C7; color: #B45309; display: grid; place-items: center; flex: none; }
.com-alert-reparto__ic svg { width: 18px; height: 18px; }
.com-alert-reparto__txt { flex: 1 1 320px; font-size: 13px; line-height: 1.45; color: #78350F; }
.com-alert-reparto__txt b { color: #92400E; }

/* Pastillas de escalón por ejecutivo */
.com-esc-pill { display: inline-block; vertical-align: middle; margin-left: 4px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.com-esc-pill--ok { background: #DCFCE7; color: #166534; }
.com-esc-pill--mid { background: #FFEDD5; color: #9A3412; }
.com-esc-pill--ko { background: #FEE2E2; color: #991B1B; }
.com-esc-pill--none { background: #F1F5F9; color: #475569; }
.com-exec-next { display: block; font-size: 11.5px; font-weight: 700; color: #4338CA; margin-top: 2px; }
.com-td-pct { font-size: 11px; color: var(--muted, #5F6673); font-weight: 600; }
.com-td-actions { white-space: nowrap; }
.com-td-actions .com-abtn + .com-abtn { margin-left: 6px; }

/* Orden de la tabla */
.com-sortseg { display: inline-flex; background: #F1F1F6; border-radius: 10px; padding: 3px; gap: 2px; }
.com-sortseg__btn { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted, #5F6673); padding: 6px 10px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.com-sortseg__btn.is-active { background: #fff; color: #312E81; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Movimientos de tienda */
.com-mv-row--mgr { grid-template-columns: 46px minmax(0, 1fr) auto auto; }
.com-mv-amt--two { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.com-mv-amt--two span { font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted, #5F6673); }
.com-mv-amt--two b { font-size: 15px; color: #312E81; }
.com-select--sm { width: auto; min-width: 190px; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; }

/* Buscador de sucursal (admin) */
.com-busca-suc { width: 170px; cursor: text; }
.com-busca-suc::placeholder { color: rgba(255,255,255,0.55); }

/* Tabla de ejecutivos como tarjetas en pantallas angostas */
@media (max-width: 760px) {
  .com-table--cards thead { display: none; }
  .com-table--cards, .com-table--cards tbody, .com-table--cards tr, .com-table--cards td { display: block; width: 100%; }
  .com-table--cards tr { border-bottom: 1px solid var(--line, #E7E7E2); padding: 10px 14px; }
  .com-table--cards td { border: 0; padding: 5px 0; }
  .com-table--cards td:not(:first-child)::before {
    content: attr(data-label);
    display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--muted, #5F6673); margin-bottom: 2px;
  }
  .com-table--cards .com-mini-bar { margin-left: 0; display: block; margin-top: 4px; width: 100%; }
  .com-td-actions { white-space: normal; display: flex !important; gap: 6px; flex-wrap: wrap; }
  .com-td-actions .com-abtn + .com-abtn { margin-left: 0; }
  .com-busca-suc { width: 100%; }
}

/* ---- Rediseño: la tarjeta de cobro cambia de color en degradado continuo (rojo → verde) ---- */
.com-hero__money { transition: background 0.4s ease, box-shadow 0.4s ease; border-top: 0; }
.com-hero__money--neutral { background: linear-gradient(135deg, #17181D 0%, #2E2B6E 100%); }
.com-hero__money--sem .com-hero__money-top,
.com-hero__money--sem .com-hero__tiers-lbl,
.com-hero__money--sem .com-hero__amount small { color: var(--sem-soft, #E5E7EB); }
.com-hero__money .com-hero__foot { color: rgba(255,255,255,0.88); border-top-color: rgba(255,255,255,0.18); }

/* ---- Rediseño: bloque único de ventas (Lista del corte | Calendario), desplegable ---- */
.com-ventas-block { background: #FFFFFF; border: 1px solid var(--line, #E7E7E2); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.com-ventas-block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.com-ventas-block.is-open .com-ventas-block__head { border-bottom: 1px solid var(--line, #E7E7E2); }
.com-ventas-block__toggle,
.com-ventas-block__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; border: 0; background: transparent; font: inherit; text-align: left; padding: 0 4px; }
.com-ventas-block__toggle { cursor: pointer; }
.com-ventas-block__toggle span,
.com-ventas-block__title span { font-family: 'Familjen Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink, #15171C); }
.com-ventas-block__toggle small,
.com-ventas-block__title small { font-size: 12.5px; color: var(--muted, #5F6673); }
.com-ventas-block__toggle .com-cal-fold__chev { color: #4F46E5; }
.com-ventas-block.is-open .com-ventas-block__toggle .com-cal-fold__chev { transform: rotate(90deg); }
.com-ventas-block .com-sortseg__btn { display: inline-flex; align-items: center; gap: 6px; }
.com-ventas-block .com-sortseg__btn svg { width: 14px; height: 14px; }
.com-ventas-block .com-misventas { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.com-ventas-block .com-panel-card { border: 0; border-radius: 0; box-shadow: none; }
.com-ventas-block .com-day-detail { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.com-ventas-cal-hint { padding: 10px 18px 0; font-size: 12.5px; color: var(--muted, #5F6673); }


/* ---- Opción 1: Tablero ancho completo + Drawer lateral deslizable para Registrar Venta ---- */
.com-work-full {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.com-ventas-block__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.com-btn-nueva-venta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF;
  font: 700 13px/1 inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79,70,229,0.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.com-btn-nueva-venta svg { width: 15px; height: 15px; }
.com-btn-nueva-venta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(79,70,229,0.36);
  filter: brightness(1.05);
}

.com-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 28, 0.44);
  z-index: 900;
  opacity: 0;
  transition: opacity .24s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity;
}
.com-drawer-backdrop.is-open {
  opacity: 1;
}
.com-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 96vw);
  background: rgba(255, 255, 255, 0.94);
  z-index: 910;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.28);
  transform: translate3d(100%, 0, 0);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.com-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.com-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  background: #17181D;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.com-drawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.com-drawer__title h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}
.com-drawer__title h3 svg { width: 17px; height: 17px; color: #818CF8; }
.com-drawer__pill {
  font-size: 11px;
  font-weight: 700;
  color: #C7D2FE;
  background: rgba(79,70,229,0.32);
  border: 1px solid rgba(129,140,248,0.45);
  padding: 3px 9px;
  border-radius: 99px;
}
.com-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, color .15s ease;
}
.com-drawer__close:hover { background: rgba(255,255,255,0.18); color: #FFFFFF; }

.com-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.com-drawer__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.com-drawer__sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.com-op-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 11px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}
.com-op-seg__btn {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font: 700 13px/1.2 inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.com-op-seg__btn.is-active {
  background: #4F46E5;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79,70,229,0.28);
}

.com-catpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.com-catpill {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font: 700 12px/1.2 inherit;
  cursor: pointer;
  transition: all .14s ease;
}
.com-catpill:hover { border-color: #818CF8; color: #312E81; }
.com-catpill.is-active {
  background: #EEF2FF;
  border-color: #4F46E5;
  color: #3730A3;
  box-shadow: 0 0 0 1px #4F46E5;
}

.com-cat-hint {
  font-size: 11.5px;
  line-height: 1.35;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
}
.com-cat-hint--ok { color: #065F46; background: #ECFDF5; border-color: #A7F3D0; }
.com-cat-hint--info { color: #0369A1; background: #F0F9FF; border-color: #BAE6FD; }
.com-cat-hint--warn { color: #92400E; background: #FEF3C7; border-color: #FDE68A; }

.com-plan-grid--drawer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.com-plan-grid--drawer .com-pcard {
  padding: 8px 10px;
}

.com-addon-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.com-addon-group__lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
}

.com-drawer__foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #17181D;
  color: #FFFFFF;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.com-drawer__summary {
  min-width: 0;
}
.com-drawer__breakdown {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.com-drawer__total {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}
.com-drawer__total small {
  font-size: 12px;
  font-weight: 700;
  color: #A5B4FC;
}
.com-drawer__foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.com-drawer__save {
  width: auto !important;
  padding: 11px 18px !important;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .com-drawer__row2 { grid-template-columns: 1fr; }
  .com-drawer__foot { flex-direction: column; align-items: stretch; }
  .com-drawer__foot-actions { width: 100%; }
  .com-drawer__save { width: 100% !important; justify-content: center; }
}


/* ---- Popup centrado de ventas por día al hacer clic en una fecha del Calendario ---- */
.com-daypop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 28, 0.46);
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .22s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity;
}
.com-daypop-backdrop.is-open {
  opacity: 1;
}
.com-daypop {
  position: relative;
  width: min(640px, 100%);
  max-height: 84vh;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.34);
  z-index: 890;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.95);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .22s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}
.com-daypop.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.com-daypop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: #17181D;
  color: #FFFFFF;
  flex-shrink: 0;
}
.com-daypop__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.com-daypop__title h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}
.com-daypop__title h3 svg { width: 17px; height: 17px; color: #818CF8; }
.com-daypop__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.com-daypop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #E7E7E2);
}
.com-daypop__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.com-daypop__empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted, #5F6673);
}
.com-daypop__empty p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink, #15171C);
}
.com-daypop__empty small { font-size: 12px; }
.com-daypop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: #F8FAFC;
  border-top: 1px solid var(--line, #E7E7E2);
  flex-shrink: 0;
}


/* ---- Compactación inteligente del ritmo vertical (ahorra ~280px sin amontonar) ---- */
.com-banner {
  padding: 15px 20px;
  margin-bottom: 10px;
}
.com-monthbar {
  padding: 7px 14px;
  margin-bottom: 8px;
}
.com-disclaimer-strip {
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: 11.5px;
}
.com-hero {
  padding: 15px 18px;
  margin-bottom: 10px;
  gap: 16px;
}
.com-hero__money {
  padding: 13px 16px;
}
.com-hero__amount {
  font-size: 32px;
  margin: 4px 0 6px;
}
.com-cortes-row--compact {
  margin-bottom: 10px;
  gap: 8px;
}
.com-cortes-row--compact .com-corte-card {
  padding: 9px 12px;
}
.com-metrics-row--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px;
  margin-bottom: 10px;
}
.com-metrics-row--compact .com-mcard {
  padding: 10px 13px;
  gap: 5px;
}
.com-metrics-row--compact .com-mcard__val {
  font-size: 19px;
}
.com-work-full {
  gap: 10px;
}
.com-rules-card {
  padding: 12px 14px;
  margin-bottom: 0;
}
.com-rules-head {
  margin-bottom: 9px;
}
.com-rbox {
  padding: 10px 12px;
}
.com-rbox__metric b {
  font-size: 21px;
}
@media (max-width: 1020px) {
  .com-metrics-row--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .com-metrics-row--compact {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Icono velocímetro KPI integrado a la paleta del Cotizador ---- */
.com-kpi-gauge-ic {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.com-gtab .com-kpi-gauge-ic {
  width: 20px !important;
  height: 20px !important;
}

/* ---- 4 Llaves KPI con Anillo Circular Lateral (Opción 1) ---- */
.com-rbox__ringrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 0;
}
.com-rbox__ring {
  flex-shrink: 0;
  display: block;
}
.com-rbox__ringinfo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.com-rbox__rline {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #15171C);
  line-height: 1.25;
}
.com-rbox__rmeta {
  font-size: 11px;
  color: var(--muted, #5F6673);
  line-height: 1.25;
}
.com-rbox__ringinfo .com-rbox__status {
  margin-top: 2px;
  line-height: 1.25;
}
.com-rbox__foot {
  justify-content: flex-end;
}

/* ============================================================================
 * TEMA LIQUID GLASS — Módulo Comisiones (Paleta Cotizador Indigo / Sky)
 * ==========================================================================*/
.com-wrap {
  position: relative;
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(640px 320px at 8% 4%, rgba(79, 70, 229, 0.13), transparent 65%),
    radial-gradient(560px 300px at 92% 10%, rgba(56, 189, 248, 0.14), transparent 65%),
    radial-gradient(520px 320px at 50% 95%, rgba(129, 140, 248, 0.11), transparent 70%),
    linear-gradient(180deg, #F5F7FF 0%, #F1F5FB 100%);
}

/* Dark liquid glass header */
.com-banner {
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.88) 0%, rgba(36, 33, 86, 0.86) 55%, rgba(22, 24, 38, 0.90) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(165, 180, 252, 0.28);
  box-shadow:
    0 14px 36px -12px rgba(30, 27, 75, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Frosted white liquid glass cards */
.com-monthbar,
.com-hero,
.com-corte-card,
.com-mcard,
.com-rules-strip,
.com-ventas-block,
.com-panel-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 8px 26px -10px rgba(49, 46, 129, 0.14),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.com-disclaimer-strip {
  background: rgba(254, 249, 195, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Corte activo con brillo cristal índigo */
.com-corte-card.is-active {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.86) 0%, rgba(255, 255, 255, 0.82) 100%);
  border: 1.5px solid rgba(79, 70, 229, 0.62);
  box-shadow:
    0 10px 24px -8px rgba(79, 70, 229, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.com-corte-card--past {
  background: rgba(255, 241, 242, 0.58);
  border-color: rgba(254, 205, 211, 0.75);
}

/* Tarjetas KPI internas con vidrio sutil */
.com-rbox {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 6px 18px -8px rgba(30, 27, 75, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.com-rbox:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 26px -10px rgba(79, 70, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Tarjeta de cobro Hero con brillo especular superior */
.com-hero__money {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 14px 32px -10px rgba(15, 23, 42, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Botones primarios con reflejo cristal */
.com-btn-nueva-venta,
.com-fab,
.com-btn-save {
  background: linear-gradient(135deg, #5B53F0 0%, #4338CA 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 8px 20px -4px rgba(79, 70, 229, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Drawer y Popup con cristal limpio y borde especular (60fps sin re-blur al animar) */
.com-drawer {
  background: rgba(255, 255, 255, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.92);
}
.com-daypop {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.92);
}
.com-daypop__foot {
  background: rgba(248, 250, 252, 0.72);
}

/* Filas de ventas y calendario con efecto glass sutil */
.com-ventas-block .com-panel-card,
.com-ventas-block .com-misventas {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.com-mv-row:hover {
  background: rgba(238, 242, 255, 0.55);
}
.com-sortseg {
  background: rgba(241, 245, 249, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ---- Nota informativa integrada discretamente dentro del Hero ---- */
.com-hero__note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted, #64748B);
}
.com-hero__note b {
  color: #475569;
  font-weight: 700;
}

/* ---- Etiqueta compacta de contexto ("Viendo a...") para Gerente / Admin ---- */
.com-month-cortes {
  font-size: 12px;
  color: var(--muted, #5F6673);
  font-weight: 600;
  white-space: nowrap;
}
.com-ctx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.com-ctx-pill b { font-weight: 800; }
.com-ctx-pill--ej {
  background: rgba(79, 70, 229, 0.11);
  border: 1px solid rgba(79, 70, 229, 0.30);
  color: #312E81;
}
.com-ctx-pill--ger {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.34);
  color: #0C4A6E;
}
.com-ctx-pill--sim {
  background: rgba(124, 58, 237, 0.11);
  border: 1px solid rgba(124, 58, 237, 0.30);
  color: #4C1D95;
}
.com-ctx-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(14, 165, 233, 0.18);
  color: #0369A1;
  padding: 1.5px 6px;
  border-radius: 99px;
}
.com-ctx-sep {
  color: #4F46E5;
  opacity: 0.8;
}
.com-ctx-back {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(79, 70, 229, 0.35);
  background: #FFFFFF;
  color: #4338CA;
  font: 700 11px/1.2 inherit;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.com-ctx-back:hover {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #4F46E5;
}

/* ---- Nombre de a quién corresponde la venta en Drawer y Popup ---- */
.com-drawer__head-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.com-drawer__owner {
  font-size: 12px;
  color: #CBD5E1;
  font-weight: 500;
  line-height: 1.25;
}
.com-drawer__owner b {
  color: #FFFFFF;
  font-weight: 700;
}

/* ---- Unificación de encabezados oscuros de Drawer y Popup con el banner índigo ---- */
.com-drawer__head,
.com-daypop__head {
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.94) 0%, rgba(36, 33, 86, 0.92) 55%, rgba(22, 24, 38, 0.95) 100%);
  border-bottom: 1px solid rgba(165, 180, 252, 0.24);
}
.com-drawer__foot {
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.95) 0%, rgba(36, 33, 86, 0.93) 55%, rgba(22, 24, 38, 0.96) 100%);
  border-top: 1px solid rgba(165, 180, 252, 0.24);
}

/* ---- Igualar selector Ejecutivo con selector Sucursal + texto limpio de contexto ---- */
.com-select-bar {
  height: 36px;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  color: #FFFFFF !important;
  font: 700 12.5px/1.2 inherit !important;
  transition: border-color .16s ease, background .16s ease;
}
.com-select-bar:hover,
.com-select-bar:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #818CF8 !important;
  outline: none;
}
.com-select-bar option {
  background: #1C1E26;
  color: #FFFFFF;
}
.com-suc-dd__btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
}
.com-ctx-inline {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.com-ctx-inline b {
  color: #1E1B4B;
  font-weight: 800;
}

/* Unificación del modal "Tabla de Pagos y Reglas" (.com-modal-head y .com-formula-banner) */
.com-modal-head,
.com-formula-banner {
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.94) 0%, rgba(36, 33, 86, 0.92) 55%, rgba(22, 24, 38, 0.95) 100%) !important;
  border-color: rgba(165, 180, 252, 0.28) !important;
  box-shadow: 0 12px 30px -10px rgba(30, 27, 75, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
