﻿/* ================================================== */
/* == NEW CLASSES FOR REPLACING INLINE STYLES      == */
/* ================================================== */

/* For the auto-refresh spinner icon */
.refresh-spinner {
    margin-left: 8px;
    color: #007bff;
    animation: spin 1s linear infinite;
}

/* General purpose icon styling */
.icon-margin-right {
    margin-right: 8px;
}

.icon-sync {
    margin-right: 8px;
    color: #17a2b8;
}

.icon-schedule {
    margin-right: 8px;
    color: #666;
}

.icon-history {
    margin-right: 8px;
    color: #6c757d;
}

.icon-instance-summary {
    margin-right: 8px;
    color: #17a2b8;
}

.icon-instance-computer {
    margin-right: 12px;
    font-size: 20px;
    color: #28a745;
}

.icon-success {
    margin-right: 8px;
    color: #28a745;
}

/* Utility class to remove padding */
.no-padding {
    padding: 0 !important; /* Important may be needed to override component defaults */
}


/* ================================================== */
/* == ORIGINAL STYLES MOVED FROM .RAZOR FILE       == */
/* ================================================== */

.instance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.instance-summary-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instance-summary-header {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.instance-summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.instance-list {
    display: flex;
    flex-direction: column;
}

.instance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease-in-out, border-left 0.3s ease-in-out;
    border-left: 4px solid transparent; /* Placeholder for the highlight */
}

    .instance-item:last-child {
        border-bottom: none;
    }

/* Highlight style for the running instance */
.instance-item--running {
    background-color: #e8f5e9; /* A light green background */
    border-left: 4px solid #4CAF50; /* A solid green left border */
}

.instance-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.instance-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instance-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instance-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.instance-item-footer {
    font-size: 0.9rem;
    color: #6c757d;
}

.dashboard-container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 20px;
}

