:root {
    --dark-primary-color: #6f42c1;
    --default-primary-color: #007bff;
    --light-primary-color: #D7CCC8;
    --text-color: #FFFFFF;
    --accent-color: chartreuse;
    --primary-text-color: #212121;
    --secondary-text-color: cornflowerblue;
    --divider-color: #ffffff;
}


*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: top;
}

h2 {
  font-size: 25px;
  font-weight: bold;
}

body {
  background-color: var(--divider-color);
  height: 100vh;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

body > * {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

body > header {
  background-color: var(--dark-primary-color);
  color: var(--text-color);
  padding: .5rem 1rem;
  text-align: center;
}

body > main {
  background-color: var(--divider-color);
  flex: 1 0 auto;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 15px;
}

body > footer {
  background-color: var(--dark-primary-color);
  color: var(--text-color);
  padding: .5rem 1rem;
  text-align: center;
  /*position: fixed;*/
  bottom: 0;
}

article {
  background-color: var(--text-color);
  box-shadow: 2px 6px 25px rgba(0, 0, 0, 0.1);
}

article > header {

}

article > main {

}

article > footer {
  padding: 10px;
  margin: 0 30px;
  text-align: center;
  border-top: 1px solid #efefef;
}

#btnInstall, #btnInvoice, #btnLogout, #btnPrint, #btnBack {
  background-color: var(--dark-primary-color);
  color: #fff;
  display: inline-block;
  visibility: hidden;
  text-decoration: none;
  font-weight: 600;
  padding: .5rem 1rem;
  margin: 0 auto;
  display: inline-block;
  border-radius: 2px;
  width: 100%;
}

.combo-list {
  height: 60px;
}

.newline {
  width: 100%;
  min-width: 100%;
  height: 10px;
}


article h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

article span {
  margin: 0 0 15px;
  font-size: 1rem;
  font-weight: 700;
}

article p {
  padding: 20px 0;
  line-height: 1.6;
  text-align: justify;
}

article > main {
  padding: 30px 30px;
}

a {
    text-decoration: none;
    color: inherit;
    min-width: 100%;
}

img {
  display: block;
  width: 100%;
  height: 200px;
  margin: auto;
}

hr {
  width: 75%;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

footer a:active,
a:focus,
a:hover {
  color: var(--secondary-text-color);
}

.invoice {
  width: 100%;
  margin: 0 auto;
}

table {
  padding: 1px;
  margin:  5px 1px;
  width: 100%;
}

tr {
  width: 100%;
}

#btnInvoice, #btnLogout, #btnPrint, #btnBack {
  height: 50px;
  font-size: 15px;
  margin: 10px 15px;
  width: 92%;
  visibility: visible;
  background-color: #002d5b;
  vertical-align: middle;

}

#btnInvoice {
  background: url('https://terraglo.effica.io/images/icons/credit_sale.png');
  background-size: 75px;
  background-color: var(--default-primary-color);
  background-position: right center;
  background-repeat: no-repeat;
  min-width: 150px;
  text-align: left;
}

#btnLogout {
  background: url('https://terraglo.effica.io/images/icons/exit.png');
  background-size: 75px;
  background-color: var(--default-primary-color);
  background-position: right center;
  background-repeat: no-repeat;
  min-width: 150px;
  text-align: left;
}

#btnPrint {
  background-color: #00aa00; 
}
form {
  width: 95%;
}

input {
  margin: 4px;
  padding: 5px;
  width: 100%;
}

.login {
  font-size: 18px;
  font-weight: bold;
}

.link {
  font-size: 15px;
  color: #fff;
}

#submit {
  margin: 10px 0;
  padding: 10px;
  font-size: 15px;
  width: 100%;
  background-color: #00aa00;
  color:  #fff;
  font-weight: bold;
}

#nit, #amount, #name, #gas, #pump, #payment_method {
  font-size: 25px;
  width: 90%;
}

#gas, #pump, #payment_method {
  margin: 10px;
  padding: 10px;
}

.control-label {
  display: block;
  width: 100%;
}

.main_header {
  padding-top: 120px;
  background: url('https://terraglo.effica.io/images/icons/icon-512x512.png');
  background-size: 100px;
  background-color: var(--dark-primary-color);
  background-repeat: no-repeat;
  background-position: center 10px;
}

p {
  margin-bottom: 0;
}

.spinner-border {
  display: none;
}

#spinner-element {
  display: none;
  width: 350px; 
  height: 350px;
  margin: 0 auto;
}

.form {
  margin: 0 auto;
}

table {
  table-layout: fixed;
  width: 100%;
}

th,
td {
  padding: 10px;
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  background-color: gray;
  color: white;
}

tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.booking_number, .booking_date {
  text-align: right;
  width: 100px;

}

.inner_line {
  border-bottom: 1px solid #f3f3f3;
}
.last_line {
  font-weight: bold;
  text-align: right;
}
.identifier {
  font-weight: bold;
}

/* RESPONSIVE AREA  */

@media screen and (min-width: 800px) {
  main {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 10px;
  }
  img {
    max-width: 100%;
    height: 200px;
  }

}


/* ===================== BASE ===================== */
body{
  font-family: Arial, sans-serif;
  background:#f9f9f9;
  margin:20px;
}
header h2{
  text-align:center;
  color:#333;
}

/* ===================== TABLA DESKTOP ===================== */
table.report-table{
  width:100%;
  maring: 0 auto;
  border-collapse:collapse;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.1);
  table-layout:fixed;
}
table.report-table th,
table.report-table td{
  border:1px solid #ddd;
  padding:10px;
  text-align:left;
  vertical-align:top;
  word-break:break-word;
  overflow-wrap:anywhere;
  line-height:1.35;
}
table.report-table th{
  background:#7f7f7f;
  color:#fff;
  font-weight:bold;
}
.col-mes{ white-space:nowrap; }
ul{ padding-left:18px; margin:6px 0; }
ul li{ list-style:disc; }

/* ===================== MÓVIL (TARJETAS) ===================== */
@media (max-width:768px), (max-device-width:768px){
  body{ margin:10px !important; }

  table.report-table thead,
  table.report-table colgroup{
    display:none !important;
  }

  table.report-table,
  table.report-table tbody,
  table.report-table tr,
  table.report-table td{
    display:block !important;
    width:100% !important;
  }

  table.report-table{ table-layout:auto !important; }

  table.report-table tr{
    background:#fff !important;
    border:1px solid #ddd !important;
    border-radius:12px !important;
    margin-bottom:14px !important;
    box-shadow:0 2px 4px rgba(0,0,0,.08) !important;
    overflow:hidden !important;
  }

  table.report-table td{
    border:0 !important;
    border-bottom:1px solid #eee !important;
    padding:10px 12px !important;
  }

  table.report-table td:last-child{ border-bottom:0 !important; }

  table.report-table td::before{
    content: attr(data-label);
    display:block;
    font-weight:bold;
    color:#555;
    margin-bottom:4px;
  }

  .col-mes{ white-space:normal !important; }
}