/* Smart Reader Cloud — the kit's styles: the structure of mPohoda in the colours of Smart Reader
   Client (docs/ui.md). MudBlazor's own variables come from CloudTheme; the tokens below are the
   values the kit uses outside MudBlazor's components. */

/* Roboto, served by the application (wwwroot/fonts/roboto, SIL Open Font License 1.1). Latin-ext
   carries the Czech and Slovak letters, latin the rest. */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/roboto/roboto-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/roboto/roboto-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('fonts/roboto/roboto-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('fonts/roboto/roboto-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('fonts/roboto/roboto-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('fonts/roboto/roboto-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --cloud-dark: #023845;
    --cloud-darker: #037691;
    --cloud-accent: #2BCBF1;
    --cloud-lighter: #92E4F8;
    --cloud-light: #F4FDFF;
    --cloud-page: #F3F3F3;
    --cloud-text-medium: #505050;
    --cloud-text-weak: #808080;
    --cloud-lines: #E2E2E2;
    --cloud-read-only: #F3F3F3;
    --cloud-topbar-height: 60px;
    --cloud-toolbar-height: 51px;
    --cloud-content-max-width: 1500px;
    --cloud-gutter: 24px;
    --cloud-content-padding: 24px;
    --cloud-radius-card: 12px;
    --cloud-radius-control: 6px;
    --cloud-control-height: 38px;
    --cloud-shadow-card: 0 1px 1px rgba(0, 0, 0, 0.07), 0 2px 10px rgba(0, 0, 0, 0.07);
    --cloud-shadow-menu: 0 7px 12px rgba(0, 0, 0, 0.15), 0 2px 7px rgba(0, 0, 0, 0.05);
}

/* Tablet and phone: the menu folds into the hamburger and the top bar is lower, as in mPohoda. */
@media (max-width: 1279.98px) {
    :root {
        --cloud-topbar-height: 50px;
    }
}

@media (max-width: 599.98px) {
    :root {
        --cloud-gutter: 16px;
    }
}

html,
body {
    margin: 0;
    background: var(--cloud-page);
    color: var(--cloud-dark);
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
}

/* ---------- Shell (AppLayout) ---------- */

.cloud-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--cloud-topbar-height);
    padding: 0 8px 0 var(--cloud-gutter);
    background: var(--cloud-dark);
    color: #FFFFFF;
}

.cloud-logo {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    white-space: nowrap;
    text-decoration: none;
}

    .cloud-logo span {
        color: var(--cloud-accent);
    }

.cloud-mainmenu {
    display: flex;
    align-self: stretch;
}

.cloud-mainmenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

    .cloud-mainmenu-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .cloud-mainmenu-item.active {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 -3px 0 var(--cloud-accent);
    }

.cloud-hamburger.mud-icon-button {
    display: none;
    margin-left: auto;
}

@media (max-width: 1279.98px) {
    .cloud-mainmenu {
        display: none;
    }

    .cloud-hamburger.mud-icon-button {
        display: inline-flex;
    }
}

.cloud-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--cloud-topbar-height);
    box-sizing: border-box;
}

.cloud-content {
    flex: 1;
    width: 100%;
    max-width: var(--cloud-content-max-width);
    margin: 0 auto;
    padding: var(--cloud-content-padding) var(--cloud-gutter);
    box-sizing: border-box;
}

.cloud-footer {
    padding: 16px var(--cloud-gutter) 24px;
    color: var(--cloud-text-weak);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

    .cloud-footer a {
        color: inherit;
    }

/* The drawer on a tablet or a phone: dark, full height, the whole width of a phone. */
.cloud-drawer.mud-drawer {
    display: flex;
    flex-direction: column;
    background: var(--cloud-dark);
    color: #FFFFFF;
}

@media (max-width: 599.98px) {
    .cloud-drawer.mud-drawer {
        --mud-drawer-width: 100vw !important;
        width: 100vw !important;
    }
}

.cloud-drawer-header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: var(--cloud-topbar-height);
    padding: 0 8px 0 var(--cloud-gutter);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cloud-drawer-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cloud-drawer-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    padding: 0 16px 0 var(--cloud-gutter);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

    .cloud-drawer-row.active {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: inset 3px 0 0 var(--cloud-accent);
    }

.cloud-drawer-chevron {
    margin-left: auto;
}

.cloud-drawer-support {
    padding: 24px var(--cloud-gutter);
    font-size: 16px;
    line-height: 32px;
}

    .cloud-drawer-support a {
        color: #FFFFFF;
        text-decoration: none;
    }

.cloud-drawer-support-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ---------- Page heading, toolbar, card, empty state ---------- */

.cloud-page-heading {
    margin: 0 0 24px;
    color: var(--cloud-dark);
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

    /* FocusOnNavigate moves the focus to the heading after a navigation; a focus ring on a heading
       is noise, the title itself tells where the user is. */
    .cloud-page-heading:focus,
    .cloud-page-toolbar-title:focus,
    .cloud-signin-title:focus,
    .cloud-label-title:focus {
        outline: none;
    }

.cloud-page-toolbar {
    position: sticky;
    top: var(--cloud-topbar-height);
    z-index: 1100;
    height: var(--cloud-toolbar-height);
    background: #FFFFFF;
    box-shadow: 0 1px 0 var(--cloud-lines);
}

.cloud-page-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    max-width: var(--cloud-content-max-width);
    margin: 0 auto;
    padding: 0 var(--cloud-gutter);
    box-sizing: border-box;
}

.cloud-page-toolbar-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--cloud-dark);
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cloud-page-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* On a phone the title is never cut: it wraps beside the back arrow, and the buttons that do not fit beside the whole
   title go under it, at the right edge; the bar grows with them. */
