#panelComercial.show {
  display: block !important;
  min-height: calc(100vh - 118px);
  background: #fbf7f8;
}

.commercial-view {
  padding: 24px;
  color: #111827;
}

.commercial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.commercial-header h2 {
  margin: 0;
  color: #a30d2d;
  font-size: 28px;
  font-weight: 900;
}

.commercial-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.commercial-card {
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.commercial-card .label {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}

.commercial-card .value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
  color: #a30d2d;
}

.commercial-actions {
  display: flex;
  gap: 10px;
}

.commercial-btn {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  background: #a30d2d;
  color: #fff;
}

.commercial-btn.secondary {
  background: #111827;
}

.commercial-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ead8dd;
}

.commercial-table th,
.commercial-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1e5e8;
  text-align: left;
  font-size: 13px;
}

.commercial-table th {
  background: #faf7f8;
  color: #a30d2d;
  font-weight: 900;
}

.commercial-status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  background: #f3f4f6;
  color: #374151;
}

.commercial-status.ganada {
  background: #dcfce7;
  color: #166534;
}

.commercial-status.perdida {
  background: #fee2e2;
  color: #991b1b;
}

.commercial-status.seguimiento {
  background: #fef3c7;
  color: #92400e;
}

.commercial-actions{
    display:flex;
    gap:6px;
    justify-content:center;
}

.btnAction{
    width:34px;
    height:34px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    color:#fff;
    font-size:15px;
    transition:.2s;
}

.btnAction:hover{
    transform:scale(1.08);
}

.btnAction.blue{
    background:#2563eb;
}

.btnAction.red{
    background:#a30d2d;
}

.btnAction.green{
    background:#16a34a;
}

.btnAction.gray{
    background:#6b7280;
}

