.iebf-header-appicon {
    padding: 5px;
}

.nav > li > a > img.iebf-menu-icon, .dropdown-menu > li > a > img.iebf-menu-icon {
    width: 18px;
    margin-right: 0px;
}

.iebf-profile-picture {
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
}

.iebf-profile-picture-section {
    width: 400px;
    height: 300px;
    margin-right: 100px;
}

@media (max-width: 768px) {
    .iebf-profile-picture-section {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
        text-align: center;
    }

    .iebf-profile-picture {
        width: 150px;
        height: 150px;
        display: block;
        margin: 0 auto 10px;
    }
}

.col-8-3 {
    width: 8.33333333%;
}

.iebf-date-col {
    width: 10.66666666%;
}

.iebf-col-currency {
    width: 60%;
    text-align: right;
}

.iebf-footer {
    background-color: #F9F9F9;
    border-top: 1px solid #EEE;
    color: #999;
    margin-top: 40px;
}

.iebf-form {
    margin: 20px;
}

.iebf-input {
    padding: 5px;
}

.iebf-date-filter {
    margin-top: 0px;
    height: auto;
}

@media (min-width: 1200px) {
    .iebf-date-filter {
        margin-top: 20px;
        height: 50px;
    }
}

/* =====================================================
   Filter Bar
   ===================================================== */
.iebf-filter-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 8px 14px;
    padding: 10px 15px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.iebf-filter-field {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100px;
    flex: 1 1 100px;
    min-width: 100px;
}

.iebf-filter-field.iebf-filter-field-lg {
    -webkit-box-flex: 2;
    -ms-flex: 2 1 150px;
    flex: 2 1 150px;
    min-width: 150px;
}

.iebf-filter-field label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.iebf-filter-field .form-control {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 4px 8px;
    font-size: 13px;
}

.iebf-filter-field.iebf-filter-field-lg .form-control {
    width: 100%;
}

.iebf-filter-break {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    height: 0;
}

.iebf-filter-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 5px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: auto;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.ui-datepicker-week-end {
    background-color: #5bc0de;
}

.iebf-column-input {
    padding-top: 10px;
    -webkit-column-count: 3; /* Chrome, Safari, Opera */
    -moz-column-count: 3; /* Firefox */
    column-count: 3;
}

.iebf-label-fixed {
    font-size: 20px;
    width: 150px;
    display: inline-block;
}

.iebf-label {
    font-size: 20px;
}

.iebf-print {
    border: 1px solid black;
}

.iebf-label-green {
    color: green;
    font-weight: bold;
}

.iebf-label-red {
    color: red;
    font-weight: bold;
}

.iebf-table-title {
    padding-left: 20px;
}

.iebf-paragraph {
    margin-top: 20px;
    margin-left: 20px;
}

.iebf-table {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    border-spacing: 0 1em;
    border-collapse: separate;
}

.iebf-table th {
    padding-left: 20px;
}

.iebf-table-creation {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    border-collapse: separate;
}

.iebf-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
}

.iebf-button-list {
    width: 100%;
    margin: 5px;
}

.iebf-button-list-sm {
    width: 100%;
    margin: 2px 0;
}

.iebf-table-header {
    padding-top: 5px;
    padding-right: 15px;
    padding-bottom: 5px;
    text-align: center;
}

.iebf-table-row {
    padding-left: 15px;
}

