/* Admin: apartados de cada sección y pantalla «Servicios». Usa los colores del panel y de la temporada. */
.section-tabs{display:flex;gap:2px;margin:10px 16px 0;padding:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md)}
.section-tabs[hidden]{display:none}
.section-tabs button{display:flex;flex:1 1 auto;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;padding:0 4px;border:0;border-radius:var(--r-sm);background:none;color:var(--muted);font-size:.8rem;font-weight:600;cursor:pointer;touch-action:manipulation}
.section-tabs button span{white-space:nowrap}
.section-tabs button[aria-current=page]{background:var(--surface);color:var(--brand);font-weight:700;box-shadow:0 1px 3px rgba(12,40,60,.14)}
.section-tabs button b{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--brand);color:#fff;font-size:.66rem}
@media(hover:hover){.section-tabs button:hover{color:var(--text)}}

.hub{display:grid;gap:12px;min-width:0;padding-bottom:64px}
.hub .search-bar{margin:0}
.hub-fold{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}
.hub-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 14px;cursor:pointer;list-style:none;font-size:.88rem}
.hub-fold>summary::-webkit-details-marker{display:none}
.hub-fold>summary span{min-width:0}
.hub-fold>summary em{flex:0 0 auto;font-style:normal;font-size:.8rem;font-weight:700;color:var(--brand)}
.hub-fold[open]>summary{border-bottom:1px solid var(--line)}
.hub-fold>.data-card{border:0;box-shadow:none;background:none;margin:0;padding:14px}
.hub-fold .section-head{margin-top:0;flex-wrap:wrap}
#acta-provider-card .section-head{display:none}
.hub-fold[open]>summary em{display:none}
.hub-off{margin-top:12px}
.hub-off>summary b{margin-left:4px;font-variant-numeric:tabular-nums}
.hub-off>div{display:grid;gap:4px;padding:0 10px 12px}

.hub-head{display:none}
#hub-list{display:grid;gap:4px}
.hub-group h2{margin:10px 4px 6px;color:var(--muted);font-size:.82rem;font-weight:700}
.hub-group ul{list-style:none;margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}
.hub-group li+li{border-top:1px solid var(--line)}
.hub-row{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:10px;width:100%;min-height:62px;padding:10px 14px;border:0;background:none;color:var(--text);text-align:left;cursor:pointer;touch-action:manipulation}
.hub-row:focus-visible{outline-offset:-3px}
.hub-row:active{background:var(--surface-2)}
@media(hover:hover){.hub-row:hover{background:var(--surface-2)}}
.hub-name{display:grid;gap:3px;min-width:0;font-size:.9rem;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.hub-name small{font-size:.74rem;font-weight:700}
.hub-name small.off{color:var(--danger)}
.hub-name small.closed{color:var(--warn)}
.hub-row.is-off .hub-name>span,.hub-row.is-off .hub-price b{color:var(--muted)}
.hub-price{display:grid;justify-items:end;gap:2px;font-variant-numeric:tabular-nums;white-space:nowrap}
.hub-price b{font-size:.98rem}
.hub-price small{font-size:.74rem;color:var(--ok);font-weight:600}
.hub-price small.loss,.hub-col.loss{color:var(--danger)}
.hub-col{display:none}
.hub-chevron{color:var(--faint);font-size:1.2rem;line-height:1}

.hub-editor{display:grid;gap:14px}
.hub-editor [data-hub-badge]{margin:-8px 0 0}
.hub-block{display:grid;gap:12px;padding-top:14px;border-top:1px solid var(--line)}
.hub-block h3{margin:0;font-size:1rem}
.hub-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.hub-money{display:flex;align-items:center;gap:6px;padding-left:12px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface)}
.hub-money:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,107,94,.15)}
.field .hub-money input{border:0;background:none;box-shadow:none;padding-left:0;font-variant-numeric:tabular-nums}
.hub-gain{margin:0;font-weight:700;color:var(--ok)}
.hub-gain.loss{color:var(--danger)}
.hub-hint,.hub-updated{margin:0;color:var(--muted);font-size:.76rem;line-height:1.45}
.hub-status{margin:0;min-height:0;font-size:.8rem;font-weight:700}
.hub-status:empty{display:none}
.hub-status.dirty{color:var(--warn)}
.hub-status.ok{color:var(--ok)}
.hub-status.error{color:var(--danger)}
.hub-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-weight:600;cursor:pointer}
.hub-switch input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 auto;width:48px;height:28px;margin:0;border-radius:99px;background:var(--line-strong);cursor:pointer;transition:background-color .16s ease}
.hub-switch input::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .16s cubic-bezier(.23,1,.32,1)}
.hub-switch input:checked{background:var(--brand)}
.hub-switch input:checked::after{transform:translateX(20px)}
#hub-avail [data-schedule]{display:grid;gap:12px}
#hub-avail [data-schedule][hidden]{display:none}
.hub-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0;padding:0;border:0}
.hub-days legend{margin-bottom:6px;padding:0;font-size:.78rem;font-weight:600;color:var(--muted)}
.hub-days label{position:relative}
.hub-days input{position:absolute;opacity:0;pointer-events:none}
.hub-days span{display:grid;place-items:center;min-height:42px;border:1px solid var(--line-strong);border-radius:var(--r-sm);color:var(--muted);font-weight:700;cursor:pointer}
.hub-days input:checked+span{border-color:var(--brand);background:var(--brand);color:#fff}
.hub-days input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}

