@import url('https://fonts.googleapis.com/css?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@font-face {
    font-family: sigma_font;
    src: url(../tipografias/sigma_font.ttf) format('truetype'), url(../tipografias/sigma_font.otf) format('truetype');
    font-style: normal;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}
body {
    overflow-x: hidden;
}
.container{
    position: relative;
    width: 100%;
}
/********* NAVIGATION BAR *********/
.navigation{
    position:fixed;
    width: 250px;
    height: 100%;
    background: #003147;
    
    transition: 0.5s;
    overflow: hidden;
}
.navigation.active{
    position:fixed;
    width: 60px;
    transition: 0.5s;
}
.navigation ul{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.navigation ul li{
    position: relative;
    width: 100%;
    list-style: none;
}
.navigation ul li:hover{
    background: #03a9f4;
    
}
.navigation ul li:nth-child(1):hover{
    background: transparent;
}
.navigation ul li:nth-child(1){
    margin-bottom: 20px;
}

.navigation ul li a{
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: #fff;
}
.navigation ul li .icon{
    position: relative;
    display: block;
    min-width: 60px;
    height:60px;
    line-height: 60px;
    text-align: center;
}
.navigation ul li .icon .fa{
    color: #fff;
    font-size: 24px;
}
.navigation ul li a .title{
    position: relative;
    display: block;
    padding: 0 10px;
    height: 60px;
    line-height:60px;
    white-space: nowrap;
}

#logo{
    margin-top: 12px;
}
.nom_app{
    margin-left: 12px;
}
.nom_app .titulo{
    font-family: sigma_font;
    font-size: 32px;
}
.nom_app .subtitulo{
    font-size: 16px;
    text-align: right;
}
/********* PRINCIPAL *********/
.main {
    position: absolute;
    width: calc(100% - 250px);
    left: 250px;
    min-height: 100vh;
    /*background: #084c6d;*/
    background: #1f2b33;
    transition: 0.5s;
}
.main.active {
    width: calc(100% - 60px);
    left: 60px;
}
.main .topbar{
    width: 100%;
    background: #1F497D;
    height: 60px;
    padding: 0 10px;;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toggle{ 
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
}
.toggle::before{
    content: '\f0c9';
    font-family: fontawesome;
    position: absolute;
    width: 100%;
    height:100%;
    line-height:60px;
    font-size: 24px;
    text-align: center;
    color: #111;
}
.buscar{
    position: relative;
    width: 400px;
    margin: 0
}
.buscar label{
    position: relative;
    width: 100%;
}
.buscar label input{
    position: relative;
    width: 100%;
    height: 40px;
    border-radius: 35px;
    padding: 5px 20px; 
    padding-left: 35px;
    outline: none;
    border: 1px solid rgba(0,0,0,0.2);
}

.buscar label .fa{
    position: absolute;
    left: 15px;
    top: 4px;
    color: #999;
}
.user{
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}
.user img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    object-fit: cover;
}

/********* tarjetas *********/
.cardBox{
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 20px;
}
.cardBox .card{
    position: relative;
    background: #1f497d;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.cardBox .card .numeros{
    position: relative;
    font-size: 2em;
    font-weight: 500;
    color: #fff;
}
.cardBox .card .card_nombre{
    color: #999;
}
.cardBox .card .iconBox{
    font-size: 2.5em;
    color: rgb(154, 223, 255);
}
.cardBox .card_cat{
    position: relative;
    background: #1f497d;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/********* TABLAS *********/
.table_container{
    overflow: auto;
}
.detalles {
    position: relative;
    width: 100%;padding: 20px;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 2fr 1fr;
}
.detalles .card_table{
    position: relative;
    padding: 20px;
    padding-top: 10px;
    display: grid;
    min-width: 530px;
    background: #1F497D;
}

.card_header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.card_header .h2{
    font-weight: 600;
}
.btn{
    position: relative;
    padding: 5px;
    background: rgba(10, 10, 10, 0.45);
    text-decoration: none;
    border-radius: 6px;
}
.detalles table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.detalles table thead td{
    font-weight: 600;
    background:rgba(10, 10, 10, 0.2)
}
.detalles table tr{
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.detalles table tr:last-child{
    border-bottom: none;
}
.detalles table tr:hover{
    background: rgba(76, 144, 247, 0.5);
    color:rgba(10, 10, 10, 0.45);
    cursor: pointer;
}
.detalles table tr td{
    padding: 9px 5px;
}

.detalles table tr td:nth-child(3),.detalles table tr td:nth-child(3){
    text-align: right;
    padding-right: 20px;
}
.detalles table tr td:nth-child(4),.detalles table tr td:nth-child(4){
    text-align: left;
    padding-right: 20px;
}
.detalles table tr td:last-child,.detalles table tr td:last-child{
    text-align: center;
}

/********* ESTADOS *********/
.estado {
    position: relative;
    padding: 2px 2px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
}
.iniciada{
    margin: auto;
    background: #00A65A;
    color: white;
}
.pendiente{
    margin: auto;
    background: #F39C12;
    color: white;
}
.procesando{
    margin: auto;
    background: #F39C12;
    color: white;
}
.finalizada{
    margin: auto;
    background: #3C8DBC;
    color: white;
}
.error{
    margin: auto;
    background: #DF5645;
    color: white;
}

.detalles .items_recientes{
    position: relative;
    display: grid;
    /*min-height: 530px;*/
    background: #1F497D;
    padding: 20px;
}

.detalles .items_recientes .img_Item{
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}
.detalles .items_recientes .img_Item img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detalles .items_recientes table tr:hover{
    background: rgba(10, 10, 10, 0.45);
}
.detalles .items_recientes table tr td{
    padding: 7px 10px;
}
.detalles .items_recientes table tr h4{
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2em;
}
.detalles .items_recientes table tr h4 span{ 
    font-size: 12px;
    color: #999;
    line-height: 1.2em;
}

/**** MODO RESPONSIVO *****/
@media(max-width:1400px){
    .detalles .card_table {
        position: relative;
        padding: 20px;
        padding-top: 10px;
        display: grid;
        min-width: auto; 
        background: #1F497D;
    }
    .card_table{
        min-width: none;
    }
}
@media(max-width:992px){
    .navigation{
        left: -250px;
        transition: 0.5s;
    }
    .navigation.active{
        left: 0;
    }
    .main{
        width:100%;
        left: 0;
    }
    .main.active{
        width:calc( 100% - 60px);
        left: 60px;
    }
    .cardBox {
        position: relative;
        width: 100%;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-gap: 20px;
    }
    .detalles {
        position: relative;
        width: 100%;
        padding: 20px;
        display: grid;
        grid-gap: 20px;
        grid-template-columns:repeat(1,1fr);
    }
}
@media(max-width:768px){
    .cardBox {
        position: relative;
        width: 100%;
        padding: 20px 20px 0px 20px;;
        display: grid;
        grid-template-columns: repeat(2,2fr);
        grid-gap: 20px;
    }
    .cardBox .card {
        padding: 10px;
        font-size: 12px;
    }
    .cardBox .card .numeros{
        font-size: 22px;
    }
    .detalles .card_table{
        padding: 10px;
        padding-top: 10px;
        min-width: 100%;
        font-size: 11px;
    }
    .detalles .ordenesRecientes{
        overflow: auto;
    }
}