
/* ===== Imported foundation: app.css ===== */
/* =====================================================
   TRADE MANAGER · APP CORE
   Base visual global · Tablet / PC first
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#f7f8fa;
  --surface:#ffffff;
  --surface-2:#fbfdfb;

  --primary:#0f6b57;
  --primary-dark:#084c3f;
  --primary-soft:#e8f5f1;
  --primary-2:#19a57d;

  --gold:#c9a34a;
  --gold-soft:#fff7df;

  --blue:#2f6fed;
  --blue-soft:#eef4ff;

  --success:#16a34a;
  --success-soft:#ecfdf5;

  --warning:#d97706;
  --warning-soft:#fff7ed;

  --danger:#dc2626;
  --danger-soft:#fee2e2;

  --text:#102027;
  --heading:#08241d;
  --muted:#64748b;
  --muted-2:#94a3b8;

  --line:rgba(15,23,42,.09);
  --line-soft:rgba(15,23,42,.06);

  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:20px;
  --radius-xl:24px;
  --radius-2xl:28px;

  --shadow-sm:0 8px 20px rgba(15,23,42,.055);
  --shadow:0 12px 30px rgba(15,23,42,.08);
  --shadow-lg:0 20px 50px rgba(15,23,42,.10);

  --sidebar-w:250px;
  --content-max:1360px;

  --sf-blue:var(--primary);
  --sf-blue-dark:var(--heading);
  --sf-cloud:var(--primary-soft);
  --sf-bg:var(--bg);

  --panel:var(--surface);
  --card:var(--surface);
  --ink:var(--text);
  --green:var(--primary);
  --green-2:var(--primary-2);
}

/* RESET */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  max-width:100%;
  min-height:100%;
  margin:0;
  overflow-x:hidden;
}

body{
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 0%,rgba(25,165,125,.13),transparent 30%),
    radial-gradient(circle at 82% 4%,rgba(201,163,74,.10),transparent 28%),
    linear-gradient(180deg,#f8faf9 0%,var(--bg) 100%);
  letter-spacing:-.01em;
}

button,
input,
select,
textarea{
  font-family:inherit;
}

button{
  cursor:pointer;
}

/* LAYOUT */
.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
}

.main{
  min-width:0;
  padding:26px 28px;
}

.view-root{
  width:100%;
  max-width:100%;
  margin:0 auto;
}

.topbar{
  display:none;
}

/* SIDEBAR */
.sidebar,
.pro-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  width:var(--sidebar-w);
  min-width:var(--sidebar-w);
  padding:22px 18px;
  color:#fff;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(180deg,var(--primary) 0%,var(--primary-dark) 100%);
  box-shadow:16px 0 40px rgba(15,23,42,.12);
}

.brand,
.pro-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:28px;
}

.brand-icon-wrap{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 28px rgba(8,76,63,.20);
}

.brand img,
.pro-brand img{
  width:40px;
  height:40px;
  border-radius:13px;
}

.brand strong,
.pro-brand strong{
  display:block;
  color:#fff;
  font-size:23px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.055em;
  text-transform:uppercase;
}

.brand span,
.pro-brand span{
  display:block;
  margin-top:7px;
  color:rgba(255,255,255,.72);
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.nav,
.pro-nav{
  display:grid;
  gap:9px;
}

.nav-btn,
.pro-nav .nav-btn{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 14px;
  border:0;
  border-radius:15px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.88);
  text-align:left;
  font-size:14px;
  font-weight:850;
  transition:.18s ease;
}

.nav-btn span{
  width:24px;
  display:inline-grid;
  place-items:center;
}

.nav-btn:hover{
  background:rgba(255,255,255,.14);
}

.nav-btn.active{
  position:relative;
  background:#fff;
  color:var(--primary-dark);
  box-shadow:0 16px 34px rgba(8,76,63,.24);
}

.nav-btn.active::before{
  content:"";
  position:absolute;
  left:-8px;
  top:12px;
  bottom:12px;
  width:4px;
  border-radius:999px;
  background:var(--gold);
}

.sidebar-footer-pro{
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.16);
}

.sidebar-footer-pro span{
  display:block;
  color:rgba(255,255,255,.58);
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
}

.sidebar-footer-pro strong{
  display:block;
  margin-top:8px;
  color:#fff;
  font-size:12px;
  font-weight:850;
}

/* HERO GLOBAL */
.pro-hero,
.radar-sf-header,
.crm-dashboard-hero,
.panel-ops-head,
.suite-actas .crm-hero.pro-hero{
  min-height:128px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:0 0 18px;
  padding:24px 30px;
  border:1px solid var(--line-soft);
  border-radius:var(--radius-xl);
  background:
    radial-gradient(circle at 88% 12%,rgba(25,165,125,.14),transparent 32%),
    linear-gradient(135deg,var(--surface),var(--surface-2));
  box-shadow:var(--shadow);
}

.pro-eyebrow,
.radar-sf-title span,
.crm-dashboard-hero span,
.crm-section-head span,
.sf-field-label{
  display:block;
  margin:0 0 7px;
  color:var(--primary);
  font-size:11px;
  line-height:1;
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.pro-hero h1,
.radar-sf-title h1,
.crm-dashboard-hero h2,
.panel-ops-head h1,
.suite-actas .crm-hero h1{
  margin:0;
  color:var(--heading);
  font-size:38px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.055em;
}

.pro-hero p,
.radar-sf-title p,
.crm-dashboard-hero p,
.panel-ops-head p,
.suite-actas .crm-hero p{
  max-width:740px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.42;
  font-weight:650;
}

.radar-sf-title{
  display:flex;
  align-items:center;
  gap:16px;
}

.radar-sf-icon{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:21px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:28px;
}

/* BUTTONS */
.pro-btn,
.actas-primary-btn,
.panel-ops-btn.active{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  border:0;
  border-radius:var(--radius-md);
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  font-size:14px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(15,107,87,.22);
}

.ghost-btn,
.actas-secondary-btn,
.mini-btn,
.panel-ops-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:#fff;
  color:var(--primary);
  font-size:13px;
  font-weight:850;
  box-shadow:var(--shadow-sm);
}

