/*//==============//
// Resets & Basics // 
//==============//*/
h1 {
    margin: 0;
}


/*//==============//
// Radzen Component Overrides // 
//==============//*/

/* Radzen Tables - Auto layout für bessere Content-Anpassung */
div.my-radzen-table-default .rz-grid-table {
    table-layout: auto;
}

/* Radzen Tables - Pager-Zahlen ausblenden (nur Vor/Zurück Buttons) */
div.my-radzen-table-default .rz-pager-pages {
    display: none !important;
}

/* Radzen Notifications - Position unten rechts */
.rz-notification {
    position: fixed;
    right: 1rem;
    z-index: 1002;
    inset-block-start: auto;
}

/* Radzen Checkbox Validation */
.rz-chkbox.invalid {
    border: 1px solid red;
}


/*//==============//
// Utility Classes //
//==============//*/

/* Minimale Breite für Spalten (z.B. für Aktions-Buttons) */
.MinWidth {
    width: 1%;
}


/*//==============//
// File Upload Components //
//==============//*/

/* Upload Gruppierung Container */
.upload-group {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
}

.upload-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.upload-section {
    margin-bottom: 1rem;
}

.upload-section:last-child {
    margin-bottom: 0;
}

/* Uploader Input Component */
.oo-inputfile {
    position: relative;
    display: block;
}

.oo-inputfile input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.oo-inputfile--inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    pointer-events: none;
}

.oo-inputfile:hover .oo-inputfile--inner {
    border-color: #adb5bd;
    background-color: #e9ecef;
}

.oo-inputfile.drag-over .oo-inputfile--inner {
    border-color: #0d6efd;
    background-color: #cfe2ff;
}

.oo-inputfile--button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
}

.oo-inputfile--button-zusatztext {
    color: #6c757d;
    font-size: 0.875rem;
    pointer-events: none;
}

/* File Info Display */
.oo-inputfile--info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.oo-inputfile--info-dateiname {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    font-size: 0.875rem;
    color: #495057;
    word-break: break-all;
}

.oo-inputfile--info-dateiname:last-of-type {
    margin-bottom: 0.75rem;
}

.oo-inputfile--info-details {
    font-size: 0.8rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
}


/*//==============//
// File Preview & Actions //
//==============//*/

/* File Preview Wrapper */
.Preview--wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.Preview--wrapper:not(.DateinameEditierbar) .Preview--text {
    cursor: pointer;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    word-break: break-word;
    hyphens: auto;
}

.Preview--image-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.Preview--image {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    object-fit: contain;
}

.Preview--text {
    font-size: 1rem;
    color: #495057;
}

/* File Action Buttons */
.IconsWrapper {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 10px;
}

.IconsWrapper button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
}

.IconsWrapper button:hover {
    background: #c82333;
}


/*//==============//
// File Lists //
//==============//*/

.file-list-container {
    margin-bottom: 1rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
}

.file-list-container:empty {
    display: none;
}

.file-list-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.file-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item:hover {
    background: #f8f9fa;
}


/*//==============//
// Responsive Design //
//==============//*/

@media (max-width: 768px) {
    .oo-inputfile--inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .oo-inputfile--button {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .Preview--wrapper {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .IconsWrapper {
        margin-left: 0;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .upload-group {
        padding: 0.75rem;
    }

    .oo-inputfile--info-dateiname {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }
}
