/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-yyr585w2ez] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-yyr585w2ez] {
    flex: 1;
}

.sidebar[b-yyr585w2ez] {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #e8e8e8 100%);
}

.top-row[b-yyr585w2ez] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-yyr585w2ez]  a, .top-row[b-yyr585w2ez]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-yyr585w2ez]  a:hover, .top-row[b-yyr585w2ez]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-yyr585w2ez]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-yyr585w2ez] {
        justify-content: space-between;
    }

    .top-row[b-yyr585w2ez]  a, .top-row[b-yyr585w2ez]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-yyr585w2ez] {
        flex-direction: row;
    }

    /*.sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }*/

    .top-row[b-yyr585w2ez] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-yyr585w2ez]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-yyr585w2ez], article[b-yyr585w2ez] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-yyr585w2ez] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-yyr585w2ez] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/DatabaseManagement.razor.rz.scp.css */
.database-management[b-jjfmu1uvve] {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-header[b-jjfmu1uvve] {
    margin-bottom: 30px;
}

.page-header h3[b-jjfmu1uvve] {
    color: #333;
    font-weight: 600;
}

.page-header i[b-jjfmu1uvve] {
    color: #0d6efd;
    margin-right: 10px;
}

/* Collection Cards */
.collection-card[b-jjfmu1uvve] {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.collection-card:hover[b-jjfmu1uvve] {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.collection-icon[b-jjfmu1uvve] {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

.collection-card:hover .collection-icon[b-jjfmu1uvve] {
    color: #0d6efd;
}

.collection-info h6[b-jjfmu1uvve] {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Data Viewer Popup */
.db-data-backdrop[b-jjfmu1uvve] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.db-data-modal[b-jjfmu1uvve] {
    position: fixed;
    top: 5vh;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1055;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.db-data-modal-header[b-jjfmu1uvve] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.db-data-modal-body[b-jjfmu1uvve] {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.json-display[b-jjfmu1uvve] {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
    min-height: 100%;
}

/* Pipeline Stages */
.pipeline-stages[b-jjfmu1uvve] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stage-card[b-jjfmu1uvve] {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    background: white;
    transition: all 0.2s ease;
}

.stage-card:hover[b-jjfmu1uvve] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stage-lookup[b-jjfmu1uvve] {
    border-left: 4px solid #0d6efd;
}

.stage-unwind[b-jjfmu1uvve] {
    border-left: 4px solid #198754;
}

.stage-project[b-jjfmu1uvve] {
    border-left: 4px solid #ffc107;
}

.stage-match[b-jjfmu1uvve] {
    border-left: 4px solid #dc3545;
}

.stage-sort[b-jjfmu1uvve] {
    border-left: 4px solid #6f42c1;
}

.stage-limit[b-jjfmu1uvve] {
    border-left: 4px solid #20c997;
}

.stage-group[b-jjfmu1uvve] {
    border-left: 4px solid #fd7e14;
}

.stage-default[b-jjfmu1uvve] {
    border-left: 4px solid #6c757d;
}

.stage-header[b-jjfmu1uvve] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.stage-type[b-jjfmu1uvve] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.stage-type i[b-jjfmu1uvve] {
    font-size: 20px;
}

.stage-actions[b-jjfmu1uvve] {
    display: flex;
    gap: 5px;
}

.stage-body[b-jjfmu1uvve] {
    padding: 10px 0;
}

/* Wizard */
.wizard-section[b-jjfmu1uvve] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.wizard-section h6[b-jjfmu1uvve] {
    color: white;
    margin-bottom: 15px;
}

.wizard-section .btn-primary[b-jjfmu1uvve] {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.wizard-section .btn-primary:hover[b-jjfmu1uvve] {
    background: #f8f9fa;
}

.wizard-section .alert-info[b-jjfmu1uvve] {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.wizard-content .wizard-step[b-jjfmu1uvve] {
    margin-bottom: 30px;
}

/* Field Panels */
.field-panel[b-jjfmu1uvve] {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.panel-header[b-jjfmu1uvve] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
}

.panel-header small[b-jjfmu1uvve] {
    display: block;
    opacity: 0.8;
    font-size: 12px;
}

.field-list[b-jjfmu1uvve] {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.field-item[b-jjfmu1uvve] {
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-item:hover[b-jjfmu1uvve] {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.field-item.selected[b-jjfmu1uvve] {
    border-color: #0d6efd;
    background: #e7f1ff;
    font-weight: 600;
}

.field-item i[b-jjfmu1uvve] {
    color: #6c757d;
}

.field-item.selected i[b-jjfmu1uvve] {
    color: #0d6efd;
}

/* Field Checklist */
.field-checklist[b-jjfmu1uvve] {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.field-checklist .form-check[b-jjfmu1uvve] {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.field-checklist .form-check:hover[b-jjfmu1uvve] {
    background: white;
}

/* Empty State */
.empty-state[b-jjfmu1uvve] {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i[b-jjfmu1uvve] {
    opacity: 0.3;
}

/* Manual Section */
.manual-section[b-jjfmu1uvve] {
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .database-management[b-jjfmu1uvve] {
        padding: 10px;
    }

    .collection-card[b-jjfmu1uvve] {
        margin-bottom: 15px;
    }

    .stage-header[b-jjfmu1uvve] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stage-actions[b-jjfmu1uvve] {
        width: 100%;
        justify-content: flex-end;
    }

    .field-panel[b-jjfmu1uvve] {
        height: 300px;
    }
}

/* Scrollbar Styling */
.data-viewer[b-jjfmu1uvve]::-webkit-scrollbar,
.field-list[b-jjfmu1uvve]::-webkit-scrollbar,
.field-checklist[b-jjfmu1uvve]::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.data-viewer[b-jjfmu1uvve]::-webkit-scrollbar-track,
.field-list[b-jjfmu1uvve]::-webkit-scrollbar-track,
.field-checklist[b-jjfmu1uvve]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.data-viewer[b-jjfmu1uvve]::-webkit-scrollbar-thumb,
.field-list[b-jjfmu1uvve]::-webkit-scrollbar-thumb,
.field-checklist[b-jjfmu1uvve]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.data-viewer[b-jjfmu1uvve]::-webkit-scrollbar-thumb:hover,
.field-list[b-jjfmu1uvve]::-webkit-scrollbar-thumb:hover,
.field-checklist[b-jjfmu1uvve]::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Card Enhancements */
.card[b-jjfmu1uvve] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 12px;
}

.card-header[b-jjfmu1uvve] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

.card-header h5[b-jjfmu1uvve] {
    color: white;
    margin: 0;
}

.card-header .btn[b-jjfmu1uvve] {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.card-header .btn:hover[b-jjfmu1uvve] {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}
/* /Components/Pages/PrintLayoutDesigner.razor.rz.scp.css */
.print-designer[b-du8fp284pp] {
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.page-header[b-du8fp284pp] {
    margin-bottom: 30px;
}

.page-header h3[b-du8fp284pp] {
    color: #333;
    font-weight: 600;
}

.page-header i[b-du8fp284pp] {
    color: #dc2626;
    margin-right: 10px;
}

/* Layout Cards */
.layout-card[b-du8fp284pp] {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.layout-card:hover[b-du8fp284pp] {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.layout-card-header[b-du8fp284pp] {
    margin-bottom: 10px;
}

.layout-type-badge[b-du8fp284pp] {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.layout-type-invoice[b-du8fp284pp] {
    background: #dbeafe;
    color: #1e40af;
}

.layout-type-offer[b-du8fp284pp] {
    background: #d1fae5;
    color: #065f46;
}

.layout-type-letter[b-du8fp284pp] {
    background: #fce7f3;
    color: #9f1239;
}

.layout-type-deliverynote[b-du8fp284pp] {
    background: #e0e7ff;
    color: #4338ca;
}

.layout-type-custom[b-du8fp284pp] {
    background: #f3f4f6;
    color: #374151;
}

.layout-card h6[b-du8fp284pp] {
    margin: 0;
    font-weight: 600;
}

.layout-card-body[b-du8fp284pp] {
    flex: 1;
    margin-bottom: 10px;
}

.layout-meta[b-du8fp284pp] {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.layout-meta small[b-du8fp284pp] {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.layout-card-footer[b-du8fp284pp] {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* Template Cards */
.template-card[b-du8fp284pp] {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.template-card:hover[b-du8fp284pp] {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.template-icon[b-du8fp284pp] {
    font-size: 48px;
    color: #dc2626;
    margin-bottom: 15px;
}

.template-card h6[b-du8fp284pp] {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Designer Container */
.designer-container[b-du8fp284pp] {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.designer-toolbar[b-du8fp284pp] {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toolbar-section[b-du8fp284pp] {
    display: flex;
    gap: 10px;
    align-items: center;
}

.designer-workspace[b-du8fp284pp] {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    min-height: 700px;
}

/* Designer Panels */
.designer-panel[b-du8fp284pp] {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.designer-panel h6[b-du8fp284pp] {
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toolbox */
.toolbox-category[b-du8fp284pp] {
    margin-bottom: 20px;
}

.toolbox-label[b-du8fp284pp] {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.toolbox-items[b-du8fp284pp] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toolbox-item[b-du8fp284pp] {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbox-item:hover[b-du8fp284pp] {
    border-color: #dc2626;
    background: #fef2f2;
}

.toolbox-item i[b-du8fp284pp] {
    font-size: 20px;
    color: #dc2626;
}

.toolbox-item span[b-du8fp284pp] {
    font-size: 13px;
    font-weight: 500;
}

/* Canvas Container */
.designer-canvas-container[b-du8fp284pp] {
    display: flex;
    flex-direction: column;
}

.canvas-toolbar[b-du8fp284pp] {
    background: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.designer-canvas[b-du8fp284pp] {
    overflow: auto;
    background: #e5e7eb;
    padding: 40px;
    border-radius: 0 0 8px 8px;
}

.canvas-element[b-du8fp284pp] {
    background: rgba(220, 38, 38, 0.05);
    transition: all 0.2s ease;
}

.canvas-element:hover[b-du8fp284pp] {
    background: rgba(220, 38, 38, 0.1);
    z-index: 999;
}

.canvas-element.selected[b-du8fp284pp] {
    border: 2px solid #dc2626 !important;
    background: rgba(220, 38, 38, 0.15);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Properties Panel */
.property-group[b-du8fp284pp] {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.property-group:last-child[b-du8fp284pp] {
    border-bottom: none;
}

.property-label[b-du8fp284pp] {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.table-column-editor[b-du8fp284pp] {
    background: #f9fafb;
    padding: 8px;
    border-radius: 6px;
}

/* Empty States */
.empty-state[b-du8fp284pp] {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state i[b-du8fp284pp] {
    opacity: 0.3;
}

.empty-state h5[b-du8fp284pp] {
    color: #374151;
    margin-bottom: 8px;
}

.empty-state-small[b-du8fp284pp] {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state-small i[b-du8fp284pp] {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .designer-workspace[b-du8fp284pp] {
        grid-template-columns: 1fr;
    }

    .designer-panel[b-du8fp284pp] {
        max-height: 400px;
    }
}

/* Card Enhancements */
.card[b-du8fp284pp] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 12px;
}

.card-header[b-du8fp284pp] {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

.card-header h5[b-du8fp284pp] {
    color: white;
    margin: 0;
}

.card-header .btn[b-du8fp284pp] {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.card-header .btn:hover[b-du8fp284pp] {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Preview Modal */
.preview-modal-overlay[b-du8fp284pp] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn-b-du8fp284pp 0.2s ease;
}

.preview-modal[b-du8fp284pp] {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp-b-du8fp284pp 0.3s ease;
}

.preview-modal-header[b-du8fp284pp] {
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.preview-modal-header h5[b-du8fp284pp] {
    margin: 0;
    color: white;
}

.preview-modal-body[b-du8fp284pp] {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

@keyframes fadeIn-b-du8fp284pp {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp-b-du8fp284pp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wiki Content Styling */
.wiki-content[b-du8fp284pp] {
    max-width: 1000px;
}

.wiki-content h5[b-du8fp284pp] {
    color: #dc2626;
    font-weight: 600;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fecaca;
}

.example-box[b-du8fp284pp] {
    background: #f9fafb;
    border-left: 4px solid #dc2626;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
}

.example-box h6[b-du8fp284pp] {
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 15px;
}

.code-example[b-du8fp284pp] {
    background: #1f2937;
    color: #10b981;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.code-example code[b-du8fp284pp] {
    color: #fbbf24;
}

.result-example[b-du8fp284pp] {
    background: white;
    border: 2px solid #d1d5db;
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
}

.code-block[b-du8fp284pp] {
    background: #1f2937;
    color: #10b981;
    padding: 20px;
    border-radius: 8px;
    font-size: 12px;
    overflow-x: auto;
}
