/* General */

/* Sobreescritura de SCRUD */
.modal-backdrop {
    z-index: 1040;
}

.btn-primary {
/*background-color: #3276b5;*/
/*padding: 7px 12px;*/
/*margin-right: 6px;*/
/*border-radius: 5px;*/
/*font-weight: 800;*/
/*font-size: 14px;*/
}

.hr {
    background-color: #1d71b8;
    height: 1px;
    margin-bottom: 20px;
}

.text-white {
    color: white;
}

/* Menús desplegables: Columnas seleccionables, filtros... */

.table-header .dropdown-menu {
    background-color: #1d71b8;
    /*max-height: max-content !important;*/
    padding: 25px;
    margin-top: 5px;
    width: fit-content !important;
}

.table-header .dropdown-menu .form-control {
    height: 35px;
    margin-bottom: 5px;
}

.table-header .dropdown-menu .divider {
    background-color: #1d71b8;
}

.table-header .dropdown-menu .btn-primary {
    border: 1px solid white;
    margin: 3px 0;
    padding: 0;
    width: 100%;
}

.table-header .dropdown-menu .btn-primary.selected {
    background-color: #1FBFF7;
}

.table-header .dropdown-menu .btn-primary label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    padding: 5px;
}

.table-navigation {
    font-size: 85%;
    color: gray;
}

.table-navigation select {
    border-radius: 5px;
    padding: 4px;
}

#filter-section .locked-filter div,
#filter-section .locked-filter span,
#filter-section .locked-filter a {
    background-color: #edeff5;
}

/* Botones de impresión */

.btn-print {
    padding: 0;
}

.btn-print:active,
.btn-print:focus,
.btn-print:hover {
    box-shadow: none;
}

.btn-print .xls-icon,
.btn-print .csv-icon,
.btn-print .pdf-icon {
    display: inline-block;
    padding: 20px;
}

.btn-print .xls-icon {
    background: url(../images/icons/print/xls-blue.png) no-repeat;
}

.btn-print .csv-icon {
    background: url(../images/icons/print/csv-blue.png) no-repeat;
}

.btn-print .pdf-icon {
    background: url(../images/icons/print/pdf-blue.png) no-repeat;
}

/* Modal */

@media (min-width: 992px) {
    .modal-xl {
        width: 60%;
    }

    .modal-full {
        width: 90%;
    }
}

.placeholder-option {
    visibility: hidden !important;
    height: 0px !important;
    padding: 0px !important;
    margin: 0px !important;
}


/* Pantalla inicio */

.inicio-cabecera {
    background-color: #19242f;
    opacity: .9;
    border-radius: 10px 10px 0 0;
    color: white;
}

.inicio-contenido {
    background-color: #EDEDF7;
    border-radius: 0 0 10px 10px;
}

.inicio-elemento a {
    text-decoration: none;
}

.inicio-img {
    height: 50px;
}

@media (min-width: 992px) {
    .inicio-elemento:not(:first-child) {
        border-left: 2px solid #19242f;
    }

    .inicio-fila:not(:first-child) {
        margin-top: 20px;
    }
}

#header-notifications .dropdown-menu {
    min-width: 250px;
    padding: 10px;
}

.cursor-pointer {
    cursor: pointer;
}

#page-loader {
    z-index: 9999;
}

.required-indicator {
    color: #a94442;
}

.chzntree-container-single .chzntree-search {
    z-index: 10;
}

/* Loader used in page detail  */

.loader {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 10px solid transparent;
    border-top-color: #3498db;
}

.loader:before {
    z-index: 100;
    animation: spin 1s infinite;
}

.loader:after {
    border: 10px solid #ccc;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#tabla-detalle-buques.disabled {
    opacity: revert;
}

#tabla-detalle-buques .form-group {
    margin-bottom: 0;
}

#img-fempa {
    height: 50px;
    position: absolute;
    bottom: 1em;
    right: 0;
    margin-right: 2em
}

#FEMPButton {
    margin-top: 4em;
    padding: 10px;
}

#checkbox-certificado-container {
    display: flex;
    align-items: baseline;
}

#checkbox-certificado-container > input {
    margin-right: 1%;
}

