html, body {
    height: 100%;
    margin: 0;
    background: #f1f1f1;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: normal;
}

.mud-typography,
.mud-button-label,
.mud-input-label,
.mud-chip-content,
.mud-tab {
    letter-spacing: normal !important;
}

/* Static shell shown until Blazor Interactive Server connects (prerender: false). */
.desk-boot {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #212121;
    font-family: Roboto, Helvetica, Arial, sans-serif;
}

.desk-boot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.desk-boot-card p {
    margin: 0;
    font-size: 0.95rem;
}

.desk-boot-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #cfd8dc;
    border-top-color: #1565c0;
    border-radius: 50%;
    animation: desk-spin 0.8s linear infinite;
}

@keyframes desk-spin {
    to { transform: rotate(360deg); }
}

body:has(.mud-layout) .desk-boot,
body:has(.mud-container) .desk-boot {
    display: none;
}

.dash-appbar.mud-appbar {
    z-index: 1300;
}

/* MudBlazor jumps gutters 16→24px at 600px; keep company/city pinned. */
.dash-appbar .mud-toolbar-appbar,
.dash-appbar .mud-toolbar-gutters {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.dash-appbar .mud-toolbar-appbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.dash-company {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: max-content;
    max-width: none;
    margin: 0;
    padding: 0;
}

.dash-company-name {
    color: inherit !important;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    display: block;
}

.dash-company-city {
    opacity: 0.85;
    line-height: 1.1;
    white-space: nowrap;
}

.dash-stats {
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    min-width: 0;
    max-width: 100%;
    opacity: 0.95;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.dash-stats:empty,
.dash-stats.dash-stats-placeholder {
    border-left-color: transparent;
    min-height: 1.25rem;
}

.dash-stats .mud-typography {
    color: inherit;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dash-toolbar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 140px;
}

.dash-conn {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.dash-culture,
.dash-culture.mud-input-control,
.dash-culture.mud-select {
    flex: 0 0 76px;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    margin: 0 !important;
}

.dash-appbar .dash-culture .mud-input-slot,
.dash-appbar .dash-culture .mud-input,
.dash-appbar .dash-culture input {
    color: #fff !important;
}

.dash-appbar .dash-culture .mud-select-input,
.dash-appbar .dash-culture .mud-icon-root {
    color: #fff !important;
}

.dash-appbar .dash-culture .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.dash-page-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.mud-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.dash-main.mud-main-content {
    padding: 0 !important;
}

.dash-main.desk-main {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100dvh - 48px) !important;
    overflow: hidden;
}

.dash-main.admin-main {
    padding: 16px !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

@media (max-width: 959px) {
    .mud-layout {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .dash-main.desk-main {
        padding-bottom: 0 !important;
        height: calc(100dvh - 48px) !important;
        min-height: 0;
        overflow: hidden;
    }
}

.incoming-call {
    margin: 8px;
    background: linear-gradient(90deg, rgba(0, 150, 136, 0.16), rgba(21, 101, 192, 0.08));
    border: 1px solid rgba(0, 150, 136, 0.45);
    border-radius: 4px;
}

/* —— Desk: map full-bleed + left overlay panels —— */
.desk-shell {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.desk-stage-root {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.desk-map-layer {
    position: relative;
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-width: 160px;
    height: 100%;
    background: #e8eaf6;
    z-index: 1;
}

.desk-shifts-col {
    width: 25vw;
    min-width: 260px;
    max-width: 360px;
    height: 100%;
    overflow: auto;
    background: #fff;
    border-right: 1px solid #ccc;
    z-index: 2;
}

.desk-map-fill {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.desk-map-fill .desk-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0;
    border-radius: 0;
}

.desk-fab-shifts {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 1100 !important;
}

.desk-panels {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    flex: 0 0 auto;
    max-width: none;
    pointer-events: auto;
}

.desk-panels-off {
    display: none !important;
}

.desk-side-panel {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: 100%;
    min-height: 0;
    background: #fff;
    border-right: 1px solid #ccc;
    overflow: hidden;
    transition: width 0.35s ease, min-width 0.35s ease;
}

.desk-side-queue {
    width: 33vw;
    min-width: 400px;
}

.desk-side-compose,
.desk-side-suggest {
    width: 30vw;
    min-width: 400px;
}

.desk-panel-actions {
    position: relative;
    flex: 0 0 28px;
    z-index: 6;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    width: auto;
    padding: 2px 2px 0;
    border: 0;
    background: #fff;
}

.desk-side-queue > .desk-panel-actions {
    position: absolute;
    top: 4px;
    right: 2px;
    flex: none;
    width: auto;
    align-self: auto;
    padding: 0;
}

.desk-chrome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #616161;
    cursor: pointer;
    border-radius: 2px;
}

.desk-chrome-btn:hover {
    color: #212121;
    background: #eeeeee;
}

.desk-arrow-open {
    transform: rotate(180deg);
}

.desk-side-panel > .desk-panel {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    height: auto !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.desk-side-compose > .desk-panel,
.desk-side-suggest > .desk-panel {
    overflow: hidden;
    padding-bottom: 12px;
}

/* Angular .mini: 10px rail + white overlay; 24px so the arrow stays clickable. */
.desk-side-mini {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    overflow: hidden !important;
}

.desk-side-mini::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 4;
}

.desk-side-mini > .desk-panel-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    flex: none;
    justify-content: center;
    flex-direction: column;
    background: transparent;
}

.desk-side-mini > .desk-panel,
.desk-side-mini > *:not(.desk-panel-actions) {
    visibility: hidden !important;
    pointer-events: none !important;
}

.desk-panel-scroll {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.desk-queue-head {
    position: relative;
    padding: 0 76px 0 0;
}

.desk-queue-tabs {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    border-bottom: 1px solid #e0e0e0;
}

.desk-tab {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    font: inherit;
    font-size: 13px;
    letter-spacing: normal;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.desk-tab-on {
    color: #1565c0;
    box-shadow: inset 0 -2px 0 #1565c0;
    font-weight: 500;
}

.desk-queue-add {
    position: absolute !important;
    right: 36px;
    top: 6px;
    z-index: 3;
}

.desk-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #ccc;
    background: #fff;
    color: #212121;
    cursor: pointer;
}

.desk-filter-toggle:hover {
    background: #f4f4f4;
}

.desk-queue {
    min-height: 0;
}

.desk-queue-head {
    flex-shrink: 0;
}

.desk-queue-filters {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 15px 6px;
    border-bottom: 1px solid #ccc;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.desk-qf-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.desk-qf-row-closed {
    margin-top: 2px;
}

.desk-qf {
    box-sizing: border-box;
    min-width: 0;
    padding: 0;
    margin-top: -4px;
}

.desk-qf-text,
.desk-qf-phone {
    flex: 1 1 0;
    width: 0;
    max-width: none;
    overflow: hidden;
}

.desk-qf-date {
    flex: 0 0 124px;
    width: 124px;
    max-width: 124px;
    overflow: visible;
}

.desk-qf-reason {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
}

.desk-qf-actions {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    overflow: visible;
}

.desk-qf > .mud-input-control {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.desk-qf-fab.mud-button-root,
.desk-qf-fab.mud-icon-button {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.desk-qf-fab .mud-icon-root {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.desk-queue-filters .mud-input-control,
.desk-queue-filters .mud-input-control-margin-dense {
    margin: 0 !important;
}

.desk-queue-filters .mud-input-control > .mud-input-control-input-container {
    margin-top: 12px !important;
    min-width: 0;
}

.desk-queue-filters .mud-input-label,
.desk-queue-filters .mud-input-label-inputlabel {
    font-size: 12px !important;
    line-height: 1.2 !important;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-queue-filters .mud-input,
.desk-queue-filters .mud-select-input,
.desk-queue-filters .mud-input-slot {
    font-size: 13px !important;
    min-height: 26px !important;
    height: 26px !important;
    min-width: 0 !important;
}

.desk-queue-filters .mud-input.mud-input-underline::before,
.desk-queue-filters .mud-input.mud-input-underline::after {
    border-bottom-width: 1px;
}

.desk-queue-filters .mud-input > input.mud-input-root,
.desk-queue-filters .mud-input > input {
    padding: 0 !important;
    height: 26px !important;
    line-height: 26px !important;
    min-width: 0 !important;
}

.desk-queue-filters .mud-select .mud-input,
.desk-queue-filters .mud-picker .mud-input {
    display: flex !important;
    align-items: center !important;
    min-height: 26px !important;
    height: 26px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.desk-queue-filters .mud-select .mud-select-input {
    padding: 0 !important;
    min-height: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

.desk-queue-filters .mud-picker,
.desk-queue-filters .mud-picker-input-container,
.desk-queue-filters .mud-input-control-input-container {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.desk-queue-filters .mud-picker .mud-input-adornment,
.desk-queue-filters .mud-input-adornment {
    margin: 0 !important;
    height: 26px !important;
    max-height: 26px !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    overflow: visible !important;
}

.desk-queue-filters .mud-input-adornment .mud-icon-button,
.desk-queue-filters .mud-input-adornment .mud-button-root {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.desk-queue-filters .mud-input-adornment .mud-icon-root {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    overflow: visible !important;
}

/* Date: value left, full calendar icon right. */
.desk-qf-date .mud-input {
    gap: 2px !important;
}

.desk-qf-date .mud-input > input.mud-input-root,
.desk-qf-date .mud-input > input {
    flex: 1 1 auto !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    padding-right: 0 !important;
    min-width: 0 !important;
}

.desk-qf-date .mud-input-adornment-end,
.desk-qf-date .mud-input-adornment {
    margin-inline-start: 0 !important;
    margin-left: 0 !important;
}

.desk-order-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.desk-queue-pager {
    flex-shrink: 0;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    box-sizing: border-box;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.desk-queue-pager .desk-pager {
    width: 100%;
    margin: 0 !important;
    align-items: center !important;
}

.desk-queue-pager .desk-pager > .mud-button-root,
.desk-queue-pager .desk-pager > .mud-typography {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.desk-queue-pager .desk-pager-page {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

.desk-queue-pager .mud-button-label {
    display: inline-flex;
    align-items: center;
}

.desk-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.desk-order-table th {
    background: #f1f1f1;
    font-weight: 500;
    text-align: left;
    padding: 6px 8px;
    font-size: 12px;
    color: #616161;
}

.desk-order-table td {
    padding: 5px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.desk-order-table th:first-child,
.desk-order-table td:first-child {
    padding-left: 15px;
}

.desk-order-table th:last-child,
.desk-order-table td:last-child {
    padding-right: 15px;
}

.desk-order-table .date_id p {
    margin: 0;
}

.desk-order-table .date_id p:first-child {
    margin-bottom: 0;
}

.desk-order-table .date_id p:last-child {
    margin-top: 0;
}

.desk-order-table .opacity {
    opacity: 0.8;
    font-size: 12px;
}

.order-row {
    cursor: pointer;
}

.order-row:hover,
.order-row-active {
    background: #f1f1f1;
}

.order-row-autosearch {
    background: #fffde7;
}

.order-row-autosearch:hover,
.order-row-autosearch.order-row-active {
    background: #fff9c4;
}

.order-row-binded {
    background: #f1f8e9;
}

.order-row-binded:hover,
.order-row-binded.order-row-active {
    background: #dcedc8;
}

.order-row-payed {
    background: #e8f5e9;
}

.order-row-payed:hover,
.order-row-payed.order-row-active {
    background: #c8e6c9;
}

.order-row-notpayed {
    background: #ffebee;
}

.order-row-notpayed:hover,
.order-row-notpayed.order-row-active {
    background: #ffcdd2;
}

.order-row-other {
    background: #efebe9;
}

.order-row-other:hover,
.order-row-other.order-row-active {
    background: #d7ccc8;
}

.order-row-flag {
    display: block;
    font-size: 11px;
    color: #616161;
    white-space: nowrap;
}

.desk-info-route {
    padding-right: 0;
}

.desk-route {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}

.desk-route-mark {
    flex: 0 0 auto;
    align-self: center;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    box-sizing: border-box;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #1565c0;
    white-space: nowrap;
}

.desk-route-drop .desk-route-mark {
    background: #009688;
}

.desk-route-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* List rows: match Angular .route span:before (absolute + margin:auto). */
.desk-route-sm {
    position: relative;
    display: block;
    padding-left: 22px;
    margin: 2px 0;
}

.desk-route-sm .desk-route-mark {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 15px;
    min-width: 15px;
    line-height: 15px;
    font-size: 10px;
    padding: 0 2px;
}

.desk-route-sm .desk-route-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 15px;
    max-height: 30px;
}

.desk-route-big {
    font-size: 25px;
    margin: 10px 0;
    font-weight: 400;
}

.desk-route-big .desk-route-mark {
    min-width: 26px;
    height: 26px;
    font-size: 16px;
    line-height: 26px;
    padding: 0 4px;
}

.desk-comment-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    width: 100%;
    padding-bottom: 4px;
}

.desk-comment-input,
.desk-comment-input.mud-input-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: none;
}

.desk-textarea {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
}

.desk-textarea-label {
    font-size: 12px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.6);
}

.desk-textarea-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 0 6px;
    min-height: calc(1.4em + 10px);
    max-height: 280px;
    height: calc(1.4em + 10px);
    resize: none;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 0;
    background: transparent;
    font: inherit;
    line-height: 1.4;
    color: inherit;
}

.desk-textarea-input:focus {
    outline: 0;
    border-bottom-width: 2px;
    border-bottom-color: #1565c0;
}

.desk-create-btn {
    align-self: flex-start;
    flex: 0 0 auto;
    min-width: 88px !important;
    height: 36px !important;
    margin: 8px 0 4px;
    padding: 0 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.desk-form .desk-create-btn.mud-button-filled-primary.mud-disabled,
.desk-form .desk-create-btn:disabled {
    background-color: rgba(0, 0, 0, 0.12) !important;
    color: rgba(0, 0, 0, 0.26) !important;
    box-shadow: none !important;
}

.desk-mini-fab {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.desk-mini-fab .mud-icon-root {
    color: #fff !important;
    font-size: 18px !important;
}

.desk-mini-fab-accent {
    background: #009688;
}

.guest-notes {
    width: min(400px, 100%);
}

.guest-notes .desk-info-line {
    display: block;
}

.mud-dialog:has(.guest-notes) .mud-dialog-actions {
    display: none;
}

.desk-shifts-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.desk-shifts-head .desk-form-title {
    padding-right: 0;
    flex: 1;
}

.desk-fab-on {
    box-shadow: inset 0 0 0 2px #fff !important;
}

.desk-order-actions {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
}

.order-card {
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.order-card-active {
    border-color: #1565c0;
    box-shadow: inset 0 0 0 1px #1565c0;
}

.suggest-card {
    border-left: 4px solid transparent;
    cursor: pointer;
}

.suggest-offered { border-left-color: #2e7d32; }
.suggest-accepted { border-left-color: #1565c0; }
.suggest-rejected { border-left-color: #c62828; }
.suggest-noanswer { border-left-color: #f9a825; }

.offer-wait {
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.35);
    border-radius: 4px;
}

.offer-wait-seconds {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #1565c0;
}

.desk-map {
    min-height: 280px;
    height: 42vh;
    width: 100%;
    overflow: hidden;
    background: #e8eaf6;
}

.desk-mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
    border-radius: 8px;
    padding: 4px;
}

.admin-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
}

.admin-card-wide {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
}

.tariff-tabs .mud-tabs-toolbar {
    min-height: 48px;
}

.tariff-tabs .mud-tab {
    min-width: 100px;
    padding-inline: 12px;
    text-transform: none;
    font-size: 13px;
}

.tariff-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.tariff-basic > * {
    width: calc(40% - 8px);
    min-width: 220px;
}

.pre-block {
    white-space: pre-wrap;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 0.85rem;
}

.dash-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.dash-table-wrap {
    overflow-x: auto;
}

.addr-field {
    position: relative;
}

.addr-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.addr-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}

.addr-suggest-item:hover {
    background: #f1f1f1;
}

.employee-edit {
    margin-left: auto;
}

.addr-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.desk-form-title {
    margin: 0;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding-right: 0;
}

.desk-suggest-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0;
}

.desk-suggest-head .desk-form-title {
    padding-right: 0;
}

.desk-suggest-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 2px;
}

.desk-form-hint {
    margin-top: -8px;
    color: #616161;
}

.desk-info {
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: normal;
    overflow-x: hidden;
}

.desk-info-block {
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.desk-info-block h4 {
    margin: 8px 0 6px;
    font-size: 1rem;
    font-weight: 500;
}

.desk-info-line {
    margin: 4px 0;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.desk-form .mud-input-control,
.desk-shifts .mud-input-control,
.desk-queue-filters .mud-input-control {
    margin-top: 0;
}

.desk-muted {
    color: #757575;
}

.desk-reserved {
    color: #2e7d32;
    font-weight: 500;
}

.desk-notes-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.desk-notes-link:hover {
    color: #0d47a1;
}

.desk-wish-list {
    margin: 0 0 0 1.2rem;
    padding: 0;
}

.desk-info-actions {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.desk-comment-when {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #00897b;
}

.desk-comment-text {
    display: block;
    margin: 4px 0 8px;
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phone-line {
    display: inline-flex !important;
}

.booked-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booked-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.booked-chip {
    border: 1px solid #1976d2;
    background: #fff;
    color: #1976d2;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

.booked-chip-on {
    background: #1976d2;
    color: #fff;
}

.booked-steppers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.booked-colon {
    font-size: 1.2rem;
    font-weight: 500;
}

.date-stepper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.date-stepper-btn {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #424242;
}

.date-stepper-btn:disabled {
    cursor: default;
    opacity: 0.4;
}

.date-stepper-value {
    min-width: 50px;
    width: auto;
    max-width: 72px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
}

.booked-steppers .date-stepper:nth-child(3) {
    margin-right: 16px;
}

.shift-card {
    padding: 8px 0 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.shift-available {
    border-left: 3px solid #2e7d32;
    padding-left: 8px;
}

.shift-busy {
    border-left: 3px solid #c62828;
    padding-left: 8px;
}

.shift-paused {
    border-left: 3px solid #f9a825;
    padding-left: 8px;
}

.desk-map .gm-style {
    font: inherit;
}

.desk-map .gmnoprint button,
.desk-map .gm-control-active {
    width: 40px !important;
    height: 40px !important;
}

@media (max-width: 959px) {
    .desk-stage-root {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        /* Reserve space so the map/FAB sit above the fixed bottom nav. */
        padding-bottom: 72px;
        box-sizing: border-box;
    }

    .desk-panels {
        order: 1;
        position: relative;
        flex: 0 1 auto;
        height: auto;
        min-height: 0;
        max-height: 48%;
        max-width: none;
        pointer-events: auto;
        flex-direction: column;
        overflow: hidden;
    }

    .desk-map-layer {
        order: 2;
        position: relative;
        flex: 1 1 auto;
        height: auto;
        min-height: 180px;
        min-width: 0;
    }

    .desk-map-fill {
        height: 100%;
        min-height: 0;
    }

    .desk-map-fill .desk-map,
    .desk-map-layer .desk-map {
        height: 100% !important;
        min-height: 100% !important;
    }

    .desk-stage-root:has(.desk-panels-hide-mobile) {
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    .desk-stage-root:has(.desk-panels-hide-mobile) .desk-map-layer {
        order: 1;
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

    .desk-stage-root:has(.desk-panels-hide-mobile) .desk-map-fill {
        height: 100%;
        min-height: 0;
    }

    .desk-stage-root:has(.desk-panels-hide-mobile) .desk-map-fill .desk-map {
        height: 100% !important;
        min-height: 100% !important;
    }

    /* Active shifts + map: keep both visible (Angular col-25 + map). */
    .desk-stage-root:has(.desk-shifts-col) .desk-map-layer {
        order: 1;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

    .desk-stage-root:has(.desk-shifts-col) .desk-shifts-col {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: 0 1 42%;
        max-height: 42%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #ccc;
    }

    .desk-stage-root:has(.desk-shifts-col) .desk-map-fill {
        flex: 1 1 58%;
        min-height: 160px;
        height: auto;
    }

    .desk-side-panel {
        display: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .desk-side-mobile-active {
        display: flex !important;
        flex: 1 1 auto;
        min-height: 0;
    }

    /* Collapsed "<<": keep a thin bar with ">>" so the panel can be restored
       (desktop mini rail uses display:none here and vanished permanently). */
    .desk-side-mini.desk-side-mobile-active {
        display: flex !important;
        flex: 0 0 36px !important;
        flex-direction: row;
        align-items: center;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 36px !important;
        max-height: 36px !important;
        min-height: 36px !important;
        overflow: visible !important;
    }

    .desk-side-mini.desk-side-mobile-active::after {
        display: none;
    }

    .desk-side-mini.desk-side-mobile-active > .desk-panel-actions {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100%;
        height: 36px;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        padding: 0 8px;
        background: #fff;
        z-index: 6;
    }

    .desk-side-mini.desk-side-mobile-active > .desk-panel,
    .desk-side-mini.desk-side-mobile-active > *:not(.desk-panel-actions) {
        display: none !important;
        visibility: hidden !important;
    }

    .desk-side-suggest.desk-side-mobile-active:not(.desk-side-mini) {
        display: flex !important;
        max-height: 40%;
    }

    .desk-panels-hide-mobile {
        display: none;
    }

    .desk-fab-shifts {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: auto;
    }
}

@media (max-width: 600px) {
    .mud-dialog {
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .mud-dialog .mud-dialog-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
