html, body {
    margin: 0;
    color: var(--iz-ink);
    background: var(--iz-canvas);
    font-family: Inter, "Segoe UI", sans-serif;
}

/* Tema por empresa. Os valores são colocados pelo MainLayout depois de a
   empresa ativa ser identificada; as páginas antigas continuam com os seus
   fallbacks quando ainda não existe personalização. */
.iz-quick-action,
.workshop-primary-action,
.manager-hero-actions button,
.company-create-toggle,
.company-empty button,
button.primary,
a.primary {
    border-color: var(--iz-brand-primary, #287562) !important;
    background: var(--iz-brand-gradient) !important;
    box-shadow: 0 8px 20px var(--iz-brand-shadow) !important;
}

.mud-button-filled-primary,
.mud-fab-primary {
    background: var(--iz-brand-gradient) !important;
}

.mud-tab.mud-tab-active,
.mud-nav-link.active,
.mud-nav-link:hover {
    color: var(--iz-brand-primary, #287562) !important;
}

/* A identidade da empresa também aparece nos textos de destaque. O texto de
   leitura e as cores semânticas (erro/aviso/sucesso) mantêm o contraste. */
.iz-brand-copy strong,
.mud-nav-link.active .mud-nav-link-text,
.mud-tab.mud-tab-active .mud-tab-wrapper,
[class$="-hero"] > div:first-child > span:first-child,
[class$="-hero"] > div:first-child > small:first-child,
[class*="section-kicker"],
[class*="page-kicker"],
[class*="eyebrow"] {
    color: var(--iz-brand-primary, #287562) !important;
    background-image: var(--iz-brand-text-gradient) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Sistema visual partilhado com o xizKiosk */
/* Tema escuro escolhido por utilizador. Mantemos as cores semânticas de
   sucesso/aviso/erro e mudamos apenas as superfícies e o texto de leitura. */
html[data-iz-theme="dark"] {
    /* O tema escuro usa uma navegação escura, mas mantém a área operacional
       clara. Assim os muitos formulários e cartões existentes continuam
       legíveis sem combinações de texto claro sobre fundo branco. */
    --iz-ink: #243335;
    --iz-muted: #667572;
    --iz-primary: #55c7a7;
    --iz-primary-strong: #8ee1ca;
    --iz-primary-light: #62d4b4;
    --iz-primary-soft: #e8f6f2;
    --iz-info: #6daedb;
    --iz-info-soft: #eaf4fa;
    --iz-canvas: #0d1513;
    --iz-surface: #ffffff;
    --iz-surface-raised: #ffffff;
    --iz-border: #dce5e2;
    --iz-brand-primary-soft: color-mix(in srgb, var(--iz-brand-primary) 11%, #fff);
    --iz-brand-secondary-soft: color-mix(in srgb, var(--iz-brand-secondary) 11%, #fff);
    --iz-brand-primary-border: color-mix(in srgb, var(--iz-brand-primary) 34%, #dce5e2);
    --iz-brand-shadow: rgba(0, 0, 0, .34);
}

html[data-iz-theme="dark"],
html[data-iz-theme="dark"] body,
html[data-iz-theme="dark"] .mud-layout,
html[data-iz-theme="dark"] .iz-main-content,
html[data-iz-theme="dark"] .iz-page-frame {
    color: var(--iz-ink) !important;
    background: var(--iz-canvas) !important;
}

html[data-iz-theme="dark"] .mud-paper:not(.mud-alert):not(.mud-drawer):not(.mud-appbar),
html[data-iz-theme="dark"] .mud-card,
html[data-iz-theme="dark"] .mud-dialog,
html[data-iz-theme="dark"] .mud-popover,
html[data-iz-theme="dark"] .mud-menu,
html[data-iz-theme="dark"] .mud-list,
html[data-iz-theme="dark"] .mud-table,
html[data-iz-theme="dark"] .mud-table-container,
html[data-iz-theme="dark"] .mud-expand-panel {
    color: #243335 !important;
    border-color: #dce5e2 !important;
    background-color: #fff !important;
    --mud-palette-text-primary: #243335;
    --mud-palette-text-secondary: #667572;
    --mud-palette-action-default: #405852;
    --mud-palette-divider: #dce5e2;
}

html[data-iz-theme="dark"] .iz-page-frame {
    --mud-palette-text-primary: #243335;
    --mud-palette-text-secondary: #667572;
    --mud-palette-action-default: #405852;
    --mud-palette-surface: #ffffff;
    --mud-palette-background: #ffffff;
    --mud-palette-divider: #dce5e2;
}

html[data-iz-theme="dark"] .iz-page-frame > :first-child,
html[data-iz-theme="dark"] .mud-dialog,
html[data-iz-theme="dark"] .mud-dialog-content,
html[data-iz-theme="dark"] .mud-dialog-actions {
    color: #243335;
}

html[data-iz-theme="dark"] .mud-table-head .mud-table-cell,
html[data-iz-theme="dark"] .mud-table-row:hover {
    color: #243335 !important;
    background: #f3f7f6 !important;
}

html[data-iz-theme="dark"] .mud-drawer .mud-list,
html[data-iz-theme="dark"] .mud-drawer .mud-navmenu {
    color: #ddebe7 !important;
    background: transparent !important;
}

html[data-iz-theme="dark"] .iz-page-frame :is(
    [class$="-hero"],
    [class$="-panel"],
    [class$="-content"],
    [class$="-toolbar"],
    [class$="-card"],
    [class$="-list"]
) {
    border-color: var(--iz-border) !important;
}

html[data-iz-theme="dark"] .iz-page-frame :is(input, textarea, select) {
    color: #243335 !important;
    border-color: #cad8d4 !important;
    background-color: #fff !important;
}

html[data-iz-theme="dark"] .iz-page-frame :is(input, textarea)::placeholder {
    color: #788682 !important;
}

html[data-iz-theme="dark"] .mud-dialog :is(h1, h2, h3, h4, h5, h6, strong, label),
html[data-iz-theme="dark"] .mud-dialog .mud-typography,
html[data-iz-theme="dark"] .mud-dialog .mud-input,
html[data-iz-theme="dark"] .mud-dialog .mud-input-label,
html[data-iz-theme="dark"] .mud-table-cell {
    color: #243335;
}

html[data-iz-theme="dark"] .mud-dialog :is(p, small),
html[data-iz-theme="dark"] .mud-input-helper-text,
html[data-iz-theme="dark"] .mud-table-pagination-caption {
    color: #667572;
}

html[data-iz-theme="dark"] .mud-dialog :is(input, textarea, select) {
    color: #243335 !important;
    background: #fff !important;
}

html[data-iz-theme="dark"] ::-webkit-scrollbar-track {
    background: #101a18;
}

html[data-iz-theme="dark"] ::-webkit-scrollbar-thumb {
    border-color: #101a18;
    background: #3d504b;
}

* {
    box-sizing: border-box;
}

/* A agenda é uma ferramenta operacional e usa toda a largura disponível. */
.iz-page-frame:has(.calendar-page) {
    width: 100%;
    max-width: none;
    padding-inline: 10px;
    padding-bottom: 18px;
}

.mud-typography,
.mud-button-root,
.mud-input,
.mud-table,
.mud-list,
.mud-menu {
    font-family: Inter, "Segoe UI", sans-serif !important;
}

.mud-paper {
    border-color: var(--iz-border);
}

.mud-paper:not(.mud-popover):not(.mud-drawer):not(.mud-appbar) {
    border: 1px solid var(--iz-border);
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(28, 73, 65, .06) !important;
}

.mud-card {
    overflow: hidden;
    border: 1px solid var(--iz-border);
    border-radius: 20px !important;
    background: var(--iz-surface);
    box-shadow: 0 8px 24px rgba(28, 73, 65, .06) !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.mud-card:hover {
    border-color: #a8cfc4;
    box-shadow: 0 13px 32px rgba(39, 96, 81, .1) !important;
    transform: translateY(-2px);
}

.mud-button-root {
    min-height: 44px;
    border-radius: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.mud-button-filled-primary {
    background: var(--iz-primary-gradient) !important;
    box-shadow: 0 8px 18px rgba(40, 117, 98, .20) !important;
}

.mud-fab-primary,
.mud-theme-primary:not(.mud-icon-root),
.iz-primary-action {
    border-color: transparent !important;
    background: var(--iz-primary-gradient) !important;
}

::selection {
    color: #fff;
    background: var(--iz-primary-light);
}

.mud-input-control .mud-input-outlined-border {
    border-color: var(--iz-border) !important;
    border-width: 1.5px !important;
    border-radius: 13px !important;
}

.mud-input-control:focus-within .mud-input-outlined-border {
    border-color: var(--iz-primary) !important;
}

.mud-table-container {
    border: 1px solid var(--iz-border);
    border-radius: 17px;
}

.mud-table-head .mud-table-cell {
    color: #4f6761;
    background: #f6faf9;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mud-table-row:hover {
    background: #f0f7f5 !important;
}

.mud-chip {
    border-radius: 10px !important;
    font-weight: 700;
}

.mud-alert {
    border-radius: 15px !important;
}

.mud-dialog {
    border-radius: 24px !important;
}

.mud-expansion-panels {
    gap: 12px;
}

.mud-expand-panel {
    overflow: hidden;
    border: 1px solid var(--iz-border);
    border-radius: 17px !important;
    box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--iz-ink);
    letter-spacing: -.025em;
}

@media (max-width: 700px) {
    .mud-paper:not(.mud-popover):not(.mud-drawer):not(.mud-appbar),
    .mud-card {
        border-radius: 16px !important;
    }
}

a, .btn-link {
    color: var(--iz-primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--iz-primary);
    border-color: var(--iz-primary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(47, 111, 159, .25);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/*CSS Calendar Items*/

.calendar-item-container {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    padding: 8px;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    transition: border-color 0.3s ease;
}


.calendar-item-details {
    display: block;
}

@keyframes flash-red {
    0% {
        border-left-color: red;
    }

    50% {
        border-left-color: transparent;
    }

    100% {
        border-left-color: red;
    }
}

.flashing-border {
    animation: flash-red 1s infinite;
}

/* MudDrawer renders its outer element outside the scoped-CSS boundary. */
.iz-drawer.mud-drawer--closed .iz-drawer-content {
    padding: 18px 7px 14px;
}

.iz-drawer.mud-drawer--closed .iz-drawer-label,
.iz-drawer.mud-drawer--closed .iz-nav-separator,
.iz-drawer.mud-drawer--closed .iz-drawer-footer {
    display: none;
}

.iz-drawer.mud-drawer--closed .mud-nav-link {
    justify-content: center;
    min-width: 48px;
    padding-inline: 0;
}

.iz-drawer.mud-drawer--closed .mud-nav-link-icon {
    margin-inline: 0;
}

.iz-drawer.mud-drawer--closed .mud-nav-link-text {
    display: none;
}

@media (max-width: 700px) {
    .mud-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mud-button-root {
        min-height: 46px;
    }
}
/* MudBlazor renders option lists in a portal outside the component that opened
   them. Keep country and other option lists aligned with the form text. */
.mud-popover .mud-list-item,
.mud-popover .mud-list-item-text,
.mud-popover .mud-list-item-text p {
    text-align: left;
}

.mud-popover .mud-list-item {
    justify-content: flex-start;
}
.booking-country-popover{min-width:300px!important;max-width:min(380px,calc(100vw - 24px))!important}
.booking-country-popover .mud-list{padding:6px!important}
.booking-country-popover .mud-list-item{min-height:48px!important;justify-content:flex-start!important;text-align:left!important}
.booking-country-popover .mud-list-item-text{width:100%!important;text-align:left!important}

/* Personal accessibility preferences are stored per account and applied by the layout. */
html[data-iz-text-scale="large"]{font-size:112.5%}
html[data-iz-text-scale="xlarge"]{font-size:125%}
html[data-iz-high-contrast="true"]{--iz-muted:#3b4945;--iz-brand-primary-border:#668078}
html[data-iz-theme="dark"][data-iz-high-contrast="true"]{--iz-muted:#f0f3f2;--iz-brand-primary-border:#a2ada8;--iz-dark-muted:#f0f3f2}
html[data-iz-high-contrast="true"] :focus-visible{outline:3px solid var(--iz-brand-primary)!important;outline-offset:3px!important}
html[data-iz-compact-interface="true"] .mud-table-cell{padding-top:6px!important;padding-bottom:6px!important}
html[data-iz-compact-interface="true"] .mud-button-root{min-height:32px}
html[data-iz-reduced-motion="true"],html[data-iz-reduced-motion="true"] *,html[data-iz-reduced-motion="true"] *::before,html[data-iz-reduced-motion="true"] *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}

/* Tablet and phone layout: keep the app usable without desktop-width controls. */
@media (max-width: 960px) {
    html, body, .mud-layout { max-width:100%; overflow-x:hidden; }
    .iz-page-frame { min-width:0; }
    .iz-page-frame :is(.mud-grid,.mud-grid-item,.mud-paper,.mud-card,.mud-table-container) { min-width:0; max-width:100%; }
    .mud-dialog { width:calc(100vw - 24px)!important; max-width:calc(100vw - 24px)!important; margin:12px!important; }
    .mud-dialog-content { max-height:calc(100dvh - 170px); overflow:auto; overscroll-behavior:contain; }
    .mud-popover { max-width:calc(100vw - 16px)!important; }
}

@media (max-width: 820px) {
    .mud-grid { margin-top:0!important; }
    .mud-grid-item { padding:6px!important; }
    .mud-table-container { max-width:100%; overscroll-behavior-inline:contain; }
    .mud-table-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; padding:6px!important; }
    .mud-table-pagination .mud-table-pagination-caption { font-size:.75rem; }
    .mud-table-cell { padding-inline:9px!important; }
}

@media (max-width: 760px) {
    .iz-page-frame :is(h1,.mud-typography-h3,.mud-typography-h4) { font-size:clamp(1.35rem,6vw,1.85rem)!important; line-height:1.15; }
    .iz-page-frame :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.mud-input-slot) { font-size:16px!important; }
    .mud-icon-button { min-width:44px!important; min-height:44px!important; }
    .mud-button-root { min-height:44px; max-width:100%; }
    .mud-table-container:has(.mud-table-cell[data-label]) { overflow:visible!important; border:0!important; border-radius:0!important; background:transparent!important; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-root { display:block; width:100%; background:transparent!important; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-head { display:none!important; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-body { display:grid!important; gap:9px; background:transparent!important; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-row { display:grid!important; grid-template-columns:minmax(0,1fr); overflow:hidden; padding:5px 12px; border:1px solid var(--iz-border)!important; border-radius:14px; background:var(--iz-surface)!important; box-shadow:0 4px 13px rgba(28,73,65,.06); }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-cell { display:flex!important; align-items:baseline; justify-content:space-between; gap:12px; width:100%; min-width:0!important; padding:8px 0!important; border-bottom:1px solid var(--iz-border)!important; background:transparent!important; text-align:right!important; white-space:normal!important; overflow-wrap:anywhere; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-cell[data-label]:not([data-label=""])::before { content:attr(data-label); flex:0 0 36%; color:var(--iz-muted); font-size:.7rem; font-weight:800; line-height:1.35; text-align:left; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-cell:not([data-label]),
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-cell[data-label=""] { justify-content:flex-end; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-cell:last-child { border-bottom:0!important; }
    .mud-table-container:not(:has(.mud-table-cell[data-label])) { overflow-x:auto!important; -webkit-overflow-scrolling:touch; }
    .mud-table-container:not(:has(.mud-table-cell[data-label])) .mud-table-root { min-width:620px; }
    .mud-table-container:not(:has(.mud-table-cell[data-label]))::after { content:"Desliza para ver mais colunas"; display:block; position:sticky; left:0; padding:5px 9px; color:var(--iz-muted); font-size:.68rem; }
    .mud-table-pagination { position:sticky; left:0; }
    .mud-dialog { width:100vw!important; max-width:100vw!important; max-height:100dvh!important; margin:0!important; border-radius:18px 18px 0 0!important; align-self:end; }
    .mud-dialog-content { max-height:calc(100dvh - 155px); padding:14px!important; }
    .mud-dialog-actions { flex-wrap:wrap; gap:8px; padding:10px 14px calc(12px + env(safe-area-inset-bottom))!important; }
    .mud-dialog-actions .mud-button-root { flex:1 1 auto; }
}

@media (max-width: 420px) {
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-row { padding-inline:10px; }
    .mud-table-container:has(.mud-table-cell[data-label]) .mud-table-cell[data-label]:not([data-label=""])::before { flex-basis:32%; }
}

/* Barcode reader: use the full phone viewport for the camera and keep actions reachable. */
@media (min-width: 761px) and (max-width: 960px) {
    .mud-dialog.barcode-reader-dialog { width:min(88vw,760px)!important; max-width:min(88vw,760px)!important; height:min(88dvh,900px); max-height:88dvh!important; margin:auto!important; border-radius:20px!important; }
    .mud-dialog.barcode-reader-dialog .mud-dialog-content { display:flex; flex:1 1 auto; min-height:0; max-height:none!important; overflow:auto; }
    .mud-dialog.barcode-reader-dialog .barcode-dialog { width:100%; }
    .mud-dialog.barcode-reader-dialog .barcode-camera { height:min(45dvh,470px); }
}

@media (max-width: 760px) {
    .mud-dialog.barcode-reader-dialog { display:flex!important; flex-direction:column; width:100vw!important; max-width:100vw!important; height:100dvh!important; max-height:100dvh!important; margin:0!important; align-self:stretch!important; border-radius:0!important; padding-top:env(safe-area-inset-top); }
    .mud-dialog.barcode-reader-dialog .mud-dialog-content { flex:1 1 auto; min-height:0; max-height:none!important; padding:12px!important; overflow:auto; overscroll-behavior:contain; }
    .mud-dialog.barcode-reader-dialog .mud-dialog-actions { position:sticky; z-index:2; bottom:0; flex:0 0 auto; padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important; background:var(--mud-palette-surface); box-shadow:0 -8px 20px rgba(20,40,36,.08); }
    .mud-dialog.barcode-reader-dialog .barcode-dialog { gap:10px; }
    .mud-dialog.barcode-reader-dialog .barcode-dialog header { align-items:flex-start; gap:10px; }
    .mud-dialog.barcode-reader-dialog .barcode-dialog header > svg { font-size:26px; }
    .mud-dialog.barcode-reader-dialog .barcode-dialog header small { font-size:.78rem; line-height:1.4; }
    .mud-dialog.barcode-reader-dialog .barcode-camera { flex:0 0 auto; width:100%; height:clamp(210px,42dvh,390px); min-height:0; max-height:46dvh; border-radius:16px; }
    .mud-dialog.barcode-reader-dialog .barcode-camera video { width:100%!important; height:100%!important; object-fit:cover; }
    .mud-dialog.barcode-reader-dialog .barcode-manual { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
    .mud-dialog.barcode-reader-dialog .barcode-manual .mud-button-root { min-width:48px; padding-inline:12px; }
    .mud-dialog.barcode-reader-dialog .barcode-list { max-height:18dvh; overflow:auto; align-content:start; padding-bottom:4px; }
    .mud-dialog.barcode-reader-dialog .barcode-list > span { max-width:100%; overflow-wrap:anywhere; }
    .mud-dialog.barcode-reader-dialog:has(.barcode-manual:focus-within) .barcode-camera { height:26dvh; min-height:150px; }
}

@media (max-width: 380px) {
    .mud-dialog.barcode-reader-dialog .mud-dialog-content { padding:9px!important; }
    .mud-dialog.barcode-reader-dialog .barcode-camera { height:34dvh; }
    .mud-dialog.barcode-reader-dialog .mud-dialog-actions { padding-inline:9px!important; }
}