@media (max-width: 599.98px) {
    .cloud-page-toolbar {
        height: auto;
        min-height: var(--cloud-toolbar-height);
    }

    .cloud-page-toolbar-inner {
        flex-wrap: wrap;
        row-gap: 8px;
        height: auto;
        min-height: var(--cloud-toolbar-height);
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .cloud-page-toolbar-title {
        flex: 1 1 auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .cloud-icon-button + .cloud-page-toolbar-title {
        max-width: calc(100% - var(--cloud-control-height) - 8px);
    }

    .cloud-page-toolbar-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
        margin-left: auto;
    }
}

.cloud-icon-button.mud-icon-button {
    width: var(--cloud-control-height);
    height: var(--cloud-control-height);
    padding: 0;
    border-radius: var(--cloud-radius-control);
    color: var(--cloud-dark);
}

.cloud-card {
    padding: 24px;
    border-radius: var(--cloud-radius-card);
    background: #FFFFFF;
    box-shadow: var(--cloud-shadow-card);
}

    .cloud-card + .cloud-card {
        margin-top: 24px;
    }

.cloud-card-caption {
    margin: 0 0 16px;
    color: var(--cloud-text-medium);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.cloud-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 16px;
    color: var(--cloud-text-medium);
    text-align: center;
}

.cloud-empty-state-icon.mud-icon-root {
    width: 40px;
    height: 40px;
    color: #A0A0A0;
}

.cloud-empty-state-text {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
}

.cloud-empty-state-line {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.cloud-center {
    display: flex;
    justify-content: center;
    text-align: center;
}

.cloud-text-medium {
    color: var(--cloud-text-medium);
}

/* ---------- Controls after mPohoda: buttons, fields, tables, menus, dialogs ---------- */

.mud-button-root.mud-button {
    min-height: var(--cloud-control-height);
    padding: 0 16px;
    border-radius: var(--cloud-radius-control);
    box-shadow: none;
}

    .mud-button-root.mud-button:hover,
    .mud-button-root.mud-button:active {
        box-shadow: none;
    }

/* The neutral (secondary) button: 10 % of the dark colour with dark text. */
.cloud-button-neutral.mud-button-root.mud-button {
    background: rgba(2, 56, 69, 0.1);
    color: var(--cloud-dark);
}

    .cloud-button-neutral.mud-button-root.mud-button:hover {
        background: rgba(2, 56, 69, 0.16);
    }

/* MudBlazor hides what leaves the box of a label, and the caron of a capital (IČO, DIČ) rises above that box. Only the
   sides stay clipped, for the ellipsis of a long label. */
.mud-input-label.mud-input-label-outlined {
    overflow: clip visible;
}

/* Fields: the label stands above a white 38 px field with a light border (Outlined, ShrinkLabel). */
.mud-input.mud-input-outlined {
    min-height: var(--cloud-control-height);
    border-radius: var(--cloud-radius-control);
    background: #FFFFFF;
}

    .mud-input.mud-input-outlined .mud-input-outlined-border {
        border-color: var(--cloud-lines);
        border-radius: var(--cloud-radius-control);
    }

    .mud-input.mud-input-outlined.mud-disabled,
    .mud-input.mud-input-outlined:has(input[readonly]),
    .mud-input.mud-input-outlined:has(textarea[readonly]) {
        background: var(--cloud-read-only);
    }

        .mud-input.mud-input-outlined:has(input[readonly]) .mud-input-outlined-border,
        .mud-input.mud-input-outlined:has(textarea[readonly]) .mud-input-outlined-border {
            border-color: transparent;
        }

    /* A select is a field to choose in, white with its border, although MudBlazor makes its input read-only. */
    .mud-select:not(.mud-disabled) .mud-input.mud-input-outlined:not(.mud-disabled) {
        background: #FFFFFF;
    }

        .mud-select:not(.mud-disabled) .mud-input.mud-input-outlined:not(.mud-disabled) .mud-input-outlined-border {
            border-color: var(--cloud-lines);
        }

/* Tables: capital 12 px headers, 38 px rows, no vertical lines, the main column as a plain link. */
.mud-table .mud-table-head .mud-table-cell {
    color: var(--cloud-text-medium);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mud-table .mud-table-body .mud-table-cell {
    height: var(--cloud-control-height);
    padding-top: 6px;
    padding-bottom: 6px;
    color: var(--cloud-dark);
}

.mud-table .mud-table-cell a {
    color: var(--cloud-darker);
    text-decoration: none;
}

.mud-popover .mud-list {
    padding: 6px 0;
}

.mud-popover.mud-popover-open:has(.mud-list) {
    border-radius: var(--cloud-radius-card);
    box-shadow: var(--cloud-shadow-menu);
}

.mud-dialog {
    border-radius: var(--cloud-radius-card);
}

.cloud-confirm-dialog-text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

/* ---------- Firm and user menus in the top bar (AppLayout) ---------- */

.cloud-topbar-menus {
    display: flex;
    align-self: stretch;
    margin-left: auto;
}

.cloud-topbar-menu.mud-menu,
.cloud-topbar-menu.mud-menu > div[role="button"] {
    display: flex;
    align-self: stretch;
}

.cloud-topbar-menu-activator {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .cloud-topbar-menu-activator:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.cloud-topbar-menu-text {
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* „Zpět do Smart Reader Serveru“ before the account menu of the centre opened from the server (picture 68). */
.cloud-topbar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

    .cloud-topbar-back:hover {
        background: rgba(255, 255, 255, 0.06);
    }

@media (max-width: 1279.98px) {
    .cloud-topbar-menus {
        display: none;
    }
}

/* A menu item that submits a form (switching the firm, signing out) looks like MudBlazor's own. */
.cloud-menu-form {
    margin: 0;
}

.cloud-menu-button.mud-menu-item {
    justify-content: flex-start;
    width: 100%;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .cloud-menu-button.mud-menu-item:hover {
        background: var(--mud-palette-action-default-hover);
    }

/* ---------- Drawer panels „Firma“ and „Uživatel“ ---------- */

.cloud-drawer-button {
    justify-content: flex-start;
    width: 100%;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.cloud-drawer-row-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 20px;
}

    .cloud-drawer-row-text > span:last-child {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.cloud-drawer-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 400;
}

.cloud-drawer-firm,
.cloud-drawer-user {
    padding-top: 8px;
    padding-bottom: 8px;
}

.cloud-drawer-back {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: none;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

/* ---------- Sign-in pages (SignInFrame): static, plain HTML ---------- */

.cloud-signin {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--cloud-page);
}

.cloud-topbar.cloud-signin-topbar {
    position: static;
    flex: none;
}

.cloud-signin-main {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    padding: 48px var(--cloud-gutter);
}

.cloud-card.cloud-signin-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    box-sizing: border-box;
}

@media (max-width: 599.98px) {
    .cloud-signin-main {
        padding-top: 24px;
    }

    .cloud-card.cloud-signin-card {
        padding: 24px 16px;
    }
}

.cloud-signin-title {
    margin: 0 0 8px;
    color: var(--cloud-dark);
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

.cloud-signin-intro {
    margin: 0 0 24px;
    color: var(--cloud-text-medium);
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

    /* The intro that ends the card, as on the refused link of the connection. */
    .cloud-signin-intro.cloud-signin-last {
        margin-bottom: 0;
    }

/* The card and under it, centred, a link (SignInFrame with BelowCard): „Zpět do Smart Reader Serveru“. */
.cloud-signin-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.cloud-signin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cloud-darker);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.cloud-signin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cloud-signin-label {
    color: var(--cloud-text-medium);
    font-size: 14px;
    line-height: 18px;
}

.cloud-signin-input {
    height: var(--cloud-control-height);
    padding: 0 12px;
    border: 1px solid var(--cloud-lines);
    border-radius: var(--cloud-radius-control);
    background: #FFFFFF;
    color: var(--cloud-dark);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

    .cloud-signin-input:focus {
        border-color: var(--cloud-darker);
        outline: none;
        box-shadow: 0 0 0 2px rgba(3, 118, 145, 0.2);
    }

.cloud-signin-code {
    height: 48px;
    font-size: 22px;
    letter-spacing: 4px;
}

.cloud-signin-error {
    margin: 0;
    color: #FD2E1F;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.cloud-signin-button {
    min-height: var(--cloud-control-height);
    margin-top: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--cloud-radius-control);
    background: var(--cloud-darker);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .cloud-signin-button:hover {
        background: #025F75;
    }

.cloud-signin-button.cloud-signin-button-small {
    flex: none;
    margin-top: 0;
}

.cloud-signin-hint {
    margin: 24px 0 0;
    color: var(--cloud-text-medium);
    font-size: 13px;
    line-height: 18px;
}

/* The form of a new customer account: a read-only field, a field with its button, a message under a field. */

.cloud-signin-input.cloud-signin-read-only {
    border-color: transparent;
    background: var(--cloud-read-only);
}

.cloud-signin-inline {
    display: flex;
    gap: 8px;
}

    .cloud-signin-inline .cloud-signin-input {
        flex: 1;
        min-width: 0;
    }

    .cloud-signin-inline .cloud-signin-button {
        flex: none;
        margin-top: 0;
    }

.cloud-signin-button.cloud-signin-button-neutral {
    background: rgba(2, 56, 69, 0.1);
    color: var(--cloud-dark);
}

    .cloud-signin-button.cloud-signin-button-neutral:hover {
        background: rgba(2, 56, 69, 0.16);
    }

.cloud-signin-button:disabled,
.cloud-signin-button.cloud-signin-button-neutral:disabled {
    background: var(--mud-palette-action-disabled-background);
    color: var(--mud-palette-action-disabled);
    cursor: default;
}

.cloud-signin-field-hint {
    margin: -4px 0 4px;
    color: var(--cloud-text-medium);
    font-size: 13px;
    line-height: 18px;
}

.cloud-signin-alert {
    margin: 0 0 8px;
}

.cloud-signin-alert-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cloud-signin-alert-body .cloud-signin-button {
    width: auto;
    align-self: flex-start;
}

.cloud-signin-sent {
    color: var(--cloud-dark);
    font-weight: 500;
}

.cloud-signin-input.cloud-signin-textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.cloud-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(33, 33, 33, 0.5);
    box-sizing: border-box;
}

.cloud-modal {
    width: 100%;
    max-width: 444px;
    max-height: 100%;
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--cloud-radius-card);
    background: #FFFFFF;
    box-shadow: var(--cloud-shadow-menu);
    box-sizing: border-box;
}

.cloud-modal-title {
    margin: 0 0 16px;
    color: var(--cloud-dark);
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
}

.cloud-modal-text {
    margin: 0;
    color: var(--cloud-dark);
    line-height: 20px;
}

.cloud-modal-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 24px;
    margin: 16px 0;
    font-size: 12px;
    line-height: 18px;
}

    .cloud-modal-facts dt {
        color: var(--cloud-text-medium);
    }

    .cloud-modal-facts dd {
        margin: 0;
        color: var(--cloud-dark);
        overflow-wrap: anywhere;
    }

.cloud-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

    .cloud-modal-buttons .cloud-signin-button {
        width: auto;
        margin-top: 0;
    }

.cloud-modal-wide {
    max-width: 600px;
}

    .cloud-modal-wide .cloud-modal-buttons {
        position: sticky;
        bottom: -24px;
        z-index: 2;
        margin-bottom: -24px;
        padding: 12px 0 24px;
        background: #FFFFFF;
    }

/* The bank's notice as it came in „Zkontrolovat platbu“: its lines kept, a long one scrolls in its box. */
.cloud-payment-notice {
    margin: 0 0 16px;
}

    .cloud-payment-notice h3 {
        margin: 0 0 6px;
        color: var(--cloud-text-medium);
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
    }

    .cloud-payment-notice pre {
        max-height: 240px;
        margin: 0;
        padding: 8px 12px;
        overflow: auto;
        border-radius: var(--cloud-radius-control);
        background: var(--cloud-read-only);
        color: var(--cloud-dark);
        font-family: Consolas, 'Courier New', monospace;
        font-size: 12px;
        line-height: 18px;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.cloud-internal-form .cloud-signin-label {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 8px 0 -18px 10px;
    padding: 0 4px;
    background: #FFFFFF;
    font-size: 12px;
    line-height: 16px;
}

.cloud-internal-form .cloud-signin-input {
    height: 54px;
}

.cloud-internal-form .cloud-signin-field-hint {
    padding-left: 8px;
    font-size: 12px;
}

.cloud-internal-form .cloud-signin-input[aria-invalid="true"] {
    border-color: #FD2E1F;
}

/* The text button that switches „Zkontrolovat platbu“ to closing a payment without an order (pictures 97 and 116);
   chosen, it keeps the tint of a pressed text button. */
.cloud-path-switch.mud-button-root {
    align-self: flex-start;
}

.cloud-path-switch.cloud-path-switch-on.mud-button-root {
    background-color: var(--mud-palette-primary-hover);
}

.cloud-signin-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--cloud-text-medium);
    font-size: 14px;
}

    .cloud-signin-links a {
        color: var(--cloud-darker);
        text-decoration: none;
    }

.cloud-signin-inline-form {
    display: inline;
    margin: 0;
}

.cloud-signin-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--cloud-darker);
    /* A button inherits neither the font nor the letter spacing, so it would look narrower than a link beside it. */
    font: inherit;
    font-size: 14px;
    letter-spacing: inherit;
    cursor: pointer;
}

.cloud-firm-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cloud-firm-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cloud-lines);
}

