/* =====================================================
   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))}}