/* CARDS BASE */
.card,
.crm-client-filter-card,
.crm-client-table-card,
.radar-pro-card,
.panel-ops-card,
.panel-ops-left,
.panel-ops-right,
.panel-ops-center,
.actas-card,
.crm-dashboard-card,
.crm-route-block,
.crm-agenda-card,
.clientes-insight-pro{
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  box-shadow:var(--shadow);
}

.card{
  padding:18px;
}

.card-title{
  margin:0 0 10px;
  color:var(--heading);
  font-size:18px;
  font-weight:900;
}

/* CRM BASE */
.radar-salesforce-page,
.clientes-pro-page{
  display:grid;
  gap:18px;
}

.radar-sf-tabs{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.crm-search,
.panel-ops-input{
  width:100%;
  min-height:54px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:var(--text);
  font-size:15px;
  font-weight:750;
  outline:none;
}

.crm-search:focus,
.panel-ops-input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color:rgba(15,107,87,.35);
  box-shadow:0 0 0 4px rgba(15,107,87,.09);
}

.crm-filter-chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.crm-filter-chip{
  min-height:40px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--primary);
  font-size:13px;
  font-weight:900;
}

.crm-filter-chip.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.crm-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.crm-section-head h3{
  margin:0;
  color:var(--heading);
  font-size:20px;
  font-weight:950;
  letter-spacing:-.03em;
}

.crm-section-head strong{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:12px;
  font-weight:950;
}

/* TABLES */
.table-wrap{
  overflow:auto;
  border-radius:var(--radius-lg);
}

.table,
.crm-table,
.radar-table{
  width:100%;
  min-width:1120px;
  border-collapse:separate;
  border-spacing:0 10px;
}

.table th,
.crm-table thead th{
  padding:0 14px 8px;
  text-align:left;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.table tbody tr,
.crm-table tbody tr{
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.table td,
.crm-table tbody td{
  padding:15px 14px;
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
  color:var(--text);
  font-size:14px;
  font-weight:750;
  vertical-align:middle;
}

.table td:first-child,
.crm-table tbody td:first-child{
  border-left:1px solid var(--line-soft);
  border-radius:16px 0 0 16px;
}

.table td:last-child,
.crm-table tbody td:last-child{
  border-right:1px solid var(--line-soft);
  border-radius:0 16px 16px 0;
}

/* CLIENTE ROW BASE */
.cliente-pro-main{
  display:flex;
  align-items:center;
  gap:12px;
}

.cliente-pro-avatar{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:21px;
}

.cliente-pro-main strong{
  display:block;
  color:var(--heading);
  font-size:15px;
  font-weight:950;
}

.cliente-pro-main small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}

.cliente-pro-chips,
.chip-list{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.brand-chip,
.chip,
.badge,
.cliente-status-chip,
.cliente-potencial-chip,
.radar-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:27px;
  padding:5px 9px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}

.radar-status.up,
.cliente-status-chip{
  background:var(--success-soft);
  color:var(--success);
}

.radar-status.same,
.cliente-potencial-chip{
  background:var(--warning-soft);
  color:var(--warning);
}

/* FORMS */
.form-grid,
.actas-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.form-full,
.actas-field.form-full{
  grid-column:1 / -1;
}

.form-field,
.actas-field{
  display:grid;
  gap:6px;
}

.form-field label,
.actas-field label{
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.form-field input,
.form-field select,
.form-field textarea,
.actas-field input,
.actas-field select,
.actas-field textarea,
textarea{
  width:100%;
  min-height:50px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:#fff;
  color:var(--text);
  font-size:14px;
  font-weight:750;
  outline:none;
}

textarea,
.form-field textarea,
.actas-field textarea{
  min-height:98px;
  padding:13px 14px;
  resize:vertical;
}

/* DRAWER BASE */
.drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(15,32,39,.38);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
}

.drawer-backdrop.show{
  opacity:1;
  pointer-events:auto;
}

.drawer{
  position:fixed;
  top:0;
  right:0;
  z-index:60;
  width:min(760px,100%);
  height:100vh;
  padding:24px;
  overflow:auto;
  background:var(--surface);
  box-shadow:-24px 0 70px rgba(15,23,42,.22);
  transform:translateX(100%);
  transition:.24s ease;
}

.drawer.show{
  transform:translateX(0);
}

.drawer-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}

.drawer-title{
  margin:0;
  color:var(--heading);
  font-size:30px;
  font-weight:950;
  letter-spacing:-.05em;
}

.drawer-subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:750;
}

.drawer-close{
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--primary);
  font-size:24px;
  font-weight:900;
}

/* ACTAS BASE */
.suite-actas{
  max-width:var(--content-max);
  margin:0 auto;
  display:grid;
  gap:18px;
}

.actas-subnav,
.crm-subnav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:8px;
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:var(--shadow);
}

.actas-subnav-btn{
  min-height:44px;
  padding:0 16px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--primary);
  font-size:13px;
  font-weight:900;
}

.actas-subnav-btn.active{
  background:var(--primary);
  color:#fff;
}

.actas-chips,
.crm-chip-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.acta-chip,
.actas-chip{
  min-height:38px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--primary);
  font-size:12px;
  font-weight:900;
}

.acta-chip.active,
.actas-chip.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.actas-preview,
.acta-output{
  white-space:pre-wrap;
  min-height:240px;
  padding:16px;
  border-radius:18px;
  background:#102027;
  color:#f8fafc;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px;
  line-height:1.6;
}

/* PANEL ANDALUCÍA BASE */
.panel-ops{
  max-width:var(--content-max);
  margin:0 auto;
}

.panel-ops-shell{
  display:grid;
  grid-template-columns:280px minmax(520px,1fr) 340px;
  gap:16px;
  align-items:stretch;
}

.panel-ops-left,
.panel-ops-right{
  padding:20px;
}

.panel-ops-center{
  overflow:hidden;
  min-height:650px;
}

.panel-ops-map{
  width:100%;
  height:650px;
}

