/**
 * You can customize the template's look here, no need to edit default Bootstrap codes
 * or edit every page 'cause all the pages of this template follows a standard coding
 * which makes life and custom styling much easier for all.
 */

/* General Settings */
body {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: "Lato";
  color: black;
  background-color: rgb(110, 100, 100);
  background-image: url("/disposable/theme_bg_B738.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Generic Link Style */
a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}
a:hover {
  text-decoration: none;
  /*color: #ffc200;*/
  /*font-weight: 600;*/
}
a:active {
  text-decoration: none;
  color: indigo;
  font-weight: 600;
}

/* Card Style */
.card {
  background-color: rgba(0, 68, 119, 0.65);
  border-color: black;
  box-shadow: 0px 2px 3px black;
}
.card .card-header {
  background-color: rgba(0, 68, 119, 0.9);
}
.card .card-footer {
  background-color: rgba(223, 213, 203, 0.5);
}
.card .card-header h5 {
  font-size: 1rem;
  font-weight: 500;
  color: aliceblue;
}
.card .card-header a {
  text-decoration: none;
  color: lightgoldenrodyellow;
  font-weight: 500;
}
.card .card-header a:hover {
  text-decoration: none;
  color: goldenrod;
  font-weight: 500;
}
.card .card-header a:active {
  text-decoration: none;
  color: lightgoldenrodyellow;
  font-weight: 500;
}

/* Modal Style */
.modal .modal-header {
  background-color: rgba(93, 167, 238, 0.9);
  color: lightgoldenrodyellow;
}

.modal .modal-body {
  background-color: lightgray;
}

.modal .modal-footer {
  color: lightgoldenrodyellow;
  font-weight: 400;
  background-color: rgba(93, 167, 238, 0.9);
}

/* Accordion Style */
.accordion .accordion-button {
  box-shadow: none;
  color: goldenrod !important;
  background-color: rgba(93, 167, 238, 0.9) !important;
}
.accordion .collapsed {
  background-color: rgba(93, 167, 238, 0.6) !important;
  color: lightgoldenrodyellow !important;
}
.accordion .accordion-item {
  background-color: transparent !important;
}
.accordion .accordion-body {
  background-color: transparent !important;
}

/* NavBar Style */
#Dispo_NavBar {
  background-color: rgba(93, 167, 238, 0.8);
  box-shadow: 0px 2px 4px black;
  margin-bottom: 10px;
}
#Dispo_NavBar a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}
#Dispo_NavBar a:hover {
  text-decoration: none;
  color: white;
  font-weight: 500;
}
#Dispo_NavBar a:active {
  text-decoration: none;
  color: lightgoldenrodyellow;
  font-weight: 500;
}

#Dispo_NavBar .dropdown-menu {
    background-color: rgba(93, 167, 238, 0.9);
}

#Dispo_NavBar .dropdown-menu a:hover {
    background-color: transparent;
    color: yellow;
}

#Dispo_NavBar .dropdown-item {
    font-size: 0.875rem;
}

/* SideBar Style */
#Dispo_SideBar .offcanvas {
  background-color: rgba(211, 211, 211, 0.85);
  min-width: 250px;
  width: auto;
  height: 96vh;
}
#Dispo_SideBar .offcanvas .dropdown-menu {
  background-color: transparent;
}

#Dispo_SideBar .dropdown-menu a:hover {
    background-color: transparent;
    color: darkblue;
}

#Dispo_SideBar .dropdown-item {
  font-size: 0.875rem;
}

