#modalFormContainer .modal-body {
    max-height: calc(100vh - 200px); /* Adjust 200px to fit your header/footer sizes */
    overflow-y: auto;
}
#pivot_culture .modal-body {
    max-height: calc(100vh - 200px); /* Adjust 200px to fit your header/footer sizes */
    overflow-y: auto;
}
.panel-default {
   padding: 3px;
}

.device-sectors {
    padding: 0px;
}
.sector-actions {
    margin-top: 10px;
    margin-right: 2px;
}
.panel-group .panel {
    margin: 5px;
}

/* Basic container styling */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 250px; /* Adjust width as needed */
    font-family: Arial, sans-serif;
}

/* Selected value area */
.selected-value {
    padding: 8px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    user-select: none;

    /* Make the text + swatch line up on the same row */
    display: flex;
    align-items: center;
    /* If you want the swatch on the far right, uncomment: */
    /* justify-content: space-between; */
}

/* Dropdown list (initially hidden) */
.dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;  /* scroll if too many items */
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
    display: none;
    z-index: 9999; /* bring above other elements */
}

/* Items in the dropdown list */
.dropdown-list li {
    padding: 8px;
    cursor: pointer;

    /* Make the text + swatch line up on the same row */
    display: flex;
    align-items: center;
}

.dropdown-list li:hover {
    background: #f0f0f0;
}

/* The color swatch */
.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    margin-right: 5px; /* Spacing between text and swatch */
}
.program-row {
    margin-bottom: 5px;
}
.details-container {
    padding: 10px;
}
.add-detail-row {
    padding: 10px;
}

.program-row {
    border-top: 1px dotted gray;
    padding-top: 5px;
    padding-bottom: 5px;
}

.detail-row {
    padding: 1px;
}
    /*
         Contenedor que agrupa los contadores en el header.
         Utilizamos flex para ubicarlos uno al lado del otro fácilmente.
       */
.header-counters {
    display: flex;
    align-items: center;
    gap: 20px; /* espacio horizontal entre contadores */
    margin-right: 20px; /* separar del borde derecho */
    padding-top: 12px;
}

/* Bloques individuales de cada contador */
.counter-block {
    display: none; /* Por defecto oculto; se muestra si > 0 */
    position: relative;
}

/* Ícono de spinner y animaciones */
.glyphicon-refresh {
    font-size: 1.6em;
    color: #FFFFFF;
}
@keyframes spinClockwise {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinAntiClockwise {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
.spin-clockwise {
    animation: spinClockwise 1s linear infinite;
}
.spin-anticlockwise {
    animation: spinAntiClockwise 1s linear infinite;

}

/* Texto que muestra el número de pendientes */
.counter-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.0em;
    font-weight: bold;
    color: #FFFFFF; /* Texto negro sobre el ícono */
}

/* Texto que muestra el número de fallidas (en rojo) */
.fail-text {
    font-size: 1.2em;
    font-weight: bold;
    color: red;
}

.switch-label {
    color: white;
}

.device-preferences .switch-label {
    color: black !important;

}
.device-preferences {
    background: transparent;
    color: black !important;
    padding:15px;
}

.navbar-inverse .navbar-nav > .open > a:focus {
    background-color: #0078d7;
}
.dropdown-menu {
    background: darkblue;
    width: 320px;
}


.switch-container-menu {
    padding-left: 17px;
    color: #D0D0D0;
    padding-top: 14px;
}

.switch-container-menu .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    touch-action: manipulation; /* Prevents scroll interference */
    float: right;
    margin-right: 10px;

}

.switch-container-menu .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-container-menu .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.switch-container-menu .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 0px;
    bottom: 0px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-container-menu input:checked + .slider {
    background-color: #2196F3;
}

.switch-container-menu input:checked + .slider:before {
    transform: translateX(20px);
}

/* Increase touch area */
.switch-container-menu .switch .slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 5px;
}

/* Ensure click area is large */
.switch-container-menu .switch:active .slider:before {
    width: 20px;
}

/* Ensures that the touch works reliably */
.switch-container-menu .slider:active:before {
    width: 20px;
}



