:root {
    --color-primary: #1d4ed8;
    --color-primary-dark: #1e3a8a;
    --color-primary-soft: #eff6ff;
    --color-accent: #f59e0b;
    --color-success: #15803d;
    --color-danger: #b91c1c;
    --color-text: #1f2937;
    --color-muted: #64748b;
    --color-border: #dbe2ea;
    --color-surface: #ffffff;
    --color-background: #f4f6f8;
    --dark-primary-color: var(--color-primary-dark);
    --default-primary-color: var(--color-primary);
    --light-primary-color: var(--color-primary-soft);
    --text-color: var(--color-surface);
    --accent-color: var(--color-accent);
    --primary-text-color: var(--color-text);
    --secondary-text-color: var(--color-muted);
    --divider-color: var(--color-background);
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .12);
}


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

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

body {
  background-color: var(--color-background);
  height: 100vh;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
}

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%;
}

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://luxapp.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://luxapp.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://luxapp.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: 800px;
    margin: 20px auto;
    border-radius: 10px;
  }
  img {
    max-width: 100%;
    height: 200px;
  }

}

/* Soporte */
.cases-menu { display: block !important; width: 100% !important; max-width: 720px; min-height: 100vh; margin: 0 auto; padding: 32px 20px; background: #f4f6f8; color: #1f2937; }
.cases-menu h3 { margin: 0 0 8px; color: #111827; font-size: 28px; text-align: center; }
.cases-menu-intro { margin: 0 auto 24px; max-width: 560px; color: #4b5563; font-size: 15px; line-height: 1.5; text-align: center; }
.case-menu-card { display: flex; text-decoration: none !important; }
.case-card-mobile { display: block; text-decoration: none; }
.case-menu-card { align-items: center; gap: 14px; padding: 18px; margin-bottom: 14px; border: 1px solid #dbe2ea; border-radius: 14px; background: #fff; color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.case-menu-card:hover { border-color: #2563eb; background: #eff6ff; color: #111827 !important; }
.case-menu-icon { display: inline-flex !important; flex: 0 0 38px; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #dbeafe; color: #1d4ed8 !important; font-size: 20px; font-weight: 700; }
.case-menu-copy { display: block !important; }
.case-menu-card strong, .case-menu-card small { display: block; }
.case-menu-card strong { color: #111827 !important; font-size: 17px; margin-bottom: 4px; }
.case-menu-card small { color: #4b5563 !important; font-size: 14px; }
.case-menu-primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff !important; }
.case-menu-primary:hover { background: #1e40af; color: #fff !important; }
.case-menu-primary .case-menu-icon { background: #fff; color: #1d4ed8 !important; }
.case-menu-primary strong, .case-menu-primary small { color: #fff !important; }
.case-menu-danger { border-color: #fecaca; background: #fff; }
.case-menu-danger:hover { border-color: #ef4444; background: #fef2f2; }
.case-menu-danger .case-menu-icon { background: #fee2e2; color: #b91c1c !important; }
.app-install-action { margin: 20px 0 0; text-align: center; }
.app-install-action #btnInstall { width: auto; min-width: 160px; visibility: visible; }
.cases-menu a, .case-card-mobile { text-decoration: none !important; }
.mobile-page .btn-light, .cases-menu > .btn-light { display: block; width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1f2937 !important; text-align: center; text-decoration: none !important; }
.location-button { display: block; margin-top: 8px; padding: 9px 12px; border: 1px solid #2563eb; border-radius: 7px; background: #eff6ff; color: #1d4ed8; cursor: pointer; }
.location-button:disabled { opacity: .65; cursor: wait; }
.cases-mobile-wrapper { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 720px; min-height: 100vh; margin: 0 auto; padding: 32px 20px; background: #f4f6f8; color: #1f2937; }
.cases-mobile-wrapper h3 { margin: 0; color: #111827; font-size: 28px; line-height: 1.2; text-align: center; }
.cases-mobile-wrapper .case-back-action { width: 100%; margin-top: 2px; }
.cases-mobile-wrapper .case-back-action .btn { display: block; width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1f2937 !important; text-align: center; text-decoration: none !important; }
.case-card-mobile { padding: 14px; border-radius: 12px; background: #f8f9fa; border: 1px solid #e5e7eb; color: #222; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.case-card-mobile strong { display: block; margin-bottom: 6px; }
.case-card-mobile span { margin-bottom: 6px; }
.case-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.case-client, .case-description, .case-operations, .case-materials { display: block; margin-bottom: 14px; line-height: 1.45; }
.case-operations { color: #198754; font-size: 14px; }
.case-materials { color: #6c757d; font-size: 14px; }
.case-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #e9f2ff; color: #0d6efd; font-weight: 600; }
.case-empty { padding: 12px; border-radius: 8px; background: #f5f7fa; color: #777; text-align: center; font-style: italic; border: 1px dashed #e0e0e0; }
.pagination-mobile { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px; font-size: 14px; }
.pagination-mobile a { padding: 8px 14px; border-radius: 8px; background: #0d6efd; color: #fff; text-decoration: none; }
.pagination-mobile span { color: #555; font-weight: 600; }
.case-search-form { width: 100%; margin: 0; padding: 14px; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; }
.case-search-form label { display: block; margin-bottom: 7px; color: #374151; font-size: 14px; font-weight: 700; }
.case-search-row { display: flex; align-items: stretch; gap: 8px; }
.case-search-row input { flex: 1 1 auto; width: auto; margin: 0; }
.case-search-row button { flex: 0 0 auto; min-width: 92px; }
.case-search-clear { display: inline-block; min-width: 0; margin-top: 8px; color: #1d4ed8 !important; font-size: 13px; text-decoration: none !important; }
.mobile-page { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mobile-page h3 { text-align: center; font-size: 26px; font-weight: 700; margin: 0; }
.mobile-page .btn-light { width: 100%; text-align: center; }
.mobile-page .bottom-action, .mobile-page .case-back-action { width: 100%; }
.mobile-page .bottom-action { display: flex; flex-direction: column; gap: 10mm; }
.mobile-page .bottom-action .btn, .mobile-page .case-back-action .btn { display: block; width: 100%; }
.mobile-page .case-back-action { margin-top: 2px; }
.case-cancel-form { margin-top: -4px; }
.active-customers-report { max-width: 1080px; }
.report-table-wrapper { width: 100%; overflow-x: auto; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; }
.report-table { min-width: 900px; margin: 0; border-collapse: collapse; background: #fff; }
.report-table th, .report-table td { padding: 12px; border: 1px solid #e2e8f0; vertical-align: top; }
.report-table th { background: #1d4ed8; color: #fff; white-space: nowrap; }
.report-table td { color: #1f2937; }
.report-table ul { margin: 8px 0 0; padding-left: 18px; }
.report-table li { margin-bottom: 5px; }
.report-back { width: 100%; text-align: center; }
.autocomplete-results { background: #fff; border: 1px solid #ddd; border-radius: 8px; margin-top: 5px; max-height: 200px; overflow-y: auto; }
.autocomplete-item { display: block; width: 100%; padding: 10px; cursor: pointer; border: 0; border-bottom: 1px solid #eee; background: #fff; color: #222; text-align: left; }
.autocomplete-item.active, .autocomplete-item:hover { background: #f5f5f5; }

/* Interfaz común de la aplicación */
body {
  min-height: 100vh;
  background: #f4f6f8;
  color: #1f2937;
  font-size: 16px;
}
.app-header {
  display: flex !important;
  position: relative;
  width: 100% !important;
  min-height: 68px;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px max(20px, calc((100% - 1080px) / 2));
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
.app-brand, .app-home-link {
  min-width: 0 !important;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
}
.app-brand img {
  width: 150px !important;
  height: 48px !important;
  margin: 0;
  object-fit: contain;
}
.app-home-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.app-home-link:hover { background: #eff6ff; color: #1e40af !important; }
.app-user-menu { position: absolute; right: max(20px, calc((100% - 1080px) / 2)); top: 13px; z-index: 20; }
.app-user-menu summary { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 8px; color: #1d4ed8; cursor: pointer; font-size: 28px; font-weight: 700; line-height: 1; list-style: none; }
.app-user-menu summary::-webkit-details-marker { display: none; }
.app-user-menu summary:hover, .app-user-menu[open] summary { background: #eff6ff; }
.app-user-dropdown { position: absolute; right: 0; top: 48px; width: 230px; padding: 10px; border: 1px solid #dbe2ea; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.app-user-name { padding: 8px 10px 10px; border-bottom: 1px solid #e5e7eb; color: #111827; font-weight: 700; }
.app-user-dropdown a { display: block; min-width: 0; margin-top: 6px; padding: 9px 10px; border-radius: 7px; color: #b91c1c !important; font-weight: 700; text-decoration: none !important; }
.app-user-dropdown a:hover { background: #fef2f2; }
body > .col-sm-12 {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: transparent;
}
body > main, body > footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: #f4f6f8;
}
body > main { padding: 24px 20px; }
.main_header {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 28px 20px;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
  text-align: center;
}
.main_header h2 { color: #111827; }
button, .btn {
  border-radius: 8px !important;
  font-weight: 700;
  box-shadow: none;
}
input, select, textarea {
  min-height: 44px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #fff;
  color: #1f2937;
}
input:focus, select:focus, textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important;
  outline: none;
}
body a:hover { text-decoration: none !important; }