/* Navigation Pills Style */
.nav-pills .nav-link {
  color: wheat;
  background-color: rgba(255, 255, 255, 0.6) !important;
}
.nav-pills .active {
  color: darkgoldenrod;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Navigation Tabs Style (when used in a card) */
.card .nav-tabs .nav-item .nav-link {
  background-color: transparent;
  color: wheat;
}

.card .nav-tabs .nav-item .active {
  background-color: transparent;
  color: darkgoldenrod;
}

/* Navigation Tabs Style (when used in a card's body) */
.card .card-body .nav-tabs .nav-item .nav-link {
    background-color: transparent;
    color: white;
}
  
.card .card-body .nav-tabs .nav-item .active {
    background-color: transparent;
    color: darkred;
}

/* Clock Style */
#clock {
  font-size: 0.825rem;
  font-weight: 600;
}

/* Footer Style */
#footer {
  font-size: 0.825rem;
}
#footer .card {
  background-color: rgba(211, 211, 211, 0.5);
}
#footer .card a {
  text-decoration: none;
  color: darkblue;
  font-weight: 600;
}
#footer .card a:hover {
  text-decoration: none;
  color: darkslateblue;
  font-weight: 600;
}
#footer .card a:active {
  text-decoration: none;
  color: darkblue;
  font-weight: 600;
}

/* Pagination Style */
.pag-items {
  background-color: rgba(223, 214, 214, 0.5) !important;
  border-radius: 5px;
  color: white !important;
  border-color: black !important;
}
.pag-items-curr {
  background-color: rgba(6, 126, 193, 0.6) !important;
  border-radius: 5px;
  color: wheat !important;
  border-color: darkred !important;
}

/* Overflow-Auto Content Default Max Height */
.overflow-auto {
  max-height: 30vh;
}

/* Definitions below this line should not be altered with */
/* Only change them if you really need something that special */

/* Select2 Specific Fixes */
.select2-container {
  margin-top: 2px;
}

.input-group .select2-container {
  margin: 0px;
  width: auto;
  flex: 1 1 auto;
}

.input-group .select2-container .select2-selection--single {
  height: 100%;
  line-height: inherit;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* phpVMS LiveMap */
.map-info-box {
  position: absolute;
  bottom: 0;
  padding: 20px;
  height: 100px;
  z-index: 9999;
  background-color: rgba(232, 232, 232, 0.9);
}

.map-info-label {
  display: block;
  padding: 5px;
  background-color: rgba(232, 232, 232, 0.9);
}

/* Hover an image */
.HoverImage { position:relative; }
.HoverImage a { position:absolute; bottom:0; left:2; z-index:1978; }
.HoverImage img { display:none; }
.HoverImage:hover img { display:block; opacity:0.99; z-index:1978;}

/* Image Switcher and Base Fade Effect */
#stage a {
  position: relative;
}

#stage a img {
  border: none;
  background: transparent;
}

#stage a:nth-of-type(1) {
  animation-name: fader;
  animation-duration: 10s;
  z-index: 2100;
}

#stage a:nth-of-type(2) {
  z-index: 2200;
  display: none;
}

