﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.custom-text {
    color: goldenrod;
    font-weight: bold; /* Negritas */
    /*  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);*/
}

    .custom-text::first-letter {
        text-transform: capitalize;
    }

.nav-treeview > .nav-item > .nav-link.active {
    background-color: transparent; /* Elimina el fondo blanco */
    /* border-bottom: 5px solid #FF6700;*/
    border-bottom: 5px solid #00d5ff;
}

    .nav-treeview > .nav-item > .nav-link.active i {
        /*  color: #FF6700;*/
        color: #00d5ff;
    }

.Nuevo {
    /*  color: #FF6700;*/
    color: #00d5ff;
}

.n_fosfo:hover {
    /* border-color: #FF6700 !important;*/
    border-color: #00d5ff !important;
}

.nav-item > .nav-link:hover i {
    /*    color: #FF6700 !important;*/
    color: #00d5ff !important;
}

[class*=sidebar-dark-] .sidebar .nav-item > .nav-link:hover i {
    /* color: #FF6700;*/
    color: #00d5ff;
}

[class*=sidebar-dark-] .sidebar .nav-item > .nav-link:hover {
    /*  border-right: 5px solid #FF6700;*/
    border-right: 5px solid #00d5ff;
}

.nav-item > .nav-link.active:hover i {
    color: black !important;
}

[class*=sidebar-dark-] .sidebar .nav-item > .nav-link.active:hover {
    border-right: none;
}
/*================================================================*/
fc .fc-daygrid-day {
    position: relative;
}

.fc .fc-daygrid-day-frame {
    padding-bottom: 88px;
    overflow: visible;
}

.fc-cell-actions {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 6;
    pointer-events: auto;
}

    .fc-cell-actions .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

.fc-day-other .fc-cell-actions {
    display: none !important;
}

@media (max-width:768px) {
    .fc-cell-actions .btn-label {
        display: none;
    }

    .fc-cell-actions .btn {
        justify-content: center;
        text-align: center;
    }
}
/* ===== Glow por estado dentro del calendario ===== */
.page-calendario .fc-cell-actions i {
    font-weight: 900;
}

    /* Verde (fosfo) */
    .page-calendario .fc-cell-actions i.text-success {
        color: #00ff6a !important; /* fosfo */
        text-shadow: 0 0 1px #fff, 0 0 6px rgba(0,255,106,.85), 0 0 12px rgba(0,255,106,.55);
    }

    /*  Amarillo (alto brillo) */
    .page-calendario .fc-cell-actions i.text-warning {
        color: #ffea00 !important; /* amarillo vivo */
        text-shadow: 0 0 0.5px rgba(0,0,0,.10), 0 0 3px rgba(255,234,0,.45), 0 0 6px rgba(255,234,0,.25);
    }

    /*  Rojo (intenso) */
    .page-calendario .fc-cell-actions i.text-danger {
        color: #ff1744 !important; /* rojo intenso */
        text-shadow: 0 0 1px #fff, 0 0 6px rgba(255,23,68,.8), 0 0 12px rgba(255,23,68,.55);
    }

