.mac {
    position: fixed;
    z-index: 1059;
    display: none;

    transition: opacity 500ms;
    -webkit-transition: opacity 500ms;
    -moz-transition: opacity 500ms;
    -ms-transition: opacity 500ms;
    -o-transition: opacity 500ms;
}

.counter-badge {
    padding: 0.3rem 0.75rem;
    background: #fd397a;
    color: white;
    width: 30px;
    height: 30px;
    font-size: 20px;
    border-radius: 50%;
}

.mac.mac_box {
    border: 3px solid #0f5c87;
    border-radius: 10px;
    box-shadow: 0px 0px 13px 0px rgba(82, 63, 105, 0.05);
    background-color: #ffffff;
    margin-bottom: 20px;
}

.mac .mac_head {
    height: 40px;
    padding: 3px 6px 3px 6px;
    border: none;
    background-color: #0f5c87;
    color: white;
    transition: left 0.3s, right 0.3s, height 0.3s;
    cursor: move !important;
    display: flex;
    align-items: stretch;
    -webkit-box-pack: justify;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.mac .mac_head .head-label {
    display: flex;
    align-items: center;
}

.mac .mac_head .head-label .head-title {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #464457;
    -webkit-box-align: center;
    align-items: center;
}

.mac .mac_head .mac-toolbar {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    align-content: flex-end;
}

.mac .mac-container {
    position: relative;
    height: auto !important;
    max-height: 180px;
    overflow-y: auto;
}

.mac .mac-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    text-align: center;
}

.mac.mac_box .head-label h3 span {
    color: white;
}

.mac.mac_box .mac_body {
    padding: 3px 3px 3px 3px;
    width: 200px;
}

.mac .mac-footer {
    background-color: #F5F5F5;
    height: 25px;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.mac.mac_box .kt-portlet__foot {
    padding: 3px;
}


.mac-item {
    margin: 3px;
    margin: 3px;
    width: calc(33.33% - 10px);
}

.mac-item > img {
    width: 50px;
    height: 50px;
}

.mac-item > a.remove-mac-item {
    position: absolute;
    opacity: 0;
    right: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: black;
    padding: 10px;
}

.mac-item:hover > a.remove-mac-item i {
    font-size: 25px;
    color: white;
}

.mac-item:hover > a.remove-mac-item {
    opacity: 0.7;
}

.mac .mac-title {
    text-align: center;
    margin-left: 6px;
}

.mac.kt-portlet--collapse .mac-footer,
.mac.kt-portlet--collapse .mac-title {
    display: none;
}

.mac.visible {
    display: block;
}

#mac-toolbar-item .mac-counter {
    position: absolute;
    top: 2px;
    right: 5px;
    background-color: #ff000082;
    border-radius: 8px;
    display: block;
    padding: 0 5px;
    color: white;
    font-size: 10px;
    font-weight: 400;
}

span.mac-counter-toolbar {
    position: absolute;
    top: 2px;
    right: 5px;
    background-color: #ff000082;
    border-radius: 8px;
    padding: 0 5px;
    color: white;
    font-size: 10px;
    font-weight: 400;
}

#smt-mac_combinacion {
    z-index: 99999;
}

.m-hide {
    display: none;
}

.m-show {
    display: inline;
}

.ww-sticky-toolbar {
    width: 40px;
    position: fixed;
    top: 40%;
    right: 0;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0px 0px 50px 0px rgba(82, 63, 105, 0.15);
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    border-radius: 3px 0 0 3px;
}

.ww-sticky-toolbar__item {
    margin: 0;
    padding: 5px;
    text-align: center;
}
.ww-sticky-toolbar .ww-sticky-toolbar__item > a {
    background: #f4f4f8;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.ww-sticky-toolbar .ww-sticky-toolbar__item > a > i {
    color: #5867dd;
    transition: color 0.3s ease;
    font-size: 1.3rem;
}
.ww-sticky-toolbar .ww-sticky-toolbar__item:hover > a {
    background: #5867dd;
}

.ww-sticky-toolbar .ww-sticky-toolbar__item:hover > a > i {
    color: #ffffff;
}