.gestion-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.gestion-intro .eyebrow{color:var(--rust)}
.gestion-filters>div:not(.gestion-filter-actions){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 16px}.gestion-filters label{margin:8px 0 16px}.gestion-filters select,.gestion-filters input{font-size:12px}.gestion-filter-actions{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding-top:20px}.gestion-filter-actions .fine{flex:1;max-width:650px}
.gestion-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.gestion-kpis .panel{padding:23px}.gestion-kpis span{font-size:11px;color:var(--muted)}.gestion-kpis strong{display:block;font-family:Manrope;font-size:31px;font-weight:600;margin:12px 0}.gestion-kpis small{font-size:10px;color:var(--muted);line-height:1.6;display:block}
.gestion-charts{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-bottom:24px}.gestion-charts .panel{min-width:0}.trend-row{display:grid;grid-template-columns:60px 1fr;gap:3px 15px;margin:15px 0}.trend-row>span{grid-row:span 2;font-size:10px;align-self:center;color:var(--muted)}.trend-lane{display:flex;align-items:center;gap:6px;min-height:11px}.trend-lane small{font-size:9px;color:var(--muted)}.trend-bar{height:7px;border-radius:2px;background:var(--green);flex-shrink:1}.trend-bar.catalogaciones{background:var(--sand)}
.reason-line{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.reason-line:last-child{border:0}.reason-line strong{font-weight:600}.gestion-bottom{display:grid;grid-template-columns:1fr 1.3fr;gap:22px;margin:24px 0}
.table-scroll{overflow:auto;max-width:100%}.table-scroll table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap;text-align:left}.table-scroll th{font-weight:500;color:var(--muted);background:#f7f8f3;border-bottom:1px solid var(--line);padding:13px 14px}.table-scroll td{padding:14px;border-bottom:1px solid var(--line);max-width:360px;overflow:hidden;text-overflow:ellipsis}.table-scroll tr:last-child td{border-bottom:0}.gestion-pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:22px}.gestion-pagination button{font-size:11px;padding:9px 12px;min-height:40px}.gestion-detail-heading select{max-width:245px;margin:0;font-size:12px}
.gestion-detail-field{display:grid;grid-template-columns:1fr 1.5fr;gap:14px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px;overflow-wrap:anywhere}.gestion-detail-field strong{font-weight:500}.gestion-detail-field span{color:var(--muted)}
#gestion-trend,#gestion-reasons{max-height:340px;overflow:auto;padding-right:8px}#gestion-table{max-height:560px}#gestion-executives{max-height:430px}.table-scroll thead{position:sticky;top:0;z-index:1}
@media(max-width:1150px){.gestion-kpis{grid-template-columns:1fr 1fr}.gestion-filters>div:not(.gestion-filter-actions){grid-template-columns:1fr 1fr}.gestion-charts,.gestion-bottom{grid-template-columns:1fr}}
@media(max-width:780px){.sidebar:has([data-page="gestion"]:not([hidden])) nav{grid-template-columns:repeat(6,1fr)}.gestion-intro{align-items:start;flex-direction:column;gap:8px}.gestion-intro p{margin:8px 0}.gestion-intro button{min-height:40px;padding:10px 15px;font-size:11px}.gestion-filters{padding:17px}.gestion-filters>div:not(.gestion-filter-actions){gap:0 10px}.gestion-filters input,.gestion-filters select{font-size:16px;padding:11px 8px}.gestion-filter-actions{flex-wrap:wrap;gap:12px}.gestion-filter-actions .fine{flex-basis:100%}.gestion-kpis{gap:10px}.gestion-kpis .panel{padding:18px}.gestion-kpis strong{font-size:28px}.gestion-kpis small{font-size:9px}.gestion-detail-heading{align-items:start;flex-direction:column}.gestion-detail-heading select{max-width:100%;width:100%}.gestion-pagination{gap:7px;flex-wrap:wrap}.gestion-pagination .muted{font-size:10px}}

.sheets-sync-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.sheets-sync-panel h3{margin:0 0 7px}.sheets-sync-panel p{margin:5px 0}.sheets-sync-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}.sheets-sync-actions a{white-space:nowrap}@media(max-width:780px){.sheets-sync-panel{align-items:stretch;flex-direction:column;gap:14px}.sheets-sync-actions{flex-wrap:wrap}.sheets-sync-actions button{flex:1}}

.commercial-kpi{text-align:left;color:var(--green);width:100%;cursor:pointer;transition:border-color .15s,background .15s}.commercial-kpi:hover{background:#f4f7f0;border-color:var(--green)}.commercial-kpi-link{padding-top:12px;text-decoration:underline}.commercial-results{margin:32px 0}.commercial-table{margin:18px 0}.commercial-table h3{margin-top:0}.commercial-table .table-scroll{max-height:380px}.commercial-kpi-dialog{width:min(960px,calc(100vw - 32px));max-height:90dvh;overflow:auto}.commercial-record{border-top:1px solid var(--line);padding:20px 0}.commercial-record .section-heading{margin-bottom:6px;flex-wrap:wrap;gap:12px}.commercial-record h3{margin:0}.commercial-record-products{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.commercial-record-products>div{padding:12px;background:#f4f6f0;border-radius:8px}.commercial-record-products small{display:block;margin-top:4px}.commercial-detail-pages{display:flex;justify-content:space-between;gap:15px;margin-top:20px}.commercial-comment{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:780px){.commercial-record-products{grid-template-columns:1fr}.commercial-kpi-dialog{padding:20px}.commercial-filter-fields{grid-template-columns:1fr!important}}