@keyframes fader {
  0% { opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* Card Body Icon Rotate */
.card-body .rotate {
  z-index: 8;
  float: right;
  height: 100%;
}

.card-body .rotate i {
  color: rgba(20, 20, 20, 0.15);
  position: absolute;
  left: 0;
  left: auto;
  right: -10px;
  bottom: 0;
  display: block;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* Fixed Height Images */
.img-h20 { width: auto; height: 20px; }
.img-h25 { width: auto; height: 25px; }
.img-h30 { width: auto; height: 30px; }
.img-h35 { width: auto; height: 35px; }
.img-h40 { width: auto; height: 40px; }
.img-h45 { width: auto; height: 45px; }
.img-h50 { width: auto; height: 50px; }
.img-h60 { width: auto; height: 60px; }
.img-h70 { width: auto; height: 70px; }
.img-h80 { width: auto; height: 80px; }
.img-h90 { width: auto; height: 90px; }
.img-h100 { width: auto; height: 100px; }
.img-h125 { width: auto; height: 125px; }
.img-h150 { width: auto; height: 150px; }
.img-h175 { width: auto; height: 175px; }
.img-h200 { width: auto; height: 200px; }

/* Max Height Images */
.img-mh20 { width: auto; max-height: 20px; }
.img-mh25 { width: auto; max-height: 25px; }
.img-mh30 { width: auto; max-height: 30px; }
.img-mh35 { width: auto; max-height: 35px; }
.img-mh40 { width: auto; max-height: 40px; }
.img-mh45 { width: auto; max-height: 45px; }
.img-mh50 { width: auto; max-height: 50px; }
.img-mh60 { width: auto; max-height: 60px; }
.img-mh70 { width: auto; max-height: 70px; }
.img-mh80 { width: auto; max-height: 80px; }
.img-mh90 { width: auto; max-height: 90px; }
.img-mh100 { width: auto; max-height: 100px; }
.img-mh125 { width: auto; max-height: 125px; }
.img-mh150 { width: auto; max-height: 150px; }
.img-mh175 { width: auto; max-height: 175px; }
.img-mh200 { width: auto; max-height: 200px; }

/* This needs to be defined for full screen image bg to work */
html {
  height: 100%;
  margin: 0;
}

/* Fixed Footer */
#page-container {
  position: relative;
  min-height: 100vh;
}
#page-contents {
  width: 98% !important;
  padding-bottom: 2rem; /* = Footer Height */
}
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2rem; /* Footer Height */
}

/* Mobile Device Compatability */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

/* =========================================================
 * MERCARGO – OVERRIDES LIGHT THEME
 * (pegar COMPLETO al FINAL de theme_v3.css)
 * =======================================================*/

/* Paleta base */
:root {
  --mer-blue: #004477;
  --mer-light-blue: #74ACDF;
  --mer-gold: #FFC200;
  --mer-dark-gray: #4B4B4B;
  --mer-light-gray: #E7E7E7;
  --mer-bg: #E7E7E7;
}

/* ------------------ Tipografía & fondo general ------------------ */

html, body {
  font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-size: 1rem;
  font-weight: 400;
  color: var(--mer-dark-gray);
  background-color: var(--mer-bg);
}

