:root {
    --color-ppal: #fe2d05; 
    --color-secundario: #9F9483;
    --color-terciario: #2d1b11;
}

html,body{
margin:0;padding:0;}
*{
    box-sizing: border-box;
}
body{
    font-family:Arial, sans-serif;
    color: #222;
    padding-top:50px;
}
a {
    color: var(--color-ppal);
}
#login{margin:80px auto;padding:10px;max-width: 500px;}
#login label{display: block;margin-bottom: .5rem;font-weight: 600;}
#login input{height:38px;padding:6px 10px;background-color: #fff;border:1px solid #D1D1D1;border-radius:4px;box-shadow:none;box-sizing:border-box;margin-bottom:20px;width:100%;color:#4d3e32}
#login input.boton,.boton{display:inline-block;height:38px;padding:0 30px;color:#555;text-align:center;font-size:11px;font-weight:600;line-height:38px;letter-spacing:.1rem;text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid #bbb;
    cursor: pointer;
    box-sizing: border-box;}
#login input.boton.ba,.boton.ba{color: #FFF;
    background-color: #4d3e32;
    border-color: #4d3e32;}
    .boton.ba.negro{
        background-color:#000;
        border-color:#000;
    }
    .boton.ba.rojo{
        background-color:var(--color-ppal);
        border-color:#000;
    }
    
#quien {
    font-weight:700;
    font-size:20px;
    padding-top:20px;
    padding-right:30px;
    float:right;
}
#btnCerrarAviso {
    background-color:var(--color-ppal);
}
#pantallaLogin #login input.boton{
    background-color:#fff;
    color:#4d3e32;
}
#logout {
    font-size:1.8em;
    cursor:pointer;
}
#volver {
    font-size:32px;
    float:right;
    cursor:pointer;
    margin:5px;    
}
.centrado {
    text-align: center;
}
.dCorto{
    display:inline-block;
    width:32%;
}
.dCorto, .dLargo{
    margin-bottom:10px;
    color:#666;
}
.dCorto strong,.dLargo strong{
    color:#000;
}
.nCampo{
    display:block;
}
#listado{padding:10px; max-width:1200px;margin:0 auto;}
.elementoListado{
    margin-bottom:20px;
    border-bottom:1px solid #E1E1E1;
}
.tabla-fija {
    width: 100%;
    overflow-y:auto;
    width: 100%;
    thead, tbody, tr, td, th {
        display:block;
    }
    tbody td {
        float:left;
    }
    thead tr th {
        float:left;
        border-color:#e67e22;
        background-color: #f0f0f0;
    }
}        
#trCabecera{
    background-color:#f0f0f0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}
