﻿/*Aumentamos el tamaño del body para mostrar mas datos*/
#body {
    width: 97%;
}
/* CSS para la tabla completa*/

#berthing-table {
    overflow: scroll;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--content-bg, #1F304B);
    position: relative;
}


/*---------------------------*/


/*CSS Para la fila de grúas*/
#gruas {
    position: relative;
    height: 60px;
    background-color: var(--grid-title-bg, #2D4266);
    min-width: 100%;
    border: solid var(--grid-header-border, #5978AD);
    border-width: 1px 0px 0px 0px;
}

#gruas-gap {
    width: 95px;
    min-width: 100px;
    height: 60px;
    border-right: 1px solid var(--grid-title-bg, #2D4266);
    display: inline-flex;
}
/*-----------------------*/

#gruas-header {
    height: 60px;
    display: inline-flex;
}

.grua {
    margin: 8px 0px 8px 0px;
    height: 42px;
    text-align: center;
    border-radius: 30px;
    border: solid transparent;
    border-width: 1px;
    position: absolute;
    display: table;
    color: var(--main-font, white);
}

.grua-text {
    font-size: 1.5em;
    font-weight: bold;
    display: table-cell;
    vertical-align: middle;
}

/*CSS Para la fila de norays*/
#header {
    height: 60px;
    background-color: var(--header-bg, #415E90);
    min-width: 100%;
    border: solid var(--grid-header-border, #5978AD);
    border-width: 1px 0px 0px 0px;
    display: inline-flex;
}

#date-header {
    width: 75px;
    min-width: 75px;
    height: 60px;
    border-right: 1px solid var(--grid-header-border, #5978AD);
    display: inline-flex;
}

.date-header-text {
    color: var(--main-font, white);
    font-size: 15px;
    font-weight: bold;
    padding-top: 20px;
    padding-left: 15px;
}

#noray-header {
    display: inline-flex;
}

#berthing-grid {
    display: inline-block;
    /*position: relative;*/
}

.noray-header-item {
    display: inline-grid;
    border: solid transparent;
    border-width: 0px 0px 0px 1px;
}

.noray-header-number {
    font-weight: bold;
    color: var(--main-font, white);
    margin-top: 2px;
    margin-left: -4px;
}

.noray-header-bar {
    width: 8px;
    height: 25px;
    margin-left: -4px;
    background: gray;
    border-radius: 10px 10px 10px 10px;
    border-width: 0px 0px 1px 1px;
}

    .noray-header-bar.Simple {
        background: #53B436;
    }

    .noray-header-bar.Doble {
        background: #E3AD44;
    }

    .noray-header-bar.Bicéfalo {
        background: #E34444;
    }
/*-----------------------*/

/*CSS Para la linea de tabla*/

