@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.7t9tbfaemk.bundle.scp.css';
@import '_content/Toolbelt.Blazor.SplitContainer/Toolbelt.Blazor.SplitContainer.bundle.scp.css';

/* /Component/DocumentEditorModal.razor.rz.scp.css */
/* DocumentEditorModal Styles */

/* Modal Overlay */
.editor-modal-overlay[b-3n0lbyxsz5] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: editorFadeIn-b-3n0lbyxsz5 0.2s ease-out;
}

.editor-modal-container[b-3n0lbyxsz5] {
    background: #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: editorSlideUp-b-3n0lbyxsz5 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 99vh;
    width: 98vw;
}

/* Modal Header */
.editor-modal-header[b-3n0lbyxsz5] {
    height: 64px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.editor-modal-title[b-3n0lbyxsz5] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder[b-3n0lbyxsz5] {
    background: #e8f0fe;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-title[b-3n0lbyxsz5] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.modal-sub-title[b-3n0lbyxsz5] {
    font-size: 13px;
    color: #5f6368;
    margin-top: 2px;
}

.editor-modal-actions[b-3n0lbyxsz5] {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary-action-header[b-3n0lbyxsz5] {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary-action-header:hover:not(:disabled)[b-3n0lbyxsz5] {
    background: #1557b0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-outline-action-header[b-3n0lbyxsz5] {
    background: #fff;
    color: #5f6368;
    border: 1px solid #dadce0;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-action-header:hover[b-3n0lbyxsz5] {
    background: #f8f9fa;
    border-color: #bdc1c6;
}

.btn-icon-action-header[b-3n0lbyxsz5] {
    background: transparent;
    border: 1px solid #dadce0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon-action-header:hover[b-3n0lbyxsz5] {
    background: #f1f3f4;
    border-color: #bdc1c6;
    color: #202124;
}

.header-divider[b-3n0lbyxsz5] {
    width: 1px;
    height: 32px;
    background: #e0e0e0;
    margin: 0 4px;
}

.btn-primary-action[b-3n0lbyxsz5] {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary-action:hover[b-3n0lbyxsz5] {
    background: #1557b0;
    transform: translateY(-1px);
}

.btn-outline-action[b-3n0lbyxsz5] {
    background: #fff;
    color: #5f6368;
    border: 1px solid #dadce0;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-action:hover[b-3n0lbyxsz5] {
    background: #f1f3f4;
    border-color: #bdc1c6;
}

.btn-icon-close[b-3n0lbyxsz5] {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-close:hover[b-3n0lbyxsz5] {
    background: rgba(0, 0, 0, 0.05);
    color: #202124;
}

.editor-modal-body[b-3n0lbyxsz5] {
    flex: 1;
    overflow: hidden;
}

.editor-layout[b-3n0lbyxsz5] {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.editor-main[b-3n0lbyxsz5] {
    flex: 1;
    background: #f0f2f5;
    padding: 40px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    scrollbar-gutter: stable;
}

.editor-paper[b-3n0lbyxsz5] {
    width: 100%;
    background: #ffffff;
    padding: 40px;
    min-height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

/* Sidebar Styling */
.editor-sidebar[b-3n0lbyxsz5] {
    width: 320px;
    background: #ffffff;
    border-left: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.05);
}

.sidebar-scroll-content[b-3n0lbyxsz5] {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Shared Sidebar Section Styles */
[b-3n0lbyxsz5] .sidebar-section {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

[b-3n0lbyxsz5] .sidebar-section-header {
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-3n0lbyxsz5] .info-row {
    margin-bottom: 8px;
    font-size: 13px;
}

[b-3n0lbyxsz5] .info-row-group {
    display: flex;
    gap: 20px;
}

[b-3n0lbyxsz5] .info-row-group .info-row {
    flex: 1;
}

[b-3n0lbyxsz5] .info-label {
    color: #5f6368;
    font-size: 12px;
    margin-bottom: 2px;
}

[b-3n0lbyxsz5] .info-value {
    color: #202124;
    font-weight: 500;
    word-break: break-word;
}

[b-3n0lbyxsz5] .empty-text {
    font-size: 13px;
    color: #9aa0a6;
    font-style: italic;
}

[b-3n0lbyxsz5] .section-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5f6368;
}

/* History Timeline */
[b-3n0lbyxsz5] .history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

[b-3n0lbyxsz5] .history-item {
    display: flex;
    gap: 10px;
    position: relative;
}

[b-3n0lbyxsz5] .history-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 20px;
    bottom: -20px;
    width: 1px;
    background: #e0e0e0;
}

[b-3n0lbyxsz5] .history-item:last-child::before {
    display: none;
}

[b-3n0lbyxsz5] .history-dot {
    width: 9px;
    height: 9px;
    background: #bdc1c6;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    z-index: 1;
}

[b-3n0lbyxsz5] .history-dot.active {
    background: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

[b-3n0lbyxsz5] .history-content {
    font-size: 13px;
}

[b-3n0lbyxsz5] .history-time {
    font-size: 11px;
    color: #5f6368;
    margin-bottom: 2px;
}

[b-3n0lbyxsz5] .history-desc {
    color: #202124;
    line-height: 1.4;
}

/* Signature Styles */
[b-3n0lbyxsz5] .signature-item {
    background: #f8f9fa;
    border: 1px dashed #dadce0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

[b-3n0lbyxsz5] .signature-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

[b-3n0lbyxsz5] .status-valid {
    background: #e6f4ea;
    color: #137333;
}

/* Loading and Empty States */
.editor-loading[b-3n0lbyxsz5],
.editor-empty[b-3n0lbyxsz5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #5f6368;
    gap: 16px;
}

.spinner[b-3n0lbyxsz5] {
    width: 40px;
    height: 40px;
    border: 3px solid #e8eaed;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: editorSpin-b-3n0lbyxsz5 0.8s linear infinite;
}

.spinner-small[b-3n0lbyxsz5] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: editorSpin-b-3n0lbyxsz5 0.8s linear infinite;
}

.spinner-small-white[b-3n0lbyxsz5] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: editorSpin-b-3n0lbyxsz5 0.8s linear infinite;
}

/* Saving Overlay */
.saving-overlay[b-3n0lbyxsz5] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    animation: editorFadeIn-b-3n0lbyxsz5 0.2s ease-out;
}

.saving-content[b-3n0lbyxsz5] {
    background: #fff;
    padding: 32px 48px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.saving-spinner[b-3n0lbyxsz5] {
    width: 48px;
    height: 48px;
    border: 4px solid #e8eaed;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: editorSpin-b-3n0lbyxsz5 0.8s linear infinite;
}

.saving-text[b-3n0lbyxsz5] {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

/* Toast Notification */
.toast-notification[b-3n0lbyxsz5] {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: toastSlideDown-b-3n0lbyxsz5 0.3s ease-out;
    max-width: 90vw;
}

.toast-notification.success[b-3n0lbyxsz5] {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #137333;
}

.toast-notification.error[b-3n0lbyxsz5] {
    background: #fce8e6;
    border: 1px solid #ea4335;
    color: #c5221f;
}

.toast-icon[b-3n0lbyxsz5] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message[b-3n0lbyxsz5] {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close[b-3n0lbyxsz5] {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.toast-close:hover[b-3n0lbyxsz5] {
    opacity: 1;
}

@keyframes toastSlideDown-b-3n0lbyxsz5 {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes editorFadeIn-b-3n0lbyxsz5 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes editorSpin-b-3n0lbyxsz5 {
    to { transform: rotate(360deg); }
}

@keyframes editorSlideUp-b-3n0lbyxsz5 {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error Report Modal Styles */
.error-report-modal-overlay[b-3n0lbyxsz5] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(2px);
    animation: editorFadeIn-b-3n0lbyxsz5 0.2s ease-out;
}

.error-report-modal[b-3n0lbyxsz5] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14);
    width: 480px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: editorSlideUp-b-3n0lbyxsz5 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.error-report-header[b-3n0lbyxsz5] {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-report-header h4[b-3n0lbyxsz5] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.btn-close-modal[b-3n0lbyxsz5] {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close-modal:hover[b-3n0lbyxsz5] {
    background: #f1f3f4;
}

.error-report-body[b-3n0lbyxsz5] {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.error-report-body .form-group[b-3n0lbyxsz5] {
    margin-bottom: 20px;
}

.error-report-body .form-group:last-child[b-3n0lbyxsz5] {
    margin-bottom: 0;
}

.error-report-body label[b-3n0lbyxsz5] {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.error-report-body .required[b-3n0lbyxsz5] {
    color: #d93025;
}

.error-report-body .form-select[b-3n0lbyxsz5],
.error-report-body .form-textarea[b-3n0lbyxsz5] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    color: #202124;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.error-report-body .form-select:focus[b-3n0lbyxsz5],
.error-report-body .form-textarea:focus[b-3n0lbyxsz5] {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.error-report-body .form-textarea[b-3n0lbyxsz5] {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.context-info[b-3n0lbyxsz5] {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.context-info label[b-3n0lbyxsz5] {
    margin-bottom: 12px;
    color: #5f6368;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.context-detail[b-3n0lbyxsz5] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.context-row[b-3n0lbyxsz5] {
    display: flex;
    gap: 8px;
}

.context-label[b-3n0lbyxsz5] {
    color: #5f6368;
    font-size: 13px;
    min-width: 80px;
}

.context-value[b-3n0lbyxsz5] {
    color: #202124;
    font-size: 13px;
    font-weight: 500;
    word-break: break-word;
}

.error-report-footer[b-3n0lbyxsz5] {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.error-report-footer .btn-cancel[b-3n0lbyxsz5] {
    background: #fff;
    color: #5f6368;
    border: 1px solid #dadce0;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.error-report-footer .btn-cancel:hover[b-3n0lbyxsz5] {
    background: #f8f9fa;
    border-color: #bdc1c6;
}

.error-report-footer .btn-submit[b-3n0lbyxsz5] {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.error-report-footer .btn-submit:hover:not(:disabled)[b-3n0lbyxsz5] {
    background: #1557b0;
}

.error-report-footer .btn-submit:disabled[b-3n0lbyxsz5] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   TABLET LANDSCAPE (1024px - 1366px)
   ======================================== */
@media (max-width: 1366px) {
    .editor-modal-container[b-3n0lbyxsz5] {
        width: 99vw;
        height: 99vh;
        border-radius: 8px;
    }

    .editor-sidebar[b-3n0lbyxsz5] {
        width: 280px;
    }

    .editor-main[b-3n0lbyxsz5] {
        padding: 24px 16px;
    }

    .editor-paper[b-3n0lbyxsz5] {
        padding: 32px;
    }

    [b-3n0lbyxsz5] .sidebar-section {
        padding: 16px;
    }

    [b-3n0lbyxsz5] .sidebar-section-header {
        font-size: 12px;
    }

    [b-3n0lbyxsz5] .info-row {
        font-size: 12px;
    }

    [b-3n0lbyxsz5] .info-label {
        font-size: 11px;
    }

    [b-3n0lbyxsz5] .history-content {
        font-size: 12px;
    }
}

/* ========================================
   TABLET PORTRAIT (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .editor-modal-container[b-3n0lbyxsz5] {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .editor-modal-header[b-3n0lbyxsz5] {
        height: 56px;
        padding: 0 16px;
    }

    .logo-placeholder[b-3n0lbyxsz5] {
        width: 36px;
        height: 36px;
    }

    .logo-placeholder svg[b-3n0lbyxsz5] {
        width: 20px;
        height: 20px;
    }

    .modal-main-title[b-3n0lbyxsz5] {
        font-size: 15px;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modal-sub-title[b-3n0lbyxsz5] {
        font-size: 11px;
        display: none;
    }

    .btn-primary-action-header[b-3n0lbyxsz5] {
        padding: 8px 14px;
        font-size: 13px;
    }

    .btn-primary-action-header span[b-3n0lbyxsz5] {
        display: none;
    }

    .btn-primary-action-header svg[b-3n0lbyxsz5] {
        width: 20px;
        height: 20px;
    }

    .btn-icon-action-header[b-3n0lbyxsz5] {
        width: 36px;
        height: 36px;
    }

    .btn-icon-action-header svg[b-3n0lbyxsz5] {
        width: 18px;
        height: 18px;
    }

    .editor-modal-actions[b-3n0lbyxsz5] {
        gap: 8px;
    }

    .editor-layout[b-3n0lbyxsz5] {
        flex-direction: column;
    }

    .editor-main[b-3n0lbyxsz5] {
        flex: 1;
        padding: 16px;
        order: 1;
    }

    .editor-paper[b-3n0lbyxsz5] {
        padding: 24px;
    }

    .editor-sidebar[b-3n0lbyxsz5] {
        width: 100%;
        height: 200px;
        max-height: 200px;
        border-left: none;
        border-top: 1px solid #dadce0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        order: 2;
        overflow: hidden;
    }

    .sidebar-scroll-content[b-3n0lbyxsz5] {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0;
        height: 100%;
    }

    [b-3n0lbyxsz5] .sidebar-section {
        min-width: 250px;
        max-width: 300px;
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid #f1f3f4;
        padding: 12px 16px 20px 16px;
        display: flex;
        flex-direction: column;
        height: 200px;
        max-height: 200px;
        box-sizing: border-box;
        overflow: hidden;
    }

    [b-3n0lbyxsz5] .sidebar-section-header {
        flex-shrink: 0;
        margin-bottom: 8px;
    }

    [b-3n0lbyxsz5] .history-list,
    [b-3n0lbyxsz5] .info-row:first-of-type ~ *,
    [b-3n0lbyxsz5] .signature-item:first-of-type ~ *,
    [b-3n0lbyxsz5] .empty-text {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    [b-3n0lbyxsz5] .history-list {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        padding-right: 4px;
    }
}

/* ========================================
   SMALL TABLET / LARGE PHONE (600px - 768px)
   ======================================== */
@media (max-width: 768px) {
    .editor-modal-header[b-3n0lbyxsz5] {
        height: 52px;
        padding: 0 12px;
        gap: 8px;
    }

    .editor-modal-title[b-3n0lbyxsz5] {
        gap: 8px;
    }

    .logo-placeholder[b-3n0lbyxsz5] {
        width: 32px;
        height: 32px;
    }

    .logo-placeholder svg[b-3n0lbyxsz5] {
        width: 18px;
        height: 18px;
    }

    .modal-main-title[b-3n0lbyxsz5] {
        font-size: 14px;
        max-width: 150px;
    }

    .editor-modal-actions[b-3n0lbyxsz5] {
        gap: 8px;
    }

    .btn-primary-action-header[b-3n0lbyxsz5] {
        padding: 8px 12px;
        border-radius: 8px;
        width: 36px;
        height: 36px;
    }

    .btn-icon-action-header[b-3n0lbyxsz5] {
        width: 36px;
        height: 36px;
    }

    .btn-icon-action-header svg[b-3n0lbyxsz5] {
        width: 18px;
        height: 18px;
    }

    .btn-icon-close[b-3n0lbyxsz5] {
        width: 36px;
        height: 36px;
    }

    .editor-main[b-3n0lbyxsz5] {
        padding: 12px;
    }

    .editor-paper[b-3n0lbyxsz5] {
        padding: 16px;
        border-radius: 0;
    }

    .editor-sidebar[b-3n0lbyxsz5] {
        height: auto;
        max-height: 50vh;
        overflow-y: auto;
    }

    .sidebar-scroll-content[b-3n0lbyxsz5] {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    [b-3n0lbyxsz5] .sidebar-section {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #f1f3f4;
        padding: 12px 12px 16px 12px;
        display: block;
        overflow: visible;
    }

    [b-3n0lbyxsz5] .sidebar-section-header {
        font-size: 11px;
        margin-bottom: 8px;
    }

    [b-3n0lbyxsz5] .history-list {
        max-height: 150px;
        overflow-y: auto;
        padding-right: 4px;
    }

    [b-3n0lbyxsz5] .info-row {
        font-size: 12px;
        margin-bottom: 6px;
    }

    [b-3n0lbyxsz5] .info-label {
        font-size: 10px;
    }

    [b-3n0lbyxsz5] .history-list {
        gap: 12px;
    }

    [b-3n0lbyxsz5] .history-content {
        font-size: 11px;
    }

    [b-3n0lbyxsz5] .history-time {
        font-size: 10px;
    }
}

/* ========================================
   PHONE (< 600px)
   ======================================== */
@media (max-width: 600px) {
    .editor-modal-header[b-3n0lbyxsz5] {
        height: 48px;
        padding: 0 10px;
    }

    .logo-placeholder[b-3n0lbyxsz5] {
        display: none;
    }

    .modal-main-title[b-3n0lbyxsz5] {
        font-size: 13px;
        max-width: 120px;
    }

    .editor-modal-actions[b-3n0lbyxsz5] {
        gap: 6px;
    }

    .btn-primary-action-header[b-3n0lbyxsz5] {
        width: 32px;
        height: 32px;
        padding: 6px;
        border-radius: 6px;
    }

    .btn-icon-action-header[b-3n0lbyxsz5] {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .btn-icon-action-header svg[b-3n0lbyxsz5] {
        width: 16px;
        height: 16px;
    }

    .btn-icon-close[b-3n0lbyxsz5] {
        width: 32px;
        height: 32px;
    }

    .header-divider[b-3n0lbyxsz5] {
        height: 24px;
        margin: 0 2px;
    }

    .editor-main[b-3n0lbyxsz5] {
        padding: 8px;
    }

    .editor-paper[b-3n0lbyxsz5] {
        padding: 12px;
    }

    .editor-sidebar[b-3n0lbyxsz5] {
        max-height: 55vh;
    }

    [b-3n0lbyxsz5] .sidebar-section {
        padding: 10px;
    }

    [b-3n0lbyxsz5] .info-row {
        font-size: 11px;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) and (orientation: landscape) {
    .editor-layout[b-3n0lbyxsz5] {
        flex-direction: row;
    }

    .editor-main[b-3n0lbyxsz5] {
        order: 1;
        flex: 1;
    }

    .editor-sidebar[b-3n0lbyxsz5] {
        order: 2;
        width: 280px;
        max-height: none;
        height: 100%;
        border-top: none;
        border-left: 1px solid #dadce0;
    }

    .sidebar-scroll-content[b-3n0lbyxsz5] {
        flex-direction: column;
    }

    [b-3n0lbyxsz5] .sidebar-section {
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f3f4;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .editor-sidebar[b-3n0lbyxsz5] {
        width: 240px;
    }

    [b-3n0lbyxsz5] .sidebar-section {
        padding: 10px 12px;
    }
}