.cloud-firm-list-row-active {
    padding-left: 12px;
    box-shadow: inset 3px 0 0 var(--cloud-accent);
}

.cloud-firm-list-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cloud-firm-list-name {
    overflow: hidden;
    color: var(--cloud-dark);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cloud-firm-list-role {
    color: var(--cloud-text-medium);
    font-size: 12px;
}

/* The whole address, wrapped anywhere: a cut-off domain would hide who added the user. */
.cloud-firm-list-added {
    color: var(--cloud-dark);
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* The choices of the connection of a server (pictures 09, 10, 11 and 41): a wider card, the facts of the computer, the
   search over the accounts, the subscriptions as rows of a radio, the name, the scope and a chip or a note, and the
   two questions of a transfer as the kit's modal, whose „Zpět“ is a link. */
.cloud-card.cloud-signin-card:has(.cloud-signin-wide) {
    max-width: 560px;
}

/* Both classes, so the gap under the facts wins over the margin of the grid, which comes later. */
.cloud-fact-grid.cloud-connect-facts {
    margin: 0 0 24px;
    overflow-wrap: anywhere;
}

.cloud-connect-search {
    width: 100%;
    margin-bottom: 8px;
}

.cloud-connect-group-label {
    margin: 0;
}

.cloud-fact-link {
    margin-left: 8px;
    color: var(--cloud-darker);
    font-weight: 500;
    text-decoration: none;
}

.cloud-connect-choices {
    margin: 8px 0 16px;
    border-top: 1px solid var(--cloud-lines);
}

.cloud-connect-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cloud-lines);
    cursor: pointer;
}

    .cloud-connect-choice input {
        flex: none;
        width: 18px;
        height: 18px;
        margin: 1px 0 0;
        accent-color: var(--cloud-darker);
        cursor: pointer;
    }

.cloud-connect-choice-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.cloud-connect-choice-note {
    color: var(--cloud-text-medium);
    font-size: 12px;
}

.cloud-connect-choice-text .cloud-status-chip.mud-chip {
    margin: 4px 0 0;
}

.cloud-connect-modal .cloud-modal-text + .cloud-modal-text {
    margin-top: 12px;
}

.cloud-connect-modal .cloud-modal-buttons {
    margin-top: 24px;
}

.cloud-modal-buttons a.cloud-signin-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* The trial of the connection (pictures 12 and 69), the used trial (133) and the e-mail without an account (14): the
   trial's two sections in the card with a line between them, the main button under them, the alert of a new account
   or of a changed offer, the note under the button, and a link drawn as the main button. */
.cloud-trial-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--cloud-lines);
}

/* The date of the trial cards (pictures 12, 56, 69 and 111) stays on one line: its spaces are ordinary ones. */
.cloud-nowrap {
    white-space: nowrap;
}