.dashboard-rows {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.dashboard-row {
    width: 100%;
}


.dashboard-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    background: white;
}

    .dashboard-card:hover {
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.header-left {
    display: flex;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-content {
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 2rem; /* Add some space below the card */
}

.sync-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.value {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

.time-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.time-row {
    display: flex;
    align-items: flex-start;
}

.time-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

    .time-item:last-child {
        border-bottom: none;
    }

.time-label {
    font-weight: 600;
    color: #555;
}

.time-value {
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.error-message-inline {
    color: #e53e3e !important;
    font-weight: 500;
    word-break: break-word;
}

.stats-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-section {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

.error-content {
    flex: 1;
}

.error-title {
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 8px;
}

.error-text {
    color: #c53030;
    font-size: 0.9rem;
    word-break: break-word;
    line-height: 1.4;
}

.skip-section {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.skip-content {
    flex: 1;
}

.skip-title {
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 8px;
}

.skip-text {
    color: #f57c00;
    font-size: 0.9rem;
    word-break: break-word;
    line-height: 1.4;
}

/* Instances Status Styles */
.instances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.instance-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

    .instance-card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .instance-card.unreachable {
        border-color: #dc3545;
        background-color: #fff5f5;
    }

.instance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.instance-title {
    display: flex;
    align-items: center;
    flex: 1;
}

.instance-id {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.instance-status {
    flex-shrink: 0;
}

.instance-details {
    margin-bottom: 10px;
}

.instance-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85rem;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
    font-family: 'Courier New', monospace;
}

.instance-skip-info {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding: 8px;
    background-color: #fff8e1;
    border-radius: 4px;
    border-left: 3px solid #ff9800;
}

.skip-info-text {
    color: #f57c00;
    font-size: 0.8rem;
    font-weight: 500;
}

.instance-error-info {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    padding: 8px;
    background-color: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #e53e3e;
}

.error-info-text {
    color: #c53030;
    font-size: 0.8rem;
    line-height: 1.3;
    word-break: break-word;
}

.instance-error {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff5f5;
    border-radius: 4px;
    border: 1px solid #fed7d7;
}

    .instance-error .error-text {
        color: #c53030;
        font-size: 0.85rem;
    }

.instance-url {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.url-text {
    color: #6c757d;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.error-message {
    display: flex;
    align-items: flex-start;
    color: #e53e3e;
    font-weight: 500;
    padding: 30px;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    text-align: left;
    gap: 12px;
}

    .error-message .error-content {
        flex: 1;
    }

    .error-message .error-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: #e53e3e;
    }

    .error-message .error-details {
        font-size: 0.9rem;
        color: #c53030;
        line-height: 1.5;
    }

    .error-message .error-list {
        margin: 8px 0 12px 20px;
        padding: 0;
    }

        .error-message .error-list li {
            margin-bottom: 4px;
            color: #c53030;
        }

    .error-message .error-suggestion {
        margin-top: 12px;
        padding: 12px;
        background-color: #fef5e7;
        border: 1px solid #f6ad55;
        border-radius: 6px;
        color: #c05621;
        font-size: 0.85rem;
        font-style: italic;
    }

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-rows {
        gap: 15px;
    }


    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .instances-grid {
        grid-template-columns: 1fr;
    }

    .instance-summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .instance-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .instance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .instance-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}


.products-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    background-color: #e7f3ff; /* Light blue info background */
    border: 1px solid #b3d7ff;
}

.summary-text {
    margin: 0;
    color: #1565c0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: #004085; /* Darker blue text for better contrast */
}

.auto-deactivated-grid .product-name,
.auto-deactivated-grid .reason-text {
    font-size: 0.85rem;
    line-height: 1.3;
}


.loading-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    color: #666;
}

.full-grid {
    font-size: 0.9rem;
}

.reason-full {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
    color: #856404;
}

.compact-grid {
    font-size: 0.85rem;
}

.product-id-full,
.product-code-full {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-all;
    white-space: normal;
    line-height: 1.2;
    font-size: 0.75rem;
}

.product-id-full {
    color: #1976d2;
}

.product-code-full {
    color: #388e3c;
}

/* Sync Metadata Styles */
.sync-metadata-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #17a2b8;
}

.metadata-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .metadata-header h4 {
        margin: 0;
        color: #17a2b8;
        font-size: 1.1rem;
        font-weight: 600;
    }

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.metadata-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    color: #555;
}

.metadata-value {
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-align: right;
    color: #333;
}

/* Distributed Lock Styles */
.distributed-lock-card {
    border-left: 4px solid #6f42c1;
}

.lock-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.lock-overview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #6f42c1;
}

.lock-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lock-status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.instance-locks-section {
    margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

    .section-header h4 {
        margin: 0;
        color: #6f42c1;
        font-size: 1.1rem;
        font-weight: 600;
    }

.instance-locks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.instance-lock-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

    .instance-lock-card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .instance-lock-card.unreachable {
        border-color: #dc3545;
        background-color: #fff5f5;
    }

.instance-lock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.instance-lock-title {
    display: flex;
    align-items: center;
    flex: 1;
}

.lock-status {
    flex-shrink: 0;
}

.instance-lock-details {
    margin-bottom: 10px;
}

.lock-metadata {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #6f42c1;
}

.metadata-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.85rem;
}

.instance-lock-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85rem;
}

/* Instance Summary Styles */
.instances-summary-card {
    border-left: 4px solid #17a2b8;
}

.instance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
    align-items: start;
}

.instance-summary-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

    .instance-summary-item:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .instance-summary-item.unreachable {
        border-color: #dc3545;
        background-color: #fff5f5;
    }

.instance-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.instance-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.instance-summary-details {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 1.4;
}

/* Auto-Deactivated Products Table Styles */
.auto-deactivated-table {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.product-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
}

