:root {
    --custom-success-color: #478B65;
    --custom-primary-color: #0c425b;
    --custom-info-color: #5f9fc3;
    --custom-warning-color: #8F7015;
    --custom-danger-color: #AE3A2B;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0F8EA6;
}

.btn-primary {
    color: #fff;
    background-color: #1D4254;
    border-color: #fff;
}
    .btn-primary:hover {
        color: #fff;
        background-color: #5f9fc3;
        border-color: #fff;
    }
.btn-info {
    color: #fff;
    background-color: #5f9fc3;
    border-color: #fff;
}
    .btn-info:hover {
        color: #fff;
        background-color: #1D4254;
        border-color: #fff;
    }

.btn-warning {
    color: #fff;
    background-color: #8F7015;
    border-color: #fff;
}
.btn-danger {
    color: #fff;
    background-color: #AE3A2B;
    border-color: #fff;
}
.btn-success {
    color: #fff;
    background-color: #478B65;
    border-color: #fff;
}
.page-item {
    color: #1D4254;
}
.page-item.active .page-link {
    color: #fff;
    background-color: #1D4254;
    border-color: #fff;
}
.btn-outline-primary {
    color: #1D4254;
    border-color: #1D4254;
}
.btn-outline-primary:hover {
    background-color: #1D4254;
    border-color: #fff;
}
.btn-outline-danger {
    color: #AE3A2B;
    border-color: #AE3A2B;
}
.btn-outline-danger:hover {
    background-color: #AE3A2B;
    border-color: #fff;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: abs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jcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.multiple-selector {
    display: flex;
}

.selectable-ul {
    height: 200px;
    overflow-y: auto;
    list-style-type: none;
    width: 170px;
    padding: 0;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.selectable-ul li {
    cursor: pointer;
    border-bottom: 1px #eee solid;
    padding: 2px 10px;
    font-size: 14px;
}

.selectable-ul li:hover {
    background-color: #08c
}

.multiple-selector-botones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px
}

.multiple-selector-botones button {
    margin: 5px;
}

/*SideBar*/
.side-menu {
    width: 330px;
    background-color: #232334;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.menu-header {
    padding: 16px;
    color: white;
    text-align: center;
    border-bottom: 1px solid #2a2a3d;
}

    .menu-header h3 {
        margin: 0;
        font-size: 18px;
    }

    .menu-header p {
        margin: 0;
        font-size: 14px;
        color: #a0a0a0;
    }

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.menu-item {
    border-bottom: 1px solid #2a2a3d;
}

.menu-button {
    width: 100%;
    background: none;
    border: none;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
}

    .menu-button:hover {
        background-color: #33333d;
        transition: background-color 0.2s ease-in-out;
    }

.menu-text {
    margin-left: 8px;
}

.expand-icon {
    font-size: 12px;
    margin-left: auto;
}

.submenu-list {
    list-style: none;
    padding-left: 16px;
    margin: 0;
}

.submenu-item {
    padding: 8px 16px;
    white-space: nowrap;
}

.submenu-button {
    width: 100%;
    background: none;
    border: none;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

    .submenu-button:hover {
        background-color: #33333d;
        transition: background-color 0.2s ease-in-out;
    }

.submenu-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

    .submenu-link:hover {
        text-decoration: underline;
    }

.nav-collapsed {
    width: 60px;
}

.nav-expanded {
    width: 240px;
}

.imagenes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.imagen-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0002;
}

/* Celda contada - inventario */
.td-success {
    background-color: rgba(71, 139, 101, 0.35) !important;
    color: inherit;
}