.cloud-signin-form.cloud-signin-form-after-block {
    margin-top: 16px;
}

.cloud-connect-alert.mud-alert {
    margin: 8px 0 16px;
}

.mud-typography.cloud-signin-note {
    margin-top: 16px;
    color: var(--cloud-text-medium);
}

.cloud-signin-form a.cloud-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ---------- Forms and tables of the settings pages ---------- */

.cloud-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

    .cloud-form-row .cloud-form-field {
        flex: 1 1 280px;
        max-width: 420px;
    }

    .cloud-form-row .mud-button-root {
        margin-top: 4px;
    }

.cloud-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 840px;
}

.cloud-hint {
    margin: 8px 0 0;
    color: var(--cloud-text-medium);
    font-size: 13px;
    line-height: 18px;
}

/* A hint beside a disabled button of the title bar, which says what enables it. */
.cloud-toolbar-hint {
    color: var(--cloud-text-medium);
    font-size: 13px;
    line-height: 18px;
}

.cloud-table-count {
    margin: 12px 0 0;
    color: var(--cloud-text-medium);
    font-size: 12px;
    text-align: right;
}

.mud-table .mud-table-cell.cloud-table-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

/* A state chip and a short note beside it, above the fields of a settings card („Připojeno · mPohoda CZ“). */
.cloud-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 16px;
}

    .cloud-status-row .cloud-status-chip.mud-chip {
        margin: 0;
    }

/* Read-only facts of a settings card, one per line („Zbývá: 7 898“), and the card's action under them. */
.cloud-facts {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 24px;
}

.cloud-facts-action.mud-button-root {
    margin-top: 16px;
}

/* The detail of a customer account in the internal view: a wide field of the card ÚČET, its buttons, the row of the
   dialog „Načíst z registru znovu“ with today's value above the new one, and the form of a toolbar button. */
.cloud-grid-span-2 {
    grid-column: span 2;
}

@media (max-width: 559.98px) {
    .cloud-grid-span-2 {
        grid-column: auto;
    }
}

/* A read-only field that takes the whole row of its grid, so a long value is not cut: „Zdroj“ of a subscription. */
.cloud-grid-span-all {
    grid-column: 1 / -1;
}

.cloud-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cloud-internal-link {
    color: var(--cloud-darker);
    text-decoration: none;
}

    .cloud-internal-link:hover {
        text-decoration: underline;
    }

/* The line under the name of a row: what the product is for („čtečky a mobilní zařízení ve skladu s Pohodou“). */
.cloud-row-description {
    display: block;
}

/* A second line of a cell in the secondary colour: „Instance: 2“ under the computer of a list and under a row of the
   history, „Důvod: …“ under a transfer permit (pictures 62, 63, 84 and 136). */
