﻿.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px);
}

.modal-body.route-editor-modal-body {
    overflow: visible !important;
}

.table-bordered, .border-l {
    border: 1px solid #EBEDF3;
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        -webkit-transition: none;
        transition: none;
    }
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.modal.modal-static .modal-dialog {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
}

.modal-dialog-scrollable {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
    content: '';
}

.modal-dialog-centered.modal-dialog-scrollable {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none;
}

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 0 solid rgba(0, 0, 0, 0.2);
    border-radius: 0.42rem;
    -webkit-box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: auto;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.2;
}

.modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #ebedf3;
    border-top-left-radius: 0.42rem;
    border-top-right-radius: 0.42rem;
}

.modal-header .close {
    padding: 1.5rem 1.75rem;
    margin: -1.5rem -1.75rem -1.5rem auto;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.75rem;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #ebedf3;
    border-bottom-right-radius: 0.42rem;
    border-bottom-left-radius: 0.42rem;
}

.modal-footer > * {
    margin: 0.25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }

    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
        height: -webkit-min-content;
        height: -moz-min-content;
        height: min-content;
    }

    .modal-content {
        -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

    .modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

.card {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.aside .aside-menu .menu-nav > .menu-item > .menu-link {
    width: auto !important;
}

.aside-menu .menu-nav > .menu-item > .menu-submenu .menu-subnav > .menu-item > .active > .menu-text {
    color: #fff;
    font-size: 1.2rem;
}

.aside-menu .menu-nav .menu-item.menu-item-open > .menu-submenu {
    width: 100%;
}

.b-file-picker .b-text-drop {
    display: none !important;
}

.xtabs .xtabs-header {
    padding: 1rem 2rem !important;
}

.card-light {
    border: 1px solid #ebedf3 !important;
}

.card-light .card-header {
    background-color: #f3f6f9 !important;
}

.max-width-80 {
    max-width: 80px;
}

.max-width-140 {
    max-width: 140px;
}

.max-width-200 {
    max-width: 200px;
}

@media print {
    :has(.print-element) > :not(.print-element):not(:has(.print-element)) {
        display: none;
    }
}

.font-size-large,
.font-size-large table,
.font-size-large table,
.font-size-large th,
.form-large table,
.form-large table,
.form-large th,
.form-large select,
.form-large .checkbox,
.form-large #OrderSchedules,
.form-large .form-group label,
.form-large .form-group .form-control,
.form-large .form-group .form-control-plaintext,
.form-large .form-group .btn-light,
.form-large .form-group .dropdown-item,
.form-large .nav .nav-item,
.form-group .e-delim-values,
.form-large .form-group .blazored-typeahead__input-mask,
.form-large .form-group .blazored-typeahead__result {
    font-size: 1.3rem !important;
}

.form-group label.font-weight-bolder {
    display: block;
}

.form-large .e-switch-wrapper {
    width: 76px !important;
    height: 30px !important;
}

.form-large .e-switch-wrapper .e-switch-handle {
    top: 8px !important;
}

tr.table-dark .text-muted {
    color: #fff !important;
}

.form-large .form-group .e-multi-select-wrapper {
    min-height: 34px !important;
    margin-top: 8px !important;
    font-size: 1.3rem !important;
}

.form-large .form-group input.e-input {
    min-height: 43px !important;
    font-size: 1.3rem !important;
}

.card.card-custom > .card-header.card-header-tabs-line .nav .nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.blazored-modal {
    border: none;
    padding: 0;
}

.blazored-modal-header,
input[inputfileclassname='customfileupload'] {
    display: none;
}

.modal-fullscreen {
    width: 90vw;
    max-width: none;
    height: 90%;
    margin: 10px auto;
}

.modal-fullscreen .modal-header {
    border-radius: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

.modal-fullscreen .modal-footer {
    border-radius: 0;
}

.blazored-typeahead {
    border: 1px solid #e2e5ec;
    border-radius: 4px;
}

.blazored-typeahead__input,
.blazored-typeahead__input-mask {
    height: calc(1.5em + 1.3rem + 2px) !important;
    padding: 0.65rem 1rem !important;
}

ul.validation-errors {
    background: #fd397a;
    border: 1px solid #fd397a;
    color: #fff;
    display: list-item;
    align-items: stretch;
    padding: 1rem 2rem;
    margin: 0 0 20px 0;
    border-radius: 4px;
}

ul.validation-errors li.validation-message {
    display: block;
    color: white !important;
    list-style-type: circle;
}

.swal2-actions button {
    padding: 0.75rem 3rem !important;
    margin: 0.5rem !important;
    color: #ffffff !important;
}

.swal2-actions button.swal2-confirm {
    background-color: #187de4 !important;
    border-color: #187de4 !important;
}

.swal2-actions button.swal2-cancel {
    background-color: #181c32 !important;
    border-color: #181c32 !important;
}

.e-bigger {
    font-size: medium;
}

.e-bigger .e-multi-select-wrapper input[type='text'] {
    font-size: 1rem !important;
    padding: 0.5rem !important;
}

.panzoom {
    text-align: center;
}

/*.e-upload .e-file-select-wrap, */
.e-bigger.e-small .e-upload .e-file-select-wrap {
    padding: 2px 5px !important;
}

.e-bigger.e-checkbox-wrapper .e-frame {
    height: 20px;
    width: 20px;
    /*padding: 8px 0;*/
}

.e-bigger.e-checkbox-wrapper .e-check {
    font-size: 20px;
}

.e-bigger.e-checkbox-wrapper .e-ripple-container {
    height: 52px;
    top: -11px;
    width: 47px;
}

.e-bigger.e-checkbox-wrapper .e-label {
    line-height: 20px;
    font-size: 20px;
}

.e-numeric.e-custom .e-input-group-icon.e-spin-up:before {
    content: "\e805";
    color: rgba(0, 0, 0, 0.54);
}

.e-numeric.e-custom .e-input-group-icon.e-spin-down:before {
    content: "\e807";
    color: rgba(0, 0, 0, 0.54);
}

.e-schedule td.holiday {
    background-color: #FFE2E5 !important;
}

.e-schedule .e-month-view .e-appointment .e-appointment-details {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.e-schedule .e-month-view .e-appointment {
    height: auto !important;
    background-color: rgb(59 130 246 / 1) !important;
    border: none !important;
}

.e-schedule .e-month-view .e-appointment .e-appointment-details .e-subject {
    white-space: normal !important;
    text-align: left !important;
    font-size: inherit !important; /* 继承父元素字体大小 */
}

.e-schedule .e-month-view .e-current-date .e-date-header, .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
    background-color: rgb(239 68 68 / 1) !important;
}

@media print {
    .table-bordered th,
    .table-bordered td {
        border: 1px solid #000 !important;
    }
}

/* Soft input style used by WanleApp admin forms */
.form-control {
    height: 3rem; /* h-12 */
    width: 100%;
    border-radius: 5px;
    border: 1px solid #e2e8f0; /* border-slate-200 */
    /*background-color: rgb(248 250 252 / 0.7);  */
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    font-weight: 500; /* font-medium */
    color: #334155; /* text-slate-700 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: #94a3b8; /* placeholder:text-slate-400 */
}

.form-control:focus {
    border-color: #38bdf8; /* focus:border-sky-400 */
    background-color: #fff; /* focus:bg-white */
    box-shadow: 0 0 0 4px #e0f2fe; /* focus:ring-4 focus:ring-sky-100 */
}

/* 导游编辑弹窗的语言多选框，保持与 .form-control 一致 */
.wanle-guide-language.e-control-wrapper,
.wanle-guide-language.e-control-wrapper:hover {
    width: 100%;
    min-height: 3rem;
    border-radius: 5px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wanle-guide-language.e-control-wrapper.e-input-focus {
    border-color: #38bdf8 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px #e0f2fe;
}

.wanle-guide-language .e-multi-select-wrapper {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.wanle-guide-language .e-input,
.wanle-guide-language .e-input::placeholder {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

.wanle-guide-language .e-input {
    color: #334155;
    background-color: transparent !important;
}

.wanle-guide-language .e-input::placeholder {
    color: #94a3b8;
}

.wanle-guide-language .e-chips,
.wanle-guide-language .e-chipcontent {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.wanle-guide-language .e-chips {
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    margin: 0;
    padding: 0;
}

.wanle-guide-language .e-chipcontent {
    line-height: 1.25rem;
}

.wanle-guide-search.e-control-wrapper,
.wanle-guide-search.e-control-wrapper:hover {
    min-height: 3rem;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: rgb(248 250 252 / 0.7) !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    overflow: hidden;
}

.wanle-guide-search.e-control-wrapper .e-input {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background-color: transparent !important;
}

.wanle-guide-search.e-control-wrapper .e-input::placeholder {
    color: #94a3b8; /* placeholder:text-slate-400 */
}

.wanle-guide-search.e-control-wrapper.e-input-focus {
    border-color: #38bdf8 !important; /* focus:border-sky-400 */
    background-color: #fff !important; /* focus:bg-white */
    box-shadow: 0 0 0 4px #e0f2fe; /* focus:ring-4 focus:ring-sky-100 */
}

textarea.form-control {
    height: auto;
    min-height: 3rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}