/* Para moviles */
@media (min-width: 0px) and (max-width: 767.98px){
    #left-menu {
        display:none;
    }

    #left-menu.menu-hidden+.page-content {
        margin-left: 0px;
    }

    .container-full {
        display: block;
        margin-left: -30px;
        margin-right: -30px;
        padding-left: 48px;
        padding-right: 48px;
    }

    .breadcrumb {
        display: flex;
        align-items: center;
    }

    .breadcrumb>li {
        margin-right: 10px;
    }

    button[type="submit"].btn-success {
        width: 100%;
    }

    #FEMPLink {
        display: flex;
        justify-content: center;
    }

    #img-fempa {
        right: auto;
        margin:auto;
    }

    #main-footer #footer-info {
        padding-top: 0px;
    }

    #main-footer #footer-logo {
        padding-top: 10px;
    }

    #main-footer #footer-info #footer-menu ul li {
        border-left: 0px;
    }

    #main-footer #footer-info #footer-menu ul.list-inline {
        margin-left: 0px;
        display: inline-grid;
    }

    #main-footer #footer-info #footer-menu ul li i.glyphicon.glyphicon-bookmark {
        display: none;
    }

    #main-footer #footer-info #footer-menu ul li i.glyphicon.glyphicon-envelope {
        display: none;
    }

    #main-header #header-controls #header-left-menu-toggler {
        display:none;
    }

    #main-header #header-right #header-user #header-profile #header-profile-data #header-user-image {
        float:right;
    }

    #main-header #header-controls {
        border-right: 0px;
    }

    /* Expedicion Semilla 2022 */
    #btn-seleccionar-zona .control-label{
        display:none;
    }

    #btn-seleccionar-zona br{
        display:none;
    }

    #btn-seleccionar-zona .btn-seleccionar-zona{
        width: 100%;
    }

    #lugarRecoleccion div div {
        background-color: #eeeff4;
        padding: 10px;
        border-radius: 5px;
    }

    #buttonBuscar {
        width: 100%;
    }

    #btn-otra-declaracion {
        white-space: break-spaces;
    }

    /* Filtros */
    .table-header .dropdown-menu {
        width: inherit !important;
    }

    .d-none-xs {
        display:none;
    }

    /*Modales Full Size */
    /*    .modal-dialog {*/
    /*        margin : 0;*/
    /*    }*/

    /*    .modal-content {*/
    /*        height : 100vh;*/
    /*        width : 100vw;*/
    /*    }*/

    #map-box {
        margin-left: -15px;
        margin-right: -15px;
    }

    #map {
        height: 75vh !important;
    }

    /* Consultar */
    .table-header-filtros {
        float: initial;
    }

    .m-l-xs-0 {
        margin-left: 0px !important;
    }

    .m-r-xs-0 {
        margin-right: 0px !important;
    }

    .w-auto-xs{
        width: auto;
    }

    .w-100-xs{
        width: 100%;
    }

    .p-l-xs-0{
        padding-left: 0px !important;
    }

    .p-r-xs-0{
        padding-right: 0px !important;
    }

    .f-xs-none{
        float: none !important;
    }

    #bottomButtons .btn.btn-default{
        background-color: #1d71b9;
        color: white;
    }

    #top-menu.top-menu-fixed.top-menu-is-fixed {
        display: none !important;
    }

    #main-header #header-right #header-user #header-profile #header-profile-data .dropdown-menu {
        min-width: 60%;
    }

    .center-w-flex {
        display: flex;
        justify-content: center;
    }

}

@media (min-width: 767.98px) {
    .d-none-md {
        display:none;
    }

    .qr-semilla {
        margin-left: -17px;
    }

}

@media (min-width: 1024px) {
    #pdf-container {
        display:none;
    }

}

@media (min-width: 0px) and (max-width: 1024px){
    canvas {
        display: block;
        margin: 10px auto;
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
        border: 1px solid #888;
        max-width: 100%;
        height: auto !important;
    }

    #pdf-container {
        width: 95%;
        max-width: 10000px;
        height: 600px;
        overflow-y: auto;
        border: 1px solid #ccc;
        background: #f0f0f0;
        padding: 10px;
        box-sizing: border-box;
        margin: 0 auto;
        margin-top: 15px;
    }

    .documento-pdf {
        display:none;
    }
}


/* Checkbox especiales */

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.form-check-input[type=checkbox] {
    border-radius: .25em;
}
.form-check .form-check-input {
    float: left;
    margin-left: -1.5em;
}
.form-check-input {
    width: 0.9em;
    height: 0.9em;
    margin-top: .25em !important;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

.legend-w-checkbox {
    font-size: 1.2em;
}

.title-card {
    font-weight: bold;
    font-size: 18px;
}