.commercial-drawer {
  position: fixed;
  top: 76px;
  right: 24px;
  width: 460px;
  height: calc(100vh - 100px);
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 22px;
  box-shadow: -20px 20px 60px rgba(20, 10, 15, 0.18);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.commercial-drawer.hidden {
  display: none !important;
}

.commercial-drawer-head {
  background: linear-gradient(135deg, #a30d2d, #6f001c);
  color: #fff;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.commercial-drawer-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.commercial-drawer-head p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .9;
}

.commercial-drawer-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.commercial-drawer-body {
  padding: 20px;
  overflow: auto;
  background: #fffafa;
}

.drawer-score {
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}

.drawer-score-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-score b {
  font-size: 32px;
  color: #a30d2d;
}

.drawer-score small {
  color: #6b7280;
  font-weight: 800;
}

.drawer-bar {
  height: 8px;
  background: #f1dce2;
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.drawer-bar span {
  display: block;
  height: 100%;
  background: #a30d2d;
  border-radius: 999px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-kpi {
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 14px;
  padding: 14px;
}

.drawer-kpi small {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.drawer-kpi b {
  color: #111827;
  font-size: 14px;
}

.drawer-note {
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  line-height: 1.45;
}

.drawer-note h4 {
  margin: 0 0 8px;
  color: #a30d2d;
  font-size: 14px;
  font-weight: 950;
}

.drawer-actions-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.drawer-actions-premium button {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  font-weight: 950;
  cursor: pointer;
}

.drawer-actions-premium .red {
  background: #a30d2d;
  color: #fff;
}

.drawer-actions-premium .dark {
  background: #111827;
  color: #fff;
}

.drawer-actions-premium .light {
  background: #fff;
  color: #a30d2d;
  border: 1px solid #ead8dd;
}

.commercial-detail-view {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(20, 10, 15, 0.08);
}

.commercial-detail-view.hidden {
  display: none !important;
}

.com-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid #ead8dd;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.com-detail-head h2 {
  margin: 0;
  color: #a30d2d;
  font-size: 28px;
  font-weight: 950;
}

.com-detail-head p {
  margin: 6px 0 0;
  color: #6b7280;
}

.com-detail-back {
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

.com-detail-score {
  background: #fff7f9;
  border: 1px solid #ead8dd;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.com-detail-score b {
  font-size: 34px;
  color: #a30d2d;
}

.com-detail-bar {
  height: 9px;
  background: #f1dce2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.com-detail-bar span {
  display: block;
  height: 100%;
  background: #a30d2d;
  border-radius: 999px;
}

.com-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.com-detail-card {
  border: 1px solid #ead8dd;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.com-detail-card small {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.com-detail-card b {
  color: #111827;
  font-size: 15px;
}

.com-detail-note {
  border: 1px solid #ead8dd;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  margin-bottom: 18px;
}

.com-detail-note h3 {
  margin: 0 0 10px;
  color: #a30d2d;
  font-size: 17px;
  font-weight: 950;
}

.com-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.com-detail-actions button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 950;
  cursor: pointer;
}

.com-detail-actions .red {
  background: #a30d2d;
  color: #fff;
}

.com-detail-actions .dark {
  background: #111827;
  color: #fff;
}

.com-detail-actions .light {
  background: #fff;
  color: #a30d2d;
  border: 1px solid #ead8dd;
}

.com-detail-premium {
  display: grid;
  gap: 18px;
}

.com-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  background: linear-gradient(135deg, #fff, #fff6f8);
  border: 1px solid #ead8dd;
  border-radius: 20px;
  padding: 22px;
}

.com-detail-hero h2 {
  margin: 14px 0 8px;
  color: #a30d2d;
  font-size: 30px;
  font-weight: 950;
}

.com-detail-hero p {
  margin: 5px 0;
  color: #374151;
  font-weight: 700;
}

.com-score-card {
  min-width: 190px;
  border-radius: 18px;
  background: #a30d2d;
  color: #fff;
  padding: 20px;
  text-align: center;
  display: grid;
  place-items: center;
}

.com-score-card small {
  font-size: 11px;
  font-weight: 900;
  opacity: .85;
}

.com-score-card b {
  font-size: 46px;
  line-height: 1;
}

.com-score-card span {
  font-size: 13px;
  font-weight: 900;
}

.com-detail-grid.premium {
  grid-template-columns: repeat(6, 1fr);
}

.com-detail-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.com-detail-note p {
  margin: 0;
  line-height: 1.55;
  color: #374151;
}

.com-detail-actions.premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.crm-premium {
  display: grid;
  gap: 18px;
}

.crm-premium-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff5f7);
  border: 1px solid #ead8dd;
  box-shadow: 0 14px 35px rgba(20, 10, 15, 0.08);
}

.crm-kicker {
  color: #a30d2d;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.crm-premium h1 {
  margin: 10px 0;
  color: #111827;
  font-size: 34px;
  font-weight: 950;
}

.crm-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #374151;
  font-weight: 800;
}

.crm-status-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.crm-chip {
  background: #a30d2d;
  color: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.crm-chip.soft {
  background: #fff;
  color: #a30d2d;
  border: 1px solid #ead8dd;
}

.crm-score-big {
  background: #a30d2d;
  color: #fff;
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  display: grid;
  align-content: center;
  gap: 8px;
}

.crm-score-big small {
  font-weight: 900;
  opacity: .85;
}

.crm-score-big b {
  font-size: 56px;
  line-height: 1;
}

.crm-score-big span {
  font-weight: 900;
}

.crm-score-bar {
  height: 8px;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  overflow: hidden;
}

.crm-score-bar i {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 999px;
}

.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.crm-kpi {
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(20, 10, 15, 0.05);
}

.crm-kpi span {
  font-size: 26px;
}

.crm-kpi small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-kpi b {
  color: #111827;
  font-size: 17px;
}

.crm-premium-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.crm-card {
  background: #fff;
  border: 1px solid #ead8dd;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(20, 10, 15, 0.05);
}

.crm-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.crm-card-head h3 {
  margin: 0;
  color: #a30d2d;
  font-size: 18px;
  font-weight: 950;
}

.crm-card-head span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.crm-card p {
  margin: 0;
  color: #374151;
  line-height: 1.55;
}

.crm-timeline {
  display: grid;
  gap: 10px;
}

.crm-timeline div {
  border-left: 4px solid #a30d2d;
  padding: 10px 14px;
  background: #fff7f9;
  border-radius: 10px;
}

.crm-timeline b {
  display: block;
  color: #111827;
}

.crm-timeline small {
  color: #6b7280;
}

.crm-actions-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.crm-actions-premium button {
  border: 0;
  border-radius: 14px;
  padding: 15px;
  font-weight: 950;
  cursor: pointer;
}

.crm-actions-premium .red {
  background: #a30d2d;
  color: #fff;
}

.crm-actions-premium .dark {
  background: #111827;
  color: #fff;
}

.crm-actions-premium .light {
  background: #fff;
  color: #a30d2d;
  border: 1px solid #ead8dd;
}

.crm-actions-premium .gold {
  background: #f59e0b;
  color: #111827;
}

#panelComercial .crm-premium {
  display: grid !important;
  gap: 18px !important;
}

#panelComercial .crm-premium-hero {
  display: grid !important;
  grid-template-columns: 1fr 260px !important;
  gap: 18px !important;
  padding: 24px !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #fff, #fff5f7) !important;
  border: 1px solid #ead8dd !important;
  box-shadow: 0 14px 35px rgba(20, 10, 15, 0.08) !important;
}

