*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f6fb;color:#0f172a}.topbar{height:58px;background:#111827;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:18px}.topbar a{color:white;text-decoration:none;background:#2563eb;padding:10px 14px;border-radius:8px}button{border:0;background:#2563eb;color:white;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer}button:hover{filter:brightness(.95)}button.dark{background:#334155}button.danger{background:#dc2626}button.success{background:#16a34a}button.active,.zone-buttons button.active{background:#f59e0b;color:#111827}.layout{display:grid;grid-template-columns:1fr 340px;gap:18px;padding:18px}.workspace{background:white;border-radius:14px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.08)}.workspace.public{margin:18px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.zone-card,.slot-card{border:1px solid #dbe4f0;background:#f8fafc;border-radius:10px;padding:12px;margin:10px 0}.zone-card h3{margin:0 0 8px}.zone-card p,.hint{font-size:13px;color:#475569}.zone-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.rename-row{display:flex;gap:8px;max-width:420px}.rename-row input,.slot-card select{border:1px solid #cbd5e1;border-radius:8px;padding:10px;font-weight:700}.slot-card{display:flex;align-items:center;gap:10px}.slot-card span{font-size:13px;color:#64748b}.editor-status{min-height:38px;border-radius:8px;padding:10px 12px;margin:10px 0;background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe}.editor-status.ok{background:#ecfdf5;color:#047857;border-color:#bbf7d0}.editor-status.error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.editor-status.warn{background:#fff7ed;color:#c2410c;border-color:#fed7aa;white-space:pre-line}.legend{display:flex;gap:9px;align-items:center;margin:8px 0 12px}.dot{width:14px;height:14px;border-radius:50%;display:inline-block}.dot.free{background:#22c55e}.dot.reserved{background:#3b82f6}.dot.occupied{background:#ef4444}.dot.blocked{background:#94a3b8}.floor{position:relative;height:640px;background:#e5e7eb;border:2px dashed #cbd5e1;border-radius:12px;overflow:hidden;background-size:cover;background-position:center}.drawing-layer{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.wall-line{stroke:#111827;stroke-width:8;stroke-linecap:round}.wall-line.draft{stroke:#475569;stroke-dasharray:8}.zone-rect{fill:rgba(37,99,235,.08);stroke:#2563eb;stroke-width:2;stroke-dasharray:8}.zone-rect.draft{fill:rgba(245,158,11,.14);stroke:#f59e0b}.zone-text{fill:#0f172a;font-weight:800;font-size:16px}.table-item{position:absolute;z-index:3;border-radius:14px;display:flex;align-items:center;justify-content:center;text-align:center;box-shadow:0 10px 20px rgba(15,23,42,.22);border:3px solid rgba(15,23,42,.18);padding:6px;user-select:none;cursor:grab;overflow:hidden}.table-item.selected{outline:4px solid #facc15}.table-item.round{border-radius:999px}.table-inner{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.05;overflow:hidden}.table-title{font-weight:900;font-size:clamp(12px,1.3vw,17px);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-meta{font-size:11px;font-weight:700;opacity:.95;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-box{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;margin-top:2px;width:100%}.pill{display:inline-block;border-radius:999px;background:rgba(255,255,255,.92);padding:2px 6px;font-size:10px;font-weight:900;line-height:1;color:#111827;max-width:100%;white-space:nowrap}.pill.used{background:rgba(127,29,29,.86);color:white}.pill.left{color:#dc2626}.pill.expired{background:#111827;color:white}.table-item.free{background:#22c55e;color:#07150b}.table-item.reserved{background:#3b82f6;color:white}.table-item.occupied{background:#ef4444;color:white}.table-item.blocked{background:#94a3b8;color:white}.panel{background:white;border-radius:14px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.08);height:fit-content}.panel h2{margin:0 0 14px}.panel label{font-size:13px;font-weight:700;margin:10px 0;display:block}.panel input,.panel select{width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:8px;margin-top:6px}.row{display:flex;gap:8px;flex-wrap:wrap}hr{border:0;border-top:1px solid #cbd5e1;margin:16px 0}@media(max-width:1100px){.layout{grid-template-columns:1fr}.floor{height:520px}}
.brand{display:flex;align-items:center;gap:12px}.brand img{height:38px;max-width:140px;object-fit:contain;background:white;border-radius:8px;padding:3px}.panel h2{font-size:22px}.panel select{font-weight:700}.panel .hint{line-height:1.35}

