/* Error de minimización. Devolviendo el contenido no minimizado.
(118,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(119,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(120,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(121,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(122,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(123,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(124,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(125,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(126,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(161,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(162,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(218,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(219,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(220,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(221,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(222,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(223,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(224,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(225,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(252,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(253,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(306,28): run-time error CSS1039: Token not allowed after unary operator: '-bs-body-bg'
(307,17): run-time error CSS1039: Token not allowed after unary operator: '-bs-body-color'
 */
/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Dark Theme */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-theme .navbar-dark {
    background-color: #0d0d0d !important;
}

body.dark-theme .card {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #404040;
}

body.dark-theme .table {
    color: #e0e0e0;
    background-color: #2a2a2a;
}

body.dark-theme .table-striped tbody tr:nth-of-type(odd) {
    background-color: #333333;
}

body.dark-theme .modal-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #333333;
    color: #e0e0e0;
    border-color: #555555;
}

body.dark-theme .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

body.dark-theme .footer {
    background-color: #2a2a2a !important;
    color: #e0e0e0;
}

body.dark-theme .text-muted {
    color: #999999 !important;
}

/* Campos obligatorios */
.campo-requerido,
.required-field,
input[required],
select[required],
textarea[required] {
    border-color: #8b0000 !important;
}
select[required] + .select2-container .select2-selection {
    border-color: #8b0000 !important;
}
body.dark-theme .campo-requerido,
body.dark-theme .required-field,
body.dark-theme input[required],
body.dark-theme select[required],
body.dark-theme textarea[required] {
    border-color: #ff6666 !important;
}
body.dark-theme select[required] + .select2-container .select2-selection {
    border-color: #ff6666 !important;
}