.iebf-card {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(173, 173, 173, 1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(173, 173, 173, 1);
    box-shadow: 0px 0px 10px 0px rgba(173, 173, 173, 1);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0;
}

.iebf-card-padded {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(173, 173, 173, 1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(173, 173, 173, 1);
    box-shadow: 0px 0px 10px 0px rgba(173, 173, 173, 1);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0;
    padding: 10px;
    margin-bottom: 10px;
}

.iebf-textinput {
    height: 25px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
    padding-left: 5px;
}

textarea.iebf-textinput {
    height: auto;
}

.iebf-currencyinput {
    height: 25px;
    width: 80px;
    text-align: right;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
    padding-right: 5px;
}

.iebf-selectorinput {
    height: 25px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
    padding-left: 5px;

}

.iebf-dateinput {
    width: 130px;
    padding-left: 5px;
    height: 25px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.ml-1 {
    margin-left: 10px;
}

.ml-2 {
    margin-left: 20px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mb-sm-2 {
        margin-bottom: 20px;
    }
}

.w-100 {
    width: 100%;
}

@media (max-width: 768px) {
    .w-sm-90 {
        width: 90%;
    }
}

.h-70 {
    height: 70%;
}

.h-80 {
    height: 80%;
}

.h-100 {
    height: 100%;
}

@media (min-width: 1200px) {
    .col-lg-15 {
        width: 12.5%;
    }
     .col-lg-16 {
        width: 20%;
    }
}

/* =====================================================
   Sortable Table Headers
   ===================================================== */
.iebf-sortable-th a.iebf-sort-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.iebf-sortable-th a.iebf-sort-link:hover {
    text-decoration: underline;
}

/* =====================================================
   AI Chat Styles
   ===================================================== */
.chat-messages {
    padding: 10px;
    overflow-y: auto;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.chat-msg {
    margin-bottom: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.chat-msg-user {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.chat-msg-ai,
.chat-msg-error {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 13px;
}

.chat-bubble-user {
    background-color: #ebebeb;
    color: #333;
    border-bottom-right-radius: 4px;
}

.chat-bubble-ai {
    background-color: #d4d4d4;
    color: #222;
    max-width: 100%;
    width: 100%;
    border-bottom-left-radius: 4px;
}

.chat-bubble-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 80%;
    font-size: 13px;
}

.chat-ref-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
    font-size: 12px;
}

.chat-ref-list {
    padding-left: 18px;
    margin-top: 4px;
    margin-bottom: 0;
}

.chat-ref-list li {
    margin-bottom: 5px;
}

.chat-input-area {
    padding: 12px 0 0 0;
    border-top: 1px solid #e5e5e5;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;
}

.chat-input-area input {
    width: 100%;
}

.chat-send-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.chat-loading-dots span {
    -webkit-animation: chatBlink 1.4s infinite;
    animation: chatBlink 1.4s infinite;
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

.chat-loading-dots span:nth-child(2) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.chat-loading-dots span:nth-child(3) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

@-webkit-keyframes chatBlink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

@keyframes chatBlink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

#aiChatModal .modal-dialog {
    height: 90vh;
    margin: 5vh auto;
}

#aiChatModal .modal-content {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.chat-modal-body {
    padding: 0 15px 15px 15px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}


/* ------------------------------------------------------------------ */
/* Calendario                                                          */
/* ------------------------------------------------------------------ */

.iebf-calendar-toolbar {
    padding: 0 20px;
    margin-bottom: 10px;
}

.iebf-calendar-month {
    margin: 10px 0;
    text-transform: capitalize;
}

.iebf-calendar-nav,
.iebf-calendar-actions {
    display: inline-block;
}

.iebf-calendar-actions {
    margin-left: 10px;
}

/* .iebf-table adds row spacing, which would tear a month grid apart. */
.iebf-calendar {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
}

.iebf-calendar th.iebf-calendar-dow {
    padding: 6px 4px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    text-align: center;
    font-size: 13px;
}

.iebf-calendar-cell {
    border: 1px solid #ddd;
    height: 96px;
    vertical-align: top;
    padding: 4px;
}

.iebf-calendar-empty {
    background: #fafafa;
}

.iebf-calendar-selected {
    background: #eaf4ea;
}

.iebf-calendar-daynum {
    display: block;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 3px;
}

.iebf-calendar-daynum-plain {
    color: #888;
    font-weight: normal;
}

.iebf-calendar-chip {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-left: 3px solid #5cb85c;
    background: #f1f7f1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iebf-calendar-chip:hover {
    background: #e3efe3;
    text-decoration: none;
}

.iebf-calendar-day-panel {
    margin-top: 20px;
}

.iebf-calendar-event {
    margin: 0 20px 20px 20px;
    padding: 10px 15px;
}

.iebf-calendar-event-title {
    margin-top: 0;
    font-weight: bold;
}

/* On phones a seven column month grid is unreadable, so the grid becomes a
   stacked list: one row per week is dropped and only days are shown in flow. */
@media (max-width: 768px) {
    .iebf-calendar,
    .iebf-calendar tbody,
    .iebf-calendar tr,
    .iebf-calendar td {
        display: block;
        width: 100%;
    }

    .iebf-calendar thead {
        display: none;
    }

    .iebf-calendar-cell {
        height: auto;
        min-height: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 6px 4px;
    }

    .iebf-calendar-empty {
        display: none !important;
    }

    .iebf-calendar-chip {
        white-space: normal;
    }

    .iebf-calendar-toolbar .btn,
    .iebf-calendar-actions .btn {
        margin-bottom: 5px;
    }

    .iebf-calendar-actions {
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Asistencia de asamblea                                              */
/* ------------------------------------------------------------------ */

.iebf-qr-box {
    text-align: center;
    padding: 10px 0;
}

.iebf-qr-box canvas,
.iebf-qr-box img {
    max-width: 100%;
    height: auto;
}

.iebf-qr-url {
    word-break: break-all;
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

/* ------------------------------------------------------------------ */
/* Ayuda (asistente de uso)                                            */
/* ------------------------------------------------------------------ */

.iebf-help-wrapper {
    padding: 0 20px 20px 20px;
}

.iebf-help-intro {
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

/* Same flex chain as the actas modal, but sized to the page: only the
   transcript scrolls, while the intro and the input stay put. */
#helpChat {
    height: calc(100vh - 260px);
    min-height: 320px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 12px 12px 12px;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}

.iebf-help-suggestions {
    padding: 8px 0 0 0;
    border-top: 1px solid #eee;
}

.iebf-help-suggestions-label {
    font-size: 12px;
    color: #888;
    margin-right: 6px;
}

.iebf-help-chip {
    margin: 3px 4px 3px 0;
    white-space: normal;
    text-align: left;
}

.iebf-help-list {
    margin: 4px 0 4px 0;
    padding-left: 20px;
}

.iebf-help-list li {
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    #helpChat {
        height: calc(100vh - 220px);
        min-height: 280px;
    }

    .iebf-help-chip {
        display: block;
        width: 100%;
        margin-left: 0;
    }
}
