/* Override the default template logo with our custom logo * /
.app-logo {
    height: 23px;
    width: 97px;
    background: url('../img/logo.png');
    background-size: 100%;
    background-repeat: no-repeat;
}
.app-logo-inverse {
    height: 23px;
    width: 97px;
    background: url('../img/logo-inverted.png');
    background-size: 100%;
    background-repeat: no-repeat;
}

.app-header__logo .logo-src {
    background: url('../img/logo-allblack.png');
    background-size: 100%;
    background-repeat: no-repeat;
}
.app-header.header-text-light .app-header__logo .logo-src {
    background: url('../img/logo-allwhite.png');
    background-size: 100%;
    background-repeat: no-repeat;
}

*/

:root{
    --red: #303958;
}

.app-header {
    top: 0 !important;
}

.current-environment-label {
    position: fixed;
    top: 5px;
    left: 5px;
    opacity: 0.9;
    z-index: 10000;
}

.app-login-box .login-title {
    font-size: 3.5rem;
    color: white;
    letter-spacing: .2rem;
    font-variant: small-caps;
}

.app-top-bar .nav-item span {
    font-size: .81818rem;
    border-radius: 30px;
    padding: .3rem .75rem;
    color: rgba(255,255,255,.6);

    display: flex;
    align-items: center;
}

.bg-danger {
    background-color: #f2031c !important; /* grm red */
}

.app-header.bg-danger {
    background-color: #f2031c !important; /* grm red */
}

.bg-primary {
    background-color: #303958 !important; /* tpg blue */
}

.app-header.bg-primary {
    background-color: #303958 !important; /* tpg blue */
}

.app-header__logo {
    min-width: 200px;
}
.app-header__logo .logo-src {
    background: url(../img/aimbridge_logo_2025.png) 50% 50% no-repeat !important;
    background-size: contain !important;
    height: 50px !important;
    width: 85% !important;
}

.app-page-title #visit-title-wrapper.page-title-wrapper::before  {
    background: none !important;
}

.app-page-title #visit-title-wrapper + .card {
    padding-bottom: 0;
    margin-bottom: 0 !important;
}

.app-page-title .page-title-wrapper::before {
    background-color: #303958 !important; /* tpg blue */
}

