.appointment-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.appointment-app-shell--schedule {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.appointment-app-shell--schedule > .mn-header {
    position: relative;
    flex: 0 0 auto;
    min-height: 64px;
    height: auto;
    align-items: stretch;
    padding-right: 14px;
}

.appointment-app-shell--schedule > .mn-header .mn-header-brand {
    min-height: 64px;
}

.appointment-app-shell--schedule > .mn-header .mn-header-tools {
    gap: 8px;
    padding-left: 8px;
}

.appointment-app-shell--schedule > .mn-header .mn-clock--icon-only {
    width: 34px;
    height: 34px;
    justify-content: center;
    gap: 0;
    color: var(--mn-text-secondary, #635e57);
    cursor: default;
    box-sizing: border-box;
}

.appointment-app-shell--schedule > .mn-header .mn-clock--icon-only > span {
    display: none;
}

.appointment-app-shell--schedule > .mn-body {
    min-height: 0;
}

.appointment-main--schedule {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.appointment-view-switch {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.appointment-schedule-toolbar {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 12px;
}

.appointment-schedule-toolbar-primary {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
}

.appointment-schedule-toolbar-primary > .el-select {
    width: 180px;
    flex: 0 0 180px;
}

.appointment-schedule-toolbar-primary .appointment-schedule-date-tools {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.appointment-schedule-toolbar-primary .appointment-schedule-date-tools .el-button {
    margin-left: 0;
}

.appointment-app-shell--schedule .appointment-schedule-toolbar-icon-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--mn-text-secondary, #635e57);
    font-size: 16px;
    box-shadow: none;
}

.appointment-app-shell--schedule .appointment-schedule-toolbar-icon-button:hover:not(:disabled) {
    background: var(--mn-color-gold-subtle, #faf5f0);
    color: var(--mn-text-secondary, #635e57);
}

.appointment-app-shell--schedule .appointment-schedule-toolbar-icon-button:focus-visible {
    outline: 2px solid var(--mn-color-gold, #b78a6d);
    outline-offset: 2px;
}

.appointment-app-shell--schedule .appointment-schedule-today-button {
    width: 42px;
    height: 34px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: var(--mn-text-secondary, #635e57);
    font-size: 13px;
    font-weight: 600;
    box-shadow: none !important;
}

.appointment-app-shell--schedule .appointment-schedule-today-button:hover:not(:disabled) {
    background: transparent !important;
    color: var(--mn-text-primary, #303133);
}

.appointment-app-shell--schedule .appointment-schedule-today-button--current {
    color: var(--mn-color-gold-solid, #936040);
}

.appointment-app-shell--schedule .appointment-schedule-today-button--current:hover:not(:disabled) {
    color: var(--mn-color-gold-solid, #936040);
}

.appointment-app-shell--schedule .appointment-schedule-today-button:focus-visible {
    outline: 2px solid var(--mn-color-gold, #b78a6d);
    outline-offset: 2px;
}

.appointment-app-shell--schedule .appointment-schedule-create-button {
    min-width: 88px;
    height: 34px;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 9px;
    background: linear-gradient(135deg, #a97552 0%, #89583d 100%) !important;
    color: #fffaf5 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(92, 59, 39, 0.16) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.appointment-app-shell--schedule .appointment-schedule-create-button:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(92, 59, 39, 0.2) !important;
}

.appointment-app-shell--schedule .appointment-schedule-create-button:disabled {
    background: #c9b8aa !important;
    color: #fffaf5 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.appointment-app-shell--schedule .appointment-schedule-create-button:focus-visible {
    outline: 2px solid var(--mn-color-gold, #b78a6d);
    outline-offset: 2px;
}

.appointment-schedule-next-day-icon {
    transform: rotate(180deg);
}

.appointment-schedule-toolbar-primary .appointment-schedule-date-picker {
    width: 150px;
    flex: 0 0 150px;
}

.appointment-schedule-mode-wrap {
    display: flex;
    position: absolute;
    top: 50%;
    left: calc(50% + 110px);
    width: 240px;
    min-width: 240px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.appointment-schedule-mode-wrap .el-tabs {
    width: 240px;
    min-width: 240px;
}

.appointment-schedule-mode-wrap .el-tabs__header {
    margin: 0;
}

.appointment-schedule-mode-wrap .el-tabs__nav-wrap::after {
    display: none;
}

.appointment-schedule-mode-wrap .el-tabs__content {
    display: none;
}

.appointment-schedule-mode-wrap .el-tabs__nav {
    display: flex;
    float: none;
    width: 100%;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--mn-border-color, #ebe5dc);
    border-radius: 11px;
    background: var(--mn-bg-muted, #f2ede6);
    box-sizing: border-box;
}

.appointment-schedule-mode-wrap .el-tabs__active-bar {
    display: none;
}

.appointment-schedule-mode-wrap .el-tabs__item {
    display: flex;
    height: 34px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: var(--mn-text-secondary, #635e57);
    font-size: 14px;
    font-weight: 600;
    line-height: 34px;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.appointment-schedule-mode-wrap .el-tabs__item:hover {
    color: var(--mn-color-link, #8c5636);
    background: var(--mn-color-gold-subtle, #faf5f0);
}

.appointment-schedule-mode-wrap .el-tabs__item.is-active {
    color: #fff !important;
    background: var(--mn-color-gold-solid, #936040);
    box-shadow: 0 2px 5px rgba(70, 43, 27, 0.16);
}

.appointment-schedule-toolbar-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex: 1 0 auto;
    gap: 6px;
}

.appointment-schedule-count {
    margin-right: 2px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--mn-bg-subtle, #fbf9f6);
    color: var(--mn-text-muted, #635e57);
    font-size: 12px;
    white-space: nowrap;
}

.appointment-schedule-view-mode {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    border-radius: 6px;
    background: var(--mn-bg-subtle, #f2ede7);
}

.appointment-schedule-view-mode .el-radio-button {
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.appointment-schedule-view-mode .el-radio-button__inner {
    display: inline-flex;
    width: 34px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f8f5f1 !important;
    color: var(--mn-text-secondary, #635e57);
    font-size: 16px;
    outline: none !important;
    box-shadow: none !important;
}

.appointment-schedule-view-mode .el-radio-button__original-radio:checked + .el-radio-button__inner {
    border: 0 !important;
    background: var(--mn-color-gold-solid, #936040) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.appointment-schedule-view-mode .el-radio-button__inner:hover {
    background: #eee4da !important;
    color: var(--mn-color-gold-solid, #936040);
}

.appointment-schedule-view-mode .el-radio-button:first-child .el-radio-button__inner {
    border-radius: 4px 0 0 4px !important;
}

.appointment-schedule-view-mode .el-radio-button:last-child .el-radio-button__inner {
    border-radius: 0 4px 4px 0 !important;
}

.appointment-schedule-view-mode .el-radio-button__original-radio:checked + .el-radio-button__inner:hover {
    background: var(--mn-color-gold-solid, #936040) !important;
    color: #fff !important;
}

.appointment-schedule-view-mode .el-radio-button__original-radio:focus-visible + .el-radio-button__inner {
    outline: 2px solid var(--mn-color-gold, #b78a6d);
    outline-offset: 2px;
}

.appointment-schedule-card {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.appointment-equipment-placeholder {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    place-items: center;
    color: var(--mn-text-muted, #635e57);
}

.appointment-schedule-scroll {
    position: relative;
    min-height: 0;
    height: 0;
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cfc5b9 #f5f1eb;
}

.appointment-schedule-board {
    display: flex;
    width: max-content;
    min-width: 100%;
    align-items: stretch;
    padding-bottom: 1px;
}

.appointment-schedule-time-column {
    position: sticky;
    z-index: 3;
    left: 0;
    flex: 0 0 72px;
    width: 72px;
    background: var(--mn-bg-card, #fff);
    box-shadow: 5px 0 10px rgba(40, 32, 24, 0.04);
}

.appointment-schedule-column-heading {
    position: sticky;
    z-index: 4;
    top: 0;
    display: flex;
    height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 10px;
    border-right: 1px solid var(--mn-border-color, #ebe5dc);
    border-bottom: 1px solid var(--mn-border-color, #ebe5dc);
    color: var(--mn-text-primary, #1c1a18);
    background: var(--mn-bg-subtle, #fbf9f6);
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.appointment-schedule-time-column .appointment-schedule-column-heading {
    z-index: 5;
    left: 0;
}

.appointment-schedule-time-body,
.appointment-schedule-resource-body {
    position: relative;
}

.appointment-schedule-time-label {
    position: absolute;
    top: 0;
    right: 9px;
    z-index: 1;
    color: var(--mn-text-muted, #635e57);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transform: translateY(-50%);
}

.appointment-schedule-resource-column {
    flex: 0 0 230px;
    width: 230px;
    border-right: 1px solid var(--mn-border-color, #ebe5dc);
}

.appointment-schedule-resource-column .appointment-schedule-column-heading {
    align-items: flex-start;
    padding-left: 14px;
}

.appointment-schedule-column-heading small {
    color: var(--mn-text-muted, #635e57);
    font-size: 10px;
    font-weight: 400;
}

.appointment-schedule-resource-body {
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(60px - 1px),
        #eeeae4 calc(60px - 1px),
        #eeeae4 60px
    );
}

.appointment-schedule-grid-line {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    border-top: 1px solid #f0ede8;
    pointer-events: none;
}

.appointment-schedule-grid-line.is-hour {
    border-top-color: #ded6cc;
}

.appointment-schedule-event {
    position: absolute;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    overflow: hidden;
    padding: 7px 9px;
    border: 1px solid #c9e2d1;
    border-left: 3px solid #3f9367;
    border-radius: 0;
    color: #294d39;
    background-color: #eaf5ed;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(145deg, #f5fbf6 0%, #e7f3eb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(35, 59, 43, 0.11);
    cursor: pointer;
    text-align: left;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.appointment-schedule-event:hover {
    z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 6px 14px rgba(61, 48, 34, 0.18);
    transform: translateY(-1px);
}

.appointment-schedule-event:focus-visible {
    outline: 2px solid var(--mn-color-gold-solid, #936040);
    outline-offset: 1px;
}

.appointment-schedule-event.is-pending-confirmation {
    border-color: #e9cfaa;
    border-left-color: #bd7832;
    color: #704e24;
    background-color: #fff3df;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(145deg, #fffaf0 0%, #fbeed9 100%);
}

.appointment-schedule-event.is-checked_in {
    border-color: #e9cfaa;
    border-left-color: #bf8034;
    color: #704e24;
    background-color: #fff3df;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(145deg, #fffaf0 0%, #fbeed9 100%);
}

.appointment-schedule-event.is-fulfilled {
    border-color: #ddd9d3;
    border-left-color: #8a8278;
    color: #5c554e;
    background-color: #f1efeb;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(145deg, #faf9f7 0%, #efede9 100%);
}

.appointment-schedule-event.is-cancelled {
    border-color: #e7d9d7;
    border-left-color: #b45d52;
    color: #76514d;
    background-color: #f8ece9;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(145deg, #fff6f3 0%, #f7e7e3 100%);
}

.appointment-schedule-event-time {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-schedule-event-member,
.appointment-schedule-event-service,
.appointment-schedule-event-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-schedule-event-member {
    font-size: 12px;
    line-height: 1.35;
}

.appointment-schedule-event-service {
    color: inherit;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.88;
}

.appointment-schedule-event-meta {
    color: inherit;
    font-size: 10px;
    line-height: 1.25;
    opacity: 0.78;
}

.appointment-schedule-event.is-compact {
    gap: 2px;
    padding: 6px;
}

.appointment-schedule-event.is-compact .appointment-schedule-event-member {
    font-size: 11px;
}

.appointment-schedule-event.is-compact .appointment-schedule-event-meta {
    display: none;
}

.appointment-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    align-items: end;
    gap: 16px;
}

.appointment-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: var(--mn-text-secondary, #606266);
    font-size: 13px;
}

.appointment-filter-field .el-select,
.appointment-filter-field .el-input,
.appointment-filter-field .el-date-editor {
    width: 100%;
}

.appointment-filter-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 1px;
}

.appointment-form-full {
    width: 100%;
}

.appointment-dialog-alert {
    margin-bottom: 18px;
}

.appointment-slot-grid,
.appointment-resource-list,
.appointment-bed-grid {
    display: grid;
    gap: 10px;
    width: 100%;
}

.appointment-slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.appointment-slot-button,
.appointment-resource-choice {
    display: flex;
    height: auto;
    min-height: 44px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    white-space: normal;
}

.appointment-slot-button small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.appointment-resource-list {
    grid-template-columns: minmax(0, 1fr);
}

.appointment-resource-room {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--el-border-color-lighter, #ebeef5);
    border-radius: 8px;
}

.appointment-resource-room-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mn-text-primary, #303133);
}

.appointment-bed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.appointment-resource-choice {
    width: 100%;
    margin-left: 0 !important;
}

.appointment-drawer-loading {
    padding: 12px 4px;
}

.appointment-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.appointment-service-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--el-border-color, #dcdfe6);
    border-radius: 10px;
    background: var(--el-fill-color-lighter, #fafafa);
}

.appointment-service-panel-heading,
.appointment-settlement-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.appointment-service-panel-heading p {
    margin: 6px 0 0;
    color: var(--mn-text-secondary, #606266);
    font-size: 13px;
}

.appointment-settlement-summary {
    justify-content: flex-start;
    padding: 12px;
    border-radius: 8px;
    background: var(--el-bg-color, #fff);
    color: var(--mn-text-secondary, #606266);
    font-size: 13px;
}

.appointment-settlement-form {
    width: 100%;
    padding-top: 4px;
}

.appointment-detail-drawer.el-drawer {
    box-sizing: border-box;
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px);
    height: 100vh;
    height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.appointment-detail-drawer .el-drawer__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.appointment-gift-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--el-border-color-lighter, #ebeef5);
}

.appointment-gift-title {
    grid-column: 1 / -1;
    color: var(--mn-text-primary, #303133);
    font-size: 14px;
    font-weight: 600;
}

.appointment-gift-submit {
    margin-left: 0;
}

.appointment-history-title {
    margin: 24px 0 16px;
    color: var(--mn-text-primary, #303133);
    font-size: 16px;
    font-weight: 600;
}

.appointment-change-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--mn-text-secondary, #606266);
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

@media (max-width: 1399px) {
    .appointment-schedule-mode-wrap {
        position: static;
        width: auto;
        min-width: 0;
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .appointment-schedule-toolbar {
        justify-content: flex-start;
    }

    .appointment-schedule-toolbar-actions {
        flex: 1 1 auto;
    }

    .appointment-filter-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .appointment-heading-row {
        flex-direction: column;
    }

    .appointment-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .appointment-app-shell--schedule {
        height: 100dvh;
    }

    .appointment-app-shell--schedule > .mn-header {
        align-items: stretch;
        flex-wrap: wrap;
        padding-right: 12px;
    }

    .appointment-app-shell--schedule > .mn-header .mn-header-brand {
        min-height: 52px;
    }

    .appointment-app-shell--schedule .appointment-schedule-toolbar {
        display: grid;
        width: 100%;
        flex: 1 0 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px 12px 10px;
        border-top: 1px solid var(--mn-border-color, #ebe5dc);
    }

    .appointment-schedule-toolbar-primary {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .appointment-schedule-toolbar-primary > .el-select {
        width: 100%;
        flex-basis: 100%;
    }

    .appointment-schedule-toolbar-primary .appointment-schedule-date-tools {
        display: grid;
        width: 100%;
        grid-template-columns: 34px minmax(0, 1fr) 34px 42px;
    }

    .appointment-schedule-toolbar-primary .appointment-schedule-date-picker {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .appointment-schedule-mode-wrap,
    .appointment-schedule-mode-wrap .el-tabs {
        width: 100%;
        min-width: 0;
    }

    .appointment-schedule-mode-wrap {
        margin: 0;
    }

    .appointment-app-shell--schedule .appointment-schedule-toolbar-actions {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 6px;
    }

    .appointment-schedule-count {
        margin-right: auto;
    }

    .appointment-app-shell--schedule > .mn-body {
        flex-direction: column;
        overflow: hidden;
    }

    .appointment-app-shell--schedule .mn-sidebar {
        min-height: 0;
        flex: 0 0 auto;
    }

    .appointment-app-shell--schedule .appointment-main--schedule {
        width: 100%;
        min-height: 0;
        flex: 1 1 auto;
        padding: 0;
        overflow: hidden;
    }

    .appointment-schedule-card {
        min-height: 0;
        padding: 0;
    }

    .appointment-gift-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .appointment-slot-grid,
    .appointment-bed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 平板看板保持时间轴可见，资源列在看板容器内横向滚动。 */
@media (max-width: 1180px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .appointment-app-shell--schedule {
        height: 100vh;
        height: 100dvh;
    }

    .appointment-app-shell--schedule > .mn-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 8px;
        padding-right: 12px;
    }

    .appointment-app-shell--schedule > .mn-header .mn-header-brand {
        height: auto;
        min-width: 0;
        min-height: 60px;
        flex: 0 1 auto;
        align-self: center;
    }

    .appointment-app-shell--schedule > .mn-header .mn-header-tools {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .appointment-app-shell--schedule .appointment-schedule-toolbar {
        order: 3;
        display: grid;
        width: 100%;
        min-width: 0;
        flex: 1 0 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 8px 12px 10px;
        border-top: 1px solid var(--mn-border-color, #ebe5dc);
    }

    .appointment-schedule-toolbar-primary {
        grid-column: 1 / -1;
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
        gap: 8px;
    }

    .appointment-schedule-toolbar-primary > .el-select {
        width: 100%;
        min-width: 0;
        flex: initial;
    }

    .appointment-schedule-toolbar-primary .appointment-schedule-date-tools {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: 44px minmax(110px, 1fr) 44px 44px;
        gap: 6px;
    }

    .appointment-schedule-toolbar-primary .appointment-schedule-date-picker {
        width: 100%;
        min-width: 0;
        flex: initial;
    }

    .appointment-app-shell--schedule .appointment-schedule-toolbar-icon-button,
    .appointment-app-shell--schedule .appointment-schedule-today-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .appointment-app-shell--schedule .appointment-schedule-create-button {
        min-height: 44px;
    }

    .appointment-schedule-mode-wrap {
        position: static;
        grid-column: 1;
        width: 240px;
        min-width: 0;
        margin: 0;
        transform: none;
    }

    .appointment-schedule-mode-wrap .el-tabs {
        width: 100%;
        min-width: 0;
    }

    .appointment-schedule-mode-wrap .el-tabs__item {
        min-height: 44px;
    }

    .appointment-schedule-toolbar-actions {
        grid-column: 2;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }

    .appointment-schedule-view-mode .el-radio-button__inner {
        width: 44px;
        height: 44px;
    }

    .appointment-app-shell--schedule > .mn-body {
        min-height: 0;
        flex-direction: row;
        overflow: hidden;
    }

    .appointment-app-shell--schedule .mn-sidebar {
        min-height: 0;
    }

    .appointment-app-shell--schedule .appointment-main--schedule {
        width: 100%;
        min-width: 0;
        min-height: 0;
        flex: 1 1 auto;
        padding: 0;
        overflow: hidden;
    }

    .appointment-schedule-scroll {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    .appointment-app-shell .el-drawer.rtl {
        max-width: min(620px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px));
    }
}

@media (max-width: 640px) {
    .appointment-app-shell--schedule > .mn-header .mn-header-brand {
        min-height: 60px;
    }

    .appointment-app-shell--schedule .appointment-schedule-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .appointment-schedule-toolbar-primary {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr);
    }

    .appointment-schedule-mode-wrap,
    .appointment-schedule-toolbar-actions {
        grid-column: 1;
        width: 100%;
    }

    .appointment-schedule-mode-wrap {
        width: 100%;
    }

    .appointment-app-shell--schedule .appointment-schedule-toolbar-actions {
        justify-content: space-between;
    }
}