/* Links */
a {
  color: var(--mer-blue);
  font-weight: 500;
  text-decoration: none;
}
a:hover {
  color: var(--mer-gold);
}
a:active {
  color: #000000;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

/* ------------------ Botones ------------------ */

.btn {
  font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  min-height: 2.1rem;        /* altura razonable */
  line-height: 1.2;          /* el texto entra sin cortarse */
  border-width: 1px;
  border-radius: 999px;
}

.btn-sm {
  padding: 0.25rem 0.8rem;
  min-height: 1.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.5rem 1.25rem;
  min-height: 2.4rem;
  font-size: 1rem;
}

/* Variantes principales */
.btn-primary {
  background-color: var(--mer-blue);
  border-color: var(--mer-blue);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #00355c;
  border-color: #00355c;
}

.btn-secondary {
  background-color: var(--mer-dark-gray);
  border-color: var(--mer-dark-gray);
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #343434;
  border-color: #343434;
}

.btn-info {
  background-color: var(--mer-light-blue);
  border-color: var(--mer-light-blue);
  color: #052238;
}
.btn-info:hover {
  background-color: #5f98cd;
  border-color: #5f98cd;
}

.btn-warning {
  background-color: var(--mer-gold);
  border-color: var(--mer-gold);
  color: #3c2d00;
}
.btn-warning:hover {
  background-color: #e0ab00;
}

/* ------------------ Cards, modals, accordions ------------------ */

.card {
  background-color: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card .card-header {
  background-color: rgba(0, 68, 119, 0.9);
  border-bottom: 0;
}
.card .card-header h5 {
  color: #ffffff;
  font-weight: 600;
}
.card .card-header a {
  color: var(--mer-gold);
}
.card .card-header a:hover {
  color: #ffe066;
}
.card .card-footer {
  background-color: rgba(231, 231, 231, 0.95);
}

/* Tabs dentro de cards */
.card .nav-tabs .nav-item .nav-link {
  background-color: transparent;
  color: var(--mer-dark-gray);
}
.card .nav-tabs .nav-item .nav-link.active {
  background-color: transparent;
  color: var(--mer-blue);
  border-bottom: 2px solid var(--mer-blue);
}

/* Tabs dentro del body de la card (phpVMS usa ambos patrones) */
.card .card-body .nav-tabs .nav-item .nav-link {
  background-color: transparent;
  color: var(--mer-dark-gray);
}
.card .card-body .nav-tabs .nav-item .nav-link.active {
  color: var(--mer-blue);
  border-bottom: 2px solid var(--mer-blue);
}

/* Accordion */
.accordion .accordion-button {
  font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* Modal */
.modal .modal-header {
  background-color: var(--mer-blue);
  color: #ffffff;
}
.modal .modal-body {
  background-color: #ffffff;
  color: var(--mer-dark-gray);
}
.modal .modal-footer {
  background-color: #f3f3f3;
}

/* ------------------ Tablas & paginación ------------------ */

.table {
  width: 100%;
  font-size: 0.84rem;
  color: var(--mer-dark-gray);
}
.table thead th,
.table tbody td {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
  white-space: nowrap; /* todo en una línea, el resto se scrollea */
}

/* El envoltorio responsive se encarga del scroll horizontal */
.table-responsive {
  overflow-x: auto;
}
.table-responsive .table {
  margin-bottom: 0;
}

/* Paginación custom del theme */
.pag-items {
  background-color: #ffffff !important;
  border-radius: 999px;
  color: var(--mer-dark-gray) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
.pag-items-curr {
  background-color: var(--mer-blue) !important;
  border-radius: 999px;
  color: #ffffff !important;
  border-color: var(--mer-blue) !important;
}

/* ------------------ NavBar superior ------------------ */

#Dispo_NavBar {
  background-color: #384e63;
  border-bottom: 3px solid var(--mer-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
#Dispo_NavBar a {
  color: #ffffff;
  font-weight: 500;
}
#Dispo_NavBar a:hover {
  color: var(--mer-gold); /*color amarillo*/
}
#Dispo_NavBar a:active {
  color: #ffffff;
}
#Dispo_NavBar .dropdown-menu {
  background-color: rgba(0, 68, 119, 0.96);
}
#Dispo_NavBar .dropdown-menu a {
  color: #ffffff;
}
#Dispo_NavBar .dropdown-menu a:hover {
  background-color: transparent;
  color: var(--mer-gold);
}

/* ------------------ SideBar ------------------ */

#Dispo_SideBar .offcanvas {
  background-color: rgba(245, 245, 245, 0.96);
}
#Dispo_SideBar .offcanvas .dropdown-menu {
  background-color: transparent;
}
#Dispo_SideBar .dropdown-menu a {
  color: var(--mer-blue);
}
#Dispo_SideBar .dropdown-menu a:hover {
  background-color: transparent;
  color: var(--mer-gold);
}

/* ------------------ Pills/Tabs principales ------------------ */

.nav-pills .nav-link {
  color: var(--mer-dark-gray);
  background-color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.nav-pills .nav-link:hover {
  background-color: #ffffff !important;
}
.nav-pills .nav-link.active {
  background-color: var(--mer-blue) !important;
  border-color: var(--mer-blue);
  color: #ffffff;
}

/* ------------------ Footer ------------------ */

#footer {
  font-size: 0.85rem;
}
#footer .card {
  background-color: rgba(231, 231, 231, 0.95);
}
#footer .card a {
  color: var(--mer-blue);
}
#footer .card a:hover {
  color: var(--mer-gold);
}

/* ------------------ Fix fondos gris oscuro (#212529) ------------------ */

/* bg-dark de Bootstrap se vuelve azul MERCARGO */
.bg-dark,
.text-bg-dark,
.card.bg-dark,
main.bg-dark,
section.bg-dark {
  background-color: #004477 !important;
  color: #f8f9fa !important;
}