.rwd-table tr:hover, tr.activa{
    background-color:#ffffdd;
    cursor:pointer;
}
.rwd-table{
    border-collapse: collapse;
    border-spacing: 0;
    margin:0 auto;
}
.rwd-table tr {
    border-bottom: 1px solid #E1E1E1;
    padding:10px 0;
}
h1{
    text-align: center;
}
a.otrosAvisos {
    color:#000 !important;
}
#foto1, #txtfoto1, #foto2, #txtfoto2, #foto3, #txtfoto3{
    display:none !important;
}
#borraFoto {
    position:fixed;
    top:40px;
    left:40px;
    padding:10px;
    background-color:#fff;
    color:#900;
    font-size:30px;
    border:1px solid #000;
    cursor:pointer;
}
.fa-camera {
    display:block !important;
    font-size:48px !important;
    margin: 10px;
    padding:8px;
    border:1px solid #000;
    border-radius:5px;
    cursor:pointer;
}
.fotoaviso {
    max-width:180px;
    float:left;
    vertical-align:top;
    margin:10px;
    padding:5px;
    width: 70px;
    height:70px;
    cursor:zoom-in;
}
#datosDocumento input, #datosDocumento textarea {
    color: #009;
}
#menu{
    max-width:1200px;
    margin:0 auto;
    background-color: #fff;
    color:#4d3e32;
    border-bottom:1px solid #c9c9c9;
}
#menu a{
    color:#000;
    text-decoration: none;
    height:51px;
    display:inline-block;
    text-align: center;
    /* background-color: var(--color-secundario); */
    padding:5px 30px;
    font-size:12px;
}
#menu a.oscuro{
    /* background-color:var(--color-terciario);*/
}
#menu a i{
    display:block;
    font-size: 1.8em;
}
#menu span{
    display:none;
}
#menu ul{
    list-style:none;
    padding:0;
    margin:0;
}
#menu ul li{
    float:left;
}
#menuFijo{
    position:fixed;
    width: 100%;
    z-index:1999;
    top:0;
}
.cCorto{
    width:24%;
}
.cMediano{
    width:49%;
}
.cCorto, .cMediano{
    display:inline-block;
}
.campo{
    margin-bottom:10px;
    min-height: 46px;
}
.campo label, .campo input, .campo textarea, .campo select, .campo button{
    display:block;
    width:100%;
    max-width:100%;
    border-radius:5px;
    padding:0px 3px;
}
.campo input, .campo textarea, .campo select{
    border:1px solid #c9c9c9;
}
.campo label{
    color: var(--color-terciario);
    font-weight: bold;
}
.campo input[type="checkbox"] {
    height: 18px;
}
input.grande {
    width:20px;
    height:20px;
}
.campo input[readonly] {
    background-color: #f7f7f7;
}
fieldset{
    position: relative;
    margin-bottom:20px;
    
}
fieldset .mosca {
    position:absolute;
    top:-12px;
    right:10px;
    font-size:32px;
    cursor:pointer;
    z-index:999;
}
fieldset legend{
    color: var(--color-ppal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0px 5px;
}
.rwd-table{
    width:100%;
}
.rwd-table th{
    text-align: left;
}

#articulos{
    margin:10px -15px;
}
#articulos .campo{
    min-height:auto;
    font-weight:700;
}
#articulos > .linea .campo span {
    display : none;
}
#buscadorArticulo {
    background-color:#f0f0f0;
}
.borrarLinea {
    font-size:24px;
    font-weight:700;
    text-align: right;
    display: inline-block !important;
}