/* Basic styling for the images and slider controls */
#pivot_camera .modal-body {
    overflow: auto;
    scroll-behavior:auto ;
}

#pivot_camera .modal-content {
    overflow: auto;
    scroll-behavior:auto ;
}

#sliderImageTag {
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    color: white;
    font-size: 2em;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}


#slider {
    display: none;
    width: 100%;
    height: 100%;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

#slider img {
    max-width: 90%;
    max-height: 90%;
}

.control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2em;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}

#close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}



select{
    margin-bottom: 5px;
    color: #23527c;
    background-color: #eee;
    border-radius: 4px;
    text-decoration: none;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid #007bff;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 12px;
    white-space: nowrap;
}

.table{
    margin-bottom: 0px;

}

#modal-content{
    color: #333;
}

.alert-danger {
    color: #333;
    background-color: #fff;
}
.btn {
    margin: 1px;
}

.assistance img {
    width: 25px;
}
.navbar-nav > li > a {
    margin-top: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-brand {
    margin-top: 5px;
    padding: 5px;
}

.navbar {
    min-height: 35px;
    padding: 5px;
}

img {
  height: auto;
  max-width: 100%;
}

/* Fixe les modals sur le milieu de l'écran */

.modal {
    padding-left: 0 !important;
}
.modal-dialog {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.modal-content {
    margin: 0 auto;
    text-align: center;
    width: 330px;
    -webkit-transition:width 500ms ease-in-out, height 500ms ease-in-out;
    -moz-transition:width 500ms ease-in-out, height 500ms ease-in-out;
    -o-transition:width 500ms ease-in-out, height 500ms ease-in-out;
    transition:width 500ms ease-in-out, height 500ms ease-in-out;
}
.bootstrap-switch-label{
    padding-bottom:6px !important;
}

.footer { padding: 20px; }
.footer a:hover { color: #fff; text-decoration: underline; }

.uno_login-logo h1 { font-size: 80px; margin-bottom: 80px; }
.uno_login-block .form-horizontal { max-width: 450px; margin: 0 auto; }
.uno_login-block .form-horizontal .form-control { margin-bottom: 20px; border-radius: 10px; padding: 12px; }
.uno_login-block .form-horizontal .btn-primary { background: #0078D7; border: none; border-radius: 10px; padding: 12px; margin: 40px 0 80px;
    &:hover { background: #333333; }
}
.uno_login-block #error { color: #F00; border: none; padding: 12px; background-color:rgba(255, 255, 255, 0.5); border-radius: 10px }
.uno_login-block .checkbox #remember { border: none; width: 17px; height: 17px; margin-top: 4px; }
.uno_login-block .checkbox span { padding-left: 5px; font-size: 16px; }

#pivots-list { padding-left: 10px; padding-right: 10px; margin-top: 100px; }
@media only screen and (max-width: 767px) {
    #pivots-list {
        margin-top: 45px;
    }
}
@media only screen and (max-width: 324px) {
    #pivots-list {
        margin-top: 45px;
    }
}
.uno_pivot .pivot-row-info-start { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.uno_pivot .pivot-row-info-start .pivot-name { border-bottom: 1px solid; padding-left: 0; padding-top: 10px; }
.uno_pivot .pivot-row-info-start .pivot-name .date-infos { display: inline-block; }
.uno_pivot .pivot-row-info-start .uno_pivot-info { text-align: right; padding-top: 8px; padding-bottom: 8px; }
.uno_pivot .pivot-row-info-start.pivot-row-info-selected .pivot-name .date-infos, .uno_pivot .pivot-row-info-start.pivot-row-info-selected .pivot-name .date-infos.noResponse { color: #FFFFFF !important; }

.uno_text-left { text-align: left; }
.uno_text-right { text-align: right; }

.uno_pivot .pivot-row-info-end {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.uno_pivot .pivot-row-info-end .uno_pivot-icon {
    display: inline-block;
    vertical-align: middle;
}

.uno_pivot .pivot-row-info-end .uno_pivot-icon > div {
    margin: 0 5px;
}

.uno_pivot .pivot-row-info-end .uno_pivot-icon:first-child > div {
    margin-left: 0;
}

.uno_pivot .pivot-row-info-end .uno_pivot-icon:last-child > div {
    margin-right: 0;
}

.uno_pivot .pivot-row-action-end {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.uno_pivot .pivot-row-action-end .btn-primary {
    background: #0078D7;
    border: none;
    border-radius: 10px;

    &:hover {
        background: #000000;
    }
}

.uno_pivot .pivot-row-action-end .btn-secondary {
    background: #333333;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    width: 100%;
    &:hover {
        background: #000000;
    }

}
.uno_pivot .pivot-row-action-end .uno_action-stop .uno_pivot-icon { display: inline-block; vertical-align: middle; margin-right: 5px; }
.uno_pivot .pivot-row-action-end .uno_action-stop .uno_pivot-icon-text { display: inline-block; vertical-align: middle; font-weight: bold; font-size: 19px; }
.uno_action-stop { padding-left: 18px;  }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .signal-gsm-0 { background-image: url("/imgs/SignalGSM_0_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .signal-gsm-1 { background-image: url("/imgs/SignalGSM_1_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .signal-gsm-2 { background-image: url("/imgs/SignalGSM_2_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .signal-gsm-3 { background-image: url("/imgs/SignalGSM_3_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .signal-gsm-4 { background-image: url("/imgs/SignalGSM_4_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .signal-gsm-5 { background-image: url("/imgs/SignalGSM_5_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .fleche { background-image: url("/imgs/fleche_horizontale_blank.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .ticketIcon { background-image: url("/imgs/message_blanc.svg") !important; }
.uno_pivot .pivot-row-info-end.pivot-row-info-selected .resetIcon { background-image: url("/imgs/reset_blanc.svg") !important; }

.uno_filter { padding: 10px; }
.uno_filter .uno_filter-icon { background: #FFFFFF; border-radius: 5px; padding: 5px; display: inline-block; vertical-align: middle; border: none; }
.uno_filter .uno_filter-icon .icon { display: block; height: 30px; width: 30px; background-image: url("/imgs/ordre_alpha_noir.svg"); background-repeat: no-repeat; background-position: center center; }
.uno_filter .uno_filter-icon.blank { background: #333333; border-radius: 5px; padding: 5px; display: inline-block; vertical-align: middle; border: none; }
.uno_filter .uno_filter-icon.blank .icon { display: block; height: 30px; width: 30px; background-image: url("/imgs/ordre_alpha_blanc.svg"); background-repeat: no-repeat; background-position: center center; }

.uno_filter .uno_filter-icon.reverse { background: #FFFFFF; border-radius: 5px; padding: 5px; display: inline-block; vertical-align: middle; border: none; }
.uno_filter .uno_filter-icon.reverse .icon { display: block; height: 30px; width: 30px; background-image: url("/imgs/ordre_alpha_za_noir_bis.svg"); background-repeat: no-repeat; background-position: center center; }
.uno_filter .uno_filter-icon.reverse.blank { background: #333333; border-radius: 5px; padding: 5px; display: inline-block; vertical-align: middle; border: none; }
.uno_filter .uno_filter-icon.reverse.blank .icon { display: block; height: 30px; width: 30px; background-image: url("/imgs/ordre_alpha_za_blank_bis.svg"); background-repeat: no-repeat; background-position: center center; }

.modal-content.uno {
    width: auto;
    height: auto;
}
.dropdown { margin-bottom: 20px; }
.dropdown .dropdown-menu { left: auto; right: 0; }

#loader {
    width:192px;
    margin:10px;
}
/* Fixe les modals sur le milieu de l'écran */
/** Mobile **/

@media screen and (max-device-width: 1000px) and (orientation: portrait) {
    #sidebar {
        width: 99%;
    }
}

@media (max-width: 767px) {
    .uno_80-width { width: 100%; }
    .uno_login-wrapper { position: relative; width: 80%; }
    .uno_login-wrapper .uno_login-logo_mobile { position: absolute; top: -100px; left: 0; right: 0;  }
    .img-responsive { max-height: 280px; }
    .uno_login-logo h1 { font-size: 60px; margin-bottom: 60px; }
    .uno_login-block .form-horizontal { max-width: 100%; }
    .uno_login-block .form-horizontal .btn-primary { margin-top: 20px; margin-bottom: 40px; }
}

@media (max-width: 767px) {
    .assistance-text {
        display: inline;
    }
}

@media (min-width: 768px) {
    .assistance-text {
        display: none;
    }
}
.navbar-top {
    position: fixed;
    top: 60px; /* Ajusta según la altura de la otra navegación */
    left: 0;
    padding: 5px 0;
    height: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
    z-index: 1000;
    overflow-x: auto;
}

.navbar-top::-webkit-scrollbar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar-top::-webkit-scrollbar-thumb {
    background-color: rgba(64, 147, 219, 0.9);
    border-radius: 3px;
}

.navbar-top::-webkit-scrollbar-thumb:hover {
    background-color: rgba(52, 131, 209, 0.9);
}

.navbar-top .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navbar-top .navbar-nav li {
    margin-right: 5px;
    flex: 1;
}

.navbar-top .navbar-nav li a {
    text-decoration: none;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid #007bff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 12px;
    white-space: nowrap;
    flex: 1;
}

#current-site-name {
    font-weight: bold !important;
    text-decoration: none;
    padding: 1px 0;
    height: auto;
    margin-right: 5px;
    color: #000000;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 12px;
    white-space: nowrap;
    flex: 1;
}

.navbar-top .navbar-nav li a:hover {
    background: linear-gradient(rgba(64, 156, 255, 1), rgba(64, 156, 255, 0.7));
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.selectedSite {
    font-weight: bold !important;
    background: linear-gradient(rgba(64, 156, 255, 1), rgba(64, 156, 255, 0.7));
    color: #ffffff !important;
}

.selectedSite:hover {
    background: linear-gradient(rgba(52, 131, 209, 1), rgba(52, 131, 209, 0.7));
    color: #ffffff;
}

.navbar-top .glyphicon-map-marker {
    color: #007bff;
    font-size: 14px;
}

.navbar-top .navbar-nav li:first-child {
    margin-left: 15px;
}

@media only screen and (max-width: 390px) {
    #battery-text {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .navbar-top {
        width: 100%;
    }

    .navbar-top .navbar-nav li:first-child {
        margin-left: 15px;
    }

    .navbar-top .navbar-nav li a {
        text-decoration: none;
        padding: 6px 12px;
        background-color: rgba(255, 255, 255, 0.75);
        border: 1px solid #007bff;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
        font-size: 12px;
        margin-right: 2px;
        white-space: nowrap;
        flex: 1;
    }

    #current-site-name {
        font-weight: bold !important;
        text-decoration: none;
        padding: 1px 0;
        height: auto;
        margin-right: 5px;
        color: #000000;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
        font-size: 12px;
        white-space: nowrap;
        flex: 1;
    }

    .navbar-top::-webkit-scrollbar {
        height: 5px;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .navbar-top::-webkit-scrollbar-thumb {
        background-color: rgba(64, 156, 255, 0.9);
        border-radius: 3px;
    }

    .navbar-top::-webkit-scrollbar-thumb:hover {
        background-color: rgba(52, 131, 209, 0.9);
    }

    .selectedSite {
        font-weight: bold !important;
        background: linear-gradient(rgba(64, 156, 255, 1), rgba(64, 156, 255, 0.7));
        color: #ffffff !important;
    }

    .selectedSite:hover {
        background: linear-gradient(rgba(52, 131, 209, 1), rgba(52, 131, 209, 0.7));
        color: #ffffff;
    }
}

 .notification-toast-container {
     position: fixed;
     top: 10px;
     right: 10px;
     z-index: 1050;
     max-width: 90vw;
 }

.notification-toast {
    background-color: #f5f5f5;
    border-left: 5px solid #337ab7;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    animation: fadeSlideIn 0.3s ease-in-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