/* ------------------ Map info boxes ------------------ */

.map-info-box,
.map-info-label {
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--mer-dark-gray);
}

/* =========================================================
 * MERCARGO – PATCH BOTONES TABLA DE VUELOS (LIGHT)
 * Quitar redondos y dar padding normal
 * =======================================================*/

/* Dejá los .btn generales como quieras, pero estos de la tabla
   los forzamos a estilo "Bootstrap" clásico, NO redondos */
.table.table-sm td.text-end .btn.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Volvemos a algo tipo .btn-sm default */
  padding: 0.25rem 0.5rem !important;
  font-size: 0.85rem;
  line-height: 1.2;

  min-width: auto !important;
  min-height: auto !important;

  border-radius: 0.2rem !important;  /* NO redondos */
}

/* Anulamos el efecto de .p-0 y .px-1 que achatan demasiado */
.table.table-sm td.text-end .btn.btn-sm.p-0,
.table.table-sm td.text-end .btn.btn-sm.p-0.px-1 {
  padding: 0.25rem 0.5rem !important;
}

/* Íconos dentro de esos botones: tamaño cómodo */
.table.table-sm td.text-end .btn.btn-sm i {
  font-size: 0.9rem;
  line-height: 1;
}

/* Forzar que los iconos Font Awesome usen su propia fuente */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands",
               "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-style: normal;
}

/* Fallback para el icono de cerrar modal (fa-times-circle) */
.fas.fa-times-circle::before {
  /* Si Font Awesome está ok, esto pisa el glyph pero se ve igual;
     si FA no carga, se verá una '×' normal. */
  content: "×";
  font-family: inherit;   /* usa la fuente normal, no la de FA */
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  display: inline-block;
}

/* Que se vea bien en el header del modal */
.modal-header .fas.fa-times-circle {
  cursor: pointer;
  color: #fff;             /* ajustalo si el header es oscuro */
}


/* ================================
 * MERCARGO – Ajuste de tarjetas / stats
 * ================================ */

/* Fuente global: Mukta en todo el sitio */
body {
  font-family: "Mukta", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial,
               sans-serif;
}

/* Tarjetas genéricas */
.card {
  background-color: #E7E7E7;              /* gris claro de la paleta */
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
  color: #004477;                         /* azul corporativo */
}

/* Cabecera de tarjeta (cuando existe) */
.card .card-header {
  background-color: #004477;
  color: #ffffff;
  border-bottom: 1px solid #00345c;
}

.card .card-header h5,
.card .card-header .card-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

/* Cuerpo de tarjetas de stats (como las de Current Location, Last Flight, etc.) */
.card .card-body {
  padding: 0.5rem 0.75rem;
  text-align: center;                     /* centra los textos de las cajas de stats */
}

/* Valor principal de la tarjeta (línea de arriba) */
.card .card-body .h1,
.card .card-body .h2,
.card .card-body .h3,
.card .card-body .h4,
.card .card-body .h5,
.card .card-body .h6,
.card .card-body .card-title {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #004477;
}

/* Etiqueta secundaria (línea de abajo: Current Location, Flight Time, etc.) */
.card .card-body small,
.card .card-body .text-muted {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4B4B4B;
}

/* Tarjetas “píldora” del perfil: Profile Details, Type Ratings, Statistics, PIREPs */
#page-contents .nav-pills .nav-link,
#page-contents .nav-tabs .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background-color: #E7E7E7;
  color: #004477;
  border: 1px solid #d3d3d3;
}

#page-contents .nav-pills .nav-link.active,
#page-contents .nav-tabs .nav-link.active {
  background-color: #004477;
  border-color: #004477;
  color: #ffffff;
}

/* ----------------
 * Dark mode (si lo usás)
 * ---------------- */
[data-theme="dark"] .card {
  background-color: #1f2933;
  border-color: #27323f;
  color: #E7E7E7;
}

