@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyN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wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/************* DATA GRID ****************/
.tr-selected {
    background-color: var(--mud-palette-table-hover) !important;
}
/* NAVBAR MENU */
.mud-drawer-menu {
    background-color: var(--mud-palette-appbar-background) !important;
}
.my-navmenu {
    color: var(--mud-palette-dark);
    font-size: 15px;
    border-right: 1px solid #eee;
}
.mud-nav-link.active {
    color: var(--mud-palette-primary-text) !important;
    background-color: var(--mud-palette-primary) !important;
}
.mud-nav-link.active svg {
    fill: #FFF;
}
   
.mud-nav-link.active:hover {
    color: #FFF;
}
.mud-nav-link .mud-nav-link-icon.mud-nav-link-icon-default 
{
    color: var(--mud-palette-primary) !important;
}
.mud-nav-item {
    padding: 3px 7px;
    border-radius: 20px;
}
.mud-nav-link:hover {
    color: var(--mud-palette-primary);
}
/* APPBAR */
.appbar-list-container {
    max-height: 400px;
    overflow-y: auto;
}
.appbar-badge {
    inset: auto auto calc(100% - 22px) calc(100% - 22px) !important;
    font-size: 10px !important;
    height: 16px !important;
    min-width: 16px !important;
    padding: 3px 5px!important;
}
/*LEADS*/
.mud-avatar.mud-avatar-medium {
    font-size: 1rem!important;
}
/*LEAD DRAWER*/
.lead-drawer {
    border-radius: 8px 0 0 0;
}

@media (max-width: 480px) {
    .lead-drawer {
        width: 100% !important;
    }
}
.lead-drawer .drawer-header {
    padding: 16px;
}
.drawer-header .header {
    height: 40px;
}
.lead-drawer .drawer-header .close {
    position: absolute;
    top: 10px;
    right: 10px;
}
.lead-drawer .drawer-header .avatar {
    height: 80px !important;
    width: 80px !important;
    font-size: 3rem !important;
    border-radius: 8px;
}
.lead-drawer .drawer-header .fullname {
    max-width: 250px;
}
.lead-drawer .mud-tabs {
    flex: 1;
    overflow: auto;
}
.lead-drawer .mud-tabs-panels {
    height: calc(100% - 50px);
}
.lead-drawer .drawer-info {
    padding: 30px;
}
.lead-drawer .drawer-info .mud-typography {
    padding: 6px 0;
}
.lead-drawer .info-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #F5F5F5;
    padding: 10px 30px;
}
.lead-drawer .drawer-timeline {
    padding: 30px;
}
.lead-form-maxwidth {
    max-width: 800px !important;
}
/******* EDIT FORMS ********/
.edit-model .col-6, .edit-model .col-12, .edit-model .col-sm-6 {
    padding-bottom: 10px;
}

/* CENTRO DE ATENCION (chat)*/
.contactlist {
    width:100%;
    height: calc(100vh - var(--mud-appbar-height) - 20px);
}
@media (min-width: 768px) {
    .contactlist {
        max-width: 380px !important;
    }
}
.contactlist-header {
    margin: 10px;
    max-height: 60px;
}
.contactlist .mud-list .mud-primary-hover {
    /*Fix to avoid MudList bug*/
    background-color: inherit !important;
    color: inherit !important;
}
.contactlist .mud-list .mud-primary-text {
    /*Fix to avoid MudList bug*/
    color: inherit !important;
}
.contactlist .mud-list .selected-chat {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary-text) !important;
}
.contactlist .mud-list-item-clickable {
    border-radius: 7px !important;
    margin-top: 4px !important;
}
.contactlist-message-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge-channel {
    padding: 2px 6px!important;
    min-width: 18px!important;
    width: 18px!important;
    height: 18px !important;
    inset: calc(100% - 20px) auto auto calc(100% - 17px) !important;
}
.chat-container {
    width: 100%;
    height: calc(100vh - var(--mud-appbar-height) - 20px);
}
.chat-background {
    background-color: var(--mud-palette-appbar-background) !important;
    padding: 12px 24px;
}
.chat-messagebox .mud-input-text {
    margin: 0 !important;
}

.chat-media-overlay {
    background-color:#000000CC;
}
.chat-media-overlay .button-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color:white;
}
.chat-media-overlay video {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}
.chat-media-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    padding:50px;
}
.chat-message .message-left {
    border-top-left-radius: 0 !important;
}
.chat-message .message-right {
    border-top-right-radius: 0 !important;
}
.chat-message .item-maxwidth{
    max-width: 75%;
}
.chat-message .item-text {
    word-wrap: break-word;
    width: 100%;
}
.chat-message .item-text a {
    color: #8dfdfd;
}
.chat-message .message-footer .mud-typography-caption {
    padding: 8px 8px 0 8px;
    font-size: 10px !important;
}
.chat-message .message-card {
    width: 250px;
}
.chat-message .message-card .header-fullwidth {
    padding: 0;
    cursor: pointer;
}
.chat-message .message-card .header-image {
    max-height: 300px;
    overflow: hidden;
}
.chat-message .message-card video, .chat-message .message-card img {
    width: 100%;
    /*max-height: 300px;*/
}
.chat-message .message-card .video-container {
    position: relative;
}
.chat-message .message-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
}
.chat-message .message-card button{
    background-color: #FFF;
}
.chat-message .message-card.item-contact {
    width: 300px;
}
.chat-message .message-card.item-document {
    width: 350px;
}
.chat-message .message-card.item-document .doc-name {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-message .message-card .mud-card-header {
    background-color: #FFF;
    color: var(--mud-palette-text-primary);
}
.chat-message .message-card img {
    width: 100%;
}
.chat-message .item-media-header{
    height:150px;
}
.chat-message .item-audio audio::-webkit-media-controls-panel {
    background-color: #FFF;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}
.chat-message .item-sticker img {
    max-width: 150px;
    max-height: 150px;
}
.chat-attack-background {
    background-color: #e9ecef !important;
}
.emojibox {
    max-width: 300px;
    max-height: 300px;
    overflow: auto;
}
.emojibox a{
    font-size:24px!important;
}
.chat-template-box {
    max-height: 420px;
    overflow: auto;
}
/******* FUNNEL DE VENTAS **********/
.funnel-kanban {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 30px;
}
.funnel-kanban .list-funnelstep{
    /*width:320px;*/
}
/******** AGENDA *******/
.schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, minmax(120px, auto));
    width: 100%;
    border: 1px solid #dee2e6;
}
.schedule .week {
    display: contents;
}
.schedule .day, .schedule .day-header {
    padding: 6px;
    border: none;
}
.schedule .day {
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}
.schedule .day .prev-month, .schedule .day .next-month {
    color: #8d8e9c80;
}
.schedule .day-header {
    text-transform: capitalize;
    border-right: 1px solid #dee2e6;
    background-color: var(--mud-palette-primary);
    color: #FFF;
}
.schedule-month {
    max-width: 200px !important;    
}
.schedule-month input {
    text-transform: capitalize !important;
    font-size: var(--mud-typography-h5-size) !important;
    color: var(--mud-palette-primary) !important;
}
.schedule .day .mud-alert-message {
    padding:2px !important;
}
.schedule-card {
    max-width: 350px;
    background-color: var(--mud-palette-appbar-background);
}
.schedule-card .header {    
    color: #FFF;
    padding:8px 16px;
}
.schedule-card .content {
    padding: 16px;
}