/* Fix: white logo visibility on light background + size */
img[src="/media/admin-interface/logo/logo.png"] {
    background-color: #101828;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 35%;
    height: auto;
}

/* Sidebar logo container */
.border-b.flex.gap-3.items-center:has(img[src="/media/admin-interface/logo/logo.png"]) {
    background-color: #101828;
    justify-content: center;
}

/* ── Sidebar nav: hover + active highlight ──────────────────────────────── */
#nav-sidebar-inner ol a {
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Light mode */
#nav-sidebar-inner ol a:hover {
    background-color: rgba(16, 24, 40, 0.08) !important;
    color: #101828 !important;
}

#nav-sidebar-inner ol a.active {
    background-color: #101828 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Dark mode */
.dark #nav-sidebar-inner ol a:hover {
    background-color: rgba(229, 253, 255, 0.55) !important;
    color: #E5FDFF !important;
}

.dark #nav-sidebar-inner ol a.active {
    background-color: #E5FDFF !important;
    color: #101828 !important;
    font-weight: 600;
}

/* Group titles: subtle hover */
#nav-sidebar-inner h2 {
    transition: background-color 0.15s ease;
    border-radius: 6px;
}

#nav-sidebar-inner h2:hover {
    background-color: rgba(16, 24, 40, 0.06) !important;
}

.dark #nav-sidebar-inner h2:hover {
    background-color: rgba(229, 253, 255, 0.4) !important;
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* object-tools: flex row so Export and Add button stay inline */
ul.object-tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul.object-tools li {
    float: none !important;
    margin: 0 !important;
}

/* ── Páginas de subida de inventario (.ct-subir) ────────────────────────────
   El preflight de Tailwind que trae unfold resetea ``::file-selector-button``
   (border:0, background transparent, padding:0) y en el CSS compilado NO hay
   utilidades ``file:*``, así que un <input type="file"> queda con el botón
   "Browse" invisible: se podía hacer clic pero no se veía. Como acá no se puede
   recompilar el Tailwind de unfold, el botón se estiliza a mano. */
.ct-subir input[type="file"] {
    cursor: pointer;
    font-size: 14px;
}

.ct-subir input[type="file"]::file-selector-button {
    background-color: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 9999px;
    color: #101828;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-inline-end: 12px;
    padding: 8px 16px;
    transition: background-color 0.15s ease;
}

.ct-subir input[type="file"]::file-selector-button:hover {
    background-color: #e4e7ec;
}

.dark .ct-subir input[type="file"]::file-selector-button {
    background-color: #1d2939;
    border-color: #344054;
    color: #f9fafb;
}

.dark .ct-subir input[type="file"]::file-selector-button:hover {
    background-color: #344054;
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* Export button: green background, white text */
a[href*="/export/"] {
    background-color: #16a34a !important;
    color: white !important;
    border-radius: 6px;
    padding: 8px;
}
a[href*="/export/"]:hover {
    background-color: #15803d !important;
    color: white !important;
}
a[href*="/export/"] .material-symbols-outlined {
    color: white;
}