/* Caja: igual look & feel que tu small-box */
.tile-box {
    background: linear-gradient(#fff, #f8f9fa);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Área del icono */
.tile-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    color: #0d6efd; /* mismo tono que usabas */
}

/* Imagen/icono: jamás se deforma */
.tile-img {
    max-width: 100%;
    max-height: 72px; /* ajusta a gusto */
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: .6; /* igual al look anterior */
}

/* Iconos FA grandes */
.tile-body i {
    font-size: 3.25rem; /* ≈ fa-5x visual */
    opacity: .2;
}

/* Barra inferior azul */
.tile-footer {
    background-color: #2c8ab8; /* tu "bg-lightblue" */
    color: #fff;
    text-align: center;
    padding: .5rem .75rem;
    font-weight: 700;
}

/* Espaciado entre tarjetas */
.tiles .col {
    display: flex;
}

/* Altura: cuadrada en pantallas medianas+ y fluida en móviles */
@media (min-width: 768px) {
    .tile-box {
        min-height: 150px;
    }
}


.fc .fc-daygrid-day-frame {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
/* Ajusta el renglón del número del día para que no “empuje” demasiado */
.fc .fc-daygrid-day-top {
    margin-bottom: 4px;
}
/* Permite que tu contenedor de botones/acciones crezca sin solaparse */
.fc .fc-daygrid-day-events {
    flex: 1 1 auto;
    max-height: none;
}
/* separa un poco del borde superior/derecho */
.page-calendario .fc .fc-daygrid-day-top {
    padding-top: 2px;
    padding-right: 2px;
}

/* Número del día: CUADRADO oscuro, centrado perfecto */
.page-calendario .fc .fc-daygrid-day-number {
    display: inline-flex; /* centrado perfecto */
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-weight: 800;
    font-size: .95rem;
    background: #0b0f14; /* oscuro */
    color: #32dbf9; /* tu cian */
    border: 1px solid rgba(50,219,249,.40);
    border-radius: 6px; /* pon 0 si lo quieres totalmente cuadrado */
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
    transition: background .15s, box-shadow .15s, transform .15s;
}

/* Hover suave */
.page-calendario .fc .fc-daygrid-day:hover .fc-daygrid-day-number {
    background: #101823;
    box-shadow: 0 3px 10px rgba(0,0,0,.45);
    transform: translateY(-1px);
}

/* Día HOY (bordecito más marcado) */
.page-calendario .fc .fc-day-today .fc-daygrid-day-number {
    background: #0e1722;
    border-color: rgba(50,219,249,.65);
    box-shadow: 0 0 0 2px rgba(50,219,249,.25), 0 6px 14px rgba(0,0,0,.5);
}

/* DÍA SELECCIONADO: relleno azul como antes */
.page-calendario .fc .fc-daygrid-day.fc-day-selected .fc-daygrid-day-number,
.page-calendario .fc .fc-daygrid-day-number:focus {
    background: #32dbf9;
    color: #0b0f14; /* contraste sobre el azul */
    border-color: #32dbf9;
    box-shadow: 0 0 0 2px rgba(50,219,249,.35), 0 8px 18px rgba(0,0,0,.5);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .page-calendario .fc .fc-daygrid-day-number {
        transition: none;
    }
}
/* Utilidad común para todos los outline */
.btn-outline {
    border-width: 1px;
    background: transparent;
    transition: all .15s ease;
}

/* Trituración */
.btn-tritu {
    @apply btn-outline;
    border-color: #059669;
    color: #059669;
}

    .btn-tritu:hover {
        background: #10B981;
        color: #fff;
    }

/* Molienda */
.btn-moli {
    @apply btn-outline;
    border-color: #2563EB;
    color: #2563EB;
}

    .btn-moli:hover {
        background: #3B82F6;
        color: #fff;
    }

/* Humedad */
.btn-hume {
    @apply btn-outline;
    border-color: #0891B2;
    color: #0891B2;
}

    .btn-hume:hover {
        background: #06B6D4;
        color: #fff;
    }

/* Granulometría */
.btn-gran {
    @apply btn-outline;
    border-color: #D97706;
    color: #D97706;
}

    .btn-gran:hover {
        background: #F59E0B;
        color: #fff;
    }

/* Ley Cabeza */
.btn-ley {
    @apply btn-outline;
    border-color: #7C3AED;
    color: #7C3AED;
}

    .btn-ley:hover {
        background: #8B5CF6;
        color: #fff;
    }

/* Ley Colas */
.btn-colas {
    @apply btn-outline;
    border-color: #E11D48;
    color: #E11D48;
}

    .btn-colas:hover {
        background: #F43F5E;
        color: #fff;
    }

/* Jales */
.btn-jales {
    @apply btn-outline;
    border-color: #6E7F37;
    color: #6E7F37;
}

    .btn-jales:hover {
        background: #8F8D5C;
        color: #fff;
    }

/* ====================== Calendario Merrill ====================== */
.page-calendario-merrill .fc-daygrid-day {
    position: relative;
}

.page-calendario-merrill .fc-daygrid-day-frame {
    padding-bottom: 88px;
    overflow: visible;
    min-height: 80px;
    display: flex;
    flex-direction: column;
}

.page-calendario-merrill .fc-cell-actions {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 6;
    pointer-events: auto;
}

    .page-calendario-merrill .fc-cell-actions .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

.page-calendario-merrill .fc-day-other .fc-cell-actions {
    display: none !important;
}

@media (max-width:768px) {
    .page-calendario-merrill .fc-cell-actions .btn-label {
        display: none;
    }

    .page-calendario-merrill .fc-cell-actions .btn {
        justify-content: center;
        text-align: center;
    }
}

/* Glow por estado dentro del calendario Merrill */
.page-calendario-merrill .fc-cell-actions i {
    font-weight: 900;
}

    .page-calendario-merrill .fc-cell-actions i.text-success {
        color: #00ff6a !important; /* Verde fosfo */
        text-shadow: 0 0 1px #fff, 0 0 6px rgba(0,255,106,.85), 0 0 12px rgba(0,255,106,.55);
    }

    .page-calendario-merrill .fc-cell-actions i.text-warning {
        color: #ffea00 !important; /* Amarillo vivo */
        text-shadow: 0 0 0.5px rgba(0,0,0,.10), 0 0 3px rgba(255,234,0,.45), 0 0 6px rgba(255,234,0,.25);
    }

    .page-calendario-merrill .fc-cell-actions i.text-danger {
        color: #ff1744 !important; /* Rojo intenso */
        text-shadow: 0 0 1px #fff, 0 0 6px rgba(255,23,68,.8), 0 0 12px rgba(255,23,68,.55);
    }

/* Botones Merrill */
.btn-rica {
    border-width: 1px;
    background: transparent;
    transition: all .15s ease;
    border-color: #0891B2;
    color: #0891B2;
}

    .btn-rica:hover {
        background: #06B6D4;
        color: #fff;
    }

.btn-esteril {
    border-width: 1px;
    background: transparent;
    transition: all .15s ease;
    border-color: #059669;
    color: #059669;
}

    .btn-esteril:hover {
        background: #10B981;
        color: #fff;
    }

.btn-dinamica {
    border-width: 1px;
    background: transparent;
    transition: all .15s ease;
    border-color: #2563EB;
    color: #2563EB;
}

    .btn-dinamica:hover {
        background: #3B82F6;
        color: #fff;
    }