.cloud-row-second {
    display: block;
    color: var(--mud-palette-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

/* „Ceník“ (picture 115): a price entered for a later day under the price valid today, with „Zrušit změnu“. */
.cloud-price-change {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0 12px;
    margin-top: 4px;
    color: var(--cloud-text-medium);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

    .cloud-price-change .cloud-signin-link-button {
        font-size: 12px;
        font-weight: 500;
    }

/* Who entered a price and when („Zadáno 3. 11. 2026, Jan Novák“), under „Platí od“ and after „Zrušit změnu“. */
.cloud-price-entered {
    display: block;
    flex-basis: 100%;
    color: var(--cloud-text-medium);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

/* „Platby“ (pictures 90 and 118): the second line of a cell, „platí partner …“ under the customer, „pro …“ under the
   payer. */
.cloud-cell-note {
    display: block;
    color: var(--cloud-text-medium);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

/* The card PLATBA (pictures 92, 104 and 105): the facts of the payment, and at the right edge of the card its QR code
   in a frame with the name of its format; on a phone the code goes under the facts. */
.cloud-payment {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 32px;
}

    .cloud-payment > .cloud-fact-grid,
    .cloud-payment > .cloud-payment-facts {
        flex: 1 1 280px;
        min-width: 0;
    }

    /* The hints under the facts of the payment of a partner from the other country (picture 102). */
    .cloud-payment-facts .cloud-fact-grid + .cloud-hint {
        margin-top: 12px;
    }

.cloud-payment-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: var(--cloud-text-medium);
    font-size: 12px;
}

    .cloud-payment-qr img {
        box-sizing: border-box;
        width: 160px;
        height: 160px;
        padding: 2px;
        border: 1px solid var(--cloud-dark);
        background: #FFFFFF;
    }

/* The detail of a subscription in the centre (pictures 19, 23, 57, 104 and 107): the sentence of the card PLATBA above
   its facts and beside the QR code, a line waiting for its payment with its text button, the hint why a button is
   disabled, „Období“ above a table of prices. */
.cloud-detail-payment-text {
    margin: 0 0 16px;
    color: var(--cloud-dark);
}

.cloud-detail-pending {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    margin-top: 16px;
}

.cloud-detail-pending-text {
    color: var(--cloud-dark);
}

.cloud-detail-pending + .cloud-hint {
    margin-top: 0;
}

.cloud-detail-text-button.mud-button-root {
    min-width: 0;
    padding: 0 4px;
}

.cloud-card-actions + .cloud-detail-action-hint {
    margin-top: 8px;
}

.cloud-detail-period {
    margin-bottom: 16px;
}

/* „Platí: Sklad servis s.r.o. (partner)“ between the state and the fields (pictures 47 and 102). */
.cloud-status-row + .cloud-detail-payer {
    margin: -8px 0 16px;
}

/* What the dialog „Změnit cenu“ changes: „Smart Reader, plán Professional, zařízení“. */
.cloud-price-subject {
    margin: 0 0 8px;
    color: var(--cloud-dark);
}

.cloud-toolbar-form {
    margin: 0;
}

.cloud-company-today,
.cloud-company-new,
.cloud-company-same {
    display: block;
}

.cloud-company-new {
    font-weight: 600;
}

.cloud-company-same {
    color: var(--cloud-text-medium);
}

/* The partner in the detail of an account (pictures 83, 86 and 87): facts as a label beside its value, under a table
   too; the chip „Partner“ right after the title; a product's percent in the table of a dialog. */
.cloud-fact-grid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 24px;
    margin: 0;
}

    .cloud-fact-grid .cloud-fact-label {
        margin: 0;
        color: var(--mud-palette-text-secondary);
    }

    .cloud-fact-grid .cloud-fact-value {
        min-width: 0;
        margin: 0;
        overflow-wrap: anywhere;
    }

.cloud-table + .cloud-fact-grid {
    margin-top: 16px;
}

/* The order of a new subscription in the centre (pictures 20, 21, 22, 42, 43, 60 and 61). The tiles of the products
   have the same height with their buttons at the bottom; the heading of a tile is a product name, not a caption. */
.cloud-card.cloud-order-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cloud-order-tile-heading {
    margin: 0 0 8px;
    color: var(--cloud-dark);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.cloud-order-tile-note {
    margin: -8px 0 16px;
    color: var(--cloud-text-medium);
    font-size: 13px;
    line-height: 18px;
}

.cloud-order-tile-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

/* The columns of the order page sit right under the toolbar, as a first card does. */
.cloud-card-columns.cloud-order-columns {
    margin-top: 0;
}

/* The card PLÁN: a radio per plan with its name and its line under it. */
.cloud-order-plans .mud-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: -12px;
}

.cloud-order-plans .mud-radio {
    align-items: flex-start;
}

.cloud-order-option {
    display: flex;
    flex-direction: column;
    padding-top: 9px;
}

.cloud-order-option-name {
    color: var(--cloud-dark);
    font-weight: 500;
}

.cloud-order-option-line {
    color: var(--cloud-text-medium);
    font-size: 13px;
    line-height: 18px;
}

.cloud-order-number {
    max-width: 280px;
}

    /* Two numbers in one card (picture 65): the devices and the months of a temporary increase. */
    .cloud-order-number + .cloud-order-number {
        margin-top: 24px;
    }

/* The amounts of the card SOUHRN: right-aligned at the edge of the card in tabular digits, the year semibold. */
.cloud-fact-grid.cloud-order-amounts {
    grid-template-columns: minmax(0, 1fr) max-content;
}

    .cloud-order-amounts .cloud-fact-value {
        text-align: right;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .cloud-order-amounts .cloud-fact-value.cloud-order-strong {
        font-weight: 600;
    }

/* The trial page (pictures 56 and 111): Zásilky under the hint of the devices, the sums under the plans. */
.cloud-dialog-checkbox.cloud-trial-shipping.mud-input-control {
    margin-top: 12px;
}

.cloud-trial-amounts {
    margin-top: 16px;
}

.cloud-order-text {
    margin: 0 0 16px;
    line-height: 20px;
}

.cloud-fact-grid.cloud-order-period {
    margin-bottom: 16px;
}

/* The totals as rows of a table, of the card OBJEDNÁVKA and of the cards of prices of a subscription (pictures 92, 104,
   105 and 107): in the size and the height of the rows above, no lines between them, the label right-aligned over the
   columns before the amount, the amounts medium, what the customer pays and the yearly total semibold. */
.mud-table .mud-table-foot .cloud-order-total > .mud-table-cell,
.cloud-price-table .mud-table-foot .mud-table-cell {
    height: var(--cloud-control-height);
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom: none;
    color: var(--cloud-dark);
    font-size: var(--mud-typography-body2-size);
    line-height: var(--mud-typography-body2-lineheight);
    letter-spacing: var(--mud-typography-body2-letterspacing);
    font-variant-numeric: tabular-nums;
}

.mud-table .mud-table-foot .mud-table-cell.cloud-order-total-label {
    text-align: right;
}

.mud-table .mud-table-foot .mud-table-cell.cloud-order-total-amount,
.cloud-price-table .mud-table-foot .mud-table-cell:not(:first-child) {
    font-weight: 500;
}

.mud-table .mud-table-foot .cloud-order-total.cloud-order-total-strong > .mud-table-cell,
.cloud-price-table .mud-table-foot .cloud-price-year > .mud-table-cell {
    font-weight: 600;
}

/* FAKTURACE: the fields one under another, wide enough for a whole billing address. */
.cloud-order-billing {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
}

/* ODKAZ PRO ZÁKAZNÍKY of a partner's „Zákazníci“: the link in a frame like the pairing code's, wrapping anywhere and
   marked whole by one click, because it is copied by hand when the clipboard refuses; „Kopírovat odkaz“ beside it,
   under it where the row is too narrow. */
.cloud-partner-link-text {
    margin: 0 0 16px;
    line-height: 20px;
}

.cloud-partner-link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cloud-partner-link {
    flex: 1 1 320px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--cloud-lighter);
    border-radius: var(--cloud-radius-control);
    background: var(--cloud-light);
    color: var(--cloud-dark);
    line-height: 18px;
    overflow-wrap: anywhere;
    user-select: all;
}

.cloud-partner-link-row .cloud-partner-link-copy {
    flex: 0 0 auto;
}

.cloud-page-toolbar-inner:has(.cloud-title-chip) .cloud-page-toolbar-title {
    flex: 0 1 auto;
}

.cloud-page-toolbar-inner:has(.cloud-title-chip) .cloud-page-toolbar-actions {
    flex: 1;
}

.cloud-title-chip.mud-chip {
    margin-right: auto;
}

.cloud-modal .cloud-table {
    margin: 16px 0;
}

.cloud-signin-input.cloud-percent-input {
    max-width: 120px;
}

/* The users of a firm scroll sideways on a phone, as mPohoda's lists do, instead of stacking long addresses. */
.cloud-users-table .mud-table-cell {
    white-space: nowrap;
}

/* ---------- Orders: banner, tabs, list, detail, overview tiles ---------- */

/* A state of the whole page above its cards („mPohoda není připojená…“), with the way to the settings. */
.cloud-banner.mud-alert {
    margin: 0 0 24px;
    border-radius: var(--cloud-radius-card);
}

.cloud-banner-link {
    margin-left: 12px;
    color: inherit;
    font-weight: 500;
}

/* „Ukončit náhled“ is a form post that reads as the link of the banner. */
.cloud-banner-form {
    display: inline;
    margin: 0;
}

.cloud-banner-button {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.cloud-banner-button:hover,
.cloud-banner-button:focus-visible {
    text-decoration: underline;
}

/* The strips above the centre carry account names: one without a space breaks rather than scroll the phone sideways. */
.cloud-preview-strip,
.cloud-partner-strip {
    overflow-wrap: anywhere;
}

/* Tabs above a table, after mPohoda: no shadow, the active one underlined. */
.cloud-tabs.mud-tabs {
    margin: 16px 0 8px;
}

    .cloud-tabs .mud-tabs-tabbar {
        background: transparent;
        box-shadow: inset 0 -1px 0 var(--cloud-lines);
    }

    .cloud-tabs .mud-tab {
        min-width: 0;
        padding: 6px 16px;
        text-transform: none;
        font-weight: 500;
    }

/* Numbers and amounts right-aligned in medium weight, as mPohoda's lists show them. */
.mud-table .mud-table-cell.cloud-cell-number {
    text-align: right;
    white-space: nowrap;
}

.mud-table .mud-table-body .mud-table-cell.cloud-cell-number {
    font-weight: 500;
}

/* The lists of orders and items scroll sideways on a phone, as mPohoda's lists do; a long item name wraps, and so do
   the change and who made it in HISTORIE — an e-mail too —, so the history fits its card on a wide screen. */
.cloud-orders-table .mud-table-cell,
.cloud-order-items .mud-table-cell {
    white-space: nowrap;
}

    .cloud-order-items .mud-table-cell.cloud-cell-wrap {
        min-width: 200px;
        white-space: normal;
    }

    .cloud-orders-table .mud-table-cell.cloud-cell-wrap {
        min-width: 160px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

/* The pagination and the count „1–50 z 123“ under a table. */
.cloud-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 12px;
}

    .cloud-table-footer .cloud-table-count {
        margin: 0 0 0 auto;
    }

/* Read-only texts of a card over its whole width, under its grid of fields. */
.cloud-form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

/* Two cards side by side on a wide page (the customer and the delivery address), one under the other on a phone. */
.cloud-card-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 24px;
    margin: 24px 0;
}

    .cloud-card-columns > .cloud-card + .cloud-card {
        margin-top: 0;
    }

    .cloud-card-columns + .cloud-card {
        margin-top: 0;
    }

/* The tiles of the agendas on „Přehled“. */
.cloud-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

    .cloud-tiles > .cloud-card + .cloud-card {
        margin-top: 0;
    }

.cloud-tile-count {
    margin: 0 0 16px;
    color: var(--cloud-dark);
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
}

.cloud-tile-text {
    margin: 0 0 16px;
    color: var(--cloud-text-medium);
    line-height: 20px;
}

/* ---------- Carriers: the page „Dopravci“ and the dialog of a carrier profile (docs/shipping.md) ---------- */

/* The profiles scroll sideways on a phone, as mPohoda's lists do. */
.cloud-carriers-table .mud-table-cell {
    white-space: nowrap;
}

/* The fields of the dialog one under another, 16 px apart; the carrier's form follows the choice of the carrier. */
.cloud-dialog-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .cloud-dialog-form > form {
        display: contents;
    }

.cloud-dialog-carrier {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

    .cloud-dialog-carrier:empty {
        display: none;
    }

/* The caption of a group of radios, as the label of a field reads. */
.cloud-dialog-label {
    margin: 0 0 4px;
    color: var(--cloud-text-medium);
    font-size: 12px;
    line-height: 16px;
}

/* A group of fields inside the form („Adresa odesílatele“, „Služby dopravce“). */
.cloud-form-subtitle {
    margin: 8px 0 0;
    color: var(--cloud-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.cloud-dialog-alert.mud-alert {
    border-radius: var(--cloud-radius-control);
}

.cloud-dialog-checkbox.mud-input-control {
    margin: 0 0 0 -12px;
}

.cloud-dialog-text {
    margin: 0;
}

/* The country beside a carrier's name, in the table and in the open selects of the dialog. */
.cloud-country-chip.mud-chip {
    margin: 0 0 0 8px;
}

/* ---------- Scanning: the scan module and „Zkouška skeneru“ (docs/scanning.md) ---------- */

/* One sentence under the toolbar, before the cards. */
.cloud-page-intro {
    margin: 0 0 24px;
    color: var(--cloud-text-medium);
    line-height: 20px;
}

/* The buttons of the camera and of the measurement, side by side, wrapping on a phone. */
.cloud-scan-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-scan-decoder {
    margin-top: 16px;
    color: var(--cloud-text-medium);
}

.cloud-scan-error.mud-alert {
    margin-top: 16px;
    border-radius: var(--cloud-radius-control);
}

/* The last code read, large enough to compare with the digits under the bars. */
.cloud-scan-code {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
    line-height: 34px;
    overflow-wrap: anywhere;
}

.cloud-scan-none {
    margin: 0;
}

.cloud-scan-measure .cloud-scan-note {
    max-width: 420px;
    margin-bottom: 16px;
}

/* The card of the scanner as a keyboard: the sentence, the facts of the last batch and the field for the test of a cursor in a field. */
.cloud-scan-listening {
    margin: 0 0 12px;
}

.cloud-scan-batch {
    margin-bottom: 4px;
}

.cloud-scan-keyboard .cloud-scan-note-field {
    max-width: 420px;
    margin-top: 12px;
}

.cloud-scan-prompt {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

/* The judgement of the last read in a measurement: an alert like the error of the camera, its colour by severity. */
.cloud-scan-result.mud-alert {
    margin: 0 0 16px;
    border-radius: var(--cloud-radius-control);
}

/* The row for the table of the task file, also selectable by hand when the clipboard refuses. */
.cloud-scan-result-text {
    width: 100%;
    margin-top: 16px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--cloud-radius-control);
    background: var(--cloud-read-only);
    color: var(--cloud-dark);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 16px;
    box-sizing: border-box;
    resize: vertical;
}

.cloud-scan-reads-table .mud-table-cell {
    white-space: nowrap;
}

.cloud-scan-sheet-link {
    margin: 0;
}

    .cloud-scan-sheet-link a {
        color: var(--cloud-darker);
        font-weight: 500;
        text-decoration: none;
    }

/* ---------- Shipments: the dialog, the agenda, the detail, the label page and the help (docs/shipping.md) ---------- */

/* The shipments scroll sideways on a phone, as mPohoda's lists do. */
.cloud-shipments-table .mud-table-cell,
.cloud-shipment-packages .mud-table-cell {
    white-space: nowrap;
}

/* A place of the directory in the open search: the name with its kind, the address and code, why it is offered. */
.cloud-pickup-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0;
}

.cloud-pickup-item-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--cloud-dark);
    font-weight: 500;
}

.cloud-pickup-chip.mud-chip {
    margin: 0;
}

.cloud-pickup-item-address {
    color: var(--cloud-text-medium);
    font-size: 13px;
}

.cloud-pickup-item-note {
    color: var(--cloud-darker);
    font-size: 12px;
    font-weight: 500;
}

.cloud-pickup-none {
    margin: 0;
    padding: 8px 16px;
    color: var(--cloud-text-medium);
}

.cloud-pickup-no-cod.mud-alert {
    margin-top: 8px;
}

.cloud-shipment-recipient .cloud-facts {
    color: var(--cloud-dark);
    line-height: 20px;
}

.cloud-shipment-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cloud-text-medium);
}

/* The actions of a shipment under its fields, wrapping on a phone. */
.cloud-shipment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* The handover: the profiles with what they have waiting, the button, a line per profile after it. */
.cloud-dispatch-profiles,
.cloud-dispatch-results {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.cloud-dispatch-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
}

.cloud-dispatch-count {
    color: var(--cloud-text-medium);
}

.cloud-dispatch-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 0;
}

