
/* PROLEADS PREMIUM DESIGN V1 */
/* Identidad corporativa */

:root {
  --pl-navy: #10213e;
  --pl-navy-dark: #0b1830;
  --pl-blue: #2563eb;
  --pl-blue-light: #eff6ff;
  --pl-background: #f5f7fb;
  --pl-surface: #ffffff;
  --pl-border: #e5eaf2;
  --pl-text: #172b4d;
  --pl-muted: #64748b;
  --pl-radius: 14px;
}

html {
  background: var(--pl-background);
}

body {
  background: var(--pl-background);
  color: var(--pl-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
               "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

/* Estructura principal */

.shell {
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 260px;
  padding: 30px 16px;
  background: linear-gradient(
    180deg,
    #10213e 0%,
    #0d1b34 100%
  );
  border-right: 1px solid rgba(255,255,255,.07);
}

.brand {
  padding: 4px 13px 24px;
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.8px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand span {
  color: #78aaff;
}

/* Navegación */

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b8c8df;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: .01em;
  transition: background .16s ease, color .16s ease;
}

.nav a:hover {
  background: rgba(255,255,255,.075);
  color: #fff;
}

.nav a.active {
  background: #244a80;
  border-color: rgba(147,197,253,.12);
  color: #fff;
  font-weight: 700;
}

/* Contenido */

.main {
  width: 100%;
  max-width: 1600px;
  padding: 34px 38px 55px;
}

.top {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--pl-border);
}

h1 {
  color: var(--pl-navy);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 780;
  letter-spacing: -.8px;
  line-height: 1.25;
}

h2 {
  color: var(--pl-navy);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.35px;
}

.muted {
  color: var(--pl-muted);
}

/* Tarjetas */

.cards {
  gap: 18px;
  margin-bottom: 26px;
}

.card,
.panel {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  padding: 23px;
  box-shadow: 0 2px 8px rgba(16,33,62,.025);
}

.card {
  transition: border-color .15s ease;
}

.card:hover {
  border-color: #cbd8ea;
}

.number {
  margin-top: 10px;
  color: var(--pl-navy);
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.9px;
  line-height: 1.2;
}

/* Tablas */

.table-wrap {
  border-radius: 10px;
}

table {
  font-size: 13.5px;
}

th {
  background: #f8fafd;
  color: #61718a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .065em;
  white-space: nowrap;
}

td,
th {
  padding: 14px 13px;
  border-bottom: 1px solid #edf1f7;
}

td {
  color: #334155;
}

tbody tr:hover {
  background: #f9fbff;
}

tbody tr:last-child td {
  border-bottom-color: transparent;
}

/* Formularios */

label {
  color: #34445f;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 7px;
}

input,
select,
textarea {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #d9e1ed;
  border-radius: 9px;
  background: #fff;
  color: var(--pl-text);
  font-size: 14px;
  transition: border-color .15s ease,
              box-shadow .15s ease;
}

textarea {
  min-height: 90px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #79a7f8;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

/* No alterar la presentación de checkboxes y radios */

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--pl-blue);
}

/* Botones */

button,
.btn {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--pl-blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: none;
  transition: background .15s ease;
}

button:hover,
.btn:hover {
  background: #1d4ed8;
}

.btn-quiet {
  background: #eef2f8;
  color: #243b5a;
}

.btn-quiet:hover {
  background: #e2eaf5;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* Avisos y mensajes */

.flash {
  border: 1px solid #bce7d1;
  border-radius: 10px;
  background: #edfdf4;
}

.flash.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.lead-notification-button {
  min-height: 0;
  background: #fff;
  color: var(--pl-navy);
}

.lead-notification-button:hover {
  background: #f2f6fc;
}

.lead-notification-menu {
  border-radius: 13px;
}

/* Espaciado */

.stack {
  gap: 22px;
}

/* Tablet */

@media (max-width: 1050px) {
  .sidebar {
    width: 225px;
  }

  .main {
    padding: 26px;
  }

  .cards {
    gap: 14px;
  }
}

/* Móvil */

@media (max-width: 720px) {
  .shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    padding: 16px 15px 13px;
  }

  .brand {
    padding: 0 2px 12px;
    margin-bottom: 12px;
    font-size: 23px;
  }

  .nav {
    flex-direction: row;
    gap: 7px;
    padding-bottom: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .main {
    width: 100%;
    padding: 22px 15px 40px;
  }

  .top {
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 17px;
  }

  .card,
  .panel {
    padding: 17px;
    border-radius: 12px;
  }

  .cards {
    gap: 11px;
  }

  .number {
    font-size: 25px;
  }

  td,
  th {
    padding: 12px 11px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .lead-notification-button {
    min-height: 0;
  }
}

@media (max-width: 390px) {
  .cards {
    grid-template-columns: 1fr;
  }
}


/* PROLEADS_NAV_PREMIUM_V2 */

.sidebar {
  padding-top: 25px;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 10px 22px;
  margin-bottom: 23px;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
}

.brand-symbol svg {
  width: 23px;
  height: 23px;
}

.brand-word {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.9px;
  line-height: 1;
}

.brand-word span {
  color: #78aaff;
}

.nav-heading {
  margin: 0 13px 12px;
  color: #8197b9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
}

.sidebar .nav {
  gap: 3px;
}

.sidebar .nav a {
  gap: 12px;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 9px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: #9bb1d0;
}

.nav-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.nav-label {
  min-width: 0;
}

.sidebar .nav a:hover .nav-icon,
.sidebar .nav a.active .nav-icon {
  color: #fff;
}

@media (max-width: 720px) {
  .sidebar {
    padding-top: 15px;
  }

  .sidebar .brand {
    padding: 0 2px 13px;
    margin-bottom: 11px;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand-symbol svg {
    width: 21px;
    height: 21px;
  }

  .brand-word {
    font-size: 22px;
  }

  .nav-heading {
    display: none;
  }

  .sidebar .nav {
    flex-direction: row;
    gap: 6px;
  }

  .sidebar .nav a {
    min-height: 38px;
    gap: 7px;
    padding: 9px 11px;
  }

  .nav-icon,
  .nav-icon svg {
    width: 17px;
    height: 17px;
  }

  .nav-icon {
    flex-basis: 17px;
  }
}


/* PROLEADS_DASHBOARD_PREMIUM_V3 */

.dashboard-v3 {
  display: grid;
  gap: 25px;
}

.dash-section {
  min-width: 0;
  padding: 23px;
  border: 1px solid #e5eaf2;
  border-radius: 15px;
  background: #fff;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 21px;
}

.dash-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.dash-heading-icon,
.dash-metric-icon,
.dash-site-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-heading-icon {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: #eff6ff;
  color: #2563eb;
}

.dash-heading-icon svg {
  width: 21px;
  height: 21px;
}

.dash-heading h2 {
  margin: 0 0 3px;
  font-size: 17px;
}

.dash-heading p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
}

.dash-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.dash-text-link,
.dash-table-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.dash-grid {
  display: grid;
  gap: 15px;
}

.dash-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7ecf4;
  border-radius: 12px;
  background: #f9fbfe;
}

.dash-metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dash-metric-label {
  color: #61718a;
  font-size: 12.5px;
  font-weight: 650;
}

.dash-metric-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #eaf1fb;
  color: #5574a2;
}