/* Tonalidades de verde por conteo (C1 más oscuro → C9 más claro) */
.td-count-1 { background-color: #0D2B1A !important; color: #ffffff !important; }
.td-count-2 { background-color: #1B4D32 !important; color: #ffffff !important; }
.td-count-3 { background-color: #27703F !important; color: #ffffff !important; }
.td-count-4 { background-color: #338F52 !important; color: #ffffff !important; }
.td-count-5 { background-color: #478B65 !important; color: #ffffff !important; }
.td-count-6 { background-color: #6AAF84 !important; color: #1a1a1a !important; }
.td-count-7 { background-color: #90C9A3 !important; color: #1a1a1a !important; }
.td-count-8 { background-color: #B8DEC6 !important; color: #1a1a1a !important; }
.td-count-9 { background-color: #DCF0E4 !important; color: #1a1a1a !important; }

/* ===== BINBOT CHAT FLOTANTE ===== */

/* Botón flotante (FAB) */
.binbot-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c425b 0%, #1a6e96 100%);
    box-shadow: 0 6px 24px rgba(12, 66, 91, 0.55);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s, box-shadow 0.2s;
}
.binbot-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(12, 66, 91, 0.7);
}
.binbot-fab--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
}
.binbot-fab-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.binbot-fab-pulse {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(12, 66, 91, 0.35);
    animation: binbot-pulse 2.2s infinite;
    pointer-events: none;
}
@keyframes binbot-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
.binbot-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px #e5393566;
}

/* Panel de chat */
.binbot-panel {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 370px;
    max-height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 16px 60px rgba(12, 66, 91, 0.25), 0 2px 12px rgba(0,0,0,0.12);
    background: #f4f7fb;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.binbot-panel--open {
    max-height: 560px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.binbot-header {
    background: linear-gradient(135deg, #0c425b 0%, #1a6e96 100%);
    padding: 14px 12px 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}
.binbot-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.binbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255,255,255,0.3);
}
.binbot-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #0c425b;
}
.binbot-header-info {
    display: flex;
    flex-direction: column;
}
.binbot-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.binbot-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
}
.binbot-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Área de mensajes */
.binbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    min-height: 0;
}
.binbot-messages::-webkit-scrollbar { width: 4px; }
.binbot-messages::-webkit-scrollbar-track { background: transparent; }
.binbot-messages::-webkit-scrollbar-thumb { background: #c5d5e4; border-radius: 4px; }

/* Burbujas de mensaje */
.binbot-msg {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    animation: binbot-msg-in 0.25s ease;
}
@keyframes binbot-msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.binbot-msg--user {
    flex-direction: row-reverse;
}
.binbot-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c425b, #1a6e96);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.binbot-msg-bubble {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 3px;
    word-break: break-word;
}
.binbot-msg--bot .binbot-msg-bubble {
    background: #fff;
    color: #1a2e3b;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(12,66,91,0.08);
}
.binbot-msg--user .binbot-msg-bubble {
    background: linear-gradient(135deg, #0c425b, #1a6e96);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(12,66,91,0.2);
}
.binbot-msg-time {
    font-size: 0.65rem;
    opacity: 0.6;
    align-self: flex-end;
    margin-top: 2px;
}

/* Indicador de escritura */
.binbot-typing {
    flex-direction: row !important;
    align-items: center;
    gap: 5px;
    padding: 12px 16px !important;
    min-width: 60px;
}
.binbot-dot {
    width: 7px;
    height: 7px;
    background: #5f9fc3;
    border-radius: 50%;
    animation: binbot-bounce 1.2s infinite ease-in-out;
}
.binbot-dot:nth-child(2) { animation-delay: 0.18s; }
.binbot-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes binbot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-7px); opacity: 1; }
}

/* Sugerencias rápidas */
.binbot-suggestions {
    padding: 4px 14px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.binbot-suggestion-chip {
    background: #fff;
    border: 1.5px solid #c5d9e8;
    color: #0c425b;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    outline: none;
}
.binbot-suggestion-chip:hover {
    background: #0c425b;
    color: #fff;
    border-color: #0c425b;
}

/* Área de input */
.binbot-input-area {
    padding: 10px 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-top: 1px solid #e8eef4;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}
.binbot-input {
    flex: 1;
    border: 1.5px solid #d0dde8;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.875rem;
    outline: none;
    background: #f4f7fb;
    color: #1a2e3b;
    transition: border-color 0.2s;
}
.binbot-input:focus {
    border-color: #1a6e96;
    background: #fff;
}
.binbot-input:disabled {
    opacity: 0.6;
}
.binbot-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c425b, #1a6e96);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 3px 10px rgba(12,66,91,0.35);
    flex-shrink: 0;
}
.binbot-send-btn:hover:not(.binbot-send-btn--disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 16px rgba(12,66,91,0.5);
}
.binbot-send-btn--disabled {
    background: #b0c4d4;
    box-shadow: none;
    cursor: not-allowed;
}

/* Responsive móvil */
@media (max-width: 480px) {
    .binbot-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 96px;
    }
    .binbot-fab {
        right: 16px;
        bottom: 20px;
    }
}
.binbot-lottie-fab {
    width: 46px;
    height: 46px;
    pointer-events: none;
}
.binbot-lottie-header {
    width: 38px;
    height: 38px;
    pointer-events: none;
}
.binbot-lottie-msg {
    width: 22px;
    height: 22px;
    pointer-events: none;
    background: linear-gradient(135deg, #0c425b, #1a6e96);
    border-radius: 50%;
}

/* ===== FIN BINBOT ===== */