.grid-line {
    display: inline-flex;
    border: solid var(--grid-header-border, #5978AD);
    border-width: 0px 0px 1px 0px;
}

.grid-line-date {
    background-color: var(--content-bg, #1F304B);
    border: solid var(--grid-header-border, #5978AD);
    border-width: 0px 1px 1px 0px;
    text-align: center;
    height: 97px;
    width: 75px;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.number-font {
    color: var(--surface-muted-font, #5978AD);
    font-size: 30px;
    font-weight: bold;
}

.date-font {
    color: var(--surface-muted-font, #5978AD);
    font-size: 15px;
}

.grid-line-item {
    /*border: solid #5978AD;*/
    border: solid var(--grid-header-border, #5978AD);
    border-width: 0px 0px 0px 1px;
    height: 97px;
    background-color: var(--content-bg, #1F304B);
}

.grid-line-item-selected {
    border: solid white;
    border-width: 0px 0px 0px 2px;
    height: 97px;
}

.grid-line-item-selected-mooring {
    border: double #ff884d;
    border-width: 0px 0px 0px 3px;
    height: 97px;
}
/*.middle-line {
    max-height: 0px;
    height: 0px;
    border-top: 1px dashed #5978AD;
    width: 100%;
    z-index: 0 !important;
}*/
div[hora="11"] {
    max-height: 0px;
    height: 0px;
    border-top: 1px dashed var(--grid-header-border, #5978AD);
    width: 100%;
    z-index: 0 !important;
}


/*-----------------------*/

/*CSS Para el recuadro de registro*/
/*TODO: Revisar colores a aplicar segun estados*/

.registro-berthing {
    position: absolute;
    background: rgb(181, 207, 250, 0.25);
    border: solid #B5CFFA;
    border-width: 2px;
    border-radius: 0px 10px 0px 10px;
}
    .registro-berthing.Authorized {
        background: rgb(0, 0, 0, 0.40);
    }

    .registro-berthing.Completed {
        background: rgb(0, 0, 0, 0.40);
    }

    .registro-berthing.Current {
        background: rgb(214, 245, 174, 0.25);
    }

    .registro-berthing.Planned {
        background: rgb(105,105,105, 0.60);
    }

.registro-berthing-container {
    display: inline-flex;
    width: 100%
}

.registro-berthing-image-container {
    z-index: 1;
    position: absolute;
    /*    max-width: 30%;*/
    width: 30%;
    max-width: 120px;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
}

.registro-berthing-image-container.izquierda {
    background-image: url("/Content/themes/common/icons/barco-izquierda.png");
}
.registro-berthing-image-container.derecha {
    background-image: url("/Content/themes/common/icons/barco-derecha.png");
}

.registro-berthing-data-container {
    display: inline-block;
    background: var(--emergent-window-bg);
    border-radius: 0px 10px 0px 10px;
    border: 2px solid var(--grid-header-border, #B5CFFA);
    padding: 5px;
    text-align: end;
    position: relative;
    top: -2px;
    right: -2px;
    font-size: 0.8em;
}

.boton-registro {
    background: none;
    border: none;
}

.boton-buque {
    background: none;
    border: none;
}

.ocupacion-data-container {
    display: inline-block;
    color: var(--grid-row-font, var(--main-font, white));
}

.autorizacion-container {
    display: inline-block;
    vertical-align: top;
}

.boton-autorizado {
    width: 12px;
    height: 12px;
    background: #53B436;
    border: solid white;
    border-width: 2px;
    border-radius: 20px 20px 20px 20px;
}

.boton-no-autorizado {
    width: 12px;
    height: 12px;
    background: #792B2B;
    border: solid white;
    border-width: 2px;
    border-radius: 20px 20px 20px 20px;
}

/*-----------------------*/
.z-index5 {
    z-index: 5;
}

.hour-line {
    height: 4px;
    width: 100%;
}


    .hour-line.current-day {
        height: 2px;
        width: 100%;
        /*border-top: solid orange 2px;*/
        border-top: solid #ffff80 2px;
    }

.register-label {
    position: absolute;
    right: 0;
    max-width: 70%;
}

.berthing-vessel-icon {
    /*width: 120px;*/
    max-width: 100%;
}

.incidencia {
    width: 20px;
    height: 20px;
    background-image: var(--icono-incidencia);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin: 3px;
    filter: brightness(0%);
}

/*Berthing*/
.leyenda .leyenda-GruaOperativa::before {
    background: #735264;
    /*color: #2D4266;*/
}

.leyenda .leyenda-GruaNoOperativa::before {
    background: #B86262;
    /*color: white;*/
}

.leyenda .leyenda-GruaAveriada::before {
    background: #376961;
    /*color: #2D4266;*/
}

.leyenda .leyenda-GruaAveriada2::before {
    background: transparent;
    content: "";
    width: 10px;
    padding-right: 20px;
    margin-right: 10px;
    border: solid 2px #41905D;
    /*color:#41905D;*/
}

#muelle-header {
    display: inline-flex;
}

.muelle-header-item {
    border-left: 1px solid var(--grid-header-border, #5978AD);
    border-bottom: 1px solid var(--grid-header-border, #5978AD);
    display: inline-grid;
    height: 100%;
    color: var(--main-font, white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#popup-modal {
    position: absolute;
    display: none;
    background: white;
    padding: 10px;
    border: 2.5px solid var(--grid-header-border, #B5CFFA);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
    color: var(--surface-font, white);
    background-color: var(--emergent-window-bg);
    min-width: 250px;
    width: max-content;
}

    /* 🔹 Flecha cuando el popup está a la derecha del botón */
    #popup-modal.flecha-izquierda::after {
        content: "";
        position: absolute;
        top: 12%;
        left: -10px;
        transform: translateY(-50%);
        border-width: 10px 10px 10px 0;
        border-style: solid;
        border-color: transparent #B5CFFA transparent transparent;
    }

    #popup-modal.flecha-izquierda::before {
        content: "";
        position: absolute;
        top: 12%;
        left: -11px;
        transform: translateY(-50%);
        border-width: 11px 11px 11px 0;
        border-style: solid;
        border-color: transparent #B5CFFA transparent transparent;
    }

    /* 🔹 Flecha cuando el popup está a la izquierda del botón */
    #popup-modal.flecha-derecha::after {
        content: "";
        position: absolute;
        top: 12%;
        right: -10px;
        transform: translateY(-50%);
        border-width: 10px 0 10px 10px;
        border-style: solid;
        border-color: transparent transparent transparent #B5CFFA;
    }

    #popup-modal.flecha-derecha::before {
        content: "";
        position: absolute;
        top: 12%;
        right: -11px;
        transform: translateY(-50%);
        border-width: 11px 0 11px 11px;
        border-style: solid;
        border-color: transparent transparent transparent #B5CFFA;
    }

.popup-btn {
    background-color: var(--login-button-bg, #005FCC);
    color: var(--main-font, white);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .popup-btn:hover {
        background-color: var(--menu-open-focus, #0056b3); /* azul más oscuro al pasar el ratón */
    }

.popup-line {
    margin: 4px 0;
}

.popup-label {
    color: var(--form-label-color);
    font-weight: bold;
}

.popup-value {
    color: var(--surface-font, white);
    font-weight: bold;
    margin-left: 4px;
}