.custom-background-widget{
    background-image: radial-gradient(circle 248px at center,#7795e4 0,#3f69d8 47%,#3f69d8 100%)!important;
}
/*Delete HTML date arrow behind  jquery datepicker*/
.custom-datepicker::-webkit-calendar-picker-indicator {
    display: none;
}
/*bolder group text jquery datepicker*/
.select2-container--bootstrap4 .select2-results__group {
    font-weight: bold;
}

.select2.select2-container {
    border: 1px solid rgb(206, 212, 218);
    border-radius: 4px;
    font-size: 1rem;
}
.select2 .select2-selection {
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
}

span.select2-selection.select2-selection--single {
    height: auto;
    padding-top: 0;
    padding-left: 10px;
    padding-bottom: 5px;
}

.dt-buttons {
    float: left;
}


legend {
    font-weight: normal !important;
}

span.code {
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    font-size: 87.5%;
}

.prettyprint-container {
    max-width: calc(100vw - 370px);
}

.card-clickable {
    cursor: pointer;
}

.text-capitalize {
    text-transform: initial !important;
}

.btn-xs {
    font-size: .8rem !important;
}

.accounting {
    text-align: right;
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    font-size: 87.5%;
}

.item-concept-remove-button {
    position: absolute;
    float: right;
    clear: none;
    top: 1px;
    right: 2px;
}

.integration-remove-button {
    position: absolute;
    float: right;
    clear: none;
    top: 1px;
    right: 2px;
}

.no-margin {
    margin: 0;
}

.text-bold {
    font-weight: bold;
}

/* Select2 input fixes */
.select2-selection.select2-selection--multiple {
    border: none !important; /* fallback to the theme's own border display */
    padding-top: 1px !important;
    padding-bottom: 0px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* DateTimePicker input fixes */
.btn-outline-secondary {
    border-color: rgb(206, 212, 218);
}

/* Select2 input fixes */
.select2-selection__placeholder {
    color: gray;
}

.select2-container--default {
    height: 41px;
}

.select2-container--default .select2-selection--single {
    border: none !important;
    /*height: 38px !important;*/
    background: transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

ul.flash-message {
    margin-bottom: 0;
}


/*
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 980px) {
    .app-sidebar {
        overflow-y: scroll;
        height: 100%;
    }

    .scrollbar-sidebar {
        overflow-y: scroll;
        height: 100%;
    }
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 250px; /* Ajusta según necesites */
}

.search-wrapper .select2-container {
    flex: 1;
    width: 100% !important;
}

.search-wrapper .select2-selection--single {
    height: 36px !important; /* Ajusta la altura */
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.search-wrapper .select2-selection__rendered {
    padding-left: 35px !important; /* Para dejar espacio al ícono */
}

.search-wrapper .search-icon-wrapper {
    position: absolute;
    left: 10px;
    font-size: 16px;
    color: #777;
    z-index: 10;
}


.comment-box {
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.comment-box:not(:last-child) {
    margin-bottom: 0.5rem;
}

.comment-box-user img {
    margin-bottom: 0.5rem;
    float: none;
}

.comment-box-user {
    flex: 0 0 150px;
    padding: 0.25rem;
    padding: 0.75rem;
    border-right: 1px solid #ededed;
    text-align: center;
}

.comment-box-user .description {
    font-size: 12px;
}

.comment-box-comment {
    flex: 1 0 0;
    padding: 0.75rem 1rem;
}

.comment-box-delete {
    flex: 0 0 50px;
    padding: 0.75rem;
}

.cursor-pointer {
    cursor: pointer;
}

/* Highlight the selected badge when the corresponding radio button is checked */
input[type="radio"]:checked + .custom-radio-label {
    outline: 3px solid #007bff; /* Change to your preferred color */
    outline-offset: 3px; /* Adds spacing between the outline and the badge */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Optional glow effect */
    font-weight: bold;
}

.custom-markdown-block h1,
.custom-markdown-block h2,
.custom-markdown-block h3,
.custom-markdown-block h4,
.custom-markdown-block h5,
.custom-markdown-block h6 {
    font-size: .9rem;
    font-weight: bold;
}

.response-card {
    border-width: 3px;
}

/* CSS: Add animation for the invalid card */
.animate-highlight {
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 10px 4px rgba(255, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.7);
    }
}

/* Shaking effect */
.animate-shake {
    animation: shake .5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Select2 Custom Styles */
.select2-container {
    width: 100% !important;
    height: auto !important;
}

.select2-container--default .select2-results__options {
    max-height: 200px;
}

.select2-selection--multiple .select2-selection__choice {
    background-color: #007bff !important;
    border-color: #006fe6 !important;
    color: #fff !important;
    padding: 2px 6px;
    margin: 2px;
    margin-bottom: 2px!important;
}

.select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px;
    padding-right: 5px;
}

.select2-container .select2-selection--multiple {
    min-height: 38px;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d;
    line-height: 24px;
}
/* END Select2 Custom Styles */

/* Language Selector Custom Styles */
.flag-emoji {
    font-size: 1.2rem;
    margin-right: 4px;
}
/* End Language Selector Custom Styles */

/* Navigation Menus Custom Styles */
@media (max-width: 767.98px) {
    .app-inner-bar .dropdown-menu {
        position: absolute;
        width: 100%;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .app-inner-bar .dropdown-item {
        padding: .75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,.05);
    }

    .app-inner-bar .dropdown-item:last-child {
        border-bottom: none;
    }

    .app-inner-bar .dropdown-item.active {
        background-color: var(--primary);
        color: white;
    }
}
/* END Navigation Menus Custom Styles */

/* This fixes a line-height issue on the select venue text */
#venue-search + .select2 .select2-selection__placeholder {
    display: inline-block;
    margin-top: 6px;
}

/* Improved visibility for links in Markdown */
.custom-markdown-block a {
    font-weight: 600;
    text-decoration: underline;
    color: #0056b3;
}
.custom-markdown-block a:hover {
    text-decoration: none;
}

/* Style for non-image thumbnail placeholder */
.attachment-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem; /* Same border as img-thumbnail */
}

.modal {
    z-index: 1051;
}
