/* Careful fix for narrow organizer editor */

/* Main editor view should use full width */
#organizer-editor-view {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

#organizer-editor-view.active {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* The organizer editor container */
#organizer-editor-view .organizer-editor {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure editor layout maintains proper structure */
#organizer-editor-view .editor-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

/* Sidebar stays on left with fixed width */
#organizer-editor-view .editor-sidebar {
    width: 250px;
    flex-shrink: 0;
    order: 1; /* Ensure it's on the left */
}

/* Editor content takes remaining space */
#organizer-editor-view .editor-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    order: 2; /* Ensure it's on the right */
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Form sections use available width with padding */
#organizer-editor-view .form-sections {
    width: 100%;
    max-width: none; /* Remove max-width to allow full width usage */
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Form and form sections maintain full width */
#organizer-editor-view .organizer-form {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#organizer-editor-view .form-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Ensure parent containers don't restrict width */
#organizerManagementSection .organizer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix any flex issues */
#organizerManagementSection .view-panel {
    width: 100%;
}

#organizerManagementSection .view-panel.active {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

/* Ensure the editor content area uses full width */
.editor-content .organizer-form {
    width: 100% !important;
    max-width: 100% !important;
}

.editor-content .form-sections {
    width: 100% !important;
    max-width: none !important;
    padding-right: 20px !important; /* Add some padding on the right */
}

/* Remove any width restrictions from form sections */
.editor-content .form-section {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure banking info section uses full width */
#banking-info {
    width: 100% !important;
}

#banking-info #bank-accounts-container {
    width: 100% !important;
}