.dash-metric-icon svg {
  width: 18px;
  height: 18px;
}

.dash-metric-value {
  margin-top: 13px;
  color: #10213e;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dash-metric-detail {
  margin-top: 7px;
  color: #64748b;
  font-size: 11.5px;
}

.dash-danger {
  background: #fff8f8;
  border-color: #fee2e2;
}

.dash-danger .dash-metric-value,
.dash-danger .dash-metric-icon {
  color: #dc2626;
}

.dash-danger .dash-metric-icon {
  background: #fee2e2;
}

.dash-primary {
  background: #f5f9ff;
  border-color: #dbeafe;
}

.dash-primary .dash-metric-value,
.dash-primary .dash-metric-icon {
  color: #2563eb;
}

.dash-success .dash-metric-icon {
  background: #dcfce7;
  color: #15803d;
}

.dash-warning .dash-metric-icon {
  background: #fef3c7;
  color: #b45309;
}

.dash-table {
  border: 1px solid #e9eef5;
}

.dash-table strong {
  color: #10213e;
}

.dash-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eef3fa;
  color: #475569;
  font-size: 11.5px;
  font-weight: 650;
}

.dash-sites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dash-site {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #e9eef5;
  border-radius: 11px;
  background: #f9fbfe;
}

.dash-site-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #eaf1fb;
  color: #2563eb;
}

.dash-site-icon svg {
  width: 18px;
  height: 18px;
}

.dash-site strong,
.dash-site span {
  display: block;
  overflow-wrap: anywhere;
}

.dash-site strong {
  color: #10213e;
  font-size: 13px;
}

.dash-site span {
  color: #64748b;
  font-size: 11.5px;
}

