/* Reusable image crop/rotate editor overlay (rcm-image-editor.js). Light theme, square buttons. */
.rie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}
.rie-modal {
    background: #fff;
    width: 92%;
    max-width: 760px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.rie-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
}
.rie-title { font-weight: 600; color: #333; }
.rie-x { cursor: pointer; font-size: 22px; line-height: 1; color: #888; }
.rie-x:hover { color: #333; }
.rie-stage {
    flex: 1 1 auto;
    min-height: 240px;
    max-height: 58vh;
    background: #f5f5f5;
    overflow: hidden;
}
.rie-stage .rie-img { max-width: 100%; display: block; }
.rie-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 14px;
    border-top: 1px solid #f0f0f0;
}
.rie-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}
.rie-footer-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rie-footer-actions { display: flex; gap: 8px; margin-left: auto; }
.rie-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    height: 34px;
    border-radius: 4px;
}
.rie-btn:hover { background: #f5f5f5; }
.rie-save { background: #00AEEF; border-color: #00AEEF; color: #fff; }
.rie-save:hover { background: #0099d4; }
.rie-doctype, .rie-exp { height: 34px; border: 1px solid #ccc; padding: 4px 8px; font-size: 13px; color: #333; background: #fff; border-radius: 4px; }