.cloud-print-option .mud-radio-group {
    display: flex;
    flex-direction: column;
}

/* A created shipment: „Tisknout“ beside „Otevřít štítek“, wrapping on a phone. */
.cloud-dialog-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The label page: no menus, a bar with the title and the buttons, the choice of printing, the PDF filling the rest. */
.cloud-label-layout {
    min-height: 100vh;
    background: var(--cloud-page);
}

.cloud-label-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100vh;
    padding: 12px var(--cloud-gutter);
    box-sizing: border-box;
}

.cloud-label-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.cloud-label-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.cloud-label-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-label-option {
    padding: 12px 16px;
    border-radius: var(--cloud-radius-card);
    background: #FFFFFF;
    box-shadow: var(--cloud-shadow-card);
}

.cloud-label-frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--cloud-lines);
    border-radius: var(--cloud-radius-control);
    background: #FFFFFF;
}

.cloud-label-missing {
    padding: 24px;
    border-radius: var(--cloud-radius-card);
    background: #FFFFFF;
}

/* „Návod: tisk bez dotazu“: numbered steps, the shortcut's target as a line to copy. */
.cloud-help-text {
    margin: 0;
    line-height: 20px;
}

.cloud-help-steps {
    margin: 0;
    padding-left: 20px;
    line-height: 22px;
}

    .cloud-help-steps li + li {
        margin-top: 12px;
    }

.cloud-help-browser {
    margin: 12px 0 4px;
    font-weight: 500;
}

.cloud-help-code {
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--cloud-radius-control);
    background: var(--cloud-read-only);
    color: var(--cloud-dark);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ---------- Check of an order, the style „Jako mPohoda“ (docs/orders.md § Check) ---------- */

/* The bar of the page: a wide page carries the actions as buttons, a phone one ⋮ menu. */
.cloud-check-actions-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloud-check-actions-phone {
    display: none;
}

