#waltCommercialDialog{box-sizing:border-box;width:min(1100px,calc(100% - 28px));max-width:1100px;max-height:90dvh;overflow-y:auto;border:1px solid #3a4c65;border-radius:20px;background:#101e31;color:#e9f1fc;padding:28px;font:14px/1.6 Inter,system-ui,sans-serif;color-scheme:dark}
#waltCommercialDialog::backdrop{background:#04101ed9;backdrop-filter:blur(4px)}
#waltCommercialDialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #31445d;padding-bottom:16px}#waltCommercialDialog h2{margin:3px 0;font-size:25px;color:#fff}#waltCommercialDialog h3{margin:24px 0 12px;color:#fff}#waltCommercialDialog small{color:#ffaf4b;letter-spacing:.1em}
#waltCommercialDialog button{font:600 12px/1.4 inherit;cursor:pointer;background:#ff8c00;color:#102038;border:1px solid #ff8c00;border-radius:9px;padding:10px 14px;min-height:42px;margin:3px}#waltCommercialDialog button:disabled{opacity:.55}#waltCommercialDialog :focus-visible{outline:2px solid #ffd191;outline-offset:3px}
#commercialError{color:#ffb5a4;white-space:pre-wrap}#commercialEditor:not(:empty){border:1px solid #42536b;border-radius:12px;padding:20px;margin:20px 0;background:#192a42}.commercial-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.commercial-form label{display:grid;gap:6px;color:#cbd8e9;font-size:12px;min-width:0}.commercial-form input,.commercial-form textarea,.commercial-form select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:10px;border:1px solid #49617f;border-radius:8px;background:#0f1c2d;color:#fff;font:14px/1.4 inherit}.commercial-form textarea{min-height:120px;resize:vertical}.commercial-wide{grid-column:1/-1}.commercial-form .commercial-check{display:flex;align-items:center;gap:8px}.commercial-form [type=checkbox]{width:18px;min-height:18px;flex:0 0 18px}.commercial-table{overflow:auto;max-width:100%;border:1px solid #2c405a;border-radius:10px}.commercial-table table{width:100%;border-collapse:collapse;white-space:normal}.commercial-table th,.commercial-table td{text-align:left;padding:12px;border-bottom:1px solid #2b3f59;font-size:12px;overflow-wrap:anywhere;min-width:85px}.commercial-table th{color:#acc0db}.commercial-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.commercial-note{padding:14px;background:#ff8c0010;border:1px solid #ff8c0040;border-radius:10px;margin:20px 0;color:#ecc492}.commercial-card{padding:16px;border:1px solid #354860;border-radius:12px;margin:12px 0}.commercial-card h4{margin:0;color:#ffb14f}#commercialEditor pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.commercial-service-status{padding:12px 16px;border:1px solid #ff8c0040;border-radius:10px;color:#eec78f;margin:10px 0 18px}.commercial-emitter{border-bottom:2px solid #ff8c00;margin-bottom:16px;padding-bottom:10px}.commercial-emitter p{font-size:12px;margin:2px 0}
@media(max-width:650px){#waltCommercialDialog{padding:18px 14px;max-height:94dvh}.commercial-form{grid-template-columns:minmax(0,1fr)}#waltCommercialDialog h2{font-size:21px}.commercial-table th,.commercial-table td{padding:10px}}

body[data-store-plan="store_basic"] #waltTopNav [data-section="ventas"],body[data-store-plan="store_basic"] #waltTopNav [data-page="finanzas"],body[data-store-plan="store_basic"] #waltTopNav [data-page="cuentas"],body[data-store-plan="store_basic"] #waltTopNav [data-page="gastos"],body[data-store-plan="store_basic"] #waltTopNav [data-page="informes-generales"],body[data-store-plan="store_basic"] #waltTopNav [data-page="empleados"]{display:none!important}

/* Compact actions and readable mobile records. */
#waltCommercialDialog .commercial-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;max-width:860px;margin:18px auto}
#waltCommercialDialog .commercial-actions button{box-sizing:border-box;width:100%;margin:0;padding:12px 14px;text-align:center;white-space:normal;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;border-radius:12px;min-height:48px}
#waltCommercialDialog>header{position:sticky;top:-28px;z-index:2;background:#101e31;padding-top:8px}
#commercialBody,#commercialEditor{min-width:0}
@media(max-width:650px){
 #waltCommercialDialog{width:calc(100% - 20px);margin:auto;padding:16px;max-height:calc(100dvh - 24px);overflow-x:hidden}
 #waltCommercialDialog>header{top:-16px;gap:10px}
 #waltCommercialDialog h2{font-size:19px;line-height:1.25}
 #waltCommercialDialog h3{font-size:16px;margin:20px 0 10px}
 #waltCommercialDialog .commercial-note{font-size:13px;line-height:1.5;padding:12px;margin:14px 0}
 #waltCommercialDialog .commercial-actions{grid-template-columns:minmax(0,1fr);gap:8px;max-width:420px;margin:16px auto}
 .commercial-table{overflow:visible;width:100%;box-sizing:border-box}
 .commercial-table table,.commercial-table tbody,.commercial-table tr,.commercial-table td{display:block;width:100%;box-sizing:border-box;min-width:0}
 .commercial-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .commercial-table tr+tr{border-top:1px solid #42536b}
 .commercial-table td{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:10px;padding:10px 12px;line-height:1.5;overflow-wrap:anywhere}
 .commercial-table td::before{content:attr(data-label);color:#acc0db;font-weight:600}
 .commercial-table td[colspan]{display:block;color:#b6c6d9;text-align:center;padding:16px}
 .commercial-table td[colspan]::before{content:none}
 .commercial-table tr:last-child td:last-child{border-bottom:0}
 .commercial-table td button{max-width:100%;white-space:normal}
 #commercialEditor:not(:empty){padding:12px}
}

@media (min-width: 761px) {
  #waltCommercialDialog .commercial-actions:has(> [data-commercial="message"]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Perfil WALT FIT: carga de fotografías ordenada y compacta */
.commercial-fit-photo-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0}
.commercial-fit-photo-row{display:flex;flex-direction:column;gap:7px;min-width:0}
.commercial-fit-photo-row>span{font-weight:650}
.commercial-fit-photo-row input[type=file]{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:767px){.commercial-fit-photo-fields{grid-template-columns:minmax(0,1fr);gap:8px}.commercial-fit-photo-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,1.05fr);align-items:center;gap:10px;padding:9px 10px;border:1px solid rgba(255,140,0,.25);border-radius:10px}.commercial-fit-photo-row>span{font-size:13px;line-height:1.25}.commercial-fit-photo-row input[type=file]{font-size:11px;padding:0}.commercial-fit-photo-row input[type=file]::file-selector-button{background:#ff8c00;color:#172338;border:0;border-radius:7px;padding:7px 9px;font-weight:700;margin-right:6px}}

/* Acceso a paquetes desde el perfil del entrenador */
.commercial-fit-packages{display:flex;justify-content:flex-start;margin:4px 0 12px}
.commercial-fit-packages button{background:#ff8c00!important;border-color:#ff8c00!important;color:#172338!important;font-weight:750;border-radius:9px;padding:10px 16px}

/* El acceso a paquetes ocupa todo el ancho disponible en móvil. */
@media(max-width:767px){.commercial-fit-packages{display:block;width:100%;margin:4px 0 12px}.commercial-fit-packages button{display:block;width:100%;min-height:46px;text-align:center}}