#panelComercial .crm-kicker {
  color: #a30d2d !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
}

#panelComercial .crm-premium h1 {
  margin: 10px 0 !important;
  color: #111827 !important;
  font-size: 34px !important;
  font-weight: 950 !important;
}

#panelComercial .crm-meta {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  color: #374151 !important;
  font-weight: 800 !important;
}

#panelComercial .crm-status-row {
  display: flex !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

#panelComercial .crm-chip {
  background: #a30d2d !important;
  color: #fff !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#panelComercial .crm-chip.soft {
  background: #fff !important;
  color: #a30d2d !important;
  border: 1px solid #ead8dd !important;
}

#panelComercial .crm-score-big {
  background: #a30d2d !important;
  color: #fff !important;
  border-radius: 22px !important;
  padding: 22px !important;
  text-align: center !important;
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
}

#panelComercial .crm-score-big small {
  font-weight: 900 !important;
  opacity: .85 !important;
}

#panelComercial .crm-score-big b {
  font-size: 56px !important;
  line-height: 1 !important;
}

#panelComercial .crm-score-big span {
  font-weight: 900 !important;
}

#panelComercial .crm-score-bar {
  height: 8px !important;
  background: rgba(255,255,255,.25) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

#panelComercial .crm-score-bar i {
  display: block !important;
  height: 100% !important;
  background: #fff !important;
  border-radius: 999px !important;
}

#panelComercial .crm-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px !important;
}

#panelComercial .crm-kpi {
  background: #fff !important;
  border: 1px solid #ead8dd !important;
  border-radius: 18px !important;
  padding: 18px !important;
  display: grid !important;
  gap: 8px !important;
  box-shadow: 0 8px 20px rgba(20, 10, 15, 0.05) !important;
}

#panelComercial .crm-kpi span {
  font-size: 26px !important;
}

#panelComercial .crm-kpi small {
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

#panelComercial .crm-kpi b {
  color: #111827 !important;
  font-size: 17px !important;
}

#panelComercial .crm-premium-grid {
  display: grid !important;
  grid-template-columns: 1.2fr .8fr !important;
  gap: 14px !important;
}

#panelComercial .crm-card {
  background: #fff !important;
  border: 1px solid #ead8dd !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 8px 20px rgba(20, 10, 15, 0.05) !important;
}

#panelComercial .crm-card-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#panelComercial .crm-card-head h3 {
  margin: 0 !important;
  color: #a30d2d !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

#panelComercial .crm-card-head span {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#panelComercial .crm-card p {
  margin: 0 !important;
  color: #374151 !important;
  line-height: 1.55 !important;
}

#panelComercial .crm-timeline {
  display: grid !important;
  gap: 10px !important;
}

#panelComercial .crm-timeline div {
  border-left: 4px solid #a30d2d !important;
  padding: 10px 14px !important;
  background: #fff7f9 !important;
  border-radius: 10px !important;
}

#panelComercial .crm-timeline b {
  display: block !important;
  color: #111827 !important;
}

#panelComercial .crm-timeline small {
  color: #6b7280 !important;
}

#panelComercial .crm-actions-premium {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
}

#panelComercial .crm-actions-premium button {
  border: 0 !important;
  border-radius: 14px !important;
  padding: 15px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

#panelComercial .crm-actions-premium .red {
  background: #a30d2d !important;
  color: #fff !important;
}

#panelComercial .crm-actions-premium .dark {
  background: #111827 !important;
  color: #fff !important;
}

#panelComercial .crm-actions-premium .light {
  background: #fff !important;
  color: #a30d2d !important;
  border: 1px solid #ead8dd !important;
}

#panelComercial .crm-actions-premium .gold {
  background: #f59e0b !important;
  color: #111827 !important;
}
