.app-sidebar .main-sidebar-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}
.app-sidebar .main-sidebar-header .header-logo {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-sidebar .main-sidebar-header .header-logo .desktop-logo,
.app-sidebar .main-sidebar-header .header-logo .desktop-dark,
.app-sidebar .main-sidebar-header .header-logo .desktop-white {
  height: 70%;
  width: auto;
  max-width: none;
  vertical-align: middle;
}

.app-sidebar .side-menu__item {
  padding: 0.45rem 1.25rem;
}

.page-header-breadcrumb {
  margin-block: 1.10rem;
}

.pagination-info {
    font-size: 0.7rem;
}

.table th, .table td {
  padding: 0.35rem 1rem;
}

/* Encabezado de modales con el color "primary" activo (el de marca de la entidad, si hay uno elegido) */
.modal-header {
    background-color: rgb(var(--primary-rgb));
    color: #fff;
}
.modal-header .modal-title {
    color: #fff;
}
.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-content {
  border: 1px solid #000;
}

.modal-header {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* pages/entidades.php */
.logo-cell {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: .375rem;
    background: #f4f4f4;
}
.logo-preview {
    width: 142px;
    height: 142px;
    object-fit: contain;
    border-radius: .5rem;
    background: #f4f4f4;
    border: 1px dashed #cbd5e1;
}
.plan-row:not(:last-child) {
    border-bottom: 1px solid var(--default-border);
}
.color-swatch {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: .375rem;
}

/* pages/administrar-roles.php */
.fila-submenu td:first-child {
    padding-left: 2.25rem;
}

/* index.php (login) y pages/seleccionar-entidad.php */
.lang-switcher {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
}
.entidad-card {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.entidad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}
/* Foto/logo editable: el <input type="file"> queda oculto y la imagen misma es el
   disparador. Al pasar el mouse aparece una capa con el ícono de editar. */
.foto-editable {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: .5rem;
    overflow: hidden;
    line-height: 0;
}
.foto-editable img {
    display: block;
    transition: filter .15s ease;
}
.foto-editable .foto-editable-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    background-color: rgba(0, 0, 0, .55);
    color: #fff;
    opacity: 0;
    transition: opacity .15s ease;
    line-height: 1.1;
    text-align: center;
    padding: .25rem;
}
.foto-editable:hover .foto-editable-overlay,
.foto-editable:focus-within .foto-editable-overlay {
    opacity: 1;
}
.foto-editable .foto-editable-overlay i {
    font-size: 1.25rem;
}

/* El recuadro de recorte de Croppie dentro del modal.
   Croppie dimensiona su boundary con estilos inline; este contenedor solo tiene que
   darle una caja del mismo tamaño y centrarla.
   OJO: acá NO va display:flex. .croppie-container declara width/height:100% y como
   flex item se deforma: el boundary deja de recortar y la imagen se desborda. */
#croppie_area {
    /* Tiene que coincidir con boundary de image-cropper.js (viewport 300 + 60). */
    width: 360px;
    height: 360px;
    margin: 0 auto;
}

.croppie-container .cr-slider-wrap {
  margin: 0 auto !important;
}

/* Búsqueda automática de RUC/CI (assets/js/documento-lookup.js). El JS envuelve el input
   en .doc-campo para poder apoyar el spinner sobre el borde derecho del propio input. */
.doc-campo {
    position: relative;
    display: block;
}
.doc-spinner {
    position: absolute;
    top: 50%;
    right: .75rem;
    margin-top: -.5rem;
    width: 1rem;
    height: 1rem;
    border-width: .15em;
}
