/**
 * Bootstrap 3 visual compatibility layer on top of Bootstrap 5.3.8.
 * Preserves the legacy look without changing PHP class names.
 */

/* BS3 navbar-default appearance */
.navbar-default {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    margin-bottom: 20px;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
    color: #777;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #333;
    background-color: transparent;
}

.navbar-default .navbar-toggle {
    border-color: #ddd;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #ddd;
}

/* BS3 hamburger icon bars (not in BS5) */
.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    margin-top: 4px;
}

.navbar-toggle .icon-bar:first-child {
    margin-top: 0;
}

/* BS3 btn-default */
.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:hover,
.btn-default:focus {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

/* BS3 form-horizontal layout */
.form-horizontal .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-horizontal .control-label {
    padding-top: 7px;
    margin-bottom: 0;
    text-align: right;
}

.form-horizontal .form-group > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* BS3 col-xs-* grid (removed in BS5) */
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

.col-xs-1 { width: 8.33333333%; }
.col-xs-2 { width: 16.66666667%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.33333333%; }
.col-xs-5 { width: 41.66666667%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.33333333%; }
.col-xs-8 { width: 66.66666667%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.33333333%; }
.col-xs-11 { width: 91.66666667%; }
.col-xs-12 { width: 100%; }

[class*="col-xs-"] {
    float: left;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

/* BS3 utilities */
.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

/* BS3 breadcrumb — TotalEnergies */
.breadcrumb {
    padding: 0.6rem 1.15rem;
    margin-bottom: 20px;
    list-style: none;
    background-color: #EE162D;
    border-radius: 4px;
    --bs-breadcrumb-divider: "/";
    --bs-breadcrumb-divider-color: #ffffff;
    --bs-breadcrumb-item-active-color: #ffffff;
}

.breadcrumb > li,
.breadcrumb-item {
    display: inline-block;
    color: #ffffff;
}

.breadcrumb > li a,
.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb > li a:hover,
.breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb > li + li::before,
.breadcrumb-item + .breadcrumb-item::before {
    content: "/\00a0";
    padding: 0 0.5rem;
    color: #ffffff;
}

.breadcrumb > li.active,
.breadcrumb-item.active {
    color: #ffffff;
}

/* BS3 modal always visible (login) */
.modal.show {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
}

/* BS3 dropdown caret */
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

/* Glyphicon → Bootstrap Icons mapping */
.glyphicon {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 1;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
}

.glyphicon-pencil::before { content: "\f4cb"; }
.glyphicon-trash::before { content: "\f5de"; }
.glyphicon-search::before { content: "\f52a"; }
.glyphicon-plus::before { content: "\f4fe"; }
.glyphicon-camera::before { content: "\f220"; }
.glyphicon-th::before { content: "\f5aa"; }
.glyphicon-edit::before { content: "\f4cb"; }

/* Date picker trigger */
.js-date-trigger {
    cursor: pointer;
}

/* Image resize in article list */
.js-resize-image {
    cursor: pointer;
}

/* Popup link */
.js-popup-link {
    cursor: pointer;
    text-decoration: underline;
    color: #337ab7;
}

.js-popup-link:hover {
    color: #23527c;
}

/* Controls spacing from main.css legacy */
div.controls input,
div.controls select {
    margin-bottom: 0.5em;
}

#inputSeleccionado {
    border-color: rgba(82, 168, 236, 0.8);
    outline: 0;
    box-shadow: 0 0 8px rgba(82, 168, 236, 0.6);
}

/* Primary button BS3 blue tone */
.btn-primary {
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #286090;
    border-color: #204d74;
}

/* Table header cells */
.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.05);
}

/* img-rounded */
.img-rounded {
    border-radius: 6px;
}

/* Login modal */
#logotop {
    text-align: center;
    margin-bottom: 1em;
}

#logotop img {
    max-width: 100%;
    height: auto;
}

/* Flatpickr calendar icon alignment */
.flatpickr-input[readonly] {
    background-color: #fff;
    cursor: pointer;
}
