/* Campo del logotipo de la empresa (partials/_campo_logo.html + static/js/dsg-logo-campo.js) y marcas del logo en los listados. */
.campo-logo [hidden] { display: none !important; }
.campo-logo__zona {
  position: relative; display: block; border: 2px dashed var(--dsg-border); border-radius: 12px; background: var(--dsg-surface2);
  padding: 1rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.campo-logo__zona:hover, .campo-logo__zona.arrastrando { border-color: var(--dsg-orange); background: rgba(249, 115, 22, .06); }
.campo-logo__zona.tiene-archivo { border-style: solid; }
.campo-logo__zona:focus-within { outline: 2px solid var(--dsg-orange); outline-offset: 2px; }
.campo-logo.con-error .campo-logo__zona { border-color: #ef4444; }
.campo-logo__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.campo-logo__vacio { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; pointer-events: none; }
.campo-logo__icono { font-size: 1.8rem; color: var(--dsg-orange); line-height: 1; }
.campo-logo__titulo { font-size: .95rem; color: var(--dsg-text); }
.campo-logo__ayuda { font-size: .8rem; color: var(--dsg-muted); line-height: 1.35; }
.campo-logo__ficha { display: flex; align-items: center; gap: .85rem; pointer-events: none; }
.campo-logo__placa {
  flex: 0 0 auto; width: 96px; height: 64px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 10px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
.campo-logo__mini { max-width: 100%; max-height: 100%; object-fit: contain; }
.campo-logo__datos { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.campo-logo__nombre { font-size: .9rem; color: var(--dsg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campo-logo__detalle { font-size: .8rem; color: var(--dsg-muted); line-height: 1.3; }
.campo-logo__detalle.es-aviso { color: #fbbf24; }
.campo-logo__acciones { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; pointer-events: auto; }
.campo-logo__cambiar { font-size: .85rem; font-weight: 600; color: var(--dsg-orange); pointer-events: none; white-space: nowrap; }
.campo-logo__quitar {
  position: relative; z-index: 2; min-width: 44px; min-height: 44px; border: 1px solid var(--dsg-border); border-radius: 10px; background: transparent;
  color: var(--dsg-muted); display: inline-flex; align-items: center; justify-content: center;
}
.campo-logo__quitar:hover { color: #ef4444; border-color: #ef4444; }
.campo-logo__error { display: none; margin-top: .4rem; font-size: .85rem; color: #f87171; }
.campo-logo__error.visible { display: block; }
.campo-logo__color { margin-top: .75rem; }
.campo-logo__color > label { display: block; font-size: .8rem; font-weight: 600; color: var(--dsg-muted); margin-bottom: .3rem; }
.campo-logo__color-fila { display: flex; align-items: center; gap: .75rem; }
.campo-logo__color-fila input[type=color] { flex: 0 0 auto; width: 56px; height: 44px; padding: 3px; border-radius: 10px; border: 1px solid var(--dsg-border); background: var(--dsg-surface2); cursor: pointer; }
.campo-logo__color-fila small { font-size: .8rem; color: var(--dsg-muted); line-height: 1.35; }

/* Listado de proveedores: miniatura del logo junto a la empresa, o aviso si aún no lo tiene */
.prov-logo-mini { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 28px; margin-right: .5rem; padding: 2px; border-radius: 6px; background: #fff; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
.prov-logo-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prov-sin-logo { display: inline-block; margin-right: .5rem; padding: .1rem .5rem; border-radius: 99px; font-size: .75rem; font-weight: 600; color: #fbbf24; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); white-space: nowrap; }

@media (max-width: 575.98px) {
  .campo-logo__ficha { flex-wrap: wrap; }
  .campo-logo__placa { width: 84px; height: 56px; }
  .campo-logo__acciones { margin-left: auto; }
}
