﻿.xxl-width {
    min-width: 400px;
    max-width: 400px;
}

.xxxl-width {
    min-width: 500px;
    max-width: 500px;
}

.xl-width {
    min-width: 350px;
    max-width: 350px;
}

.l-width,
.std-width {
    min-width: 300px;
    max-width: 300px;
}

.m-width {
    min-width: 250px;
    max-width: 250px;
}

.s-width {
    min-width: 200px;
    max-width: 200px;
}

.xs-width {
    min-width: 150px;
    max-width: 150px;
}

.xxs-width {
    min-width: 100px;
    max-width: 100px;
}

.f-height {
    height: 100%;
}

.item-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tbl {
    display: table;
    width: 100%;
}

.tbl-row {
    display: table-row;
}

.tbl-col {
    display: table-cell;
    vertical-align: middle;
}

.border-top-hidden {
    border-top-style: hidden;
}

.border-bottom-hidden {
    border-bottom-style: hidden;
}

.border-left-hidden {
    border-left-style: hidden;
}

.border-right-hidden {
    border-right-style: hidden;
}

.border-left-dark {
    border-left: 1px solid rgba(0, 0, 0, 0.2)
}

.border-right-dark {
    border-right: 1px solid rgba(0, 0, 0, 0.2)
}

.border-bottom-dark {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2)
}

:root {
    --scale-modification: .5;
}

.mono-small {
    font-family: Consolas, monaco, monospace;
    font-size: small;
}

.mono-smaller {
    font-family: Consolas, monaco, monospace;
    font-size: smaller;
}

.mud-list-item-text {
    word-wrap: break-word;
}

html,
body,
.mud-main-content {
    height: 100vh;
}

.active {
    background-color: rgba(0, 0, 0, 0.2);
}

.mud-dialog-content {
    padding: 0;
}

.survey-section-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.survey-section-toolbar-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.survey-section-toolbar-actions {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.survey-section-toolbar-actions .mud-switch {
    margin-left: 0 !important;
}

@media (max-width: 600px) {
    .tbl,
    .tbl-row,
    .tbl-col {
        display: block;
        width: 100% !important;
    }

    .tbl-col {
        overflow-wrap: anywhere;
        text-align: left !important;
    }

    .xxl-width,
    .xxxl-width,
    .xl-width,
    .l-width,
    .std-width,
    .m-width,
    .s-width,
    .xs-width,
    .xxs-width {
        width: 100%;
        min-width: 0;
    }

    .survey-section-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .survey-section-toolbar-title,
    .survey-section-toolbar-actions {
        width: 100%;
    }

    .survey-section-toolbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .survey-section-toolbar-actions .mud-button-root {
        min-width: 0;
    }

    [data-testid="completion-doc-candidate-card"] .mud-button-root,
    [data-testid="order-letter-candidate-card"] .mud-button-root {
        white-space: normal;
    }

    .survey-section-toolbar-actions [data-testid="survey-perspective-switch"] {
        margin-left: 0 !important;
    }

    [data-testid="customer-preview-banner"] .mud-stack-row {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    [data-testid="customer-preview-banner"] .mud-spacer {
        display: none;
    }

    [data-testid="customer-preview-banner"] .mud-button-root {
        width: 100%;
        margin-top: 4px;
        white-space: normal;
    }
}

[data-testid="communication-template-editor"] .communication-template-editor-tabs {
    display: none;
}

[data-testid="communication-template-editor"] .template-publication-panel {
    border-top: 3px solid var(--mud-palette-primary);
}

[data-testid="communication-template-editor"] .template-publication-heading,
[data-testid="communication-template-editor"] .template-publication-actions,
[data-testid="communication-template-editor"] .template-publication-actions-secondary,
[data-testid="communication-template-editor"] .template-publication-actions-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-testid="communication-template-editor"] .template-publication-heading,
[data-testid="communication-template-editor"] .template-publication-actions {
    justify-content: space-between;
}

[data-testid="communication-template-editor"] .template-publication-heading {
    align-items: flex-start;
}

[data-testid="communication-template-editor"] .template-publication-heading > div:first-child {
    min-width: 0;
}

[data-testid="communication-template-editor"] .template-publication-description {
    color: var(--mud-palette-text-secondary);
}

[data-testid="communication-template-editor"] .template-publication-heading .mud-chip {
    flex: 0 0 auto;
}

[data-testid="communication-template-editor"] .template-publication-validation {
    display: grid;
    gap: 8px;
}

[data-testid="communication-template-editor"] .template-publication-note {
    width: min(100%, 760px);
}

[data-testid="communication-template-editor"] .template-publication-actions {
    flex-wrap: wrap;
}

[data-testid="communication-template-editor"] .template-publication-actions-secondary,
[data-testid="communication-template-editor"] .template-publication-actions-primary {
    flex-wrap: wrap;
}

@media (max-width: 959.98px) {
    [data-testid="communication-template-editor"] .communication-template-editor-tabs {
        display: block;
    }

    [data-testid="communication-template-editor"] .communication-template-editor-pane {
        display: none;
    }

    [data-testid="communication-template-editor"] .communication-template-editor-pane--active {
        display: block;
    }
}

@media (max-width: 699.98px) {
    [data-testid="communication-template-editor"] .template-publication-heading,
    [data-testid="communication-template-editor"] .template-publication-actions,
    [data-testid="communication-template-editor"] .template-publication-actions-secondary,
    [data-testid="communication-template-editor"] .template-publication-actions-primary {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    [data-testid="communication-template-editor"] .template-publication-heading .mud-chip {
        align-self: flex-start;
    }

    [data-testid="communication-template-editor"] .template-publication-actions .mud-button-root {
        width: 100%;
    }
}
