html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Contenedor del encabezado */
.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Sección de información de la empresa */
.company-header {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

    .company-header img {
        max-width: 120px;
        height: auto;
        object-fit: contain;
    }

.company-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.company-contact {
    margin-bottom: 5px;
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .company-contact i {
        color: #0d6efd;
        font-size: 0.9rem;
    }

/* Sección de acciones del encabezado */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

/* Botones de dropdown */
.btn-outline-primary,
.btn-outline-secondary {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .btn-outline-primary:hover,
    .btn-outline-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.btn i {
    font-size: 1rem;
}

/* Adaptaciones para dispositivos móviles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
        padding: 0;
    }

        .company-header img {
            max-width: 150px;
            margin-bottom: 10px;
        }

    .company-title {
        font-size: 1.2rem;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
        padding: 10px 0;
        gap: 8px;
    }

    .dropdown {
        width: 100%;
    }

    .btn-outline-primary,
    .btn-outline-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    #selectedCompany {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
}

/* Adaptaciones para dispositivos muy pequeños */
@media (max-width: 480px) {
    .company-header {
        padding: 0 5px;
    }

    .company-title {
        font-size: 1.1rem;
    }

    .company-contact {
        font-size: 0.8rem;
    }

    .btn-outline-primary,
    .btn-outline-secondary {
        font-size: 0.8rem;
        padding: 8px;
    }

    .dropdown-menu {
        min-width: 100%;
        left: 0 !important;
        right: 0 !important;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mejoras estéticas generales */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}