/**
 * msOrderEditor Styles
 */
 .msoe-catalog-frame {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.msoe-count-wrapper{
    display: flex;
    align-items: center;
}
.msoe-iframe-loader{
    padding: 15px;
}
.msoe-modal #lk_container{
    margin: 0 auto;
}
.order-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;   
}
.msoe-edit-btn {
    display: inline-block;
    color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    background: transparent;
    margin: 0;
    padding: 0;
}

.msoe-edit-btn:hover {
    color: #0069d9;
}

.msoe-edit-btn.msoe-edit-active {
    color: #6c757d;
}

.msoe-actions-header,
.msoe-actions-cell {
    text-align: center;
    width: 70px;
}

.msoe-count-input {
    max-width: 80px;
    padding: 4px 6px;
    text-align: center;
        border: 1px solid #e1e1e1;
    border-radius: 3px;
    margin-right: 5px;
}
.msoe-count-wrapper span.control_mn, .msoe-count-wrapper button.control_mn{
    padding: 3px;
}
.msoe-remove-item {
    border: none;
    background-color: #dc3545;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 5px;
    border-radius: 5px;
}
.msoe-remove-item:hover {
    background-color: #c82333;
}

.msoe-footer-row td {
    padding-top: 10px;
}

.msoe-add-item-btn,
.msoe-apply-btn,
.msoe-cancel-edit-btn {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.msoe-add-item-btn {
    background-color: #17a2b8;
    color: #fff;
}

.msoe-add-item-btn:hover {
    background-color: #138496;
}

.msoe-apply-btn {
    background-color: #28a745;
    color: #fff;
}

.msoe-apply-btn:hover {
    background-color: #218838;
}

.msoe-cancel-edit-btn {
    background-color: #6c757d;
    color: #fff;
}

.msoe-cancel-edit-btn:hover {
    background-color: #5a6268;
}

.msoe-apply-btn.msoe-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal */
.msoe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msoe-modal {
    background: #fff;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.msoe-modal-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msoe-modal-title {
    font-size: 16px;
    font-weight: 600;
}

.msoe-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.msoe-modal-body {
    padding: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.msoe-catalog-frame {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.msoe-modal-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.msoe-modal-done-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
}

.msoe-modal-done-btn:hover {
    background-color: #218838;
}

/* Сообщения */
.msoe-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 11000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: #17a2b8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.msoe-message.msoe-success {
    background-color: #28a745;
}

.msoe-message.msoe-error {
    background-color: #dc3545;
}

.msoe-message.msoe-fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

/* Тост внутри iframe каталога */
.msoe-iframe-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 13px;
    z-index: 9999;
}
