.edit-post-layout.is-sidebar-opened .interface-interface-skeleton__sidebar {
    width: 280px;
}

.edit-post-sidebar {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.mayo-event-details {
    margin-top: 16px;
}

/* Shortcodes Documentation Styles */
.wrap {
    margin: 10px 20px 0 2px;
}

.mayo-docs .card {
    max-width: none;  /* Remove max-width restriction */
    padding: 20px;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* Add WordPress admin page title styling */
.wrap h1 {
    color: #1d2327;
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    padding: 9px 0 4px 0;
    line-height: 1.3;
}

.mayo-docs code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
}

.mayo-docs pre {
    background: #f6f7f7;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

.mayo-docs pre code {
    background: none;
    padding: 0;
}

.mayo-docs .widefat {
    margin: 15px 0;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c3c4c7;
}

.mayo-docs .widefat td,
.mayo-docs .widefat th {
    padding: 12px;
    border: 1px solid #c3c4c7;
}

.mayo-docs .widefat th {
    background: #f0f0f1;
    font-weight: 600;
}

.mayo-docs h2 {
    margin: 0 0 1em;
    padding: 0;
    color: #1d2327;
    font-size: 1.4em;
    font-weight: 600;
}

.mayo-docs h3 {
    margin: 1.5em 0 0.5em;
    color: #1d2327;
    font-size: 1.2em;
    font-weight: 600;
}

.mayo-docs .ul-disc {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.mayo-docs .ul-disc li {
    margin-bottom: 0.5em;
    line-height: 1.5;
}

/* Add responsive padding */
@media screen and (max-width: 782px) {
    .wrap {
        margin: 10px 12px 0 0;
    }
    
    .mayo-docs .card {
        padding: 15px;
    }
}

.mayo-sidebar-datetime {
    margin-bottom: 16px;
}

.mayo-sidebar-label {
    margin: 0 0 8px;
    font-weight: 600;
}

.mayo-sidebar-datetime-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mayo-sidebar-datetime-inputs .components-base-control {
    flex: 1;
    margin-bottom: 0 !important;
}

.mayo-sidebar-datetime-inputs .components-base-control__field {
    margin-bottom: 0 !important;
}

.mayo-sidebar-datetime-inputs input {
    height: 30px;
}

.mayo-recurring-interval {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mayo-recurring-interval .components-base-control {
    flex: 1;
    max-width: 100px;
}

.mayo-weekday-controls {
    margin: 16px 0;
}

.mayo-weekday-controls .components-base-control {
    margin-bottom: 8px;
}

.mayo-weekday-controls .components-base-control__label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.components-panel__body .components-base-control + .components-base-control {
    margin-top: 8px;
}

.mayo-monthly-pattern {
    margin: 16px 0;
}

.mayo-monthly-weekday {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.mayo-monthly-pattern .components-radio-control {
    margin-bottom: 16px;
}

.mayo-settings-wrapper {
    max-width: 800px;
    margin: 20px;
    padding: 20px;
}

.mayo-settings-notice {
    margin: 20px 0;
}

/* Add these new styles */
.mayo-attachments-section {
    padding: 8px 0;
}

.mayo-attachment-preview {
    margin-bottom: 16px;
}

.mayo-attachment-preview:last-child {
    margin-bottom: 0;
}

.description {
    color: #757575;
    font-style: italic;
    margin: 4px 0;
}

.mayo-invalid-url input {
    border-color: #cc1818;
}

.mayo-invalid-url .components-text-control__help {
    color: #cc1818;
}

/* Admin Styles */

/* CSS Classes Documentation Tabs */
.mayo-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.mayo-tab {
    padding: 10px 15px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
}

.mayo-tab.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.mayo-tab-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
}

.mayo-tab-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
}

.mayo-tab-content code {
    font-family: monospace;
}

.mayo-tab-content table {
    margin-bottom: 20px;
}

.mayo-tab-content h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mayo-tab-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.mayo-tab-content ul {
    margin-left: 20px;
}

.mayo-tab-content li {
    margin-bottom: 5px;
}

/* CSS Classes Documentation Styles */
.mayo-docs {
    max-width: 1200px;
    margin: 20px auto;
}

.mayo-docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mayo-docs-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mayo-docs-last-updated {
    color: #666;
    font-style: italic;
}

.mayo-example {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.mayo-example h4 {
    margin-top: 0;
    color: #1d2327;
}

.mayo-example pre {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
}

.mayo-example code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive styles for the documentation */
@media (max-width: 782px) {
    .mayo-docs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mayo-docs-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .mayo-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .mayo-tab {
        margin-right: 5px;
    }
} 

.mayo-external-sources-list {
    margin-bottom: 20px;
}

.mayo-external-source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: #fff;
}

.mayo-external-source-info {
    flex: 1;
}

.mayo-external-source-details {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.mayo-external-source-details span {
    margin-right: 15px;
}

.mayo-source-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.mayo-source-status.enabled {
    background: #d4edda;
    color: #155724;
}

.mayo-source-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.mayo-external-source-actions {
    display: flex;
    gap: 10px;
}

.mayo-external-source-form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.mayo-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.mayo-add-source-button {
    margin-top: 20px !important;
}

.mayo-source-id-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mayo-source-id {
    font-family: monospace;
    color: #2271b1;
    font-size: 12px;
    background: #f0f7fc;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #c5d9ed;
    user-select: all;
}

.mayo-copy-id {
    display: inline-flex;
    align-items: center;
    padding: 2px 4px;
    background: none;
    border: 1px solid #c5d9ed;
    border-radius: 3px;
    cursor: pointer;
    color: #2271b1;
}

.mayo-copy-id:hover {
    background: #f0f7fc;
}

/* Recurring Indicator Styles */
.recurring-indicator {
    color: #0073aa;
    font-size: 11px;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* Copy button styling */
.row-actions .copy {
    color: #0073aa;
}

.row-actions .copy:hover {
    color: #005177;
}

/* Skipped Occurrences Management Styles */
.mayo-skipped-occurrences-list {
    margin-bottom: 16px;
}

.mayo-skipped-occurrence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
}

.mayo-skipped-occurrence-item span {
    flex: 1;
    margin-right: 8px;
}

.mayo-add-skip-form {
    margin-top: 12px;
}

.mayo-add-skip-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mayo-add-skip-actions .components-button {
    flex: 1;
}

/* Subscription Preferences */
.mayo-subscription-section {
    margin-bottom: 24px;
}

.mayo-subscription-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.mayo-checkbox-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 12px 16px;
    max-height: 300px;
    overflow-y: auto;
}

.mayo-checkbox-list .components-base-control {
    margin-bottom: 4px !important;
}

.mayo-checkbox-list .components-base-control:last-child {
    margin-bottom: 0 !important;
}

.mayo-checkbox-list .components-checkbox-control__label {
    font-size: 13px;
    line-height: 1.4;
}

/* Service Body Tree Styles */
.mayo-service-body-tree {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.mayo-tree-item {
    position: relative;
    padding: 2px 12px 2px 16px;
    transition: background-color 0.15s ease;
}

.mayo-tree-item:hover {
    background-color: #f0f0f1;
}

.mayo-tree-item .components-checkbox-control__label {
    font-size: 13px;
}

.mayo-tree-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
}

.mayo-tree-item:hover::before {
    background: #2271b1;
}

.mayo-settings-description {
    color: #646970;
    margin-bottom: 20px;
}

/* Subscribers Page Styles */
.mayo-subscriber-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.mayo-status-active {
    background: #d4edda;
    color: #155724;
}

.mayo-status-pending {
    background: #fff3cd;
    color: #856404;
}

.mayo-status-unsubscribed {
    background: #f8d7da;
    color: #721c24;
}

.mayo-prefs-expanded-row td {
    padding: 0 !important;
}

.mayo-prefs-expanded-row td > div:first-child {
    padding-top: 0;
}