#pantallaLogin{
    color:#999;
}
#pantallaLogin img{
    margin:10px auto;
    display: block;
    
}
.paginador{
    text-align:right;
    margin-top:10px;
}
.paginador a{
    background-color:#4d3e32;
    color:#fff;
}
.paginador a, .paginador span{
    padding:5px;
}
.campo .cabeceraMovil{
    display:none;
}
.tCenter{
    text-align: center;
}
#buscadorClienteFicha{
    background-color:#eaeaea;
}
.total{
    font-weight: bold;
}
.total, .precio{
    text-align:right;
}
#gridArticulos .rwd-table th, #gridArticulos .rwd-table td {
    padding: 0;
}
.precioCol{
    text-align:right;
}
.avisoUrgente{
    color:#ff0000;
}
.thCodigo, .thAviso, .thPostal{
    width:90px;
}
.thAviso, .thPostal{
    text-align:center;
}
.thNombre,.thNombre2,.thContacto,.thPoblacion,.thProvincia,.thDireccion,.thTelefonos,.thMovil{
    width:400px;
}
.ticket i{
    font-size: 2.6em;
}
.totales{
    text-align: right;
    font-weight:700;
}
.totales span{
    color: var(--color-ppal);
}
#fechaAnteriorPosterior a{
    margin:0 10px;
    background-color: #4d3e32;
    color:#fff;
    padding:5px;
}
@media (min-width: 767px) {    
    #menu .liMenu{
        display: block !important;
        margin-top:10px;
    }    
    .container {
        width: 720px;
    }    
}
@media (max-width: 767px) {
    #menu, #listado{max-width:98%;}
    #fechaAnteriorPosterior{
        margin-top:15px;
        text-align: center;
    }
    #menu a i, li.liMenu {
        float:right;
        padding-left:10px;
    }
    #menu a {
        text-align:right;
        padding-right:20px;
        font-size:16px;
    }
    body{
        padding-bottom:40px;
    }
    .paginador{
        position:fixed;
        bottom:0;
        width:100%;
        padding: 5%;
        background-color: #fff;
        border-top:1px solid #eaeaea;
    }
    .linea{
        border-bottom: 1px solid;
        padding-bottom: 15px;
        margin-bottom: 15px;
        display: inline-block;
    }
    .campo .cabeceraMovil{
        display:block;
    }
    #menu span{
        display:block;
    }
    #menu .liMenu{
        display: none;
        width:100%;    
    }
    #menu a{
        width:100%;
    }
    #menu ul #btnMenuMovil{
        float:right;
        padding:20px 10px 10px 0;
        font-size:1.4em;
    }
    .thCodigo, .thAviso, .thPostal{
        width:30%;
    }
    .thNombre,.thNombre2,.thContacto,.thPoblacion,.thProvincia,.thDireccion,.thTelefonos,.thMovil{
        width:100%;
    }
    .cabeceraPC{
       display:none;
    }
    .boton{
        width:100%;
        margin:10px 0;
    }
    #gridClientes .rwd-table{
        width:100%;
    }  
    
    #gridClientes{
        overflow-x:inherit;
    }
    .rwd-table td:before {
        display: none;
    }
    
    .rwd-table {
      margin: 1em 0;
      min-width: 300px;
          
    }
    .rwd-table tr {
      display:block;
      padding:10px;
      margin:14px 0;
      border-radius:10px;
    }    
    .rwd-table td {
      display: block;
    }
    .rwd-table #trCabecera{
      /*display: none;*/
      margin:0;
      padding:5px;
    }
    .rwd-table #trCabecera th { display:none; }
    .rwd-table #trCabecera th[data-orden] { display:inline-block; margin:0; padding:0; width:32%}
    
    .rwd-table tr.filaAviso td { display:none; }
    .rwd-table tr.filaAviso td[data-th="Nombre"], .rwd-table tr.filaAviso td[data-th="Fecha"],
    .rwd-table tr.filaAviso td[data-th="Avería"], .rwd-table tr.filaAviso td[data-th="Apertura"], .rwd-table tr.filaAviso td[data-th="Cierre"], 
    .rwd-table tr.filaAviso td[data-th="Ver Histórico"] { display:block; }
    
    .rwd-table td:first-child {
      padding-top: .5em;
    }
    .rwd-table td:last-child {
      padding-bottom: .5em;
    }
    .rwd-table td:before {
      content: attr(data-th) " ";
      color:#fd502a;
      font-weight: bold;
      width: 6.5em;
      display: inline-block;
    }
    .rwd-table td.tdNombre:before,.rwd-table td.tdMediano:before{
        width:100%;
    }

    .rwd-table th, .rwd-table td {
      text-align: left;
    }
    .rwd-table td.tdMediano{
        width:32%;
        display:inline-block;
        margin:0;
        padding:0 0 5px 0;
    }
    .rwd-table td.tdNombre{
        padding:0 0 5px 0;
        margin:0;
    }
    .rwd-table td.tdNombre:first-child{
        width:auto;
    }

      
    .rwd-table th:first-child, .rwd-table td:first-child {
        padding-left: 0;
    }
    .rwd-table th:last-child, .rwd-table td:last-child {
        padding-right: 0;
    }
    
    #articulos > .linea .campo span {
        display : block;
    }
    
}

.rwd-table {
  border-radius: .4em;
}
.rwd-table tr {
  border-color: #46637f;
}
.rwd-table th, .rwd-table td {
  margin: .5em 1em;
}

.rwd-table th, .rwd-table td {
    padding: 0.5em;
}

#envioFacturaPanel {
    display:none;
}