/* Miligram overrides */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    background: black;
    color: white;
}

blockquote{
    background-color: darkgrey;
    border-radius: 0.4rem;
    color: darkslategrey;
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: white;
}

a {
    color:darkgrey;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
    -webkit-tap-highlight-color: transparent;
}

a:hover,
a:focus,
a:active  {
    color:#E9F30A;
    -webkit-transition:all 0.2s easeout;
    transition:all 0.2s ease-out;
}

label, legend{
    margin-bottom: 0;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #696969;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color:#E9F30A;
}

fieldset, input, select, textarea{
    margin-bottom: 0;
}

input[type='text']{
    width: auto;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
.content {
    padding: 0.5rem;
    background: black;
    border-radius: 0.4rem;
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
    /* height: 100%; */
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}

th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 1rem 2rem;
    margin: 0 auto 0; */
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #E9F30A;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.warning {
    background: #fffabc;
    color: #8d7b00;
    border-color: #d3b800;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

/* Paginator */
.paginator {
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #000000;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

.centered-box{
    margin:auto;
}

.documents-menu{
    padding: 0 1rem;
    font-size: 1rem;
}

.for-desktop{
    display: block;
}

.for-mobile{
    display: none;
}

.side-by-side {
    width: 40px;
} 

.center{
    text-align: center;
}

.justify{
    text-align: justify;
    text-justify: inter-word;
}

.tiny-text{
    font-size: 60%;
}

.documents-preview-container{
    display: flex;
    justify-content: start;
    background: gainsboro;
    border-style: solid;
    overflow: scroll !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    height: 30rem !important;
    margin-bottom: 10px;
}

.documents-preview-container-loading{
    display: flex;
    justify-content: start;
    background: gainsboro url('/img/loading.gif') no-repeat center !important;
    border-style: solid;
    overflow: scroll !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    height: 30rem !important;
    margin-bottom: 10px;
}

.documents-preview-container-initial{
    display: flex;
    justify-content: start;
    background-color: gainsboro; 
    background-image: url('/img/select-a-document.png'); 
    background-repeat: no-repeat;
    background-position: center; 
    background-size: 10%;
    border-style: solid;
    overflow: scroll !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    height: 30rem !important;
    margin-bottom: 10px;
}

.document-preview{
    max-width: none; 
    width: 100%; 
    max-height: none; 
    height: 96rem;
}

.mobile-documents-list{
    border: 1px solid gainsboro;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}

.mobile-documents-list a{
    display: block!important;
    text-decoration: none;
    color: grey;
    width: 100%!important; 
    height: 100%;
}

.signed-ok-document{
    background-image: url('/img/signed-ok-document.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.signed-nok-document{
    background-image: url('/img/signed-nok-document.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.pending-document{
    background-image: url('/img/pending-document.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.document-state-logo-size-for-desktop{
    background-size: 15% !important;
}

.document_list_item_selected{
    font-weight: bold;
}

.document_list_item:hover{
    cursor: pointer;
}

.select-option{
    display: inline-block;
    margin-right: 10px;
}

.entity-header{
    background-color: #525252;
    box-shadow: 10px 5px 5px black;
    padding: 25px;
    border-radius: 25px;
    margin-top: 13px;
    margin-bottom: 13px;
}

.entity-body{
    box-shadow: 10px 5px 5px black;
    padding: 5px;
    border-radius: 25px;
    border-width: 2px;
    border-style: solid;
    border-color: white;
    margin-bottom: 25px;
    width: 100%;
}

.months-list{
    padding: 10px;
}

.orders-list{
    padding: 15px;
}

.confirmed-order{
    background-color: blue; 
    background-image: linear-gradient(blue, white);
}

.assigned-order{
    background-color: green; 
    background-image: linear-gradient(green, white);
}

.opened-order{
    background-color: red; 
    background-image: linear-gradient(red, white);
}

.cancelled-order{
    background-color: darkgrey; 
    background-image: linear-gradient(grey, white);
}

.expired-order{
    background-color: yellow; 
    background-image: linear-gradient(grey, white);
}

.confirmed-order-header{
    background-image: url('/img/green-button.png');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 95% center;
}

.assigned-order-header{
    background-image: url('/img/red-button.png');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 95% center;
}

.opened-order-header{
    background-image: url('/img/yellow-button.png');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 95% center;
}

.cancelled-order-header{
    background-image: url('/img/grey-button.png');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 95% center;
}

.expired-order-header{
    background-image: url('/img/yellow-button.png');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 95% center;
}

.hidden-component{
    display: none;
}

.showed-component{
    display: inline-block;
}

.order-body-list{
    list-style: none;
}

.entity-menu-button{
    padding: 0.25rem;
    margin: 5px;
    box-shadow: 2px 2px 2px darkgrey;
    width:32px;
    height:32px;
    background: #E9F30A;
    background-repeat: no-repeat;
    background-position: center; 
    background-size: contain;
}

.clear-button{
    float: left !important; 
    padding: 0.25rem;
    margin: 5px;
    box-shadow: 2px 2px 2px darkgrey;
    width:32px;
    height:32px;
    background: #E9F30A;
    background-repeat: no-repeat;
    background-position: center; 
    background-size: contain;
}

.search_lists{
}

.jump-between-entities{
    float: right;
    vertical-align: middle;
}

.main-user-menu{
    position:fixed;
    right: 2rem;
    top: 2rem;
    z-index: 99;
}

.main-user-menu-item{
    width: 45px; 
    border-radius: 50rem;
    background-color: #525252;
    margin: 3px;
    padding: 5px;
}

#hideable-menu{
    display:none;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
    .for-desktop{
        display: none;
    }

    .for-mobile{
        display: block;
    }

    #document-preview{
        max-width: none; 
        width: 100%; 
        max-height: none; 
        height: 45rem;
    }

    .showed-component{
        display: block;
    }

    .content{
        height: 100%;
    }
    .form-row {
        display: flex;
        flex-direction: row;
        align-items: center; /* Centra verticalmente los elementos en la fila */
    }

    /* Establece el ancho de los títulos de los controles */
    .form-row label {
        width: 30%; /* Ancho deseado para las etiquetas de los controles */
        margin-right: 2%; /* Espacio entre el título y el control */
    }

    /* Establece el ancho de los controles */
    .horizontal_select{
        width: 70%; /* Ancho deseado para los controles */
    }

    td th tr{
        border: 0;
        border-bottom: none !important;
    }
}