/* bg-info / bg-warning — texto negro para legibilidad */
.bg-info, .badge.bg-info, .alert-info,
.bg-warning, .badge.bg-warning, .alert-warning { color: #000 !important; }

/* alert-info / alert-warning — fondo y texto fijos independiente del tema */
.alert-info    { background-color: #cff4fc !important; border-color: #9eeaf9 !important; color: #055160 !important; }
.alert-warning { background-color: #fff3cd !important; border-color: #ffecb5 !important; color: #664d03 !important; }

/* btn-outline-secondary — texto y contorno más claros */
.btn-outline-secondary {
    color: #adb5bd;
    border-color: #adb5bd;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #fff;
    background-color: #adb5bd;
    border-color: #adb5bd;
}

/* ── Tema Azul (paleta GTS/PDQ: azul #001489 + rojo #ed1c24) ──────────────── */
[data-bs-theme="azul"] {
    --bs-body-bg:           #f3f0f0;
    --bs-body-color:        #212529;
    --bs-primary:           #001489;
    --bs-primary-rgb:       0,20,137;
    --bs-secondary:         #ed1c24;
    --bs-secondary-rgb:     237,28,36;
    --bs-border-color:      #c3c3c3;
    --bs-link-color:        #001489;
    --bs-link-hover-color:  #ed1c24;
}

/* Navbar */
[data-bs-theme="azul"] .navbar.bg-dark {
    background-color: #001489 !important;
}
[data-bs-theme="azul"] .navbar-brand,
[data-bs-theme="azul"] .navbar .nav-link {
    color: #ffffff !important;
}
[data-bs-theme="azul"] .navbar .nav-link:hover,
[data-bs-theme="azul"] .navbar .nav-link.active {
    color: #f5c5a9 !important;
}

/* Barra inferior */
[data-bs-theme="azul"] .fixed-bottom {
    background-color: #f3f0f0 !important;
    border-top-color: #c3c3c3 !important;
}

/* Cards */
[data-bs-theme="azul"] .card-header {
    background-color: #001489;
    color: #ffffff;
}

/* Tablas */
[data-bs-theme="azul"] .table thead th {
    background-color: #001489;
    color: #ffffff;
    border-color: #001489;
}
[data-bs-theme="azul"] .table {
    --bs-table-striped-bg: #f5c5a9;
    --bs-table-hover-bg:   rgba(185,20,20,0.1);
}

/* Botones */
[data-bs-theme="azul"] .btn-primary {
    background-color: #001489;
    border-color: #001489;
    color: #fff;
}
[data-bs-theme="azul"] .btn-primary:hover {
    background-color: rgba(185,20,20,0.85);
    border-color: rgba(185,20,20,0.85);
}
[data-bs-theme="azul"] .btn-secondary {
    background-color: #ed1c24;
    border-color: #ed1c24;
    color: #fff;
}

/* Formularios */
[data-bs-theme="azul"] .form-control,
[data-bs-theme="azul"] .form-select {
    background-color: rgba(185,20,20,0.1);
    border-color: #c3c3c3;
}
[data-bs-theme="azul"] .form-control:focus,
[data-bs-theme="azul"] .form-select:focus {
    border-color: #001489;
    box-shadow: 0 0 0 .2rem rgba(0,20,137,.25);
}

/* Modales */
[data-bs-theme="azul"] .modal-header {
    background-color: #001489;
    color: #ffffff;
}
[data-bs-theme="azul"] .modal-header .btn-close { filter: invert(1); }

/* Dropdowns */
[data-bs-theme="azul"] .dropdown-item:hover {
    background-color: rgba(185,20,20,0.15);
    color: #001489;
}

/* Badges */
[data-bs-theme="azul"] .badge.bg-primary   { background-color: #001489 !important; }
[data-bs-theme="azul"] .badge.bg-secondary { background-color: #ed1c24 !important; }

/* Campos requeridos */
[data-bs-theme="azul"] input[required],
[data-bs-theme="azul"] select[required],
[data-bs-theme="azul"] textarea[required] { border-color: #ed1c24 !important; }
[data-bs-theme="azul"] select[required] + .select2-container .select2-selection { border-color: #ed1c24 !important; }

/* ── Tema Celeste (#195b93) ───────────────────────────────────────────────── */
[data-bs-theme="celeste"] {
    --bs-body-bg:           #f3f0f0;
    --bs-body-color:        #212529;
    --bs-primary:           #195b93;
    --bs-primary-rgb:       25,91,147;
    --bs-secondary:         #195b93;
    --bs-border-color:      #c0c0c0;
    --bs-link-color:        #195b93;
    --bs-link-hover-color:  #0d3d66;
}

[data-bs-theme="celeste"] .navbar.bg-dark {
    background-color: #195b93 !important;
}
[data-bs-theme="celeste"] .navbar-brand,
[data-bs-theme="celeste"] .navbar .nav-link {
    color: #ffffff !important;
}
[data-bs-theme="celeste"] .navbar .nav-link:hover {
    color: #c7def1 !important;
}
[data-bs-theme="celeste"] .fixed-bottom {
    background-color: #f3f0f0 !important;
    border-top-color: #c0c0c0 !important;
}
[data-bs-theme="celeste"] .card-header {
    background-color: #195b93;
    color: #ffffff;
}
[data-bs-theme="celeste"] .table thead th {
    background-color: #195b93;
    color: #ffffff;
    border-color: #195b93;
}
[data-bs-theme="celeste"] .table {
    --bs-table-striped-bg: #e5f0f9;
    --bs-table-hover-bg:   #c7def1;
}
[data-bs-theme="celeste"] .btn-primary {
    background-color: #195b93;
    border-color: #195b93;
    color: #fff;
}
[data-bs-theme="celeste"] .btn-primary:hover {
    background-color: #0d3d66;
    border-color: #0d3d66;
}
[data-bs-theme="celeste"] .form-control,
[data-bs-theme="celeste"] .form-select {
    background-color: #e5f0f9;
    border-color: #c0c0c0;
}
[data-bs-theme="celeste"] .form-control:focus,
[data-bs-theme="celeste"] .form-select:focus {
    border-color: #195b93;
    box-shadow: 0 0 0 .2rem rgba(25,91,147,.25);
}
[data-bs-theme="celeste"] .modal-header {
    background-color: #195b93;
    color: #ffffff;
}
[data-bs-theme="celeste"] .modal-header .btn-close { filter: invert(1); }
[data-bs-theme="celeste"] .dropdown-item:hover {
    background-color: #e5f0f9;
    color: #195b93;
}
[data-bs-theme="celeste"] .badge.bg-primary   { background-color: #195b93 !important; }
[data-bs-theme="celeste"] input[required],
[data-bs-theme="celeste"] select[required],
[data-bs-theme="celeste"] textarea[required] { border-color: #195b93 !important; }


/* ── Dropdowns de sugerencias de dirección ─────────────────────────────────
   Contorno visible en tema claro y oscuro.
──────────────────────────────────────────────────────────────────────────── */
.direccion-ac-dd,
#origenSugerencias,
#destinoSugerencias,
#destinatarioDropdown,
#comunaOrigenDropdown,
#retiroDropdown,
#remitenteDropdown,
#cuentaDropdown,
#mCuentaDropdown,
#cliTarifaDrop,
#dTramoDrop {
    border: 2px solid #0d6efd;
    border-radius: 0.375rem;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.25);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .direccion-ac-dd,
[data-bs-theme="dark"] #origenSugerencias,
[data-bs-theme="dark"] #destinoSugerencias,
[data-bs-theme="dark"] #destinatarioDropdown,
[data-bs-theme="dark"] #comunaOrigenDropdown,
[data-bs-theme="dark"] #retiroDropdown,
[data-bs-theme="dark"] #remitenteDropdown,
[data-bs-theme="dark"] #cuentaDropdown,
[data-bs-theme="dark"] #mCuentaDropdown,
[data-bs-theme="dark"] #cliTarifaDrop,
[data-bs-theme="dark"] #dTramoDrop {
    border-color: #6ea8fe;
    box-shadow: 0 4px 16px rgba(110, 168, 254, 0.35);
}