.product-ids {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tkval-value, .vfrm-value {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #6c757d;
}

.modified-date {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #6c757d;
}

.reason-cell {
    max-width: 300px;
}

.no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #28a745;
    font-weight: 500;
    background-color: #f8fff9;
    border: 1px solid #d4edda;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}

/* Auto-refresh animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Radzen DataGrid Customization --- */
/* We use the 'auto-deactivated-table' class to target this specific grid */
.auto-deactivated-table .rz-grid-header {
    background-color: #f8f9fa; /* Light gray header background */
}

.auto-deactivated-table .rz-grid-header-cell {
    padding: 12px 16px;
    font-weight: 600; /* Bolder header text */
    color: #495057;
    border-bottom: 2px solid #dee2e6; /* A stronger bottom border for the header */
    text-transform: uppercase; /* Optional: gives a more professional "dashboard" feel */
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

    /* Ensure header text color is applied correctly, overriding Radzen defaults */
    .auto-deactivated-table .rz-grid-header-cell .rz-column-title {
        color: #495057;
    }

/* Row and Cell Styling */
.auto-deactivated-table .rz-grid-table tbody tr {
    border-bottom: 1px solid #e9ecef; /* Lighter border between rows */
    transition: background-color 0.2s ease-in-out; /* Smooth hover transition */
}

    /* Remove the border from the very last row for a cleaner look */
    .auto-deactivated-table .rz-grid-table tbody tr:last-child {
        border-bottom: none;
    }

.auto-deactivated-table .rz-grid-table td {
    padding: 12px 16px;
    vertical-align: middle; /* Crucial for aligning badges and text nicely */
    color: #212529;
}

/* Zebra-striping for better readability (Radzen adds the rz-row-odd class) */
.auto-deactivated-table .rz-grid-table tbody .rz-row-odd {
    background-color: #fdfdfd; /* Very subtle striping */
}

/* Hover effect for data rows */
.auto-deactivated-table .rz-grid-table tbody tr:hover {
    background-color: #e9f5ff; /* A light blue hover effect */
}

/* Specific styling for the badge container cell to ensure alignment */
.auto-deactivated-table .rz-grid-table td .rz-badge {
    min-width: 70px; /* Ensures badges have a consistent width */
}
.yaslogostyle {
    text-decoration: none;
    height: 100%;
}
/*////////////////////////////////////////////////////*/
.autodeactmudicon {
    margin-right: 8px;
    color: #ff9800;
}
.autodeactprod {
    margin-right: 8px;
    color: #2196f3;
}

.auto-deactivated-products-dialog {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.header-content {
    display: flex;
    align-items: center;
}

.dialog-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px;
    flex: 1;
}

.products-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.products-grid {
    flex: 1;
    font-size: 0.9rem;
}

.product-id,
.product-code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-all;
    white-space: normal;
    line-height: 1.2;
}

.product-id {
    color: #1976d2;
}

.product-code {
    color: #388e3c;
}

.product-name {
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
}

.reason-text {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.editlocstyle {
    width: 100%;
    height: 360px;
    border: 1px dashed var(--mud-palette-lines-default);
    overflow: hidden;
    background-color: white;
    position: relative;
}
.editlocstyleframe {
    width: 100%;
    height: 100%;
    border: none;
}
.imgviewerstyle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.mudimgstyleimgviewer {
    width: 60%;
    object-fit: contain;
    border-radius: 0px;
}
.imgviewerstylediv {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 0px;
}
.imgviewermudlink {
    font-size: 13px;
}
.prodmstrstyle {
    padding: 1rem;
}
.prodmstrmudppr {
    min-height: 150px;
    max-height: 300px;
}
.prdmstmudtxt {
    color: var(--mud-palette-text-disabled);
    font-style: italic;
}
.prdmstrul {
    padding-left: 20px;
}
/*///////////////////////////*/

.custom-formatting-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if too many items */
}

.stepper-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .stepper-centered .mud-stepper-header {
        justify-content: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--mud-palette-divider);
        position: relative;
    }

        .stepper-centered .mud-stepper-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-lighten) 100%);
            border-radius: 1px;
        }

    .stepper-centered .mud-stepper-step {
        margin: 0 1rem;
    }

    .stepper-centered .mud-stepper-content {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        background: var(--mud-palette-background-grey);
        border-radius: 8px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* Enhanced stepper styling */
    .stepper-centered .mud-stepper-step-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1.1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

        .stepper-centered .mud-stepper-step-icon:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

    .stepper-centered .mud-stepper-step-text {
        margin-top: 0.5rem;
        font-weight: 500;
        text-align: center;
    }

    .stepper-centered .mud-stepper-connector {
        height: 2px;
        background: linear-gradient(90deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-lighten) 100%);
        margin: 0 1rem;
        flex: 1;
        min-width: 60px;
    }

    /* Navigation buttons separation */
    .stepper-centered .mud-stepper-nav {
        margin-top: 1.5rem;
        padding-top: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* Content area styling */
.step-content-area {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--mud-palette-lines-default);
}

/* Step separator */
.step-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--mud-palette-divider) 20%, var(--mud-palette-divider) 80%, transparent 100%);
    margin: 1rem 0;
}

/* Enhanced MudStepper Navigation Buttons */
.mud-card-actions.mud-stepper-actions {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid var(--mud-palette-divider);
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

    .mud-card-actions.mud-stepper-actions .mud-button {
        min-width: 120px;
        height: 42px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

        .mud-card-actions.mud-stepper-actions .mud-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        }

        .mud-card-actions.mud-stepper-actions .mud-button.mud-button-filled.mud-button-filled-secondary {
            background: linear-gradient(135deg, var(--mud-palette-secondary) 0%, var(--mud-palette-secondary-darken) 100%);
            color: white;
        }

        .mud-card-actions.mud-stepper-actions .mud-button.mud-button-filled.mud-button-filled-primary {
            background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%);
            color: white;
        }

        .mud-card-actions.mud-stepper-actions .mud-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

/* Responsive design for mobile */
@media (max-width: 600px) {
    .mud-card-actions.mud-stepper-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

        .mud-card-actions.mud-stepper-actions .mud-button {
            width: 100%;
            min-width: unset;
        }
}

/*//////////////*/
.prdmststylemudpprmudgrid {
    background-color: var(--mud-palette-background-grey);
}
.prdmststylemudpprmudgridnewstyles {
    background-color: var(--mud-palette-background-grey);
    max-height: 300px;
    overflow-y: auto;
}
.prdmstrmudpprmudimg {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 8px;
    border-radius: var(--mud-shape-borderRadius);
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.mudimgprdmstrmudpprmudppr {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--mud-shape-borderRadius);
}
.filenamemudtd {
    font-weight: 500;
    width: 150px;
}
.ordernostyle {
    font-weight: 500;
}
.thumbnailstylemudtd {
    word-break: break-all;
}
.mudpproutlineprdmstr {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 8px;
    border-radius: var(--mud-shape-borderRadius);
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mudimgprdmstviewstyle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--mud-shape-borderRadius);
}
.mudtxtprdmstviewstyle {
    word-break: break-all;
    font-size: 0.7rem;
}
/*//////////////*/
.mudpprprdmedia {
    width: 133px;
    height: 100px;
    aspect-ratio: 4/3;
    margin-right: 16px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mudimgprdmedia {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.mudtxtprdmediathumb {
    word-break: break-all;
}
.prdmediamudlistitem {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 4px;
}
.mudimgmediaprdstyle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.mudlistitemprdmediadiv {
    width: 100px;
    height: 75px;
    aspect-ratio: 4/3;
    margin-right: 16px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.muddialogprdvariant {
    max-width: 98vw;
    max-height: 98vh;
}
.cursor {
    cursor: pointer;
}
.actionsprdvariantsample {
    text-align: right;
    white-space: nowrap;
}
.themeparkprdmapstyle {
    max-height: 400px;
    overflow-y: auto;
}
.dadalabelactionvfm {
    text-align: right;
    white-space: nowrap;
}
.tkvalaction {
    text-align: right;
    white-space: nowrap;
}
.qrcategoryaction {
    text-align: right;
    white-space: nowrap;
}