[data-theme="dark"] .card .card-header {
  background-color: #004477;
  border-color: #004477;
}

[data-theme="dark"] .card .card-body .card-title,
[data-theme="dark"] .card .card-body .h1,
[data-theme="dark"] .card .card-body .h2,
[data-theme="dark"] .card .card-body .h3,
[data-theme="dark"] .card .card-body .h4,
[data-theme="dark"] .card .card-body .h5,
[data-theme="dark"] .card .card-body .h6 {
  color: #FFC200;                         /* un toquecito de amarillo de la paleta */
}

[data-theme="dark"] .card .card-body small,
[data-theme="dark"] .card .card-body .text-muted {
  color: #E7E7E7;
}
/* =========================================
 * MERCARGO – Tarjetas, botones y pills (v2)
 * Pegar AL FINAL de theme_v3.css
 * =======================================*/

/* Paleta base */
:root {
  --mercargo-blue: #004477;
  --mercargo-blue-light: #74ACDF;
  --mercargo-gold: #FFC200;
  --mercargo-grey: #4B4B4B;
  --mercargo-light: #E7E7E7;
}

/* Tipografía global */
body,
.btn,
.form-control,
.table,
.nav,
.dropdown-menu,
.card,
.modal,
.badge,
.alert {
  font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* TARJETAS GENERALES */
.card {
  /* fondo neutro, sin tinte azulado */
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Header de tarjetas */
.card .card-header {
  background-color: var(--mercargo-blue);
  color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card .card-header h5,
.card .card-header h4,
.card .card-header .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

/* Cuerpo de tarjeta */
.card .card-body {
  color: var(--mercargo-grey);
}

/* Tarjetas de stats del dashboard (las de arriba con números) */
#page-contents .row > [class*="col-"] .card {
  /* un fondo un poquito más gris para diferenciar los stats */
  background-color: var(--mercargo-light);
}

#page-contents .row > [class*="col-"] .card .card-body {
  padding: 0.55rem 0.65rem;
  text-align: center;               /* SOLO estas quedan centradas */
}

#page-contents .row > [class*="col-"] .card .card-body strong {
  display: block;
  font-size: 0.9rem;
}

#page-contents .row > [class*="col-"] .card .card-body small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Pills de navegación del perfil (Profile Details / Type Ratings / etc) */
.nav-pills .nav-link {
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-weight: 500;
}

.nav-pills .nav-link.active {
  background-color: var(--mercargo-blue);
  color: #ffffff;
}

/* BOTONES – que se vea el texto y tengan buen alto */
.btn {
  font-family: inherit;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  line-height: 1.3;
}

.btn-sm {
  padding: 0.18rem 0.45rem;
  font-size: 0.78rem;
}

/* Colores de botones según la paleta Mercargo */
.btn-primary {
  background-color: var(--mercargo-blue);
  border-color: var(--mercargo-blue);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #00325a;
  border-color: #00325a;
}

.btn-success {
  background-color: #198754;
  border-color: #198754;
  color: #ffffff;
}
.btn-success:hover {
  background-color: #13663f;
  border-color: #13663f;
}

.btn-warning {
  background-color: var(--mercargo-gold);
  border-color: #e0a800;
  color: #333333;
}
.btn-warning:hover {
  background-color: #e6b800;
  border-color: #c79500;
}

.btn-info {
  background-color: var(--mercargo-blue-light);
  border-color: var(--mercargo-blue-light);
  color: #00325a;
}
.btn-info:hover {
  background-color: #5f9ed5;
  border-color: #5f9ed5;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #b52a36;
  border-color: #b52a36;
}
/* =========================================
 * MERCARGO – Tabs de perfil (propio y otros)
 * Se aplica sólo al bloque con id="details-tab"
 * ========================================= */

/* Elimina el efecto "fill" de Bootstrap (todas igual de anchas) */
#details-tab.nav-fill .nav-item {
  flex: 0 0 auto;
}

