.vis-time-axis .vis-grid.vis-saturday,
.vis-time-axis .vis-grid.vis-sunday {
    background: #D3D7CFFF;
}

.vis-time-axis .vis-text.vis-saturday,
.vis-time-axis .vis-text.vis-sunday {
    color: white;
}
.vis-item-content {
    width: 100%;
}
/* alternating column backgrounds */
.vis-time-axis .vis-grid.vis-monday, .vis-time-axis .vis-grid.vis-wednesday, .vis-time-axis .vis-grid.vis-friday {
    background: #ebebeb;
}
.vis-group-level-unknown-but-gte1 {
    border: 1px solid dimgray;
}
.box {
    /*height: 600px;*/
    /*max-height: 400px;*/
    /*overflow-y: scroll;*/
}

.subbox {
    height: 350px;
    width: 80%;
}

/* Custom styles for better layout */
.main-controls {
    background: white;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Fix alignment issues in main controls */
.main-controls .row {
    display: flex;
    align-items: center; /* centra verticalmente TODOS los elementos */
}

.main-controls .control-button,
.main-controls .btn {
    vertical-align: middle;
}

.main-controls .btn-group .btn {
    height: 42px; /* iguala altura exacta */
    display: flex;
    align-items: center;
}

.main-controls .btn.btn-danger.btn-sm {
    height: 31px;
}

.main-controls .col-md-3,
.main-controls .col-md-6 {
    min-height: 60px; /* Reserve space for potential file info */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-controls .col-md-6 {
    align-items: center; /* Keep center buttons centered horizontally */
}

.main-controls .col-md-3 {
    align-items: flex-start; /* Align buttons to the left/right as intended */
    justify-content: center; /* Center vertically */
}

.main-controls .col-md-3:last-child {
    align-items: flex-end; /* Align export section to the right */
    flex-direction: row !important; /* Keep buttons side by side */
    justify-content: flex-end !important; /* Align to the right */
}

.main-controls .col-md-3 .control-button {
    margin-bottom: 0.5rem; /* Add consistent spacing */
    width: auto !important; /* Prevent buttons from stretching */
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Ensure uploaded file info doesn't affect layout */
#uploadedFileInfo {
    position: absolute;
    top: 70%;
    left: 17px;
    right: 17px;
    z-index: 10;
    margin-top: 0.25rem !important;
}

/* Make the upload section position relative for absolute positioning of file info */
.main-controls .col-md-3:first-child {
    position: relative;
}

.data-section {
    display: none;
}

.btn {
    border-radius: 0.375rem !important; /* Less rounded */
}

/* Fix for split buttons to look like one */
.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: -1px; /* Remove gap */
}

.data-section.active {
    display: block;
}

.hero-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.control-button {
    margin: 0 5px;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Increase navbar size */
.navbar {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    min-height: 60px;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 600;
}

.navbar .btn {
    padding: 0.5rem 1rem !important;
    font-size: 1rem;
}

/* uploaded file info */

#uploadedFileInfo .badge {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

#uploadedFileName {
    cursor: help;
    max-width: 60px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0.375rem !important;
}

/* Custom color for CSV upload button */
.lightBlueButton {
    background-color: #0A6FFD !important;
    border-color: #0A6FFD !important;
    color: white !important;
}

.lightBlueButton:hover {
    background-color: #0A6FFD !important;
    border-color: #0A6FFD !important;
    opacity: 0.9;
}

.lightBlueButton:active,
.lightBlueButton:focus {
    background-color: #2E56FF !important;
    border-color: #2E56FF !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 111, 253, 0.25) !important;
    opacity: 0.8;
}

/* Logo image styling */
.navbar-brand-img {
    height: 40px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

/* Update navbar brand styling for image */
.navbar-brand {
    padding: 0.25rem 2rem 0.25rem 0 !important; /* Keep right padding */
    margin-left: 25px !important; /* 25px from left border */
    margin-right: 1rem !important;
    display: flex !important;
    align-items: center !important;
}

.navbar .container-fluid {
    justify-content: space-between !important;
}

#userInfo {
    margin-left: auto !important;
    margin-right: 25px !important;
    display: flex !important;
    align-items: center !important;
}

/* Styles for the new Bootstrap multi-select dropdown */
#crewFilterDropdown .dropdown-menu {
    padding: 10px;
}

#crewFilterDropdown .dropdown-item {
    padding: 0.25rem 1rem;
}

#crewFilterDropdown .form-check {
    padding-left: 2.5em;
}

#crewFilterDropdown .form-check-input {
    margin-left: -1.5em;
}

#crewFilterDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

#crewFilterDropdown .dropdown-item.active {
    background-color: #e9ecef;
    color: #212529;
}

#crewFilterDropdown .dropdown-item.active .form-check-input {
    border-color: #0d6efd;
}

#crewFilterDropdown .dropdown-item.active .form-check-input:checked {
    background-color: #0d6efd;
}

.crew-list-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.weight-zero {
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: line-through;
}

.optimization-dropdown {
    max-height: 200px;
    max-width: 600px;
    overflow-y: auto;
}

#prioritizedCrewsCheckboxesContainer .form-check-input {
    margin-left: -0.5em;
    margin-right: 0.5em;
}

.prioritizedCrewsContainer {
    padding-left: 0.5em;
}

#ruleWeightConfigModal .modal-footer {
    justify-content: flex-end;
}

#ruleWeightConfigModal .modal-footer .btn {
    margin-left: 0.5rem;
}

#crewAvailabilityModal .modal-footer .btn {
    margin-left: 0.5rem;
}

#ruleWeightConfigModal .modal-footer #backToUploadButton {
    margin-right: auto;
}

/* Crew Availability Modal */
.crew-availability-modal-content {
    /*height: 80vh; */ /* 80% of the viewport height */
    display: flex;
    flex-direction: column;
}

.crew-availability-table-container {
    height: calc(80vh - 170px); /* Adjust based on header/footer height */
    overflow-y: auto;
    position: relative;
}

#crewAvailabilityTableHead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f8f9fa; /* Match modal background */
}

.disabled-crew {
    text-decoration: line-through;
    color: lightgray;
}

.equal-width-buttons > * {
    flex: 1 1 auto;
}

.equal-width-buttons .btn {
    white-space: nowrap;       /* evita saltos de línea */
    width: 100%;               /* ambos toman el mismo ancho */
}

.hidden {
    display: none !important;
}


/* --- Custom HAL Tabs --- */

.hal-tabs {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    display: inline-flex;
}

.hal-tabs .nav-link {
    color: #6c757d; /* gris suave */
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
}

.hal-tabs .nav-link:hover {
    background: #f2f2f2;
}

.hal-tabs .nav-link.active {
    background: #016DFC;   /* igual al screenshot */
    color: white;
}

/* Pedido de operaciones multi select input */

.multi-select-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.375rem 0.75rem;
    height: auto;
    cursor: text;
}
.multi-select-input .badge {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 2px;
    margin-top: 2px;
}
.multi-select-input input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 0;
    background: transparent;
    min-width: 150px;
}

/* Fix active color for the solve dropdown item */
#solveWithCrewModification:active {
    background-color: #198754 !important; /* Match btn-success color */
    color: white;
}