@media (max-width: 1200px) {
  .dash-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-sites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-v3 {
    gap: 17px;
  }

  .dash-section {
    padding: 16px;
    border-radius: 12px;
  }

  .dash-heading-icon {
    width: 36px;
    height: 36px;
  }

  .dash-heading h2 {
    font-size: 16px;
  }

  .dash-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-metric {
    padding: 14px;
  }

  .dash-metric-value {
    font-size: 23px;
  }

  .dash-sites {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .dash-grid-three,
  .dash-grid-four {
    grid-template-columns: 1fr;
  }
}


/* PROLEADS_LEAD_PREMIUM_V4 */

.lead-premium-v4 {
  gap: 22px;
}

/* Paneles de la ficha */

.lead-premium-v4 > .panel {
  position: relative;
  padding: 25px;
  border: 1px solid #e5eaf2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,33,62,.025);
}

.lead-premium-v4 > .panel h2 {
  margin: 0 0 15px;
  color: #10213e;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.4px;
}

.lead-premium-v4 > .panel > .muted {
  margin-top: -6px;
  margin-bottom: 21px;
  font-size: 13px;
}

/* Cabecera de información */

.lead-premium-v4 > .panel:first-of-type h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.lead-premium-v4 .fields {
  gap: 16px;
}

.lead-premium-v4 .fields > div {
  min-width: 0;
}

.lead-premium-v4 .fields label {
  margin-bottom: 7px;
  color: #718096;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.lead-premium-v4 .fields p {
  margin: 0;
  color: #172b4d;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.lead-premium-v4 .fields .field.wide {
  padding-top: 17px;
  border-top: 1px solid #edf1f7;
}

/* Formularios */

.lead-premium-v4 form .fields label {
  color: #475569;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.lead-premium-v4 input,
.lead-premium-v4 select,
.lead-premium-v4 textarea {
  border-radius: 9px;
  border-color: #dce4ef;
  background: #fff;
}

.lead-premium-v4 textarea {
  min-height: 120px;
  line-height: 1.65;
}

/* Botones */

.lead-premium-v4 button,
.lead-premium-v4 .btn {
  min-height: 41px;
  border-radius: 9px;
  font-weight: 650;
}

.lead-premium-v4 .btn-quiet {
  background: #edf2f9;
  color: #243b5a;
}

.lead-premium-v4 .btn-quiet:hover {
  background: #e1eaf5;
}

/* Tablas de empresas */

.lead-premium-v4 .table-wrap {
  margin-top: 17px;
  border: 1px solid #e8edf5;
  border-radius: 11px;
}

.lead-premium-v4 table th {
  padding: 14px 13px;
  background: #f8fafd;
  font-size: 11px;
}

.lead-premium-v4 table td {
  padding: 15px 13px;
  vertical-align: middle;
}

.lead-premium-v4 table td strong {
  color: #10213e;
}

.lead-premium-v4 table td a {
  color: #2563eb;
  font-weight: 650;
}

/* Historial de gestiones */

.lead-premium-v4 > .panel > div[style*="border-bottom"] {
  position: relative;
  padding-left: 23px !important;
  margin-left: 8px;
  border-left: 2px solid #dbeafe;
}

.lead-premium-v4 > .panel > div[style*="border-bottom"]::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px #eff6ff;
}

.lead-premium-v4 > .panel > div[style*="border-bottom"] > strong {
  color: #10213e;
  font-size: 14px;
}

.lead-premium-v4 > .panel > div[style*="border-bottom"] p {
  overflow-wrap: anywhere;
  line-height: 1.65;
}

/* Privacidad */

.lead-premium-v4 > .panel:last-child {
  background: #fbfcff;
}

.lead-premium-v4 > .panel:last-child p {
  font-size: 13px;
  line-height: 1.7;
}

.lead-premium-v4 > .panel:last-child strong {
  color: #34445f;
}

/* Móvil */

@media (max-width: 720px) {
  .lead-premium-v4 {
    gap: 16px;
  }

  .lead-premium-v4 > .panel {
    padding: 18px;
    border-radius: 12px;
  }

  .lead-premium-v4 > .panel h2 {
    font-size: 17px;
  }

  .lead-premium-v4 > .panel:first-of-type h2 {
    font-size: 21px;
  }

  .lead-premium-v4 .fields {
    gap: 14px;
  }

  .lead-premium-v4 .fields p {
    font-size: 14px;
  }

  .lead-premium-v4 table td,
  .lead-premium-v4 table th {
    padding: 12px 11px;
  }

  .lead-premium-v4 > .panel > div[style*="border-bottom"] {
    padding-left: 17px !important;
  }
}


/* PROLEADS_LEAD_HEADER_V41 */

.lead-v41-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lead-v41-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lead-v41-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 10px 16px;
  border: 1px solid #f1b5b5;
  border-radius: 9px;
  background: #fff;
  color: #b42318;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

.lead-v41-delete:hover {
  background: #fff5f5;
  border-color: #dc2626;
}

.lead-v41-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px;
  border: 1px solid #dbe5f3;
  border-radius: 15px;
  background: linear-gradient(110deg, #fff 50%, #f3f7ff 100%);
}

.lead-v41-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  border-radius: 17px;
  background: #e8f0ff;
  color: #2563eb;
}

.lead-v41-avatar svg {
  width: 32px;
  height: 32px;
}

.lead-v41-identity {
  flex: 1;
  min-width: 0;
}

.lead-v41-eyebrow {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .1em;
}

.lead-v41-identity h2 {
  margin: 0 0 5px;
  color: #10213e;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.7px;
  overflow-wrap: anywhere;
}

.lead-v41-identity p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.lead-v41-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 20px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.lead-v41-status-new {
  background: #dbeafe;
  color: #1d4ed8;
}

.lead-v41-status-contacted {
  background: #fef3c7;
  color: #92400e;
}

.lead-v41-status-qualified {
  background: #e0e7ff;
  color: #4338ca;
}

.lead-v41-status-assigned {
  background: #ede9fe;
  color: #6d28d9;
}

.lead-v41-status-sold {
  background: #dcfce7;
  color: #166534;
}

.lead-v41-status-discarded {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 720px) {
  .lead-v41-hero {
    flex-wrap: wrap;
    gap: 13px;
    padding: 18px;
  }

  .lead-v41-avatar {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
    border-radius: 13px;
  }

  .lead-v41-avatar svg {
    width: 26px;
    height: 26px;
  }

  .lead-v41-identity h2 {
    font-size: 21px;
  }

  .lead-v41-status {
    margin-left: 0;
  }
}


/* PROLEADS_LEADS_PREMIUM_V5 */

.leads-v5 {
  display: grid;
  gap: 21px;
  padding: 24px;
  border: 1px solid #e5eaf2;
  border-radius: 15px;
  background: #fff;
}

.leads-v5-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.leads-v5-heading h2 {
  margin: 0 0 5px;
  color: #10213e;
  font-size: 20px;
  font-weight: 800;
}

.leads-v5-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.leads-v5-total {
  padding: 8px 12px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
}

.leads-v5-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px;
}

.leads-v5-stat {
  padding: 19px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #f8fafc;
}

.leads-v5-stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.leads-v5-stat strong {
  display: block;
  margin-top: 10px;
  color: #10213e;
  font-size: 29px;
  font-weight: 800;
}

.leads-v5-stat-blue {
  background: #f4f8ff;
  border-color: #dbeafe;
}

.leads-v5-stat-blue strong {
  color: #2563eb;
}

.leads-v5-stat-green {
  background: #f3fcf7;
  border-color: #dcfce7;
}

.leads-v5-stat-green strong {
  color: #15803d;
}

.leads-v5-filters {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid #e9eef5;
  border-radius: 12px;
  background: #f8fafc;
}

.leads-v5-filters > div {
  min-width: 0;
}

.leads-v5-filters label {
  margin-bottom: 7px;
  color: #475569;
}

.leads-v5-table {
  border: 1px solid #e7edf5;
  border-radius: 12px;
}

.leads-v5-table table {
  min-width: 900px;
}

.leads-v5-table th {
  padding: 15px 13px;
  background: #f8fafc;
  font-size: 11px;
}

