.modal-header{
    width: 100%;
    padding: 15px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}
.modal-title{
    margin-bottom: 0;
    line-height: var(--bs-modal-title-line-height);
}
.bxhtmled-nav-item{
    display: none!important;
}
.mail_menu{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
/* затемнение фона */
.mz-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

/* когда показываем */
.mz-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* сама белая подложка */
.mz-modal__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 50%;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: #FFF;
    background-clip: padding-box;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.175);
    outline: 0;
}
.right_bot{
    display: flex;
    gap: 10px;
}

#mz-cert-pass{
    background-color: #e9ecef;
    opacity: 1;
    display: block;
    width: 50%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-clip: padding-box;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}
.modal-body{
    padding: 15px;
}
.mz-field__value.long {
    white-space: normal;
    word-break: break-word;
}
/* Контейнер строки */
.mz-field {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Подпись */
.mz-field label {
    width: 260px;
    font-size: 14px;
    color: #333;
}

/* Серый "инпут" */
.mz-field__value {
    max-width: 50%;
    flex: 1;
    padding: 8px 12px;
    background: #f1f2f3;
    border: 1px solid #d5d7da;
    border-radius: 4px;
    color: #111;
    font-size: 14px;
    line-height: 20px;
    cursor: default;
    user-select: text;
    min-height: 36px;
    display: flex;
    align-items: center;
    opacity: 0.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}
.close{
    background: #33333300;
    border: none;
    padding: 1rem;
    margin: -3rem -1rem -1rem auto;
    color: #000;
    text-decoration: none;
    opacity: .75;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
}
.mz-btn.mz-btn--green {
    background: #4aa557;
}
@keyframes fadeInUp {
    from { transform: translateY(15px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Заголовок */
.mz-modal__inner h3 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
}

/* Поля */
.mz-field {
    margin-bottom: 14px;
    font-size: 16px;
    color: #333;
}

.mz-field span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Нижняя полоса с кнопками */
.mz-modal__actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Общая кнопка */
.mz-btn {
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    background: #e3e3e3;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}

.mz-btn:hover {
    background: #d5d5d5;
}

/* Зеленая кнопка */
.mz-btn--green {
    background: #57ba63;
    color: #fff;
}

.mz-btn--green:hover {
    background: #4aa557;
}

.mz-mailbox__toolbar__two{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    /* border-radius: 12px 12px 0px 0; */
    padding: 8px 12px;
}
.href_mailbox{
    text-decoration: none;
    color: #363836;
}
.mz-mail {
    display: grid;
    text-decoration: none;

    grid-template-columns: 36px 36px 40px 1fr;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.mz-mailbox{display:grid;grid-template-columns:280px 1fr;gap:16px}
.mz-mailbox__sidebar{display:flex;flex-direction:column;gap:16px}
.mz-btn{    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;}
.mz-btn--primary{background:#2563eb;color:#fff;border-color:#2563eb}
.mz-btn--block{width:100%}
.mz-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.mz-card__title{padding:10px 12px;font-weight:700;border-bottom:1px solid #e5e7eb}
.mz-list{list-style:none;margin:0;padding:6px}
.mz-list__item{display:flex;justify-content:space-between;align-items:center;padding:10px;border-radius:10px;cursor:pointer}
.mz-list__item:hover{background:#f3f4f6}
.mz-list__item.is-active{background:#e8edff}
.mz-badge{background:#e5e7eb;border-radius:999px;padding:2px 8px;font-size:12px}
.mz-labels{list-style:none;margin:0;padding:8px 12px;display:grid;gap:8px}
.mz-label{display:inline-block;width:12px;height:12px;border-radius:999px;margin-right:6px;vertical-align:middle}
.mz-label--red{background:#ef4444}.mz-label--yellow{background:#f59e0b}.mz-label--blue{background:#3b82f6}
.mz-mailbox__content{display:flex;flex-direction:column;gap:12px}
.mz-mailbox__toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:8px 12px}
.mz-icon-btn{border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:6px 10px;margin-right:6px;cursor:pointer}
.mz-search{border:1px solid #e5e7eb;border-radius:999px;padding:8px 12px;min-width:260px}
.mz-mailbox__list{background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.mz-mail{display:grid;grid-template-columns:36px 36px 40px 1fr;gap:10px;padding:12px;border-bottom:1px solid #f1f5f9;align-items:center}
.mz-mail:last-child{border-bottom:none}
.mz-mail__content{display:flex;flex-direction:column;gap:6px}
.mz-mail__row{max-width: 1000px;
    display: flex;
    text-decoration: none;
    justify-content: space-evenly;
    gap: 10px;
    width: 700px;}
.mz-from{font-weight:700}
.mz-date{opacity:.7;white-space:nowrap; color: #000000}
.mz-subject{font-weight:600; color: #000000}
.mz-snippet{opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; color: #000000}
.mz-star{background:none;border:none;font-size:18px;cursor:pointer;opacity:.4}
.mz-star.is-on{opacity:1;color:#f59e0b}
.mz-avatar{width:36px;height:36px;border-radius:999px;border:1px solid #e5e7eb;
    display: none;}
.mz-attach{margin-left:6px}
.mz-empty{padding:24px;text-align:center;color:#6b7280}
.mz-pagination{display:flex;gap:6px;justify-content:flex-end;margin-top:10px}
.mz-page{border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}
.mz-page.is-active{background:#2563eb;color:#fff;border-color:#2563eb}

/* Responsive */
@media (max-width: 960px){
    .mz-mailbox{grid-template-columns:1fr; }
    .mz-mailbox__sidebar{order:2}
}

.mz-compose{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:20px;
}

/* SIDEBAR */
.mz-compose__sidebar{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.mz-btn{

    padding:8px 14px;
    border-radius:4px;
    border:1px solid #e5e7eb;
    background:#f8fafc;
    cursor:pointer;
    text-decoration:none;
    gap: 5px;
    justify-content: center;
    display: flex;
    align-items: center;
    text-align:center;
    font-size:14px;
}
.mz-btn--primary{
    background:#3c8dbc;
    color:#fff;
    border-color:#367fa9;
    display: flex!important;
    gap: 5px;
    justify-content: center;
    align-items: center;

}
.mz-btn--block{width:100%}

.mz-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:4px;
    box-shadow:0 1px 1px rgba(0,0,0,.05);
}
.mz-card__title {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.left_bot{
    display: flex;
}
.btn.btn-default{
    display: flex;
    cursor: pointer;
    background-color: #e9ecef;
    color: #2b2b2b;
    border-color: #ddd;
    text-decoration: none;
    /* display: inline-block; */
    font-weight: 400;
    border: 1px solid transparent;
    gap: 6px;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    justify-content: center;
    align-items: center;
}
#mz-compose-form{
    padding:12px 15px 15px;
}

.mz-list{
    list-style:none;
    margin:0;
    padding:6px 0;
}
.mz-list__item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 12px;
    font-size:14px;
}
.mz-badge{
    background:#e5e7eb;
    border-radius:999px;
    padding:2px 8px;
    font-size:12px;
}

.mz-labels{
    list-style:none;
    margin:0;
    padding:8px 12px 12px;
    display:grid;
    gap:6px;
    font-size:14px;
}
.mz-label{
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:999px;
    margin-right:6px;
    vertical-align:middle;
}
.mz-label--red{background:#dd4b39;}
.mz-label--yellow{background:#f39c12;}
.mz-label--blue{background:#0073b7;}

/* CONTENT */

.mz-compose__content{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.mz-field{
    margin-bottom:8px;
}
.mz-field label{
    display:block;
    font-size:13px;
    color:#6b7280;
    margin-bottom:3px;
}
.mz-input{
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.mz-input:focus,
.mz-input:active {
    outline: none;
    border-color: #2563eb;          /* цвет рамки при фокусе */
    box-shadow: 0 0 0 2px rgba(37,99,235,.15); /* лёгкая подсветка, можно убрать */
}

/* обёртка редактора */
.mz-editor{
    border-radius: .25rem;
    border: 1px solid #00000032;
    width: 100%;
    height: 350px;
    min-width: 350px;
    min-height: 100px;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    margin-bottom: 1rem;
    margin-top:8px;
}
.bxhtmled-nav-cnt{
    display: none;
}
.bxhtmled-taskbar-cnt.bxhtmled-taskbar-hidden{
    display: none;
}
.bxhtmled-toolbar{
    background: #8080801d;
}
/* вложенный CHTMLEditor слегка скруглим */
.mz-editor .bxhtmled-toolbar-cnt{
    border-radius:4px 4px 0 0;
}
.mz-editor .bxhtmled-area-cnt{
    border-radius:0 0 4px 4px;
}

.mz-attach{
    margin-top:10px;
    font-size:13px;
    color:#6b7280;
}
.mz-attach-title{
    font-weight:500;
}
.mz-attach input[type="file"]{
    display:block;
    margin-top:6px;
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* user-select: none; */
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.mz-btn--primary {
    background: #3c8dbc;
    color: #fff;
    border-color: #367fa9;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: none;
    display: inline-block;
    font-weight: 400;
    /* color: #212529; */
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* background-color: transparent; */
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;}
.mz-attach-note{
    margin-top:4px;
    font-size:12px;
    color:#9ca3af;
}

/* кнопки внизу справа */
.mz-actions{
    display:flex;
    gap:8px;
    margin-top:12px;
    padding-top:10px;
    border-top:1px solid #e5e7eb;
}
.mz-actions--right{
    justify-content: space-between;
    padding: .75rem 1.25rem;
    background-color: rgba(0, 0, 0, .03);
    border-top: 0 solid rgba(0, 0, 0, .125)
}
.mz-compose__content{
    border-top: 3px solid #2563eb;
    border-radius: 6px;
}
@media (max-width:960px){
    .mz-compose{
        grid-template-columns:1fr;
    }
}
