/* PlazaCamper · estilos comunes del área privada (sobre Dashmix, como Campande) */
#page-container.main-content-narrow > #page-header .content-header { width: 100%; }
#page-header .content-header { padding-left: 1rem !important; padding-right: 1rem !important; }
hr { border-top-color: #777 !important; }
.emprenomx { display: flex; align-items: center; gap: 10px; }
.emprenom { font-weight: bold; font-size: 13px; line-height: 1.1; }
.logox { margin-right: 5px; margin-bottom: 3px; max-height: 33px; width: auto; }
.cursor { cursor: pointer; }
.inside { padding: 20px; }
.dflex { display: flex; }
.gap10 { gap: 10px; } .gap20 { gap: 20px; }
.dn { display: none !important; }
#lang-selector { position: fixed; bottom: 16px; right: 16px; display: flex; gap: 4px; z-index: 9999; background: rgba(0,0,0,.45); padding: 5px 7px; border-radius: 8px; backdrop-filter: blur(4px); }
.lang-btn { border: none; background: transparent; color: #ccc; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 4px; cursor: pointer; transition: all .2s; letter-spacing: .5px; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.15); }
.lang-btn.active { color: #fff; background: rgba(255,255,255,.25); }
/* Configuración */
.cfg-img { width: 140px; height: 80px; border: 1px dashed #bbb; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff center/contain no-repeat; cursor: pointer; }
.cfg-img small { color: #999; }
.cfg-section .input-group-text { min-width: 150px; }
@media (max-width: 767px) {
  .dflex { display: block; }
  .inside { padding: 12px; }
  .cfg-section .input-group-text { min-width: 0; }
}

/* ---- Plano de plazas (editor y ocupación) ----
   El plano se muestra a 1200 px (como Campande); las coordenadas son % así
   que no dependen del tamaño. Tamaño y fuente del marcador vienen de
   Configuración → Reservas (--pin-w, --pin-h, --pin-f). */
.pc-map-wrap { overflow-x: auto; overflow-y: hidden; margin-top: 12px; }
.pc-map { position: relative; width: 1200px; min-width: 1200px; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; background: #f5f5f5;
          --pin-w: 24px; --pin-h: 32px; --pin-f: 11px; }
.pc-map > img { display: block; width: 1200px; height: auto; user-select: none; -webkit-user-drag: none; }
.pc-map.editable-on { cursor: crosshair; }
.pc-map.editable-on .pc-pin { cursor: grab; }
.pc-pin { position: absolute; transform: translate(-50%, -50%); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
          display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: var(--pin-f);
          line-height: 1.05; text-align: center; overflow: visible; padding: 1px; z-index: 10; user-select: none; cursor: pointer;
          transition: box-shadow .2s; }
.pc-pin:hover { box-shadow: 0 3px 10px rgba(0,0,0,.55); z-index: 20; }
.pc-pin.shape-circle { width: var(--pin-w); height: var(--pin-w); border-radius: 50%; }
.pc-pin.shape-square { width: var(--pin-w); height: var(--pin-w); border-radius: 4px; }
.pc-pin.shape-rect_v { width: var(--pin-w); height: var(--pin-h); border-radius: 4px; }
.pc-pin.shape-rect_h { width: var(--pin-h); height: var(--pin-w); border-radius: 4px; }
.pc-pin.dragging { opacity: .75; box-shadow: 0 4px 14px rgba(0,0,0,.6); z-index: 100; cursor: grabbing; }
.pc-pin.inactive { opacity: .45; }
.pc-pin .pin-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap;
                     font-size: 9px; color: #333; font-weight: 600; text-shadow: 0 0 3px #fff; }
/* Ocupación: libre = color del tipo · ocupada = oscurecida · bloqueada = negra */
.pc-pin.avail-booked { background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)) !important; color: #ffd600; outline: 3px solid var(--type-color); }
.pc-pin.avail-blocked { background: #111 !important; color: #ffd600; border-color: #ffd600; outline: 3px solid var(--type-color); cursor: not-allowed; }
.pc-map-tip { display: none; position: absolute; z-index: 200; background: rgba(0,0,0,.88); color: #fff; padding: 6px 12px; border-radius: 4px;
              font-size: 12px; white-space: nowrap; pointer-events: none; }
.pc-no-map { padding: 60px 20px; text-align: center; color: #999; font-size: 16px; }
.pc-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.pc-legend .box { width: 18px; height: 18px; border-radius: 3px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); display: inline-block; vertical-align: middle; margin-right: 4px; }
.spot-shape-preview { display: inline-block; background: #3c90df; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.spot-shape-circle { width: 22px; height: 22px; border-radius: 50%; }
.spot-shape-square { width: 22px; height: 22px; border-radius: 3px; }
.spot-shape-rect_v { width: 16px; height: 28px; border-radius: 3px; }
.spot-shape-rect_h { width: 28px; height: 16px; border-radius: 3px; }
.color-dot { display: inline-block; width: 22px; height: 22px; border-radius: 4px; vertical-align: middle; }
.pc-pin.unplaced { border-style: dashed; animation: pc-blink 1.6s infinite; }
@keyframes pc-blink { 50% { opacity: .55; } }
/* Badges del menú vacíos (contador 0 o aún cargando) no se muestran */
.nav-main-link-badge:empty { display: none; }
/* Fechas: solo calendario. El campo es de solo lectura pero no debe parecer deshabilitado */
.form-control.flatpickr-input[readonly] { background-color: transparent; cursor: pointer; }

/* Inputs numéricos sin flechas (spinners) */
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Bloques teñidos con los colores del cliente (--pc-a primario, --pc-b secundario, definidos en el shell) */
.bg-pc-a-soft { background: color-mix(in srgb, var(--pc-a, #0665d0) 9%, var(--bs-body-bg, #fff)) !important; }
.bg-pc-b-soft { background: color-mix(in srgb, var(--pc-b, #3c90df) 12%, var(--bs-body-bg, #fff)) !important; }
.bg-pc-a-soft > .block-header, .bg-pc-b-soft > .block-header { background: transparent !important; }
.bd-pc-a { border-left: 4px solid var(--pc-a, #0665d0); } .bd-pc-b { border-left: 4px solid var(--pc-b, #3c90df); }

/* Cambio de pestaña en fichas: altura animada (sin saltos) */
.tab-content.pc-anim { overflow: hidden; transition: height .25s ease; }