/* TOAST */
.toast{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:100;
  max-width:420px;
  padding:14px 16px;
  border-radius:16px;
  background:var(--heading);
  color:#fff;
  font-weight:850;
  box-shadow:var(--shadow-lg);
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:.2s ease;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

/* TABLET / PC */
@media(max-width:1200px){
  :root{
    --sidebar-w:230px;
  }

  .main{
    padding:22px;
  }

  .radar-sf-kpis,
  .crm-dashboard-kpis,
  .panel-ops-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .panel-ops-shell{
    grid-template-columns:260px minmax(0,1fr);
  }

  .panel-ops-right{
    grid-column:1 / -1;
  }
}

@media(max-width:900px){
  .app-shell{
    grid-template-columns:1fr;
  }

  .sidebar,
  .pro-sidebar{
    position:static;
    width:100%;
    min-width:100%;
    height:auto;
  }

  .nav,
  .pro-nav{
    display:flex;
    overflow:auto;
    padding-bottom:4px;
  }

  .nav-btn{
    white-space:nowrap;
  }

  .main{
    padding:18px;
  }

  .pro-hero,
  .radar-sf-header,
  .crm-dashboard-hero,
  .panel-ops-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .pro-hero h1,
  .radar-sf-title h1,
  .crm-dashboard-hero h2,
  .panel-ops-head h1{
    font-size:32px;
  }

  .radar-sf-kpis,
  .crm-dashboard-kpis,
  .panel-ops-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .form-grid,
  .actas-form-grid,
  .panel-ops-shell{
    grid-template-columns:1fr;
  }
}

/* ===== Imported foundation: components.css ===== */
/* =====================================================
   TRADE MANAGER · COMPONENTES REUTILIZABLES
===================================================== */

.tm-panel{
  padding:22px;
  border:1px solid var(--line-soft);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#fbfdfb);
  box-shadow:var(--shadow);
}

.tm-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.tm-panel-head h3{
  margin:0;
  color:var(--primary);
  font-size:18px;
  font-weight:950;
}

.tm-panel-head span{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

/* KPI ENTERPRISE */
.tm-kpi-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}

.tm-kpi{
  position:relative;
  overflow:hidden;
  min-height:112px;
  padding:16px;
  border:1px solid var(--line-soft);
  border-top:4px solid var(--primary);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fbfdfb);
  box-shadow:var(--shadow);
}

.tm-kpi::after{
  content:"";
  position:absolute;
  right:-28px;
  top:-28px;
  width:90px;
  height:90px;
  border-radius:999px;
  background:rgba(15,107,87,.08);
}

.tm-kpi:nth-child(2){border-top-color:var(--success);}
.tm-kpi:nth-child(3){border-top-color:#f97316;}
.tm-kpi:nth-child(4){border-top-color:#8b5cf6;}
.tm-kpi:nth-child(5){border-top-color:var(--blue);}
.tm-kpi:nth-child(6){border-top-color:var(--gold);}

.tm-kpi-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  margin-bottom:10px;
  background:var(--primary-soft);
  font-size:22px;
}

.tm-kpi.green .tm-kpi-icon{background:var(--success-soft);}
.tm-kpi.blue .tm-kpi-icon{background:var(--blue-soft);}
.tm-kpi.gold .tm-kpi-icon{background:var(--gold-soft);}
.tm-kpi.orange .tm-kpi-icon{background:var(--warning-soft);}
.tm-kpi.purple .tm-kpi-icon{background:#f3e8ff;}

.tm-kpi-label{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.tm-kpi strong{
  display:block;
  margin-top:12px;
  color:var(--heading);
  font-size:32px;
  line-height:1;
  font-weight:950;
}

.tm-kpi small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.tm-kpi-trend{
  display:inline-flex;
  margin-top:10px;
  padding:5px 9px;
  border-radius:999px;
  background:var(--success-soft);
  color:var(--success);
  font-size:11px;
  font-weight:900;
}

/* MODULE CARDS */
.tm-module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.tm-module-card{
  min-height:150px;
  padding:18px;
  border:1px solid var(--line-soft);
  border-radius:22px;
  background:#fff;
  color:var(--text);
  box-shadow:var(--shadow-sm);
  text-align:left;
}

.tm-module-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  margin-bottom:14px;
  background:var(--primary-soft);
  font-size:25px;
}

.tm-module-card h4{
  margin:0;
  color:var(--heading);
  font-size:16px;
  font-weight:950;
}

.tm-module-card p{
  margin:7px 0 12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  font-weight:650;
}

.tm-module-card b{
  color:var(--primary);
  font-size:13px;
  font-weight:950;
}

/* CLIENT ROW */
.tm-client-row{
  width:100%;
  min-height:62px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid var(--line-soft);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  text-align:left;
}

.tm-client-row + .tm-client-row{
  margin-top:9px;
}

.tm-client-row span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--primary-soft);
}

.tm-client-row strong{
  display:block;
  color:var(--heading);
  font-size:13px;
  font-weight:950;
}

.tm-client-row small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}

.tm-client-row b{
  padding:6px 9px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:10px;
  font-weight:950;
  white-space:nowrap;
}

/* STATUS BAR */
.tm-status-bar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:16px 18px;
  border:1px solid var(--line-soft);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}

.tm-status-item{
  display:flex;
  align-items:center;
  gap:12px;
}

.tm-status-item span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--primary-soft);
}

.tm-status-item strong{
  display:block;
  color:var(--heading);
  font-size:13px;
  font-weight:900;
}