/* v10.12: menú lateral izquierdo y selector múltiple de zonas */
.editor-layout{grid-template-columns:190px minmax(0,1fr) 340px;align-items:start}
.left-menu{background:white;border-radius:14px;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:9px;position:sticky;top:76px}
.left-menu h3{margin:0 0 6px;font-size:16px;color:#0f172a}.left-menu button{width:100%;text-align:left}.panel small.field-help{display:block;color:#64748b;font-size:12px;margin-top:5px;line-height:1.3}.panel select[multiple]{min-height:132px;padding:8px}.new-zone-row{display:flex;gap:8px;max-width:460px;margin-top:10px}.new-zone-row input{border:1px solid #cbd5e1;border-radius:8px;padding:10px;font-weight:700;min-width:220px}.new-zone-row button{white-space:nowrap}
@media(max-width:1180px){.editor-layout{grid-template-columns:1fr}.left-menu{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.left-menu h3{grid-column:1/-1}.left-menu button{text-align:center}.panel{order:3}.workspace{order:2}}
@media(max-width:640px){.layout{padding:10px}.left-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.new-zone-row,.rename-row{flex-direction:column;max-width:none}.new-zone-row input{min-width:0;width:100%}.topbar{height:auto;gap:8px;flex-wrap:wrap;padding:8px 12px}.floor{height:520px}.panel{padding:14px}}

/* v10.13: selector claro de zonas para crear mesas */
.zone-checks{border:1px solid #cbd5e1;border-radius:10px;padding:8px;max-height:160px;overflow:auto;background:#fff;display:grid;gap:6px}
.zone-check{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;padding:6px 8px;border-radius:8px;background:#f8fafc;cursor:pointer}
.zone-check input{width:auto;margin:0}
.zone-check:hover{background:#eef2ff}

/* v10.14 REAL: menú lateral gris agrupado y logo en lateral */
.topbar .brand img{display:none!important}
.left-menu{gap:14px!important;padding:14px!important;background:#f8fafc!important;border:1px solid #dbe4f0!important}
.left-logo{display:flex;justify-content:center;align-items:center;padding:8px 6px 12px;border-bottom:1px solid #e2e8f0;margin-bottom:2px}
.left-logo img{width:135px;max-width:100%;height:auto;object-fit:contain;background:white;border-radius:10px;padding:6px;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.menu-section{display:flex;flex-direction:column;gap:8px;border:1px solid #e2e8f0;background:white;border-radius:12px;padding:10px}
.menu-title{font-size:12px;font-weight:900;letter-spacing:.08em;color:#475569;text-transform:uppercase;margin-bottom:2px}
.left-menu button,.left-menu button.dark,.left-menu button.danger,.left-menu button.success{background:#475569!important;color:#fff!important;border:1px solid #334155!important;border-radius:9px!important;text-align:center!important;box-shadow:none!important}
.left-menu button:hover{background:#334155!important;filter:none!important}
.left-menu button.active{background:#111827!important;color:#fff!important;border-color:#111827!important}
#savePlan{background:#374151!important;border-color:#1f2937!important}
#clearDrawing{background:#64748b!important;border-color:#475569!important}
@media(max-width:1180px){.left-logo{grid-column:1/-1}.menu-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.menu-title{grid-column:1/-1}.left-menu{display:grid!important;grid-template-columns:1fr!important}.left-menu h3{display:none!important}}
@media(max-width:640px){.menu-section{grid-template-columns:1fr}.left-logo img{width:120px}}
