.expand-mayan-document {
    padding-top: 27px;
    padding-bottom: 27px;
    padding-right: 17px;
    padding-left: 17px;
    margin: auto;
    margin-bottom: 50px;
    margin-top: 50px;
    display: table-row;
    background-color: #ededed;
}

.expand-preview-image {
    display: flex;
}

.expand-preview-image img {
    max-height: 375px;
    margin: auto;
}

.expand-document-label {
    text-align: center;
    font-size: 14px;
    padding-top: 17px;
    font-weight: 700;
}

.expand-document-view {
    text-align: center;
}

.expand-mayan-5050 {
    display: inline-block;
    width: 47%;
    margin-right: 3%;
}

/* Advanced Pagination Styles */
.okc-advanced-pagination {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.okc-pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.okc-results-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.okc-per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.okc-per-page-selector label {
    font-size: 13px;
    color: #495057;
    margin: 0;
}

.okc-per-page-selector select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

.okc-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.okc-page-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #495057;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
}

.okc-page-btn:hover:not(.disabled):not(.okc-current-page) {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.okc-page-btn.okc-current-page {
    background: #495057;
    border-color: #495057;
    color: white;
    cursor: default;
}

.okc-page-btn.disabled {
    background: #f8f8f8;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
}

.okc-ellipsis {
    padding: 8px 4px;
    color: #999;
    font-weight: 500;
}

.okc-jump-to-page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.okc-jump-to-page label {
    font-size: 13px;
    color: #495057;
    margin: 0;
}

.okc-jump-to-page input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

.okc-jump-to-page button {
    padding: 6px 16px;
    background: #495057;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.okc-jump-to-page button:hover {
    background: #343a40;
}

/* Slim Pagination Styles */
.okc-slim-pagination {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 20px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.okc-slim-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.okc-slim-results-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.okc-slim-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.okc-slim-btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
    border-radius: 4px;
}

.okc-slim-page-info {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
    padding: 0 8px;
}

/* Cabinet Styles */
.okc-cabinets-simple {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.okc-cabinets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.okc-cabinets-list li {
    margin: 8px 0;
}

.okc-cabinets-list a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.okc-cabinets-list a:hover {
    color: #333;
    text-decoration: underline;
}

.okc-cabinet-count {
    color: #666;
    font-weight: normal;
}

.okc-cabinets-loading, .okc-cabinets-error, .okc-cabinets-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.okc-cabinets-error {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
}

/* Legacy pagination styles for backwards compatibility */
.expand_okc_pagination {
    text-align: center;
    margin-top: 20px;
}

.expand_okc_pagination a {
    margin: 0 5px;
    text-decoration: none;
    cursor: pointer;
}

.expand-mayan-view-document {
    text-align: center;
}

.expand_okc_pagination_wrapper {
    clear: both;
}

.okc-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

.okc-error {
    text-align: center;
    padding: 20px;
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    margin: 20px 0;
}

.okc-controls {
    margin: 20px 0;
    text-align: center;
}

.okc-controls input, .okc-controls button {
    margin: 5px;
    padding: 8px 12px;
}

.okc-document-link[data-doc-id] {
    cursor: pointer;
}

/* SVG Placeholder Styles */
.okc-svg-placeholder {
    width: 100%;
    max-width: 300px;
    height: 375px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
}

.okc-svg-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 10px;
}

.okc-svg-placeholder .placeholder-text {
    color: #999;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .okc-pagination-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .okc-pagination-nav {
        gap: 3px;
    }
    
    .okc-page-btn {
        padding: 6px 8px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .okc-jump-to-page {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .okc-slim-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .okc-slim-nav {
        gap: 8px;
    }
}

/* Debug Log Viewer Styles */
.okc-debug-log-viewer {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.okc-debug-log-viewer h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.okc-debug-log-viewer pre {
    margin: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Settings Page Styles */
.okc-settings-page .rwmb-field {
    margin-bottom: 20px;
}

.okc-settings-page .rwmb-heading {
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.okc-settings-page .rwmb-switch {
    margin-top: 5px;
}

.okc-settings-page .rwmb-select {
    width: 200px;
}

.okc-settings-page .rwmb-number {
    width: 100px;
}

.okc-settings-page .rwmb-description {
    margin-top: 5px;
    color: #666;
    font-style: italic;
}