/* The camera and the strip of the last scan: they hold the top of the page while the items scroll under them. They stop
   under both bars above them — the top bar is fixed and the bar of the page sticks under it —, because with top: 0 the
   scrolled page takes the torch, × and the top of the viewfinder under them. The page's own colour behind them, because
   the strip of an alert is tinted and the items would otherwise read through it. */
.cloud-check-scanner {
    position: sticky;
    top: calc(var(--cloud-topbar-height) + var(--cloud-toolbar-height));
    z-index: 3;
    background: var(--cloud-page);
}

.cloud-check-camera-closed {
    display: none;
}

.cloud-check-camera {
    margin: 0 0 16px;
    border-radius: var(--cloud-radius-card);
    background: #1A1A1A;
    overflow: hidden;
}

.cloud-check-camera-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 0;
}

    /* The torch alone sits left, so × keeps its place at the right of the bar. */
    .cloud-check-camera-bar .cloud-check-camera-close {
        margin-left: auto;
    }

.cloud-check-camera-button.mud-button-root {
    color: #FFFFFF;
}

.cloud-check-camera-hint {
    margin: 0;
    padding: 8px 16px 12px;
    color: #FFFFFF;
    text-align: center;
}

.cloud-check-camera-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 16px;
    color: #FFFFFF;
}

    .cloud-check-camera-error p {
        margin: 0;
    }

.cloud-check-scan-strip.mud-alert {
    margin: 0 0 16px;
}

/* The header while the camera runs: one line, so the items stay in view under the panel. */
.cloud-check-compact {
    margin: 0 0 16px;
    font-weight: 500;
}

/* The header: how much of the order is checked, who it is for, and the notes mPohoda sends with it. */
.cloud-check-progress-text {
    font-weight: 500;
}

.cloud-check-progress.mud-progress-linear {
    margin: 0 0 16px;
    border-radius: var(--cloud-radius-control);
}

.cloud-check-customer {
    margin: 0 0 8px;
    font-weight: 500;
}

.cloud-check-note {
    margin: 0 0 4px;
    line-height: 20px;
}

/* The items: the tabs with their counts, on a phone the sort beside them, the search under both. */
.cloud-check-items-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

    .cloud-check-items-bar .cloud-tabs.mud-tabs {
        flex: 1 1 240px;
        margin: 0;
    }

.cloud-check-sort {
    display: none;
    flex: 0 1 240px;
}

.cloud-check-search.cloud-form-field {
    margin: 16px 0 0;
    max-width: 420px;
}

.cloud-check-state {
    font-size: 20px;
}

/* A row of an item on a phone: the state, the name with its codes, the quantity, „Zkontrolovat zbytek“. */
.cloud-check-rows {
    display: none;
}

.cloud-check-row + .cloud-check-row {
    border-top: 1px solid var(--cloud-lines);
}

.cloud-check-row-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.cloud-check-row-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cloud-check-row-name {
    font-weight: 500;
    line-height: 20px;
}

.cloud-check-row-codes {
    color: var(--cloud-text-medium);
    font-size: 12px;
    line-height: 16px;
}

.cloud-check-row-quantity {
    font-weight: 500;
    white-space: nowrap;
}

/* The row the last scan changed, until the next read (board Cloud-mPohoda-02). */
.cloud-check-row-hit {
    border-left: 3px solid var(--cloud-accent);
    background: var(--cloud-light);
}

.cloud-check-rows .cloud-check-row-hit {
    padding-left: 5px;
}

.cloud-check-table .cloud-check-row-hit td {
    background: var(--cloud-light);
}

/* The open row: what the item is, who checked it last, and the one field of the page that writes. */
.cloud-check-editor {
    padding: 0 0 16px 28px;
}

.cloud-check-editor-note,
.cloud-check-editor-facts,
.cloud-check-last {
    margin: 0 0 4px;
    color: var(--cloud-text-medium);
    font-size: 12px;
    line-height: 18px;
}

.cloud-check-editor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
}

.cloud-check-quantity {
    flex: 0 0 96px;
}

.cloud-check-remaining {
    margin: 8px 0 0;
    color: var(--cloud-text-medium);
}

.cloud-check-all {
    margin: 8px 0 0;
}

/* The table of the items on a wide page: a head that sorts, the open row as a second row under it. */
.cloud-check-cell-checked {
    font-weight: 500;
}

.cloud-check-sort-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.cloud-check-sort-arrow {
    font-size: 14px;
    opacity: 0.3;
}

.cloud-check-sort-arrow-on {
    opacity: 1;
}

.cloud-check-table-editor {
    padding: 0 16px;
    background: var(--cloud-light);
}

/* PODROBNOSTI: the rest of the detail, folded away under the items. */
.cloud-check-details.mud-expansion-panels {
    margin-top: 24px;
}

.cloud-check-addresses {
    margin-top: 16px;
}

/* The two actions of a phone stay within the thumb's reach, over the page as mPohoda's bar does. */
.cloud-check-bottom-bar {
    display: none;
}

/* The choice of an item a code found on several lines. */
.cloud-choose-item-rows {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

.cloud-choose-item-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid var(--cloud-lines);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cloud-choose-item-name {
    font-weight: 500;
    line-height: 20px;
}

.cloud-choose-item-codes {
    color: var(--cloud-text-medium);
    font-size: 12px;
    line-height: 16px;
}

.cloud-choose-item-quantity {
    font-weight: 500;
}

@media (max-width: 1279.98px) {
    .cloud-check-actions-desktop {
        display: none;
    }

    .cloud-check-actions-phone {
        display: flex;
    }

    .cloud-check-sort {
        display: block;
    }

    .cloud-check-rows {
        display: block;
    }

    .cloud-check-table {
        display: none;
    }

    .cloud-check-bottom-bar {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: flex;
        gap: 12px;
        margin-top: 24px;
        padding: 12px 0;
        border-top: 1px solid var(--cloud-lines);
        background: var(--cloud-page);
    }

        .cloud-check-bottom-bar .mud-button-root {
            flex: 1 1 0;
        }
}

/* ---------- Tisk: the pairing code of a computer (docs/print.md § Nastavení → Tisk) ---------- */

/* The code for the installer in the frame of the board: one long word that must wrap inside the dialog, because
   it is copied by the button next to it — or marked by hand when the clipboard refuses. */
.cloud-pairing-code {
    margin: 16px 0 0;
    padding: 12px;
    border: 1px solid var(--cloud-lighter);
    border-radius: var(--cloud-radius-control);
    background: var(--cloud-light);
    color: var(--cloud-dark);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 17px;
    overflow-wrap: anywhere;
    word-break: break-all;
}

/* ---------- Check of an order, the style „Jako Smart Reader Client“ (boards Cloud-SRC-01 … 07) ---------- */

/* A screen of the style fills the page, so its bar stays at the bottom within the thumb's reach even where the cards
   above it are short (board Cloud-SRC-01: „Tlačítko je pevně dole, na dosah palce, jako v SRC“). Sticky alone would
   leave the bar in the middle of a page that does not scroll. */
.cloud-src-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--cloud-topbar-height) - var(--cloud-toolbar-height) - (2 * var(--cloud-content-padding)));
    min-height: calc(100dvh - var(--cloud-topbar-height) - var(--cloud-toolbar-height) - (2 * var(--cloud-content-padding)));
}

    .cloud-src-page .cloud-src-bottom-bar {
        margin-top: auto;
    }

