
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #eeeeee;
}

legend {
    width: auto;
}

.btn-check:checked + .btn-outline-primary {
    background-color: var(--bs-primary);
    color: #fff;
}


/* Main Content -----------------------------------------------------------------------------------------------------------*/
.main-content {
    margin-top: 10px;
    margin-left: 0;
    margin-bottom: 30px;
    padding: 10px 0px;
    flex: 1;
    transition: margin-left 0.3s ease;
    height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
    /*border: solid 5px red;*/
}

/* Content Wrapper */
.content-wrapper {
    padding: 30px;
    min-height: 100%;
}

/* Scrollbar personalizado para main-content */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.main-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .main-content::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


/* ---------- Logo Navbar ---------- */
.navbar-logo {
    height: 48px; /* altura fija en desktop */
    width: auto; /* el ancho se ajusta solo, sin deformarse */
    max-width: 100%; /* nunca desborda el navbar en pantallas muy angostas */
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 36px; /* un poco más chico en móvil, pero nunca "minúsculo" */
    }
}

/* ---------- Botones de selección de Empresa ---------- */
.btn-empresa {
    position: relative; /* ancla para el badge de check */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-weight: 600;
    border-width: 2px;
    transition: transform .1s ease-in-out, box-shadow .1s ease-in-out;
    overflow: visible; /* para que el badge pueda sobresalir de la esquina */
}

.empresa-check-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #198754;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    line-height: 1;
}

.btn-check:checked + .btn-empresa .empresa-check-badge {
    display: flex;
}

/* ---------- Tarjetas de carga de documentos ---------- */
.documento-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #ced4da;
    border-radius: .75rem;
    background-color: #f8f9fa;
    padding: 1.75rem 1rem;
    min-height: 160px;
    cursor: pointer;
    transition: border-color .15s ease-in-out, background-color .15s ease-in-out;
}

    .documento-dropzone:hover {
        border-color: var(--bs-primary);
        background-color: #eef4ff;
    }

    .documento-dropzone.dragover {
        border-color: var(--bs-primary);
        background-color: #e0ecff;
    }

    .documento-dropzone.tiene-archivo {
        border-style: solid;
        border-color: #198754;
        background-color: #f1fbf5;
    }

.documento-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.documento-btn-quitar {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    line-height: 1;
    padding: 0;
    z-index: 2; /* por encima del input para que el clic no abra el explorador de archivos */
}

    .documento-btn-quitar:hover {
        background-color: #bb2d3b;
    }

.documento-icono {
    width: 40px;
    height: 40px;
    color: #adb5bd;
    margin-bottom: .5rem;
}

.documento-dropzone.tiene-archivo .documento-icono {
    color: #198754;
}

.documento-texto-principal {
    font-weight: 600;
    font-size: .9rem;
    color: #343a40;
}

.documento-texto-secundario {
    font-size: .75rem;
    color: #6c757d;
    margin-top: .15rem;
}

.documento-archivo-seleccionado {
    font-size: .85rem;
    font-weight: 600;
    color: #198754;
    margin-top: .25rem;
    word-break: break-word;
    padding: 0 .5rem;
}

.empresa-icono {
    height: 24px;
    width: auto;
    flex-shrink: 0;
}

/* Amazon: fondo negro, texto/ícono blanco */
.btn-empresa-amz {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

    .btn-empresa-amz .empresa-icono {
        filter: invert(1) brightness(2); /* asegura que el SVG se vea blanco sobre el fondo negro */
    }

    .btn-check:checked + .btn-empresa-amz,
    .btn-empresa-amz:hover {
        background-color: #1a1a1a;
        border-color: #ff9900; /* acento naranja de marca al pasar el mouse / seleccionar */
        color: #fff;
    }

/* Mercado Libre: fondo amarillo, texto oscuro */
.btn-empresa-meli {
    background-color: #fff159;
    border-color: #fff159;
    color: #2d3277;
}

    .btn-check:checked + .btn-empresa-meli,
    .btn-empresa-meli:hover {
        background-color: #ffe600;
        border-color: #2d3277;
        color: #2d3277;
    }