.tm-status-item small{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

/* Tablet / PC only: KPIs siempre en una línea */
@media(max-width:1200px){
  .tm-kpi-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .tm-kpi-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }

  .tm-status-bar{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

/* ===== Imported foundation: suite-compact.css ===== */
/* =====================================================
   TRADE MANAGER · SUITE COMPACT PRO
   Capa visual final: densidad SIH PRO, identidad verde.
   No modifica lógica ni estructura funcional.
===================================================== */
:root{
  --sidebar-w:218px;
  --content-max:1480px;
  --radius-sm:9px;
  --radius-md:11px;
  --radius-lg:14px;
  --radius-xl:17px;
  --radius-2xl:20px;
  --shadow-sm:0 4px 12px rgba(15,23,42,.045);
  --shadow:0 8px 22px rgba(15,23,42,.065);
  --shadow-lg:0 14px 34px rgba(15,23,42,.09);
}
body{font-size:13px;letter-spacing:-.008em;background:linear-gradient(180deg,#f7f9f6 0%,#f4f6f3 100%)}
.main{padding:20px 24px}
.view-root{max-width:var(--content-max)}

/* Sidebar más profesional y denso */
.sidebar,.pro-sidebar{padding:18px 15px;box-shadow:10px 0 28px rgba(15,23,42,.09)}
.brand,.pro-brand{gap:11px;margin-bottom:22px}
.brand-icon-wrap{width:46px;height:46px;border-radius:13px}
.brand img,.pro-brand img{width:34px;height:34px;border-radius:10px}
.brand strong,.pro-brand strong{font-size:19px;letter-spacing:-.045em}
.brand span,.pro-brand span{margin-top:5px;font-size:9px;letter-spacing:.12em}
.nav,.pro-nav{gap:6px}
.nav-btn,.pro-nav .nav-btn{min-height:39px;gap:9px;padding:8px 11px;border-radius:11px;font-size:12.5px;font-weight:800}
.nav-btn span{width:20px}
.nav-btn.active{box-shadow:0 9px 22px rgba(8,76,63,.18)}
.nav-btn.active::before{left:-6px;top:10px;bottom:10px;width:3px}
.sidebar-footer-pro{margin-top:24px;padding-top:18px}
.sidebar-footer-pro span{font-size:9px}.sidebar-footer-pro strong{margin-top:6px;font-size:11px}

/* Cabeceras: menos hero, más software */
.pro-hero,.radar-sf-header,.crm-dashboard-hero,.panel-ops-head,.suite-actas .crm-hero.pro-hero,
.pricebook-hero-pro,.informes-hero,.ajustes-hero{
  min-height:94px!important;margin-bottom:14px!important;padding:17px 22px!important;border-radius:17px!important;box-shadow:var(--shadow)!important
}
.pro-eyebrow,.radar-sf-title span,.crm-dashboard-hero span,.crm-section-head span,.sf-field-label{margin-bottom:5px;font-size:9.5px;letter-spacing:.16em}
.pro-hero h1,.radar-sf-title h1,.crm-dashboard-hero h2,.panel-ops-head h1,.suite-actas .crm-hero h1,
.pricebook-hero-left h1,.informes-hero h1,.ajustes-hero h1{font-size:28px!important;line-height:1.06!important;letter-spacing:-.045em!important}
.pro-hero p,.radar-sf-title p,.crm-dashboard-hero p,.panel-ops-head p,.suite-actas .crm-hero p,
.pricebook-hero-left p,.informes-hero p,.ajustes-hero p{margin-top:6px!important;font-size:12.5px!important;line-height:1.35!important}
.radar-sf-title{gap:11px}.radar-sf-icon{width:48px;height:48px;border-radius:14px;font-size:22px}

/* Botones / inputs */
.pro-btn,.actas-primary-btn,.panel-ops-btn.active{min-height:37px;padding:0 14px;border-radius:10px;font-size:12px;box-shadow:0 7px 17px rgba(15,107,87,.16)}
.ghost-btn,.actas-secondary-btn,.mini-btn,.panel-ops-btn{min-height:36px;padding:0 12px;border-radius:10px;font-size:11.5px}
.crm-search,.panel-ops-input{min-height:42px;padding:0 13px;border-radius:11px;font-size:12.5px}
.crm-filter-chips{gap:7px;margin-top:10px}.crm-filter-chip{min-height:32px;padding:0 11px;font-size:11px}
.form-field input,.form-field select,.form-field textarea{font-size:12.5px}

/* Tarjetas y paneles */
.card,.crm-client-filter-card,.crm-client-table-card,.radar-pro-card,.panel-ops-card,.panel-ops-left,.panel-ops-right,.panel-ops-center,.actas-card,.crm-dashboard-card,.crm-route-block,.crm-agenda-card,.clientes-insight-pro{border-radius:14px;box-shadow:var(--shadow-sm)}
.card{padding:14px}.card-title{margin-bottom:7px;font-size:15px}
.tm-panel{padding:16px;border-radius:16px;box-shadow:var(--shadow-sm)}
.tm-panel-head{gap:10px;margin-bottom:12px}.tm-panel-head h3{font-size:15px}.tm-panel-head span{font-size:11px}
.crm-section-head{gap:12px;margin-bottom:11px}.crm-section-head h3{font-size:16px}.crm-section-head strong{min-height:28px;padding:0 9px;font-size:10px}

/* Dashboard */
.tm-dashboard{gap:13px}.tm-hero-actions{gap:8px}.tm-icon-btn{width:38px;height:38px;border-radius:10px;font-size:16px}
.tm-kpi-grid{gap:10px}
.tm-kpi{min-height:96px;padding:12px;border-top-width:3px;border-radius:15px;box-shadow:var(--shadow-sm)}
.tm-kpi::after{right:-32px;top:-34px;width:78px;height:78px}
.tm-kpi-icon{width:31px;height:31px;margin-bottom:7px;border-radius:9px;font-size:17px}
.tm-kpi-label{font-size:10px;letter-spacing:.07em}.tm-kpi strong{margin-top:8px;font-size:27px}.tm-kpi small{margin-top:5px;font-size:10.5px}.tm-kpi-trend{margin-top:7px;padding:3px 7px;font-size:9.5px}
.tm-dashboard-main,.tm-dashboard-bottom{gap:12px}.tm-activity-panel{padding:16px!important}.tm-chart,.tm-chart-colored{height:126px!important;padding:14px!important;border-radius:14px!important}
.tm-activity-panel .tm-panel-head strong{min-height:28px;padding:0 10px;font-size:9.5px}
.tm-main-cta{min-height:40px!important;padding:0 16px!important;font-size:12px!important}
.tm-ring{width:112px;height:112px;margin:7px auto 12px}.tm-ring div{width:82px;height:82px;font-size:27px}
.tm-modules-panel{padding:16px}.tm-modules-panel .tm-module-card{min-height:128px}.tm-module-grid{gap:10px}.tm-module-card{min-height:124px;padding:14px;border-radius:15px}.tm-module-icon{width:40px;height:40px;margin-bottom:10px;border-radius:11px;font-size:20px}.tm-module-card h4{font-size:13px}.tm-module-card p{margin:5px 0 8px;font-size:11px}.tm-module-card b{font-size:11px}

/* Tablas y listas: densidad de herramienta profesional */
.table-wrap{border-radius:12px}
.table,.crm-table,.radar-table{border-spacing:0 6px}
.table th,.crm-table thead th,.radar-table thead th{padding-top:7px!important;padding-bottom:7px!important;font-size:9.5px!important;letter-spacing:.07em!important}
.table td,.crm-table tbody td,.radar-table tbody td{padding-top:9px!important;padding-bottom:9px!important;font-size:11.5px!important}
.tm-client-row{min-height:50px;gap:9px;padding:7px;border-radius:11px}.tm-client-row + .tm-client-row{margin-top:6px}.tm-client-row span{width:34px;height:34px;border-radius:9px}.tm-client-row strong{font-size:11.5px}.tm-client-row small{font-size:9.5px}.tm-client-row b{padding:4px 7px;font-size:10px}

/* Módulos con mucho contenido */
.radar-salesforce-page,.clientes-pro-page,.suite-actas{gap:13px}
.actas-subnav,.crm-subnav{gap:6px;padding:6px;border-radius:12px;box-shadow:var(--shadow-sm)}
.actas-subnav-btn{min-height:34px;padding:0 12px;border-radius:9px;font-size:11px}
.actas-chips,.crm-chip-grid{gap:6px}.acta-chip,.actas-chip{min-height:30px;padding:6px 9px;font-size:10.5px}
.panel-ops-shell{grid-template-columns:240px minmax(500px,1fr) 290px;gap:12px}.panel-ops-left,.panel-ops-right{padding:15px}.panel-ops-center{min-height:560px}.panel-ops-map{height:560px}
.toast{right:16px;bottom:16px;max-width:360px;padding:10px 13px;border-radius:11px;font-size:11.5px}

/* Reducción coherente de títulos y KPIs específicos de módulos */
[class*="kpi"] strong,[class*="metric"] strong{line-height:1.05}
.pricebook-kpi,.radar-kpi,.clientes-kpi,.crm-dashboard-kpi,.panel-ops-kpi{border-radius:14px!important}

@media(max-width:1200px){
  :root{--sidebar-w:202px}
  .main{padding:17px}
  .panel-ops-shell{grid-template-columns:225px minmax(0,1fr)}
}
@media(max-width:900px){
  .sidebar,.pro-sidebar{padding:12px 14px}
  .brand,.pro-brand{margin-bottom:12px}.brand-icon-wrap{width:40px;height:40px}.brand strong,.pro-brand strong{font-size:17px}
  .nav,.pro-nav{gap:5px}.nav-btn,.pro-nav .nav-btn{min-height:36px;padding:7px 10px;font-size:11px}
  .main{padding:13px}
  .pro-hero,.radar-sf-header,.crm-dashboard-hero,.panel-ops-head,.suite-actas .crm-hero.pro-hero,.pricebook-hero-pro,.informes-hero,.ajustes-hero{min-height:auto!important;padding:14px 16px!important;gap:12px!important}
  .pro-hero h1,.radar-sf-title h1,.crm-dashboard-hero h2,.panel-ops-head h1,.suite-actas .crm-hero h1,.pricebook-hero-left h1,.informes-hero h1,.ajustes-hero h1{font-size:23px!important}
  .tm-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tm-kpi{min-height:88px;padding:10px}.tm-kpi strong{font-size:23px}
  .tm-modules-panel .tm-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .main{padding:10px}
  .tm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-modules-panel .tm-module-grid{grid-template-columns:1fr}
  .pro-hero h1,.radar-sf-title h1,.crm-dashboard-hero h2,.panel-ops-head h1,.suite-actas .crm-hero h1,.pricebook-hero-left h1,.informes-hero h1,.ajustes-hero h1{font-size:21px!important}
}
/* V2 · revenue integration */
.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.tm-dashboard .tm-kpi strong{font-size:clamp(1.35rem,1.8vw,2rem)}
@media(max-width:1250px){.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* ===== Imported foundation: unified-premium.css ===== */
/* TRADE MANAGER · V7 UNIFIED PREMIUM — capa final del sistema visual */
:root{--tm-green:#0d6b59;--tm-green2:#11876d;--tm-ink:#10352e;--tm-muted:#6b7785;--tm-line:#dfe7e3;--tm-soft:#f5f8f6;--tm-radius:18px;--tm-shadow:0 10px 28px rgba(18,56,47,.07)}
.view-root{font-size:14px}.view-root h1{font-size:34px!important;line-height:1.05!important;letter-spacing:-1.2px!important}.view-root h2{font-size:26px!important;line-height:1.1!important}.view-root h3{font-size:19px!important;line-height:1.15!important}.view-root p{line-height:1.45}
.tm-panel,.card,.clientes-hero,.clientes-control-panel,.clientes-table-panel,.actas-card,.actas-hero-panel,.ajustes-card,.ajustes-hero{border-radius:var(--tm-radius)!important;box-shadow:var(--tm-shadow)!important;border-color:var(--tm-line)!important}
.tm-panel{padding:18px 20px!important}.tm-panel-head{margin-bottom:14px!important}.tm-panel-head h3{font-size:18px!important}.tm-panel-head span{font-size:12px!important}
.tm-kpi-grid,.clientes-kpis,.actas-kpis,.actas-kpis-final,.crm-dashboard-kpis{gap:12px!important}.tm-kpi,.clientes-kpis .tm-kpi,.actas-kpi,.crm-dashboard-kpis article{min-height:132px!important;padding:14px 16px!important;border-radius:16px!important}.tm-kpi strong,.clientes-kpis .tm-kpi strong,.actas-kpi strong,.crm-dashboard-kpis strong{font-size:28px!important;line-height:1!important}.tm-kpi-icon,.clientes-kpis .tm-kpi-icon,.actas-kpi span{font-size:20px!important}
.suite-actas .crm-hero.pro-hero,.suite-actas .crm-dashboard-hero,.actas-hero-final{padding:20px 24px!important;min-height:auto!important}.suite-actas .crm-hero h1,.suite-actas .crm-dashboard-hero h2,.actas-hero-final h1{font-size:34px!important;line-height:1.05!important}.suite-actas .crm-hero p,.suite-actas .crm-dashboard-hero p{font-size:14px!important;max-width:680px!important}.actas-template-card{min-height:auto!important;padding:16px!important}.actas-template-grid,.actas-template-grid-final{gap:12px!important}
.clientes-hero,.clientes-hero-final{padding:20px 24px!important}.clientes-hero h1,.clientes-hero-final h1{font-size:34px!important}.clientes-control-panel{padding:18px 20px!important}.clientes-toolbar input,.clientes-toolbar select,.clientes-toolbar-filters select{min-height:44px!important;font-size:13px!important}
.pro-btn,.actas-primary-btn,.actas-secondary-btn,button{letter-spacing:0!important}.pro-btn{min-height:42px!important;padding:0 16px!important;border-radius:12px!important;font-size:13px!important}
input,select,textarea{border-radius:12px!important}.tm-chart-real{grid-template-columns:repeat(7,minmax(70px,1fr))!important;gap:12px!important;min-height:210px!important;overflow:hidden!important;padding:8px 8px 0!important}.tm-chart-real-item{height:190px!important;grid-template-rows:128px 28px 20px!important;gap:5px!important;overflow:hidden!important}.tm-chart-real-item i{width:54px!important;max-height:128px!important}.tm-chart-real-item strong{font-size:22px!important}.tm-chart-real-item small{font-size:11px!important}.tm-chart-legend{margin-top:10px!important;gap:8px!important;flex-wrap:wrap!important}.tm-chart-legend span{font-size:10px!important;padding:6px 9px!important}
.pro-brand .brand-icon-wrap img{content:url('../assets/icons/trade-manager.svg');object-fit:contain!important}.pro-nav .nav-btn>span:first-child{width:25px!important;height:25px!important;display:inline-grid!important;place-items:center!important;font-size:0!important;background-position:center!important;background-repeat:no-repeat!important;background-size:21px 21px!important}.pro-nav .nav-btn[data-view="dashboard"]>span{background-image:url('../assets/icons/dashboard.svg')}.pro-nav .nav-btn[data-view="panel"]>span{background-image:url('../assets/icons/panel.svg')}.pro-nav .nav-btn[data-view="clientes"]>span{background-image:url('../assets/icons/clientes.svg')}.pro-nav .nav-btn[data-view="actas"]>span{background-image:url('../assets/icons/actas.svg')}.pro-nav .nav-btn[data-view="cotizaciones"]>span{background-image:url('../assets/icons/cotizaciones.svg')}.pro-nav .nav-btn[data-view="ventas"]>span{background-image:url('../assets/icons/ventas.svg')}.pro-nav .nav-btn[data-view="tarifas"]>span{background-image:url('../assets/icons/tarifas.svg')}.pro-nav .nav-btn[data-view="radar"]>span{background-image:url('../assets/icons/radar.svg')}.pro-nav .nav-btn[data-view="informes"]>span{background-image:url('../assets/icons/informes.svg')}.pro-nav .nav-btn[data-view="ajustes"]>span{background-image:url('../assets/icons/ajustes.svg')}
@media(max-width:1100px){.view-root h1,.suite-actas .crm-hero h1,.suite-actas .crm-dashboard-hero h2,.clientes-hero h1{font-size:30px!important}.tm-chart-real{grid-template-columns:repeat(7,minmax(58px,1fr))!important}.tm-chart-real-item i{width:42px!important}}
@media(max-width:760px){.tm-panel{padding:14px!important}.tm-chart-real{overflow-x:auto!important;grid-template-columns:repeat(7,72px)!important}.tm-kpi-grid,.clientes-kpis,.actas-kpis,.actas-kpis-final{grid-template-columns:repeat(2,minmax(0,1fr))!important}.view-root h1{font-size:27px!important}}

/* V8 · coherencia semántica + visual */
.tm-svg-icon img{width:26px;height:26px;display:block}.tm-kpi-icon.tm-svg-icon{display:grid;place-items:center}
.tm-activity-panel .tm-chart-real{grid-template-columns:repeat(3,minmax(150px,1fr))!important;min-height:220px!important;max-width:760px;margin:0 auto;align-items:end}
.tm-activity-panel .tm-chart-real-item{height:195px!important;grid-template-rows:135px 28px 22px!important;text-align:center;justify-items:center}
.tm-chart-bar-zone{height:135px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.tm-chart-bar-zone>i{display:block;margin:0 auto!important;align-self:flex-end}.tm-activity-panel .tm-chart-real-item strong{width:100%;text-align:center;line-height:28px}.tm-activity-panel .tm-chart-real-item small{width:100%;text-align:center;line-height:18px}
.tm-activity-panel .tm-chart-legend{justify-content:center}
.ventas-suite-pro{display:grid;gap:16px}.ventas-hero-pro{display:flex!important;justify-content:space-between;align-items:center!important;padding:22px 26px!important;border-top:4px solid var(--tm-green)!important;background:linear-gradient(110deg,#fff 0%,#fff 64%,#effaf6 100%)!important;border-radius:var(--tm-radius)!important;box-shadow:var(--tm-shadow)!important}
.ventas-hero-copy{display:grid;gap:8px}.ventas-title-row{display:flex;align-items:center;gap:16px}.ventas-title-icon{width:58px;height:58px;border-radius:16px;background:#eaf7f2;display:grid;place-items:center}.ventas-title-icon img{width:34px;height:34px}.ventas-head h1{margin:2px 0 0!important;font-size:34px!important;line-height:1.05;color:var(--tm-ink);letter-spacing:-1px}.ventas-head>div>span,.ventas-title-row span{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--tm-green)}.ventas-head p{margin:0 0 0 74px!important;color:var(--tm-muted)!important;font-size:13px!important}
.ventas-kpis{gap:12px!important}.ventas-kpis article{min-height:132px!important;border-radius:16px!important;padding:16px 18px!important;box-shadow:var(--tm-shadow)!important;border:1px solid var(--tm-line)!important}.ventas-kpis small{font-size:10px!important;letter-spacing:.09em!important}.ventas-kpis strong{font-size:28px!important;line-height:1!important;color:var(--tm-ink)!important}.ventas-kpis .is-accent{background:linear-gradient(135deg,#f1fbf6,#e8f7f0)!important}
.ventas-toolbar-pro{background:#fff;border:1px solid var(--tm-line);border-radius:var(--tm-radius);padding:14px;box-shadow:var(--tm-shadow);gap:10px!important}.ventas-toolbar-pro input,.ventas-toolbar-pro select{height:44px!important;border-radius:12px!important}.ventas-toolbar-pro .ghost-btn{min-height:44px!important;border-radius:12px!important}.ventas-table-wrap{border-radius:var(--tm-radius)!important;box-shadow:var(--tm-shadow)!important;border-color:var(--tm-line)!important}.ventas-table th{height:44px;background:#f4f7f5!important;color:#607168!important}.ventas-table td{height:48px}
@media(max-width:900px){.ventas-hero-pro{align-items:flex-start!important;flex-direction:column!important}.ventas-head p{margin-left:0!important}.tm-activity-panel .tm-chart-real{grid-template-columns:repeat(3,minmax(110px,1fr))!important}}
@media(max-width:600px){.ventas-title-icon{width:48px;height:48px}.ventas-head h1{font-size:28px!important}.tm-activity-panel .tm-chart-real{grid-template-columns:repeat(3,110px)!important;overflow-x:auto!important}}
.tm-module-svg img{width:28px;height:28px;display:block}.tm-module-svg{display:grid!important;place-items:center!important}


/* ===== Imported foundation: v92-experience.css ===== */

/* V9.2: compact tablet experience and native-free cloud dialogs */
.v92-status{position:fixed;right:16px;bottom:16px;z-index:9998;padding:10px 15px;border-radius:24px;background:#fff;color:#145446;border:1px solid #d1e1da;box-shadow:0 7px 22px #0d35271c;font:700 13px/1.2 inherit;cursor:pointer}
.v92-status[data-state=conflict],.v92-status[data-state=error]{color:#a45317}
#v92-access[hidden]{display:none!important}
#v92-access{position:fixed;inset:0;z-index:100000;background:linear-gradient(135deg,#103f35,#177e6b 60%,#d7eee5);display:grid;place-items:center;padding:20px;overflow:auto}
.v92-locked{overflow:hidden}
.v92-access-panel{width:min(100%,440px);background:#fff;border-radius:25px;padding:clamp(22px,4vw,38px);box-shadow:0 24px 80px #062e2760;color:#153d33}
.v92-mark{background:#e2f4ec;color:#16856e;border-radius:17px;width:56px;height:56px;display:grid;place-items:center;font-size:30px;margin-bottom:16px}
.v92-eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#20806d}
.v92-access-panel h1{font-size:clamp(24px,4vw,32px);margin:8px 0}
.v92-access-panel p{color:#64746f;font-size:14px;line-height:1.5;margin:0 0 20px}
.v92-access-panel form{display:grid;gap:9px}
.v92-access-panel form>label:not(.v92-remember){font-size:13px;font-weight:750;margin-top:7px}
.v92-access-panel input:not([type=checkbox]){box-sizing:border-box;width:100%;border:1px solid #c9dbd3;border-radius:12px;background:#f7faf9;color:#143b31;padding:13px 14px;font:inherit;min-height:46px}
.v92-remember{display:flex;align-items:center;gap:9px;font-size:13px;margin:10px 0}
.v92-access-panel button,.v92-dialog button{background:#087f67;color:#fff;border:0;border-radius:12px;min-height:45px;padding:11px 20px;font:700 14px inherit;cursor:pointer}
.v92-access-panel button:disabled{opacity:.65}
#v92-login-error{color:#b72d35;font-size:13px}
.v92-access-panel small{display:block;color:#73837d;font-size:11px;line-height:1.5;margin-top:18px}
.v92-dialog-backdrop{position:fixed;inset:0;z-index:100100;background:#0d2726a8;display:grid;place-items:center;padding:20px}
.v92-dialog{box-sizing:border-box;width:min(100%,440px);border-radius:20px;background:#fff;color:#163c33;padding:26px;box-shadow:0 18px 65px #0004}
.v92-dialog h2{margin:0 0 12px;font-size:22px}.v92-dialog p{font-size:14px;color:#536a62;line-height:1.55}
.v92-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.v92-dialog button.v92-secondary{background:#edf4f0;color:#194f42}
.v92-toast{position:fixed;z-index:100110;bottom:20px;left:50%;transform:translateX(-50%);border-radius:14px;background:#145d4b;color:#fff;padding:13px 19px;box-shadow:0 12px 35px #0003;font-size:14px;font-weight:700}
@media (min-width:700px) and (max-width:1250px){
 .sidebar{max-width:235px!important}
 .dashboard-card,.kpi-card{min-height:0!important}
}
@media(max-width:699px){.v92-status{bottom:12px;right:10px;font-size:12px;max-width:80vw}}

/* V9.3 density: retain visual identity, reduce unnecessary vertical space */
@media (min-width: 760px) {
  .view-root > section, .view-root > article { margin-bottom: 14px; }
  .tm-chart-bar-zone { max-height: 140px; }
  .ventas-modal, .drawer, [role="dialog"]:not(.v92-access-panel) { max-height: min(88dvh, 850px); overflow-y: auto; }
}
@media (max-width: 759px) {
  .ventas-modal, .drawer, [role="dialog"]:not(.v92-access-panel) { max-height: 90dvh; overflow-y: auto; }
}


/* ===== Imported foundation: v94-recovery.css ===== */
.v94-error{margin:20px auto;max-width:740px;padding:24px;border:1px solid #d6e5df;border-radius:18px;background:#fff;color:#17493c;box-shadow:0 8px 28px #113e3310}.v94-error h2{font-size:21px;margin:0 0 12px}.v94-error p{line-height:1.5}.v94-error pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;padding:14px;background:#f5f8f7;border-radius:10px;font-size:12px;color:#8d3d32}.v94-error button{border:0;border-radius:10px;padding:12px 18px;background:#087f67;color:white;font-weight:700}

/* ===== TRADE MANAGER V9.6 — CANONICAL TABLET / DESKTOP DESIGN CONTRACT ===== */
:root{--sidebar-w:208px;--content-max:1800px;--tm-radius:14px;--tm-shadow:0 4px 16px rgba(13,55,43,.055);--tm-line:#e2eae6;--tm-green:#0b705c;--tm-ink:#133c32}
html{font-size:14px}body{font-size:13px;line-height:1.4;background:#f6f8f6}
*,*::before,*::after{box-sizing:border-box}
.app-shell{grid-template-columns:var(--sidebar-w) minmax(0,1fr)}
.main{min-width:0;padding:16px 20px 24px;overflow-x:clip}
.view-root{max-width:var(--content-max);min-width:0;width:100%;margin-inline:auto;font-size:13px}
.view-root>*{min-width:0}
.sidebar,.pro-sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);padding:15px 12px;box-shadow:5px 0 18px #143c2e13}
.brand,.pro-brand{gap:10px;margin-bottom:16px}
.brand-icon-wrap{width:43px;height:43px;border-radius:12px;flex:none}
.brand img,.pro-brand img{width:32px;height:32px}
.brand strong,.pro-brand strong{font-size:17px;line-height:1.03}
.brand span,.pro-brand span{font-size:9px}
.nav,.pro-nav{gap:5px}
.nav-btn,.pro-nav .nav-btn{min-height:39px;padding:7px 10px;font-size:12px;gap:9px;border-radius:10px}
.pro-nav .nav-btn>span:first-child{width:22px;height:22px;background-size:19px 19px}
.sidebar-footer-pro{margin-top:16px;padding-top:12px}
.view-root h1,.view-root .pro-hero h1,.clientes-hero h1,.clientes-hero-final h1,.suite-actas .crm-hero h1,.ventas-head h1,.panel-ops-head h1,.pricebook-hero-left h1,.informes-hero h1,.ajustes-hero h1{font-size:clamp(21px,1.8vw,27px)!important;line-height:1.14!important;letter-spacing:-.045em!important}
.view-root h2,.view-root .crm-dashboard-hero h2{font-size:20px!important;line-height:1.2!important}
.view-root h3{font-size:16px!important;line-height:1.25!important}
.view-root p{line-height:1.4}
.tm-dashboard,.clientes-page,.clientes-pro-page,.suite-actas,.radar-salesforce-page,.ventas-suite-pro{gap:12px!important}
.pro-hero,.clientes-hero,.clientes-hero-final,.radar-sf-header,.crm-dashboard-hero,.panel-ops-head,.suite-actas .crm-hero.pro-hero,.pricebook-hero-pro,.informes-hero,.ajustes-hero,.ventas-hero-pro{min-height:0!important;padding:16px 20px!important;gap:12px!important;align-items:center!important;border-radius:16px!important}
.pro-hero p,.clientes-hero p,.radar-sf-title p,.crm-dashboard-hero p,.panel-ops-head p,.suite-actas .crm-hero p,.pricebook-hero-left p,.informes-hero p,.ajustes-hero p,.ventas-head p{font-size:12px!important;line-height:1.35!important;max-width:66ch;margin-top:5px!important}
.tm-kpi-grid,.clientes-kpis,.actas-kpis,.actas-kpis-final,.crm-dashboard-kpis,.ventas-kpis{gap:10px!important}
.tm-kpi,.clientes-kpis .tm-kpi,.actas-kpi,.crm-dashboard-kpis article,.ventas-kpis article{min-height:104px!important;padding:12px 14px!important;border-radius:13px!important;box-shadow:var(--tm-shadow)!important}
.tm-kpi strong,.clientes-kpis .tm-kpi strong,.actas-kpi strong,.crm-dashboard-kpis strong,.ventas-kpis strong{font-size:25px!important;line-height:1.05!important;margin-top:5px!important}
.tm-kpi-icon,.clientes-kpis .tm-kpi-icon{width:30px!important;height:30px!important;font-size:17px!important;margin-bottom:6px!important}
.tm-kpi-label,.tm-kpi small,.ventas-kpis small{font-size:10px!important}
.tm-panel,.card,.clientes-control-panel,.clientes-table-panel,.actas-card,.ajustes-card,.panel-ops-left,.panel-ops-right,.panel-ops-center{padding:14px 16px!important;border-radius:14px!important;box-shadow:var(--tm-shadow)!important}
.tm-panel-head{margin-bottom:10px!important}
.pro-btn,.actas-primary-btn,.actas-secondary-btn,.ghost-btn,.mini-btn,.panel-ops-btn{min-height:36px!important;padding:7px 12px!important;font-size:12px!important;line-height:1.2!important;border-radius:9px!important;white-space:normal}
.clientes-hero-actions,.tm-hero-actions,.ventas-hero-actions{gap:7px!important}
.clientes-toolbar input,.clientes-toolbar select,.clientes-toolbar-filters select,.ventas-toolbar-pro input,.ventas-toolbar-pro select,.crm-search,.panel-ops-input{min-height:38px!important;height:auto!important;padding:8px 11px!important;font-size:12px!important;border-radius:9px!important}
.clientes-toolbar{grid-template-columns:minmax(190px,1.6fr) repeat(4,minmax(105px,1fr));gap:8px!important}
.clientes-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.clientes-workspace{grid-template-columns:minmax(0,1fr) minmax(230px,280px);gap:12px}
.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.tm-dashboard-main,.tm-dashboard-bottom{gap:12px!important}
.panel-ops-shell{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;gap:12px!important}
.panel-ops-map,.panel-ops-center{height:clamp(340px,47vh,520px)!important;min-height:0!important}
.table-wrap,.ventas-table-wrap,.clientes-table-panel{max-width:100%;overflow-x:auto}
.table th,.crm-table thead th,.radar-table thead th{font-size:10px!important}
.table td,.crm-table tbody td,.radar-table tbody td{font-size:12px!important}
/* Status is an unobtrusive anchored utility, never an overlay on business data. */
.v92-status{position:fixed;top:10px;right:14px;bottom:auto;z-index:2000;border-radius:9px;padding:7px 10px;font-size:11px;line-height:1.2;box-shadow:0 2px 10px #123c2a13;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v92-status::before{content:'●';color:#bd8126;margin-right:6px;font-size:9px}
.v92-status[data-state=synced]::before{color:#1e9d6d}
.v92-status[data-state=error]::before,.v92-status[data-state=conflict]::before{color:#ca453b}
.v92-status[data-state=offline]::before{color:#88959b}
@media(max-width:1250px){:root{--sidebar-w:190px}.main{padding:13px 14px}.clientes-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.clientes-workspace{grid-template-columns:minmax(0,1fr)}.panel-ops-shell{grid-template-columns:minmax(0,1fr)!important}.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){:root{--sidebar-w:174px}.main{padding:12px}.sidebar,.pro-sidebar{padding:12px 9px}.brand strong,.pro-brand strong{font-size:15px}.nav-btn,.pro-nav .nav-btn{font-size:11px;padding:7px 8px}.clientes-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){.main{padding:10px}.clientes-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.clientes-kpis,.tm-dashboard .tm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v92-status{top:auto;bottom:8px;right:8px;font-size:10px}.view-root h1{font-size:21px!important}}