/* The rows of a list, after Smart Reader Client: a tap anywhere opens what the row is about and the chevron only says
   so. One set of rows serves both widths — a wide page lays the same row out in one line (board Cloud-SRC-07) instead
   of drawing a table of its own, so no selector of a test ever resolves to two elements. */
.cloud-src-rows {
    display: flex;
    flex-direction: column;
}

.cloud-src-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

    .cloud-src-row:disabled {
        cursor: default;
        opacity: 0.5;
    }

    /* A line between the rows, never above the first one. */
    .cloud-src-row + .cloud-src-row {
        border-top: 1px solid var(--cloud-lines);
    }

/* A row of an item and the icon „Zkontrolovat zbytek“ beside it: the icon is an action of its own, so it stays outside
   the button that opens the item. */
.cloud-src-row-outer {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .cloud-src-row-outer + .cloud-src-row-outer {
        border-top: 1px solid var(--cloud-lines);
    }

.cloud-src-row-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.cloud-src-row-number {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.cloud-src-row-customer {
    line-height: 20px;
}

.cloud-src-row-meta {
    color: var(--cloud-text-medium);
    font-size: 12px;
    line-height: 16px;
}

/* A row that is an action („Řadit položky podle“, „Načíst znovu z mPohody“) carries no number, so its first line is
   the action itself in the size of a field's text. */
.cloud-src-row-action {
    font-size: 15px;
    line-height: 22px;
}

.cloud-src-row-chevron {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--cloud-text-weak);
}

/* The actions of a page at the bottom, within the thumb's reach; a wide page keeps them right (board Cloud-SRC-07). */
.cloud-src-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 0;
    border-top: 1px solid var(--cloud-lines);
    background: var(--cloud-page);
}

    .cloud-src-bottom-bar .mud-button-root {
        min-width: 200px;
    }

/* The header of the order: the number, who it is for, the date, the notes the switches of „Více“ show, the progress. */
.cloud-src-header-number {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.cloud-src-header-customer {
    margin: 4px 0 0;
}

.cloud-src-header-date,
.cloud-src-header-note {
    margin: 4px 0 0;
    color: var(--cloud-text-medium);
    line-height: 20px;
}

.cloud-src-header-progress {
    margin: 12px 0 0;
    font-weight: 500;
}

.cloud-src-search.cloud-form-field {
    margin: 0 0 8px;
    max-width: 420px;
}

/* A row of an item: the name with its note and codes, the quantity, „Zkontrolovat zbytek“ beside it. */
.cloud-src-item-name {
    font-size: 16px;
}

.cloud-src-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.cloud-src-item-done {
    color: var(--mud-palette-success);
}

.cloud-src-item-check {
    font-size: 18px;
}

/* „Zobrazit“ of „Více“: the label on the left, the switch on the right, as Smart Reader Client has them. */
.cloud-src-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

    .cloud-src-switch-row + .cloud-src-switch-row {
        border-top: 1px solid var(--cloud-lines);
    }

    .cloud-src-switch-row .mud-switch {
        margin: 0;
    }

.cloud-src-switch-label {
    font-size: 15px;
}

.cloud-src-sort-check {
    flex: 0 0 auto;
    font-size: 18px;
}

/* „Kontrola položky“: the item above, the one field of the page under it. */
.cloud-src-quantity {
    max-width: 240px;
}

.cloud-src-remaining {
    margin: 12px 0 0;
    color: var(--cloud-text-medium);
}

/* „Detail položky“: what the item is, line by line, and who checked it last. */
.cloud-src-facts {
    margin: 12px 0 0;
}

.cloud-src-fact {
    margin: 0 0 4px;
    line-height: 20px;
}

.cloud-src-last {
    margin: 12px 0 0;
    color: var(--cloud-text-medium);
    font-size: 12px;
    line-height: 18px;
}

/* The camera of the style over the whole screen (board Cloud-SRC-05): „Zrušit“ and the torch in the bar, the view of
   the camera in the middle, the hint under it and „Zadat kód ručně“ at the bottom. It covers the top bar too — the
   camera of one code is the whole screen while it runs — and stays under the dialogs (1400), which answer the code it
   read. The closed overlay only hides itself: ScanInput stays mounted, so the reader loads once with the page. */
.cloud-src-scan-closed {
    display: none;
}

.cloud-src-scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 1350;
    display: flex;
    flex-direction: column;
    padding: 8px var(--cloud-gutter) 16px;
    background: #1A1A1A;
    color: #FFFFFF;
    overflow-y: auto;
}

.cloud-src-scan-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cloud-src-scan-button.mud-button-root {
    color: #FFFFFF;
}

/* The view takes what is left between the bar and the foot, with the picture in the middle of it. */
.cloud-src-scan-overlay .cloud-scan {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.cloud-src-scan-hint {
    margin: 0 0 16px;
    text-align: center;
}

.cloud-src-scan-foot {
    display: flex;
    justify-content: center;
}

    /* The field of the kit is dark on dark over the camera, so the code by hand gets a surface of its own. */
    .cloud-src-scan-foot .cloud-src-scan-code {
        padding: 12px;
        border-radius: var(--cloud-radius-card);
        background: #FFFFFF;
    }

.cloud-src-scan-code {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

    .cloud-src-scan-code .cloud-form-field {
        flex: 1 1 auto;
    }

/* A camera the browser does not give: the screen is the page's own again (board Cloud-SRC-05 right) — its bar, the card
   that says what happened with „Zkusit znovu“, and the code by hand under it. The camera keeps its place in the markup
   without taking the screen, because a video hidden from the layout does not start a stream. */
.cloud-src-scan-overlay.cloud-src-scan-failed {
    padding: 0;
    background: var(--cloud-page);
    color: var(--cloud-dark);
}

    .cloud-src-scan-failed .cloud-scan {
        flex: 0 0 auto;
    }

.cloud-src-scan-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--cloud-toolbar-height);
    padding: 0 var(--cloud-gutter);
    border-bottom: 1px solid var(--cloud-lines);
    background: #FFFFFF;
}

.cloud-src-scan-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.cloud-src-scan-cards {
    padding: var(--cloud-content-padding) var(--cloud-gutter);
}

.cloud-src-scan-error-icon {
    display: block;
    margin: 0 0 8px;
}

.cloud-src-scan-error-text {
    margin: 0 0 16px;
}

/* A wide page lays the same rows out in one line (board Cloud-SRC-07): the order's number, customer and date side by
   side, an item's codes beside its name and the quantity at the right. */
@media (min-width: 1280px) {
    .cloud-src-header-grid {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        column-gap: 24px;
    }

    .cloud-src-orders .cloud-src-row-main {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr) 160px;
        align-items: center;
        column-gap: 24px;
    }

    .cloud-src-item-row .cloud-src-row-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
        grid-template-areas:
            "name codes"
            "note codes";
        align-items: center;
        column-gap: 24px;
    }

    .cloud-src-item-row .cloud-src-item-name {
        grid-area: name;
    }

    .cloud-src-item-row .cloud-src-row-customer {
        grid-area: note;
    }

    .cloud-src-item-row .cloud-src-row-meta {
        grid-area: codes;
    }
}

@media (max-width: 1279.98px) {
    .cloud-src-bottom-bar .mud-button-root {
        flex: 1 1 0;
        min-width: 0;
    }
}
