﻿/* ---------------------------------------------------
    ERROR DE CONEXIÓN
----------------------------------------------------- */
#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: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }



/* ---------------------------------------------------
    FORM VALIDATION
----------------------------------------------------- */
.form-control.invalid {
    border-color: #dc3545 !important;
}

.form-control.valid {
    border-color: #28a745;
}

.validation-message {
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

/* ---------------------------------------------------
    TABLAS
----------------------------------------------------- */
th {
    white-space: nowrap;
}

    th.two-buttons {
        width: 100px;
    }

    th.one-button {
        width: 80px;
    }

.table-fixed-height {
    height: 500px;
    overflow: auto;
}

.table-sticky-header thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 10;
}

@media (max-width: 576px) {
    .table-fixed-height {
        height: 450px;
    }
}

/* ---------------------------------------------------
    UTILITIES
----------------------------------------------------- */
.cursor-pointer {
    cursor: pointer;
}

/* ---------------------------------------------------
    DRAG & DROP
----------------------------------------------------- */
.drag-drop-zone {
    border: 3px dashed #0C4D91;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #aeaeae;
    cursor: pointer;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }