#blazor-error-ui {
    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 {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    --rz-primary: #0078D4;
    --rz-primary-light: #E5F1FB;
    --rz-success: #6CC24A;
    --rz-warning: #FFB900;
    --rz-danger: #D13438;
    --rz-base-100: #FFFFFF;
    --rz-base-200: #F5F7FA;
    --rz-base-300: #EDEBE9;
    --rz-text-color: #323130;
    font-size: var(--rz-root-font-size);
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    /* background-color: var(--rz-body-background-color);*/
    background-color: #F5F7FA
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.app-footer {
    min-height: 24px;
    height: 24px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    color: #605E5C;
    border-top: 1px solid #E1DFDD;
    background-color: #F5F7FA;
}

@font-face {
    font-family: "Segoe UI";
    src: url("/fonts/LiberationSans-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Segoe UI";
    src: url("/fonts/LiberationSans-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: block;
}

@font-face {
    font-family: "Segoe UI";
    src: url("/fonts/LiberationSans-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Segoe UI";
    src: url("/fonts/LiberationSans-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    font-display: block;
}

.app-footer-text {
    font-size: 11px !important;
    line-height: 1 !important;
}
.layer-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.layer-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .layer-item:hover {
        background: #f5f5f5;
    }
.selected-layer {
    background: #dbeafe;
    font-weight: 600;
}

.sidebar-tool-button,
.sidebar-tool-button .rz-button-box,
.sidebar-tool-button .rz-button-text {
    font-size: 8px !important;
}

.designer-toolbar {
    min-height: 52px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.designer-toolbar .toolbar-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.designer-toolbar .toolbar-icon-group {
    padding: 2px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
}

.designer-toolbar .toolbar-divider {
    width: 1px !important;
    height: 28px !important;
    background: #e5e7eb !important;
}

.designer-toolbar .zoom-group {
    padding: 2px 4px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
}

.designer-toolbar .zoom-value {
    min-width: 56px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.compact-property-control,
.compact-property-control.rz-inputtext,
.compact-property-control.rz-spinner,
.compact-property-control.rz-numeric,
.compact-property-control.rz-dropdown {
    --rz-input-height: 24px;
    --rz-input-line-height: 18px;
    --rz-input-padding-block: 2px;
    --rz-input-padding-inline: 6px;
    --rz-dropdown-label-padding-block: 1px;
    --rz-dropdown-label-padding-inline: 6px 22px;
    --rz-dropdown-trigger-icon-width: 22px;
    --rz-dropdown-trigger-icon-height: 18px;
    --rz-dropdown-trigger-icon-margin-block: 2px;
    --rz-numeric-button-width: 18px;
    --rz-numeric-button-height: 10px;
    --rz-numeric-button-offset: 2px;
    min-height: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
}

.compact-property-control input,
.compact-property-control .rz-inputtext,
.compact-property-control.rz-inputtext,
.compact-property-control .rz-spinner-input,
.compact-property-control .rz-dropdown-label {
    min-height: 22px !important;
    height: 22px !important;
    padding-block: 1px !important;
    padding-inline: 6px 22px !important;
    font-size: 11px !important;
    line-height: 20px !important;
    display: block !important;
}

.compact-property-control .rz-spinner-button,
.compact-property-control .rz-spinner-up,
.compact-property-control .rz-spinner-down,
.compact-property-control .rz-dropdown-trigger {
    min-height: 22px !important;
    height: 22px !important;
    width: 22px !important;
    font-size: 11px !important;
}

.compact-property-control.multiline-text-area,
textarea.compact-property-control {
    height: auto !important;
    min-height: 54px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 16px !important;
    resize: vertical;
}

.compact-property-control .rz-numeric-button {
    width: 18px !important;
    height: 10px !important;
    min-height: 10px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dialog-root {
    padding: 0;
    background: #ffffff;
}

.dialog-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.dialog-section {
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dialog-section-compact {
    padding: 12px;
}

.dialog-tabs-section {
    padding: 10px 12px 12px;
}

.dialog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 10px;
}

.dialog-title,
.dialog-section-title {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.dialog-meta,
.dialog-section-meta {
    min-width: 0;
    max-width: min(40%, 320px);
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dialog-error {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.4;
}

.dialog-empty {
    padding: 14px 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

.dialog-tabs {
    min-width: 0;
}

.dialog-tabs .rz-tabview-nav {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 6px;
}

.dialog-tabs .rz-tabview-nav li {
    margin: 0;
}

.dialog-tabs .rz-tabview-nav li a {
    padding: 7px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dialog-tabs .rz-tabview-nav li.rz-tabview-selected a,
.dialog-tabs .rz-tabview-nav li a:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.dialog-tabs .rz-tabview-panels {
    padding: 0;
    border: 0;
    background: transparent;
}

.dialog-tab-pane {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog-tab-header {
    margin-bottom: 0;
}

.dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.dialog-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.dialog-toolbar-stacked {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
}

.dialog-toolbar-main {
    min-width: 0;
    flex: 1 1 520px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.dialog-toolbar-main-wide {
    width: 100%;
    flex: 1 1 auto;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.gs1-preflight-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
}

.gs1-preflight-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12px;
}

.gs1-preflight-summary .has-error strong { color: #b91c1c; }
.gs1-preflight-summary .has-warning strong { color: #b45309; }
.gs1-preflight-diagnostics { margin-top: 10px; }

@media (max-width: 720px) {
    .gs1-preflight-summary { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
}

.dialog-upload-groups {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 8px;
}

.dialog-upload-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.dialog-upload-group-title {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.dialog-upload-group-content {
    min-width: 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dialog-upload-status {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    color: #334155;
    font-size: 11px;
    line-height: 1.35;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.dialog-upload-status .rzi {
    flex: 0 0 auto;
    font-size: 16px;
}

.dialog-upload-status-selected,
.dialog-upload-status-uploading,
.dialog-upload-status-processing {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.dialog-upload-status-loaded {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.dialog-upload-status-needsinput {
    color: #92400e;
    border-color: #fcd34d;
    background: #fffbeb;
}

.dialog-upload-status-failed {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.dialog-upload-status-cancelled {
    color: #475569;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dialog-source-summary {
    max-width: min(70%, 560px);
}

.dialog-upload-delimiter {
    width: 170px;
}

.dialog-upload-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.dialog-upload-actions {
    display: flex;
    align-items: center;
}

.dialog-upload-parameters {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.dialog-upload-parameters .dialog-upload-delimiter {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
}

.dialog-upload-delimiter-control {
    width: 100%;
}

.dialog-upload-delimiter-required.rz-dropdown {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18) !important;
}

.dialog-toolbar-settings {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.dialog-toolbar-side {
    min-width: 0;
    flex: 0 1 auto;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 88px max-content;
    align-items: end;
    gap: 6px;
}

.dialog-toolbar-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dialog-toolbar-field-sm {
    width: 88px;
}

.dialog-toolbar-label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.dialog-toolbar-control {
    min-width: 0;
}

.dialog-toolbar-control-wide {
    width: 100%;
}

.dialog-toolbar-actions {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
}

.dialog-toolbar-status {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.compact-property-control .rz-numeric-button .rzi {
    width: 18px !important;
    height: 10px !important;
    font-size: 10px !important;
    line-height: 10px !important;
}

.compact-property-control .rz-numeric-up {
    top: 2px !important;
    bottom: auto !important;
}

.compact-property-control .rz-numeric-down {
    top: auto !important;
    bottom: 2px !important;
}

.geometry-properties-section {
    padding: 8px !important;
}

.geometry-properties-section .property-section-title {
    margin-bottom: 6px !important;
    font-size: 11px !important;
}

.geometry-properties-section .property-field {
    margin-bottom: 6px !important;
}

.geometry-properties-section .property-field:last-child,
.geometry-properties-section .geometry-grid .property-field {
    margin-bottom: 0 !important;
}

.geometry-properties-section .property-field label {
    margin-bottom: 3px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.geometry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.dialog-workflow .dialog-section {
    padding: 12px 14px;
}

.dialog-workflow .dialog-section-header {
    margin-bottom: 6px;
}

.dialog-upload-control {
    display: flex;
    align-items: center;
    width: auto;
}

.dialog-upload-control .rz-fileupload-buttonbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.dialog-upload-control .rz-button,
.dialog-toolbar-main .rz-button {
    min-width: 72px;
    height: 30px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dialog-upload-control .rz-button {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    min-width: 76px;
}

.dialog-upload-control .rz-fileupload-choose {
    min-width: 76px;
    height: 30px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
    border: 1px solid #cbd5e1 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    box-sizing: border-box;
}

.dialog-upload-control .rz-fileupload-choose .rz-button-box {
    width: 100%;
    height: 100%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dialog-upload-control .rz-button .rz-button-text,
.dialog-upload-control .rz-fileupload-choose .rz-button-text {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dialog-upload-control .rz-fileupload-content,
.dialog-upload-control .rz-message {
    display: none;
}

.dialog-action-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.dialog-toggle-active {
    border-color: #60a5fa !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14);
}

.dialog-fields-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dialog-field-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dialog-field-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.dialog-field-column-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dialog-field-column-title {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.dialog-field-count {
    min-width: 22px;
    padding: 2px 7px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.dialog-field-pane {
    min-height: 210px;
    max-height: 224px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fbfdff;
}

.dialog-source-field-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dialog-source-field-card,
.dialog-template-field-card {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 4px 6px !important;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
}

.dialog-template-field-card-unavailable {
    border-color: #fda4af;
    background: #fff1f2;
}

.dialog-field-unavailable {
    margin-top: 2px;
    color: #be123c;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.dialog-source-field-body,
.dialog-template-field-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dialog-source-field-name,
.dialog-template-field-card .dialog-field-chip-name {
    overflow: hidden;
    color: #0f172a;
    font-size: 9px !important;
    font-weight: 700;
    line-height: 1.05 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-source-field-meta,
.dialog-template-field-card .dialog-field-chip-meta {
    overflow: hidden;
    color: #64748b;
    font-size: 8px !important;
    line-height: 1 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-field-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
}

.dialog-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dialog-fields-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.dialog-field-card {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #ffffff;
}

.dialog-field-name {
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.dialog-field-meta,
.dialog-field-type {
    color: #64748b;
    font-size: 10px;
    line-height: 1.2;
}

.dialog-field-meta {
    margin-top: 3px;
}

.dialog-field-type {
    margin-top: 2px;
}

.dialog-field-chip {
    min-width: 0;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #ffffff;
}

.dialog-field-chip-name {
    overflow: hidden;
    color: #0f172a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-field-chip-meta {
    overflow: hidden;
    color: #64748b;
    font-size: 9px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-printer-status {
    width: fit-content;
    max-width: 100%;
    padding: 2px 8px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    align-self: flex-start;
    white-space: nowrap;
    margin-top: -1px;
}

.dialog-toolbar-label-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 16px;
}

.dialog-printer-status.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.dialog-printer-status.is-idle {
    border-color: #dbe3ee;
    background: #f8fafc;
    color: #64748b;
}

.dialog-printer-status.is-warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.dialog-printer-status.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.dialog-grid-shell {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
}

.dialog-grid {
    border: 0;
}

.dialog-grid-title {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-grid-title.is-active {
    color: #1d4ed8;
    font-weight: 700;
}

.dialog-grid-value {
    overflow: hidden;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}

.dialog-workflow .dialog-field-column-header .rz-button {
    height: 28px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
}

.dialog-workflow .dialog-field-column-header .rz-button.rz-state-disabled {
    opacity: 0.55 !important;
}

.dialog-workflow .dialog-column-action.rz-button {
    min-width: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.dialog-workflow .dialog-column-action-add.rz-button {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.dialog-workflow .dialog-column-action-add.rz-button:hover:not(.rz-state-disabled) {
    border-color: #60a5fa !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.dialog-workflow .dialog-column-action-delete.rz-button {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.dialog-workflow .dialog-column-action-delete.rz-button:hover:not(.rz-state-disabled) {
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.dialog-workflow .dialog-printer-dropdown .rz-dropdown {
    min-height: 34px;
    border-radius: 8px;
}

.dialog-workflow .dialog-printer-dropdown .rz-dropdown-label {
    min-height: 34px;
    line-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-workflow .rz-button {
    max-width: 100%;
}

.dialog-workflow .rz-button .rz-button-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-workflow .dialog-printer-dropdown .rz-dropdown-trigger {
    width: 34px;
    height: 34px;
}

.dialog-workflow .dialog-clear-button.rz-button {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #475569 !important;
}

.dialog-workflow .dialog-clear-button.rz-button:hover:not(.rz-state-disabled) {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
    color: #334155 !important;
}

.dialog-workflow .dialog-clear-button.rz-button.rz-state-disabled {
    border-color: #cbd5e1 !important;
    background: #eef2f7 !important;
    color: #64748b !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.dialog-workflow .dialog-clear-button.rz-button.rz-state-disabled .rz-button-text,
.dialog-workflow .dialog-clear-button.rz-button.rz-state-disabled .rz-button-icon-left {
    color: #64748b !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.dialog-workflow .dialog-source-field-card .rz-button,
.dialog-workflow .dialog-template-field-card .rz-button {
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0;
    border-radius: 4px;
    flex: 0 0 auto;
}

.dialog-workflow .dialog-source-field-card .rz-button .rzi,
.dialog-workflow .dialog-template-field-card .rz-button .rzi {
    font-size: 11px !important;
}

.dialog-workflow .dialog-inline-action.rz-button {
    box-shadow: none !important;
}

.dialog-workflow .dialog-inline-action-add.rz-button {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.dialog-workflow .dialog-inline-action-add.rz-button:hover:not(.rz-state-disabled) {
    border-color: #93c5fd !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.dialog-workflow .dialog-inline-action-delete.rz-button {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.dialog-workflow .dialog-inline-action-delete.rz-button:hover:not(.rz-state-disabled) {
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.dialog-workflow .dialog-inline-action.rz-button.rz-state-disabled {
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.dialog-workflow .dialog-grid .rz-datatable-data td,
.dialog-workflow .dialog-grid .rz-datatable-thead th {
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (max-width: 900px) {
    .dialog-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dialog-fields-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dialog-section-header,
    .dialog-workflow .dialog-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dialog-toolbar {
        align-items: stretch;
        justify-content: stretch;
        flex-direction: column;
    }

    .dialog-toolbar-main,
    .dialog-toolbar-side {
        width: 100%;
    }

    .dialog-toolbar-main {
        justify-content: flex-start;
    }

    .dialog-upload-groups {
        grid-template-columns: 1fr;
    }

    .dialog-toolbar-side {
        grid-template-columns: 1fr;
    }

    .dialog-toolbar-field-sm {
        width: 100%;
    }

    .dialog-fields-layout {
        grid-template-columns: 1fr;
    }

    .dialog-field-pane {
        max-height: 220px;
    }
}

@media (max-width: 640px) {
    .dialog-fields,
    .dialog-fields-compact,
    .dialog-field-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.app-layout {
    --rz-sidebar-width: 240px;
    --rz-header-height: 52px;
}

.app-header {
    position: relative;
    display: block;
    box-sizing: border-box;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 10px !important;
}

.app-header-side {
    position: absolute;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 52px;
}

.app-header-side-left {
    left: 10px;
    justify-content: flex-start;
}

.app-header-side-right {
    right: 10px;
    justify-content: flex-end;
}

.app-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 220px 0 56px;
}

.app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.app-header-title-image {
    display: block;
    width: auto;
    height: 40px;
    max-width: min(620px, 52vw);
    max-height: 40px;
    object-fit: contain;
}

.demo-brand {
    min-width: 0;
}

.demo-brand-badge {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.demo-brand-badge-header {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.app-header .rz-button,
.app-header-actions .rz-button {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
}

.app-header .rz-button,
.app-header-actions .rz-button {
    min-width: 36px !important;
    padding: 0 !important;
}

.app-language-picker.rz-dropdown {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
}

.app-language-picker .rz-dropdown-label {
    display: flex !important;
    align-items: center;
    height: 100% !important;
    min-height: 0 !important;
    padding-block: 0 !important;
    font-size: 13px !important;
    line-height: normal !important;
}

.app-language-picker .rz-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 100% !important;
}

.rz-notification {
    --rz-notification-padding: 12px 14px;
    --rz-notification-gap: 8px;
    --rz-notification-success-color: #ffffff;
    --rz-notification-success-background-color: #15803d;
    --rz-notification-success-icon-color: #ffffff;
    --rz-notification-warning-color: #ffffff;
    --rz-notification-warning-background-color: #b45309;
    --rz-notification-warning-icon-color: #ffffff;
    --rz-notification-error-color: #ffffff;
    --rz-notification-error-background-color: #b91c1c;
    --rz-notification-error-icon-color: #ffffff;
    --rz-notification-info-color: #ffffff;
    --rz-notification-info-background-color: #1d4ed8;
    --rz-notification-info-icon-color: #ffffff;
    --rz-notification-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.rz-notification-item {
    color: #ffffff;
}

.rz-notification-title {
    color: inherit;
    font-size: 13px;
    line-height: 18px;
}

.rz-notification-message {
    color: inherit;
    font-size: 12px;
    line-height: 17px;
}

.rz-notification-icon,
.rz-notification-close {
    color: #ffffff;
    font-size: 20px;
}

.rz-notification-close:hover {
    opacity: 1;
}

.app-sidebar {
    width: 240px;
    max-width: 240px;
    color: #334155;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.sidebar-content {
    padding-top: 0;
}

.sidebar-brand {
    box-sizing: border-box;
    height: 228px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-logo {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.demo-sidebar-brand {
    background:
        radial-gradient(circle at 50% 42%, rgba(22, 119, 242, 0.08), transparent 58%),
        #ffffff;
}

.demo-sidebar-logo {
    width: 123px;
    height: auto;
}

.demo-brand-badge-sidebar {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.sidebar-menu,
.app-sidebar .rz-panel-menu {
    background: transparent;
}

.app-sidebar .rz-panel-menu {
    border: 0;
    box-shadow: none;
}

.app-sidebar .rz-navigation-item-wrapper {
    padding: 0 8px;
}

.app-sidebar .rz-navigation-item-link {
    min-height: 44px;
    padding: 10px 12px;
    color: #334155;
    font-size: 14px;
    border-radius: 8px;
}

.app-sidebar .rz-navigation-item-link:hover {
    color: #1d4ed8;
    background: #f8fafc;
}

.app-sidebar .rz-navigation-item-link.active,
.app-sidebar .rz-navigation-item-link.rz-state-active {
    color: #1d4ed8;
    font-weight: 600;
    background: #eef2ff;
}

.app-sidebar .rz-navigation-item-icon-children {
    color: inherit;
}

.app-sidebar .rz-panel-menu .rz-navigation-item {
    border: 0;
}

.app-sidebar .rz-navigation-item-text {
    line-height: 1.2;
}

.app-body-row {
    height: calc(100vh - 89px);
    max-height: calc(100vh - 89px);
    max-width: 1440px;
    padding-top: 10px;
    overflow: hidden;
}

.app-body-row > .rz-col-12 {
    height: 100%;
    min-height: 0;
}

.app-body-row-designer {
    height: calc(100vh - 114px);
    max-height: calc(100vh - 114px);
    padding-bottom: 0;
}