.leads-v5-table td {
  padding: 16px 13px;
  vertical-align: middle;
}

.leads-v5-client,
.leads-v5-contact,
.leads-v5-location,
.leads-v5-service {
  display: grid;
  gap: 5px;
}

.leads-v5-client strong,
.leads-v5-contact strong,
.leads-v5-location strong,
.leads-v5-service strong {
  color: #10213e;
  font-size: 13px;
  font-weight: 700;
}

.leads-v5-client span,
.leads-v5-contact span,
.leads-v5-location span,
.leads-v5-service span {
  color: #64748b;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.leads-v5-status {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 20px;
  background: #eef2f7;
  color: #475569;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}

.leads-v5-status-new {
  background: #dbeafe;
  color: #1d4ed8;
}

.leads-v5-status-contacted {
  background: #fef3c7;
  color: #92400e;
}

.leads-v5-status-qualified {
  background: #e0e7ff;
  color: #4338ca;
}

.leads-v5-status-assigned {
  background: #ede9fe;
  color: #6d28d9;
}

.leads-v5-status-sold {
  background: #dcfce7;
  color: #166534;
}

.leads-v5-status-discarded {
  background: #fee2e2;
  color: #991b1b;
}

.leads-v5-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.leads-v5-detail {
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.leads-v5-actions .inline-form {
  display: flex;
  gap: 7px;
}

.leads-v5-actions select {
  width: 125px;
  min-width: 125px;
  font-size: 12px;
}

.leads-v5-actions button {
  padding: 9px 11px;
  font-size: 12px;
}

@media(max-width:720px) {
  .leads-v5 {
    padding: 16px;
    gap: 17px;
  }

  .leads-v5-heading h2 {
    font-size: 18px;
  }

  .leads-v5-stats {
    gap: 8px;
  }

  .leads-v5-stat {
    padding: 12px;
  }

  .leads-v5-stat strong {
    font-size: 24px;
  }

  .leads-v5-stat span {
    font-size: 11px;
  }

  .leads-v5-filters {
    grid-template-columns: 1fr;
    padding: 13px;
  }
}

@media(max-width:390px) {
  .leads-v5-stats {
    grid-template-columns: 1fr;
  }
}


/* PROLEADS_LEADS_MOBILE_V6 */

@media (max-width: 720px) {

  .leads-v5-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .leads-v5-table table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .leads-v5-table thead {
    display: none;
  }

  .leads-v5-table tbody {
    display: grid;
    gap: 14px;
  }

  .leads-v5-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 17px;
    border: 1px solid #e1e8f2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16,33,62,.035);
  }

  .leads-v5-table tbody tr[hidden] {
    display: none !important;
  }

  .leads-v5-table tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  /* Cliente: cabecera de tarjeta */
  .leads-v5-table tbody td:nth-child(1) {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
  }

  .leads-v5-client strong {
    font-size: 16px;
  }

  /* Contacto y ubicación */
  .leads-v5-table tbody td:nth-child(2),
  .leads-v5-table tbody td:nth-child(3) {
    grid-column: span 1;
  }

  /* Servicio */
  .leads-v5-table tbody td:nth-child(4) {
    grid-column: 1 / -1;
  }

  /* Estado */
  .leads-v5-table tbody td:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* Acciones */
  .leads-v5-table tbody td:nth-child(6) {
    grid-column: 1 / -1;
    padding-top: 13px;
    border-top: 1px solid #edf1f7;
  }

  .leads-v5-actions {
    gap: 12px;
    width: 100%;
  }

  .leads-v5-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 43px;
    padding: 11px 14px;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
  }

  .leads-v5-detail:hover {
    background: #1d4ed8;
    color: #fff;
  }

  .leads-v5-actions .inline-form {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .leads-v5-actions select {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .leads-v5-actions button {
    flex: 0 0 auto;
    min-height: 41px;
  }

  .leads-v5-contact::before,
  .leads-v5-location::before,
  .leads-v5-service::before {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .07em;
  }

  .leads-v5-contact::before {
    content: "CONTACTO";
  }

  .leads-v5-location::before {
    content: "UBICACIÓN";
  }

  .leads-v5-service::before {
    content: "SOLICITUD";
  }

  .leads-v5-table tbody td.empty {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .leads-v5-table tbody tr {
    padding: 13px;
    gap: 11px;
  }

  .leads-v5-contact strong,
  .leads-v5-location strong {
    font-size: 12px;
  }
}


/* PROLEADS_LEAD_MOBILE_V7 */

.lead-premium-v4 .lead-v7-information {
  border: 1px solid #e2e9f3;
  border-radius: 14px;
}

.lead-premium-v4 .lead-v7-information > h2 {
  margin-bottom: 6px;
  color: #10213e;
  font-size: 19px;
  font-weight: 800;
}

.lead-premium-v4 .lead-v7-information > .muted {
  margin-bottom: 22px;
}

.lead-premium-v4 .lead-v7-information .fields {
  gap: 15px;
}

.lead-premium-v4 .lead-v7-information .fields > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: #f8fafc;
}

.lead-premium-v4 .lead-v7-information .fields label {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
}

.lead-premium-v4 .lead-v7-information .fields p {
  margin: 0;
  color: #10213e;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {

  .lead-premium-v4 {
    gap: 15px;
  }

  .lead-premium-v4 > .panel {
    padding: 18px;
    border-radius: 13px;
  }

  .lead-premium-v4 > .panel h2 {
    font-size: 18px;
    line-height: 1.35;
  }

  .lead-premium-v4 .lead-v7-information .fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .lead-premium-v4 .lead-v7-information .fields > div {
    padding: 12px;
  }

  .lead-premium-v4 .lead-v7-information .fields > .wide {
    grid-column: 1 / -1;
  }

  .lead-premium-v4 .lead-v7-information .fields p {
    font-size: 13px;
    line-height: 1.5;
  }

  .lead-premium-v4 .panel form .fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .lead-premium-v4 .panel form .fields > div,
  .lead-premium-v4 .panel form .fields > .wide {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .lead-premium-v4 .panel form input,
  .lead-premium-v4 .panel form select,
  .lead-premium-v4 .panel form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .lead-premium-v4 .panel form button {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  .lead-premium-v4 .panel .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lead-premium-v4 .panel .table-wrap table {
    min-width: 620px;
  }

  .lead-premium-v4 .panel .table-wrap form button {
    width: auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .lead-premium-v4 .panel > div[style*="border-bottom"] {
    position: relative;
    margin-left: 5px;
    padding-left: 20px !important;
    border-left: 2px solid #dbeafe;
  }

  .lead-premium-v4 .panel > div[style*="border-bottom"]::before {
    content: "";
    position: absolute;
    top: 19px;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
  }

  .lead-v41-actions {
    align-items: stretch;
  }

  .lead-v41-back,
  .lead-v41-delete {
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 380px) {

  .lead-premium-v4 .lead-v7-information .fields {
    grid-template-columns: 1fr;
  }

  .lead-premium-v4 .lead-v7-information .fields > div {
    grid-column: 1 / -1;
  }
}


/* PROLEADS_COMPANY_PREMIUM_V8 */

.company-premium-v8 {
  gap: 20px;
}

.company-v8-navigation .btn {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
}

.company-v8-hero {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 27px;
  border: 1px solid #dce6f3;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff 0%, #f1f6ff 100%);
}

.company-v8-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 29px;
  font-weight: 850;
}

.company-v8-identity {
  flex: 1;
  min-width: 0;
}

.company-v8-eyebrow {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.company-v8-identity h2 {
  margin: 0 0 7px;
  color: #10213e;
  font-size: 25px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.company-v8-identity p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.company-v8-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.company-v8-active {
  background: #dcfce7;
  color: #166534;
}

.company-v8-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.company-v8-information .fields {
  gap: 13px;
}

.company-v8-information .fields > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: #f8fafc;
}

.company-v8-information .fields label {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.company-v8-information .fields p {
  margin: 0;
  color: #10213e;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.company-v8-stats .card {
  border: 1px solid #dce6f3;
  border-radius: 13px;
  padding: 22px;
  background: #fff;
}

.company-v8-stats .card .muted {
  margin-bottom: 11px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.company-v8-stats .card .number {
  color: #10213e;
  font-size: 27px;
  font-weight: 850;
}

.company-premium-v8 .panel h2 {
  color: #10213e;
}

@media (max-width: 720px) {

  .company-premium-v8 {
    gap: 15px;
  }

  .company-v8-hero {
    flex-wrap: wrap;
    gap: 13px;
    padding: 18px;
    border-radius: 13px;
  }

  .company-v8-avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 23px;
  }

  .company-v8-identity h2 {
    font-size: 20px;
  }

  .company-v8-status {
    margin-left: 65px;
  }

  .company-premium-v8 > .panel {
    padding: 17px;
    border-radius: 13px;
  }

  .company-v8-information .fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .company-v8-information .fields > div {
    padding: 12px;
  }

  .company-v8-information .fields > .wide {
    grid-column: 1 / -1;
  }

  .company-v8-information .fields p {
    font-size: 13px;
  }

  .company-v8-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .company-v8-stats .card {
    padding: 17px;
  }

  .company-v8-stats .card .number {
    font-size: 25px;
  }

  .company-premium-v8 .panel form .fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .company-premium-v8 .panel form input,
  .company-premium-v8 .panel form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .company-premium-v8 .panel form > .btn {
    width: 100%;
    min-height: 44px;
  }

  .company-premium-v8 .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .company-premium-v8 .table-wrap table {
    min-width: 570px;
  }

  .company-premium-v8 .table-wrap form button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .company-v8-information .fields {
    grid-template-columns: 1fr;
  }

  .company-v8-information .fields > div {
    grid-column: 1 / -1;
  }
}


/* PROLEADS_COMPANIES_LIST_V9 */

.companies-v9 {
  display: grid;
  gap: 19px;
  min-width: 0;
}

.companies-v9-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.companies-v9-heading h2 {
  margin: 0 0 6px;
  color: #10213e;
  font-size: 23px;
  font-weight: 800;
}

.companies-v9-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.companies-v9-total {
  padding: 8px 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.companies-v9-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.companies-v9-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e2e9f3;
  border-radius: 13px;
  background: #fff;
}

.companies-v9-stat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.companies-v9-stat strong {
  color: #10213e;
  font-size: 28px;
  font-weight: 850;
}

.companies-v9-panel {
  min-width: 0;
}

.companies-v9-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(170px, 1fr);
  gap: 15px;
  margin-bottom: 21px;
}

.companies-v9-toolbar > div {
  min-width: 0;
}

.companies-v9-toolbar label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.companies-v9-toolbar input,
.companies-v9-toolbar select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
}

.companies-v9-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.companies-v9-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.companies-v9-table th {
  padding: 14px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.companies-v9-table td {
  padding: 16px 14px;
  border-top: 1px solid #edf1f7;
  vertical-align: middle;
  font-size: 13px;
}

.companies-v9-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.companies-v9-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 41px;
  height: 41px;
  border-radius: 11px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 800;
}

.companies-v9-name strong,
.companies-v9-location strong {
  display: block;
  color: #10213e;
  font-weight: 750;
}

.companies-v9-table small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.companies-v9-contact span {
  display: block;
}

.companies-v9-badge {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.companies-v9-badge.is-active {
  background: #dcfce7;
  color: #166534;
}

.companies-v9-badge.is-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.companies-v9-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.companies-v9-no-results {
  padding: 20px;
  color: #64748b;
  text-align: center;
}

.companies-v9-table tr[hidden],
.companies-v9-no-results[hidden] {
  display: none !important;
}

@media (max-width: 720px) {

  .companies-v9-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .companies-v9-heading h2 {
    font-size: 20px;
  }

  .companies-v9-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .companies-v9-stat {
    padding: 12px 9px;
    gap: 9px;
  }

  .companies-v9-stat span {
    font-size: 10px;
    line-height: 1.35;
  }

  .companies-v9-stat strong {
    font-size: 23px;
  }

  .companies-v9-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .companies-v9-table-wrap {
    overflow: visible;
  }

  .companies-v9-table {
    display: block;
    min-width: 0;
  }

  .companies-v9-table thead {
    display: none;
  }

  .companies-v9-table tbody {
    display: grid;
    gap: 13px;
  }

  .companies-v9-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 17px;
    border: 1px solid #e2e9f3;
    border-radius: 13px;
    background: #fff;
  }

  .companies-v9-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .companies-v9-name-cell {
    grid-column: 1 / -1;
  }

  .companies-v9-contact {
    grid-column: 1 / -1;
  }

  .companies-v9-location,
  .companies-v9-state {
    grid-column: auto;
  }

  .companies-v9-actions {
    grid-column: 1 / -1;
  }

  .companies-v9-actions .btn {
    display: flex;
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
  }

  .companies-v9-empty {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .companies-v9-table tbody tr {
    grid-template-columns: 1fr;
  }

  .companies-v9-location,
  .companies-v9-state {
    grid-column: 1;
  }
}


/* PROLEADS_ASSIGNMENTS_V10 */

.assignments-v10 {
  display: grid;
  gap: 19px;
  min-width: 0;
}

.assignments-v10-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.assignments-v10-heading h2 {
  margin: 0 0 6px;
  color: #10213e;
  font-size: 23px;
  font-weight: 800;
}

.assignments-v10-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.assignments-v10-count {
  padding: 8px 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.assignments-v10-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.assignments-v10-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e2e9f3;
  border-radius: 13px;
  background: #fff;
}

.assignments-v10-stat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.assignments-v10-stat strong {
  color: #10213e;
  font-size: 28px;
  font-weight: 850;
}

.assignments-v10-panel {
  min-width: 0;
}

.assignments-v10-toolbar {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(170px,1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.assignments-v10-toolbar > div {
  min-width: 0;
}

.assignments-v10-toolbar label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.assignments-v10-toolbar input,
.assignments-v10-toolbar select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
}

.assignments-v10-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.assignments-v10-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.assignments-v10-table th {
  padding: 14px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.assignments-v10-table td {
  padding: 15px 12px;
  border-top: 1px solid #edf1f7;
  vertical-align: middle;
  font-size: 13px;
}

.assignments-v10-table a {
  color: #1d4ed8;
  font-weight: 750;
  text-decoration: none;
}

.assignments-v10-table a:hover {
  text-decoration: underline;
}

.assignments-v10-table small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
}

.assignment-v10-id strong {
  color: #10213e;
}

.assignment-v10-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.assignment-v10-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.assignment-v10-badge.status-sent {
  background: #dbeafe;
  color: #1d4ed8;
}

.assignment-v10-badge.status-accepted {
  background: #dcfce7;
  color: #166534;
}

.assignment-v10-badge.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.assignment-v10-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignment-v10-form select {
  min-width: 115px;
  min-height: 38px;
}

.assignment-v10-form button {
  min-height: 38px;
  white-space: nowrap;
}

.assignment-v10-no-results {
  padding: 20px;
  color: #64748b;
  text-align: center;
}

.assignments-v10-table tr[hidden],
.assignment-v10-no-results[hidden] {
  display: none !important;
}

@media (max-width: 720px) {

  .assignments-v10-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .assignments-v10-heading h2 {
    font-size: 20px;
  }

  .assignments-v10-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  .assignments-v10-stat {
    padding: 15px;
  }

  .assignments-v10-stat strong {
    font-size: 24px;
  }

  .assignments-v10-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .assignments-v10-table-wrap {
    overflow: visible;
  }

  .assignments-v10-table {
    display: block;
    min-width: 0;
  }

  .assignments-v10-table thead {
    display: none;
  }

  .assignments-v10-table tbody {
    display: grid;
    gap: 13px;
  }

  .assignments-v10-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
    padding: 17px;
    border: 1px solid #e2e9f3;
    border-radius: 13px;
    background: #fff;
  }

  .assignments-v10-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .assignment-v10-id,
  .assignment-v10-client,
  .assignment-v10-company,
  .assignment-v10-actions {
    grid-column: 1 / -1;
  }

  .assignment-v10-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
  }

  .assignment-v10-form select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .assignment-v10-form button {
    min-height: 44px;
  }
}

@media (max-width: 380px) {

  .assignments-v10-table tbody tr {
    grid-template-columns: 1fr;
  }

  .assignment-v10-site,
  .assignment-v10-date,
  .assignment-v10-state {
    grid-column: 1;
  }
}


/* PROLEADS_SALES_V11 */

.sales-v11 {
  display: grid;
  gap: 19px;
  min-width: 0;
}

.sales-v11-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.sales-v11-heading h2 {
  margin: 0 0 6px;
  color: #10213e;
  font-size: 23px;
  font-weight: 800;
}

.sales-v11-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.sales-v11-count {
  padding: 8px 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.sales-v11-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.sales-v11-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e2e9f3;
  border-radius: 13px;
  background: #fff;
}

.sales-v11-stat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.sales-v11-stat strong {
  color: #10213e;
  font-size: 24px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.sales-v11-stat:last-child strong {
  color: #166534;
}

.sales-v11-panel {
  min-width: 0;
}

.sales-v11-toolbar {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(170px,1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.sales-v11-toolbar > div {
  min-width: 0;
}

.sales-v11-toolbar label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.sales-v11-toolbar input,
.sales-v11-toolbar select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
}

.sales-v11-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.sales-v11-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.sales-v11-table th {
  padding: 14px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.sales-v11-table td {
  padding: 15px 12px;
  border-top: 1px solid #edf1f7;
  vertical-align: middle;
  font-size: 13px;
}

.sales-v11-table a {
  color: #1d4ed8;
  font-weight: 750;
  text-decoration: none;
}

.sales-v11-table a:hover {
  text-decoration: underline;
}

.sales-v11-table strong {
  color: #10213e;
}

.sales-v11-amount strong {
  font-size: 15px;
  white-space: nowrap;
}

.sales-v11-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.sales-v11-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.sales-v11-badge.status-invoiced {
  background: #dbeafe;
  color: #1d4ed8;
}

.sales-v11-badge.status-paid {
  background: #dcfce7;
  color: #166534;
}

.sales-v11-badge.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.sales-v11-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sales-v11-form select {
  min-width: 115px;
  min-height: 38px;
}

.sales-v11-form button {
  min-height: 38px;
  white-space: nowrap;
}

.sales-v11-no-results {
  padding: 20px;
  color: #64748b;
  text-align: center;
}

.sales-v11-table tr[hidden],
.sales-v11-no-results[hidden] {
  display: none !important;
}

@media (max-width: 720px) {

  .sales-v11-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-v11-heading h2 {
    font-size: 20px;
  }

  .sales-v11-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  .sales-v11-stat {
    padding: 14px;
  }

  .sales-v11-stat strong {
    font-size: 19px;
  }

  .sales-v11-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sales-v11-table-wrap {
    overflow: visible;
  }

  .sales-v11-table {
    display: block;
    min-width: 0;
  }

  .sales-v11-table thead {
    display: none;
  }

  .sales-v11-table tbody {
    display: grid;
    gap: 13px;
  }

  .sales-v11-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
    padding: 17px;
    border: 1px solid #e2e9f3;
    border-radius: 13px;
    background: #fff;
  }

  .sales-v11-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .sales-v11-id,
  .sales-v11-client,
  .sales-v11-company,
  .sales-v11-amount,
  .sales-v11-actions {
    grid-column: 1 / -1;
  }

  .sales-v11-amount strong {
    font-size: 23px;
    color: #10213e;
  }

  .sales-v11-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
  }

  .sales-v11-form select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .sales-v11-form button {
    min-height: 44px;
  }
}

@media (max-width: 380px) {

  .sales-v11-table tbody tr {
    grid-template-columns: 1fr;
  }

  .sales-v11-site,
  .sales-v11-date,
  .sales-v11-state {
    grid-column: 1;
  }
}


/* PROLEADS_SITES_V12 */
.sites-v12{display:grid;gap:20px;min-width:0}
.sites-v12-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}
.sites-v12-heading h2{margin:0 0 6px;font-size:23px;font-weight:800;color:#10213e}
.sites-v12-heading p{margin:0;color:#64748b;font-size:13px}
.sites-v12-count{padding:8px 13px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:750;white-space:nowrap}
.sites-v12-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sites-v12-stat{display:flex;flex-direction:column;gap:11px;min-width:0;padding:20px;border:1px solid #e2e9f3;border-radius:13px;background:#fff}
.sites-v12-stat span{color:#64748b;font-size:12px;font-weight:650}
.sites-v12-stat strong{font-size:23px;font-weight:850;color:#10213e;overflow-wrap:anywhere}
.sites-v12-stat .positive,.sites-v12-profit.positive strong{color:#166534}
.sites-v12-stat .negative,.sites-v12-profit.negative strong{color:#b91c1c}
.sites-v12-panel{min-width:0}
.sites-v12-panel h3{margin:0 0 7px;color:#10213e;font-size:17px;font-weight:800}
.sites-v12-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;align-items:end;gap:13px;margin-top:18px}
.sites-v12-filters>div{min-width:0}
.sites-v12-filters label{display:block;margin-bottom:8px;font-size:12px;font-weight:700}
.sites-v12-filters input,.sites-v12-filters select{width:100%;min-height:44px;box-sizing:border-box}
.sites-v12-submit button{min-height:44px;white-space:nowrap}
.sites-v12-period{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px;padding:13px 15px;border-radius:10px;background:#f1f5fb}
.sites-v12-period span{color:#64748b;font-size:12px}
.sites-v12-period strong{color:#10213e;font-size:13px}
.sites-v12-table-wrap{width:100%;overflow-x:auto}
.sites-v12-table{width:100%;min-width:970px;border-collapse:collapse}
.sites-v12-table th{padding:14px 12px;text-align:left;font-size:11px;font-weight:800;color:#64748b}
.sites-v12-table td{padding:16px 12px;border-top:1px solid #edf1f7;font-size:13px;vertical-align:middle}
.sites-v12-project strong{display:block;color:#10213e;font-size:13px}
.sites-v12-project small{display:block;margin-top:5px;color:#64748b;font-size:11px}
.sites-v12-income{color:#166534;font-weight:750}
.sites-v12-margin{display:inline-flex;padding:6px 9px;border-radius:7px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:750}
@media(max-width:1050px){.sites-v12-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sites-v12-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
.sites-v12-heading{align-items:flex-start;flex-direction:column}
.sites-v12-heading h2{font-size:20px}
.sites-v12-stat{padding:14px}
.sites-v12-stat strong{font-size:18px}
.sites-v12-filters{grid-template-columns:1fr}
.sites-v12-submit button{width:100%}
.sites-v12-table-wrap{overflow:visible}
.sites-v12-table{display:block;min-width:0}
.sites-v12-table thead{display:none}
.sites-v12-table tbody{display:grid;gap:13px}
.sites-v12-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:17px;border:1px solid #e2e9f3;border-radius:13px;background:#fff}
.sites-v12-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
.sites-v12-table td:not(.sites-v12-project)::before{content:attr(data-label);display:block;margin-bottom:5px;color:#64748b;font-size:11px;font-weight:650}
.sites-v12-project{grid-column:1/-1;padding-bottom:12px!important;border-bottom:1px solid #edf1f7!important}
.sites-v12-project strong{font-size:16px}
.sites-v12-profit{grid-column:1/-1;padding-top:12px!important;border-top:1px solid #edf1f7!important}
.sites-v12-profit strong{font-size:19px}
}
@media(max-width:380px){.sites-v12-table tbody tr{grid-template-columns:1fr}}

/* PROLEADS_EXPENSES_V13 */
.expenses-v13-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}
.expenses-v13-summary .number {
  margin-top: 6px;
  color: #1746a2;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.expenses-v13-summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 750;
}
.expenses-v13-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.expenses-v13-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #dbe5f1;
  border-radius: 9px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.expenses-v13-actions a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.expenses-v13-actions a.expenses-v13-delete {
  color: #b42318;
  border-color: #f1d4d1;
}
.expenses-v13-actions a.expenses-v13-delete:hover {
  background: #fff5f4;
}
.expenses-v13-table td {
  vertical-align: middle;
}
.expenses-v13-table td strong {
  font-variant-numeric: tabular-nums;
}
.expenses-v13-concept {
  min-width: 150px;
  font-weight: 650;
  color: #172b4d;
}
.expenses-v13-notes {
  display: block;
  max-width: 360px;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.expenses-v13-type {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.expenses-v13-type.recurring {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}
.expenses-v13-section-intro {
  margin: -5px 0 20px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .expenses-v13-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .expenses-v13-summary-count {
    justify-self: start;
  }
  .expenses-v13-actions {
    gap: 6px;
  }
  .expenses-v13-actions a {
    flex: 1 1 auto;
  }
}


/* PROLEADS_FINANCES_V13 */
.finances-v13-filter {
  border-top: 3px solid #2563eb;
}
.finances-v13-kpis .card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}
.finances-v13-kpis .card:nth-child(1) {
  border-top: 3px solid #2563eb;
}
.finances-v13-kpis .card:nth-child(2) {
  border-top: 3px solid #f59e0b;
}
.finances-v13-kpis .card:nth-child(3) {
  border-top: 3px solid #16a34a;
}
.finances-v13-kpis .card:nth-child(4) {
  border-top: 3px solid #64748b;
}
.finances-v13-kpis .number {
  margin-top: 8px;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.finances-v13-chart,
.finances-v13-comparison,
.finances-v13-table-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.finances-v13-table {
  width: 100%;
}
.finances-v13-table td,
.finances-v13-table th {
  padding: 14px 16px;
  white-space: nowrap;
}
.finances-v13-table td:first-child {
  white-space: normal;
  min-width: 140px;
}
.finances-v13-comparison > div[style*="display:grid"] {
  gap: 24px !important;
}
@media (max-width: 720px) {
  .finances-v13-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .finances-v13-kpis .card {
    padding: 14px;
  }
  .finances-v13-kpis .number {
    font-size: clamp(19px, 5vw, 25px);
  }
  .finances-v13-chart,
  .finances-v13-comparison,
  .finances-v13-table-panel {
    padding: 16px;
  }
}

/* PROLEADS_UNIFORM_FIELDS_V14 */

/* Altura, anchura y tipografía coherentes en todos los formularios */
.panel form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.panel form select,
.panel form textarea,
.fields input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.fields select,
.fields textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  border-radius: 10px;
}

/* Una altura estándar para todos los campos de una línea */
.panel form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.panel form select,
.fields input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.fields select {
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
}

/* Las áreas de texto conservan espacio para escribir */
.panel form textarea,
.fields textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

/* Evitar que los controles se salgan de sus columnas */
.panel form .field,
.fields > div {
  min-width: 0;
}


/* PROLEADS_UNIFORM_FIELDS_V15 */

/* Controles de una línea en toda la aplicación */
body form:not(.inline-form) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"]),
body form:not(.inline-form) select,
body .fields input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"]),
body .fields select {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 12px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  border-radius: 10px !important;
}

/* Desplegables y campos de estado dentro de tablas */
body form.inline-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body form.inline-form select {
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  max-width: 100% !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  border-radius: 10px !important;
}

/* Áreas de texto: misma anchura, con altura para escribir */
body form:not(.inline-form) textarea,
body .fields textarea {
  box-sizing: border-box !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 120px !important;
  padding: 12px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  border-radius: 10px !important;
  resize: vertical;
}

/* Evitar desbordamientos en las columnas de formularios */
body .fields > div,
body .fields .field,
body form .field {
  min-width: 0;
  box-sizing: border-box;
}

/* FIN PROLEADS_UNIFORM_FIELDS_V15 */


/* PROLEADS_UNIFORM_SELECTS_V16 */

/* Desplegables uniformes en todas las secciones */
body select {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 12px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  border-radius: 10px !important;
}

/* Selectores de estado dentro de las tablas comerciales */
body form.inline-form select {
  box-sizing: border-box !important;
  width: 190px !important;
  min-width: 190px !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  flex: 0 1 190px !important;
  padding: 0 12px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  border-radius: 10px !important;
}

/* FIN PROLEADS_UNIFORM_SELECTS_V16 */

