﻿.progress_modal {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    filter: alpha(opacity=50);
    opacity: 0.5;
    -moz-opacity: 0.5;
}
.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100px;
  height: auto;
  margin-left: -50px;
  margin-top: -50px;
}

label { 
    display: inline-block; 
}

.CartelVerde {
   background-color: yellowgreen; 
   color: white;
   padding: 18px;
   font-family: Calibri;
   font-size: medium;
   font-weight:bold;
   vertical-align: top;
   display: inline-block;
   line-height: normal;
}

.CartelAtencion {
   background-color: #ffd100; 
   color: #0033a0;
   padding: 18px;
   font-family: Calibri;
   font-size: medium;
   font-weight: bold;
   vertical-align: top;
   display: inline-block;
   line-height: normal;
}

.CartelRojo {
   color: tomato;
   padding: 18px;
   font-family: Calibri;
   font-size: medium;
   font-weight: bold;
   vertical-align: top;
   display: inline-block;
   line-height: normal;
}

.color-gainsboro {
    background-color: gainsboro;
}

.texto-centrado {
    text-align: center;
}

.boton_azul {
   background-color: cornflowerblue;
   border: 2px solid white;
   color: white;
   padding: 10px;
   font-size: large;
   margin-top: 20px;
   margin-bottom: 20px;
}
.boton_azul:hover {
  background-color: dodgerblue; 
  cursor:pointer;
  cursor:hand;
}
.boton_azul:focus {
   border: 2px solid gray;
   outline: none;
}

.boton_azul_2 {
  background-color: cornflowerblue;
   border: 2px solid white;
   color: white;
}
.boton_azul_2:hover {
  background-color: dodgerblue; 
  cursor:pointer;
  cursor:hand;
}
.boton_azul_2:focus {
   border: 2px solid gray;
   outline: none;
}

.boton_verde {
   background-color: mediumseagreen;
   border: 2px solid white;
   color: white;
   padding: 5px;
   font-size: large;
}
.boton_verde:hover {
  background-color: seagreen; 
  cursor:pointer;
  cursor:hand;
}
.boton_verde:focus {
   border: 2px solid gray;
    outline: none;
}

.boton_rojo {
  background-color: tomato;
   border: 2px solid white;
   color: white;
   padding: 5px;
   font-size: large;
}
.boton_rojo:hover {
  background-color: orangered; 
  cursor:pointer;
  cursor:hand;
}
.boton_rojo:focus {
   border: 2px solid gray;
   outline: none;
}

.boton_cerrarsesion {
  background-color: orchid;
   border: 2px solid white;
   color: white;
}
.boton_cerrarsesion:hover {
  cursor:pointer;
  cursor:hand;
  background-color: mediumorchid; 
}
.boton_cerrarsesion:focus {
   border: 2px solid gray;
   outline: none;
}

.btnImg {
  width: 150px;
  height: auto;
  outline:none;
  border: 0px;
}
.btnImg:focus {
   border: 0px;
   outline: none;
}

.LogoImg {
    width: 40px;
    height: 40px;
    outline: none;
    border: 2px solid white;
    vertical-align: -24px;
}

.tabla-ventas {
    width: 100%;
    min-width: 660px;
    border: 1px solid #d9e0f3;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
}

.tabla-ventas .col-total {
    text-align: right;
}

.tabla-ventas .estado-cell,
.tabla-ventas .factura-seleccionar {
    text-align: center;
}

.factura-seleccionar a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 6px;
    background-color: #315fbc;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.factura-seleccionar a:hover,
.factura-seleccionar a:focus {
    background-color: #244994;
    color: white;
    outline: 2px solid #244994;
    outline-offset: 2px;
}

@media only screen and (max-width: 850px) {
    .cliente-datos {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 8px 12px;
    }

    .cliente-datos tbody,
    .cliente-datos tr {
        display: contents;
    }

    .cliente-datos td,
    .cliente-datos th {
        display: block;
        padding: 0;
        overflow-wrap: anywhere;
    }
}

.tabla-ventas th {
    background-color: #f5f8ff;
    color: #536078;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 12px;
    border-bottom: 1px solid #d9e0f3;
    text-align: left;
    vertical-align: middle;
}

.tabla-ventas td {
    padding: 16px 12px;
    border-bottom: 1px solid #e8ebf3;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

@media only screen and (min-width: 851px) {
    .tabla-ventas .factura-fila:last-child td {
        border-bottom: 0;
    }
}

@media only screen and (min-width: 851px) and (max-width: 1000px) {
    .tabla-ventas th,
    .tabla-ventas td {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.tabla-ventas .factura-fila:hover td {
    background-color: #f5f8ff;
}

.tabla-ventas .factura-fila {
    cursor: pointer;
}

.tabla-ventas .col-factura,
.tabla-ventas .col-total {
    font-weight: 600;
}

.col-factura,
.col-total {
    white-space: nowrap;
}

.estado-cell {
    text-align: center;
    vertical-align: middle;
}

.badge-estado {
    display: inline-block;
    min-width: 78px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.4px;
    line-height: 16px;
}

.badge-pagado {
    background-color: #cfead6;
    color: #176b2c;
    border: 1px solid #95c9a3;
}

.badge-pendiente {
    background-color: #f7e8b5;
    color: #8a6700;
    border: 1px solid #e5c96b;
}

/* En celulares cada factura se lee completa como una tarjeta. */
@media only screen and (max-width: 850px) {
    .tabla-ventas,
    .tabla-ventas tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .tabla-ventas {
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .tabla-ventas .facturas-cabecera {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .tabla-ventas .factura-fila {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        padding: 12px 16px;
        border: 1px solid #d9e0f3;
        border-radius: 10px;
    }

    .tabla-ventas .factura-fila td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
        gap: 12px;
        padding: 9px 0;
        font-size: 16px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left !important;
    }

    .tabla-ventas .factura-fila td[data-label]::before {
        content: attr(data-label);
        color: #536078;
        font-weight: 600;
    }

    .tabla-ventas .factura-fila .col-factura {
        font-weight: 600;
    }

    .tabla-ventas .factura-fila .col-total {
        font-weight: 600;
    }

    .tabla-ventas .factura-fila .factura-seleccionar {
        display: block;
        order: 1;
        padding: 12px 0 0;
        border: 0;
    }
}