@media(max-width:359px){.section-tabs{margin-left:8px;margin-right:8px;padding:3px;gap:0}.section-tabs button{padding:0 2px;font-size:.72rem}}
@media(min-width:720px){.section-tabs{margin-left:28px;margin-right:28px}}
@media(min-width:900px){
  .hub-head,.hub-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 110px 110px 14px;gap:12px;align-items:center}
  .hub-head{padding:6px 15px 0;color:var(--muted);font-size:.76rem;font-weight:700}
  .hub-head span:not(:first-child){text-align:right}
  .hub-row{min-height:54px}
  .hub-col{display:block;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}
  .hub-gain-inline{display:none}
}
@media(min-width:1024px){
  .section-tabs{display:flex;justify-self:start;align-self:flex-start;width:max-content;max-width:calc(100% - 80px);margin:8px 0 0 max(40px,calc((100% - 1340px)/2 + 40px))}
  .section-tabs button{flex:0 0 auto;padding:0 20px;font-size:.86rem}
}
@media(prefers-reduced-motion:reduce){.hub-switch input,.hub-switch input::after{transition:none}}
/* Plantillas (dentro de Servicios): el apartado ya dice dónde estás; sin textos repetidos. */
.pricing-page.only-templates .pricing-intro{display:none}
.pricing-page.only-templates:has(.pricing-summary.has-pending) .pricing-intro{display:flex}
.pricing-page.only-templates .pricing-intro>div:first-child,.pricing-page.only-templates .pricing-panel-head{display:none}

/* Ganancias: periodos parejos en el celular; «Limpiar» y «Aplicar» solo cuando hay algo que aplicar. */
.fin-short{display:none}
.fin-filter-card:not(:has(details[open])):not(:has(.fin-custom:not([hidden]))) .fin-filter-footer>div{display:none}
@media(max-width:719px){
  .fin-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}
  .fin-period{min-width:0;padding:0 2px;font-size:.78rem;white-space:nowrap}
  .fin-long{display:none}
  .fin-short{display:inline}
  .fin-toolbar-actions{margin-left:auto}
  .fin-filter-card{padding:6px 14px 12px}
  .fin-filter-footer{margin-top:0}
}
@media(max-width:359px){.fin-periods{gap:4px}.fin-period{font-size:.7rem}}