/* Centra el grupo y deja ancho según contenido */
#details-tab {
  justify-content: center;
  gap: 0.25rem;
}

/* Botones/tab: estilo píldora, fondo claro, texto azul */
#details-tab .nav-link {
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;

  background-color: #f3f4f6;       /* gris claro */
  color: #004477;                  /* azul Mercargo */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Estado activo: misma forma, un poquito más “marcado” */
#details-tab .nav-link.active {
  background-color: #ffffff;
  color: #004477;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hover en desktop */
#details-tab .nav-link:hover {
  background-color: #e7e7e7;
  color: #004477;
}

/* Versión darkmode (si lo usás) – pegala al final de theme_v3_darkmode.css */
[data-theme="dark"] #details-tab .nav-link {
  background-color: #1f2933;
  color: #e7e7e7;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #details-tab .nav-link.active {
  background-color: #004477;
  color: #ffffff;
  border-color: #004477;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] #details-tab .nav-link:hover {
  background-color: #233445;
}
/* ================================
   Perfil: botones API / Editar / vmsACARS
   ================================ */

/* Footer de acciones del perfil (el que NO es el pequeño con texto) */
.card-footer.p-1:not(.small) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;              /* separación entre botones */
}

/* Botones verde, amarillo, azul (y cualquier .btn dentro de ese footer) */
.card-footer.p-1:not(.small) > a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;   /* alto y ancho consistentes */
  border-radius: 999px;      /* misma forma que el resto del tema */
  font-size: 0.9rem;
  font-weight: 600;
}

/* Iconos dentro de esos botones: separarlos del texto */
.card-footer.p-1:not(.small) > a.btn i {
  margin-right: 0.35rem;
}

/* El botón rojo del mapa (DBasic::Map) a la derecha */
.card-footer.p-1:not(.small) span.float-end {
  margin-left: auto;
  float: none !important;
}
.profile-actions-footer .btn-outline-secondary {
  border-radius: 999px;
  font-size: 0.8rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.profile-actions-footer .btn-outline-secondary i {
  font-size: 0.9rem;
  color: #000000;
  border-color: #6c757d;
}

.profile-map-inline {
  display: inline-flex;
  align-items: center;
}
/* Dashboard KPIs – iconos sobre el fondo azul */
.mc-dashboard-icon {
  color: #f9fafb !important;                 /* bien clarito */
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);   /* glow para que no se pierdan */
}

/* Si ves que los textos también quedan poco legibles,
   podés usar esto para aclarar los títulos/números:    */
/*
.mc-dashboard-kpi-row .card-title {
  color: #f9fafb;
}
*/
    /* ====== BOTONES CONSULTAR PRECIO / VIAJAR / TRANSFERIR (DISPOSABLE_V3) ====== */

    /* Consultar precio (btn-info) */
    .btn-info {
      border-radius: 999px !important;
      font-size: 0.85rem !important;
      font-weight: 500 !important;
      padding: 0.35rem 0.9rem !important;
      background-color: #f9fafb !important;     /* fondo claro */
      border: 1px solid #0ea5e9 !important;     /* borde celeste */
      color: #0e7490 !important;                /* texto celeste oscuro */
    }

    .btn-info:hover,
    .btn-info:focus {
      background-color: #0ea5e9 !important;
      color: #f9fafb !important;
    }

    /* Viajar / Transferir (btn-success) */
    .btn-success {
      border-radius: 999px !important;
      font-size: 0.85rem !important;
      font-weight: 500 !important;
      padding: 0.35rem 0.9rem !important;
      background-color: #f9fafb !important;     /* fondo claro */
      border: 1px solid #16a34a !important;     /* borde verde */
      color: #166534 !important;                /* texto verde oscuro */
    }

    .btn-success:hover,
    .btn-success:focus {
      background-color: #16a34a !important;
      color: #f9fafb !important;
    }

