body {
    font-family: "Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
    margin: 5px 15px 0 15px
}

input:not(.arrow)::-webkit-inner-spin-button,input:not(.arrow)::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number]:not(.arrow) {
    -moz-appearance: textfield
}

.dropdown-backdrop {
    display: none
}

.nav-tabs>li>a {
    padding: 8px 15px
}

label.btn input[type=checkbox] {
    display: none
}

label.btn input[type=checkbox]+.fa {
    opacity: .1
}

label.btn input[type=checkbox]:checked+.fa {
    opacity: 1
}

.table-hover tbody tr:hover td,.table-hover tbody tr:hover th {
    background-color: #f5f5f5
}

.box {
    margin-bottom: 10px;
    padding: 0 5px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    display: inline-block;
    border-radius: 3px;
    margin-right: 5px
}

.box>.btn,.box>.inline-wrapper,.box>.input-group {
    margin: 3px 0
}

.inline-wrapper,.select-wrapper {
    display: inline-block
}

.header-wrapper {
    margin-bottom: 5px
}

.header-wrapper:not(:first-child) {
    margin-top: -5px
}

.header-wrapper .btn,.header-wrapper .input-group,.header-wrapper>input.form-control,.header-wrapper>select {
    margin-bottom: 5px
}

.header-wrapper .input-group .btn {
    margin-bottom: 0
}

#input-recipe-price {
    width: 95px
}

.search-box input.form-control {
    width: 150px
}

.loading-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.4);
    z-index: 30
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    z-index: 50;
    color: #fff
}

.loading-text h1 {
    animation: pulse 2.5s linear infinite
}

.loading-text a {
    color: #fff
}

@keyframes pulse {
    0% {
        transform: scale(1,1);
        opacity: .5
    }

    50% {
        transform: scale(1.1,1);
        opacity: 1
    }

    100% {
        transform: scale(1,1);
        opacity: .5
    }
}

.paginationjs-pages ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0
}

.paginationjs-pages li {
    display: inline-block
}

.paginationjs-nav,.paginationjs-pages {
    display: inline-block
}

.paginationjs-pages li a {
    margin-right: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.paginationjs-pages li.disabled a {
    color: #ccc
}

.btn-cal-results-cal .glyphicon {
    top: 2px
}

.pane-cal-sub .header-wrapper {
    margin-top: 10px
}

#pane-cal-optimal-results.pane-cal-sub .header-wrapper,#pane-cal-settings.pane-cal-sub .header-wrapper {
    margin-top: 0
}

#pane-cal-optimal-results {
    position: relative;
    min-height: 60vh
}

.cal-results-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 50%;
    z-index: 100
}

.cal-results-progress .progress {
    position: relative
}

.cal-results-progress .progress span {
    position: absolute;
    display: block;
    width: 100%;
    color: #000
}

.cal-results-progress .progress-bar {
    -webkit-transition: inherit;
    -o-transition: inherit;
    transition: inherit
}

.tab-content {
    padding-top: 5px
}

.pane-cal .nav-tabs {
    display: none
}

.pane-cal #pane-cal-recipes .select-info {
    display: none
}

.pane-cal.admin #pane-cal-recipes .select-info {
    display: inline-block;
    margin-left: 5px
}

.admin-only {
    display: none
}

.pane-cal.admin .admin-only {
    display: inline-block
}

.table-hover tbody tr.selected:hover td {
    background-color: #eee
}

table.dataTable tbody td {
    outline: 0
}

table.dataTable tbody td.selected,table.dataTable tbody th.selected,table.dataTable tbody tr.selected {
    color: #333
}

table.dataTable tbody>tr.selected,table.dataTable tbody>tr>.selected {
    background-color: inherit
}

.cal-custom-item {
    margin-bottom: 20px
}

.rule-desc {
    text-align: center
}

.rule-desc .item {
    margin-bottom: 3px
}

.rule-desc .label {
    font-size: 12px;
    margin-left: 5px;
    margin-bottom: 2px;
    display: inline-block
}

.selected-sum-wrapper {
    text-align: center;
    color: #337ab7
}

.selected-sum {
    display: inline-block;
    font-weight: 700;
    font-size: 16px
}

.btn-resize {
    cursor: pointer
}

.box .input-group,.header-wrapper .input-group {
    display: inline-table;
    vertical-align: middle
}

.box .input-group .form-control,.box .input-group .input-group-addon,.box .input-group .input-group-btn,.header-wrapper .input-group .input-group-addon,.header-wrapper .input-group .input-group-btn {
    width: auto
}

.form-control.input-addition {
    width: 60px;
    text-align: center
}

.bootstrap-select .dropdown-toggle:focus,.bootstrap-select>select.mobile-device:focus+.dropdown-toggle {
    outline: 0!important
}

.bootstrap-select.show-tick .dropdown-menu li a span.text {
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis
}

.bootstrap-select .dropdown-menu {
    margin-top: -2px;
    z-index: 1701
}

.guest-rate-calculator .bootstrap-select .dropdown-menu {
    z-index: 1310 !important;
}

.header-wrapper .bootstrap-select .dropdown-menu {
    margin-top: -5px
}

.header-wrapper .input-group .bootstrap-select .dropdown-menu {
    margin-top: 0
}

.bootstrap-select .dropdown-menu li a {
    color: #333
}

.bootstrap-select .dropdown-menu li a.selected {
    background-color: #aaa
}

.bootstrap-select .dropdown-menu input.form-control {
    border-radius: 4px
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: inherit
}

.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:hover {
    color: #fff
}

.dd-select-picker .bs-donebutton,.selected-item-wrapper .select-picker .bs-donebutton,.table-select-picker .bs-donebutton {
    display: none
}

.bs-actionsbox .btn-group button:only-child {
    width: 100%
}

.btn-group .btn.active {
    background-color: #337ab7;
    color: #fff
}

.selected-item-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1130px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    align-items: center
}

.selected-item {
    display: flex;
    flex-direction: row;
    word-break: break-word;
    font-size: 13px;
    margin: 4px 0
}

.selected-item.lock {
    pointer-events: none
}

.selected-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: relative;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    -webkit-box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
    box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
    border-radius: 4px;
    margin: 0 2px;
    padding: 0 1px
}

.selected-box:first-child {
    margin-right: 2px
}

.selected-box:last-child {
    margin-left: 2px
}

.edit-box {
    position: relative
}

.chef-box {
    min-width: 115px;
    min-height: 140px
}

.equip-box {
    width: 135px
}

.condiment-box {
    width: 115px
}

.chef-box .content .name,.condiment-box .content .name,.equip-box .content .name,.recipe-box .content .name {
    font-weight: 700;
    color: #337ab7
}

.chef-box .chef-placeholder,.recipe-box .recipe-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    background-color: #fff;
    border-radius: 4px
}

.chef-box .chef-box-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 100%
}

.chef-box .chef-box-1 .skill {
    padding-left: 5px
}

.chef-box .chef-box-1 .content span {
    font-size: 85%;
    width: 50%;
    display: inline-block;
    text-align: left
}

.chef-box .chef-box-2 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    cursor: default;
    width: 150px;
    height: 100%
}

.chef-box .disk-level-box {
    padding: 6px 0;
    cursor: pointer
}

.chef-box .disk-box {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    min-height: 40px
}

.chef-box.no-amber-skill .disk-box {
    min-height: 35px
}

.chef-box .amber-in,.condiment-box .condiment-in,.equip-box .equip-in {
    display: flex;
    justify-content: center
}

.chef-box-2 .icon-amber,.condiment-box .icon-condiment,.equip-box .icon-equip {
    zoom:.5;margin: 0 5px 0 0
}

.condiment-box .rarity {
    font-size: 85%
}

.recipe-box-1 .icon-recipe {
    zoom:.8}

.recipe-box-1 .icon-box {
    min-height: 32px
}

.selected-item .icon-box {
    display: flex;
    align-items: center
}

.chef-box .chef-box-1.no-icon .icon-box,.chef-box .chef-box-1.no-skill .content .skill,.chef-box .chef-box-2.no-box,.chef-box .chef-box-2.no-icon .icon-box,.chef-box .chef-box-2.no-skill .content small,.condiment-box.no-condiment,.condiment-box.no-icon .icon-box,.condiment-box.no-skill .content small,.equip-box.no-icon .icon-box,.equip-box.no-skill .content small,.recipe-box .recipe-box-1.no-icon .icon-box,.recipe-box .recipe-box-1.no-time .time,.recipe-box .recipe-box-2.no-add .add,.recipe-box .recipe-box-2.no-material .material,.recipe-box .recipe-box-2.no-rarity .rarity,.recipe-box .recipe-box-2.no-skill .skill {
    display: none
}

.chef-box .content .name.disk-1 {
    color: #d9534f
}

.chef-box .content .name.disk-2 {
    color: #449d44
}

.chef-box .content .name.disk-3 {
    color: #337ab7
}

.recipe-box .recipe-box-1 {
    display: flex;
    flex-direction: column;
    width: 125px;
    height: 100%
}

.recipe-box .recipe-box-1 .name {
    padding-top: 5px
}

.recipe-box .recipe-qec {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap
}

.recipe-box .recipe-ric {
    display: flex;
    justify-content: center;
    align-items: center
}

.recipe-box .recipe-ric .rank {
    padding-right: 5px
}

.recipe-box .recipe-ric .condiment {
    padding-left: 5px
}

.recipe-box .recipe-result {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 11px
}

.recipe-box .recipe-result .score {
    font-size: 110%;
    white-space: nowrap
}

.recipe-box .red {
    color: red;
    font-weight: 700
}

.recipe-box .recipe-box-2 {
    padding-left: 5px;
    padding-right: 5px;
    width: 140px;
    font-size: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%
}

.recipe-box .recipe-box-2 .rarity {
    text-align: center;
    font-size: 85%
}

.recipe-box .recipe-box-2 .add span,.recipe-box .recipe-box-2 .material span,.recipe-box .recipe-box-2 .skill span {
    width: 50%;
    display: inline-block
}

.recipe-box .recipe-box-2 .rank {
    margin-left: -30px;
    text-align: center
}

.recipe-box .recipe-box-2:not(.no-rarity.no-skill) .material,.recipe-box .recipe-box-2:not(.no-rarity.no-skill.no-material) .add {
    border-top: 1px dashed #ddd
}

.recipe-box .recipe-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30px
}

.recipe-box .recipe-quantity .form-control {
    width: 40px;
    font-size: 13px;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
    text-align: center;
    line-height: 25px;
    height: 25px;
    font-weight: 700;
    color: #337ab7
}

.recipe-box .recipe-quantity .available,.recipe-box .recipe-quantity .max {
    font-size: 90%;
    white-space: nowrap
}

.recipe-box .recipe-quantity .available {
    color: red;
    font-weight: 700
}

label.chk-label {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 0
}

label.chk-label input[type=checkbox] {
    display: none
}

label.chk-label input[type=checkbox]+span {
    color: #bbb;
    font-size: 12px;
    border: 1px dashed #888;
    padding: 0 2px;
    position: relative;
    background: linear-gradient(to right top,transparent 47.75%,#333 49.5%,#333 50.5%,transparent 52.25%)
}

label.chk-label input[type=checkbox]:checked+span {
    color: #888;
    border-color: #fff;
    background: 0 0
}

.recipe-box .recipe-condiment,.recipe-box .recipe-ex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px
}

#pane-cal-custom.banquet .condiment-box {
    display: none
}

#pane-cal-custom.banquet .recipe-box .recipe-condiment {
    display: none
}

.selected-item .select-picker {
    position: absolute;
    left: 0;
    top: 0;
    width: 0
}

.selected-item .select-picker .bootstrap-select {
    max-width: 100%
}

.selected-item .select-picker .bootstrap-select>.dropdown-toggle {
    display: none
}

.editing,.editing .chef-placeholder,.editing .recipe-placeholder {
    background-color: #5bc0de!important
}

.table-select-picker {
    position: fixed;
    z-index: 100
}

.table-select-picker .bootstrap-select>.dropdown-toggle {
    display: none
}

#input-import-run {
    min-height: 50vh
}

#input-import-data {
    width: 200px
}

#input-export-import {
    width: 100%!important;
    min-height: 50vh
}

#input-import-bcjh-cloud {
    width: 200px
}

#input-import-bcjh-text {
    width: 100%!important;
    min-height: 20vh
}

#input-cal-decoration {
    width: 65px
}

#input-cal-min-score {
    width: 100px
}

#input-cal-thread {
    width: 50px
}

.cal-settings .input-group .form-control {
    width: 55px
}

.optimal-result table tr.active {
    text-align: center
}

.btn-cal-set-custom {
    margin-left: 20px
}

.main-function {
    position: relative
}

.main-nav {
    position: relative;
    margin-right: 40px
}

#disk-modal .modal-dialog {
    max-width: 350px;
    margin: auto
}

#disk-modal .amber-box {
    margin-top: 20px;
    display: flex;
    align-items: center
}

#disk-modal .amber-box .content {
    display: flex;
    align-items: center
}

#disk-modal .amber-box .content .icon {
    zoom:.6;padding: 0 5px
}

#disk-modal .amber-box .bootstrap-select .dropdown-menu {
    top: 0
}

#menu-modal .main-nav {
    margin-right: 10px
}

#setting-btn {
    position: absolute;
    top: 0;
    right: 0
}

.setting-tip {
    padding-left: 5px
}

.modal-header .modal-title {
    color: #337ab7;
    font-size: 16px;
    padding-left: 20px
}

#menu-modal .close {
    position: absolute;
    top: 5px;
    right: 5px
}

.main-function .tooltip-inner {
    background-color: rgba(0,0,0,.6)
}

td.td-chef-icon {
    width: 50px;
    height: 50px
}

td.td-recipe-icon {
    width: 40px;
    height: 40px
}

td.td-equip-icon {
    width: 35px
}

td.td-amber-icon {
    width: 35px
}

td.td-decoration-icon {
    width: 64px
}

td.td-condiment-icon {
    width: 35px
}

table.history-table tr td {
    border: 0
}

table.history-table tr td.history-dt {
    width: 80px;
    padding-left: 0
}

.select-file {
    position: relative;
    overflow: hidden;
    display: inline-block
}

.select-file input[type=file] {
    position: absolute;
    opacity: 0;
    left: 0;
    top: 0;
    font-size: 100px
}

.inline-div {
    display: inline-block;
    vertical-align: top
}

.import-msg {
    color: #337ab7;
    background-color: #d9edf7;
    border-color: #bce8f1;
    padding: 6px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-left: 10px
}

.alert-version {
    padding: 8px 30px 8px 20px;
    margin-bottom: 5px;
    text-align: center
}

.pane-materials th {
    text-align: center;
    border-bottom-width: 1px
}

.pane-materials td {
    text-align: center
}

.pane-materials tbody tr:last-child {
    background: #eee;
    font-weight: 700;
    color: #337ab7
}

#input-material-skill {
    width: 60px
}

#input-material-addition {
    width: 60px
}

#decoration-sum {
    text-align: center;
    color: #337ab7;
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
    margin-bottom: 10px;
    min-height: 1em
}

#select-partial-ultimate .btn-info {
    background-color: #f0ad4e;
    border-color: #eea236
}

.warning-info {
    line-height: 20px;
    text-align: center
}

.quest-warning {
    border-radius: .15em;
    padding: 6px 8px 4px;
    display: inline-block;
    font-weight: 700
}

.quest-warning {
    color: #fff;
    background-color: #5bc0de
}

.dropdown-header {
    color: #337ab7;
    font-weight: 700
}

/* 规则选择框折叠功能样式 */
.dropdown-header.collapsible {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
}

.dropdown-header .collapse-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
    border-top-width: 6px;
    border-right-width: 6px;
    border-left-width: 6px;
}

/* 菜谱选择框符文分组标题样式 */
.bootstrap-select .select-picker-recipe + .dropdown-menu .dropdown-header.collapsible,
.dropdown-menu .dropdown-header.collapsible.recipe-rune-header {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
    margin-top: 8px !important;
}

/* 第一个符文分组不需要上边距 */
.bootstrap-select .select-picker-recipe + .dropdown-menu .dropdown-header.collapsible:first-of-type,
.dropdown-menu .dropdown-header.collapsible.recipe-rune-header:first-of-type {
    margin-top: 0 !important;
}

/* 批量应用遗玉选择框样式 */
.bootstrap-select.btn-group #chk-chef-apply-amber-select + .dropdown-menu,
.bootstrap-select #chk-chef-apply-amber-select + .dropdown-menu,
#chk-chef-apply-amber-select + .btn-group .dropdown-menu,
.chef-apply-ambers .bootstrap-select .dropdown-menu {
    min-width: 250px !important;
    width: 250px !important;
}

#chk-chef-apply-amber-select + .dropdown-menu .dropdown-menu-inner,
.chef-apply-ambers .dropdown-menu .dropdown-menu-inner {
    overflow-x: hidden !important;
}

#chk-chef-apply-amber-select + .dropdown-menu ul,
.chef-apply-ambers .dropdown-menu ul {
    overflow-x: hidden !important;
}

#chk-chef-apply-amber-select + .dropdown-menu .inner,
.chef-apply-ambers .dropdown-menu .inner {
    overflow-x: hidden !important;
}

/* 隐藏水平滚动条 */
#chk-chef-apply-amber-select + .dropdown-menu::-webkit-scrollbar-track:horizontal,
.chef-apply-ambers .dropdown-menu::-webkit-scrollbar-track:horizontal {
    display: none !important;
}

#chk-chef-apply-amber-select + .dropdown-menu::-webkit-scrollbar:horizontal,
.chef-apply-ambers .dropdown-menu::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
}

#chk-chef-apply-amber-select + .dropdown-menu .dropdown-header.collapsible,
.chef-apply-ambers .dropdown-menu .dropdown-header.collapsible {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #337ab7 !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
    padding-right: 40px !important;
}

#chk-chef-apply-amber-select + .dropdown-menu .dropdown-header .collapse-icon,
.chef-apply-ambers .dropdown-menu .dropdown-header .collapse-icon {
    right: 25px !important;
}

/* 贵客率计算器分类标签样式 */
.dropdown-menu .chef-category-tabs,
.dropdown-menu .equip-category-tabs,
.dropdown-menu .recipe-category-tabs {
    margin: 5px 10px 5px 10px !important;
    border-bottom: 1px solid #ddd !important;
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    width: calc(100% - 20px) !important;
}

.dropdown-menu .chef-category-tabs li,
.dropdown-menu .equip-category-tabs li,
.dropdown-menu .recipe-category-tabs li {
    flex: 1 !important;
    text-align: center !important;
    margin: 0 !important;
}

.dropdown-menu .chef-category-tabs li a,
.dropdown-menu .equip-category-tabs li a,
.dropdown-menu .recipe-category-tabs li a {
    padding: 5px 8px !important;
    display: block !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 13px !important;
}

.dropdown-item .text .name {
    font-weight: 700;
    color: #555
}

.dropdown-item .text .available,.dropdown-item .text .combo,.dropdown-item .text .score,.dropdown-item .text .skill,.dropdown-item .text .skilltext,.dropdown-item .text .subtext,.dropdown-item .text .total {
    font-size: 11px;
    color: #777;
    padding-left: 5px
}

.dropdown-item .text .available {
    color: #5af
}

.dropdown-menu>.active>a.dropdown-item .text .available,.dropdown-menu>.active>a.dropdown-item .text .name,.dropdown-menu>.active>a.dropdown-item .text .score,.dropdown-menu>.active>a.dropdown-item .text .skill,.dropdown-menu>.active>a.dropdown-item .text .skilltext,.dropdown-menu>.active>a.dropdown-item .text .subtext,.dropdown-menu>.active>a.dropdown-item .text .total {
    color: #fff
}

.dropdown-item .text .total {
    font-style: italic
}

.dropdown-item .text .skilltext span {
    padding-left: 2px
}

li.disabled .dropdown-item .text span {
    font-weight: 400!important;
    color: #ccc!important
}

.warning-skill.dropdown-item .text .name,.warning-skill.dropdown-item .text .skill {
    color: #f66
}

.form-control {
    height: 35px;
    display: inline-block;
    vertical-align: middle
}

.form-control.input-sm {
    height: 30px
}

.header-wrapper .btn {
    height: 35px
}

.btn-group-sm .btn {
    height: 30px
}

.child-inner {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    white-space: normal
}

.child-inner .child-key {
    display: inline-block;
    font-weight: 700;
    vertical-align: top
}

.child-inner .child-value {
    display: inline-block;
    padding-right: 5px
}

.input-group-last>.btn {
    border-top-right-radius: 4px!important;
    border-bottom-right-radius: 4px!important;
    margin-left: -2px!important
}

.input-group-mid>.btn {
    border-radius: 0!important;
    margin-left: -1px!important
}

.input-group-first .bootstrap-select>.dropdown-toggle {
    border-top-right-radius: 0!important;
    border-bottom-right-radius: 0!important
}

.input-group-last .bootstrap-select>.dropdown-toggle {
    border-top-left-radius: 0!important;
    border-bottom-left-radius: 0!important;
    margin-left: -1px!important
}

.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus {
    outline: 0
}

a:focus {
    outline: 0
}

table.dataTable thead {
    white-space: nowrap
}

table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_desc_disabled:after {
    right: 5px
}

table.dataTable thead>tr>td.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc {
    padding-right: 20px
}

@media (max-width: 991px) {
    table.dataTable {
        white-space:nowrap
    }
}

.rank-done {
    color: #999
}

td.rarity {
    font-size: 12px
}

.modal-open {
    padding-right: 0!important;
    overflow: auto
}

div.dataTables_scrollBody {
    border-left: none!important
}

div.dataTables_scroll.dtfc-has-left table.table-bordered,table.dataTable.table-bordered.dtfc-has-left {
    border-left: 1px solid #ddd
}

.dataTables_scrollHead table.dataTable {
    margin-top: 0!important
}

.table-top {
    margin-bottom: 2px
}

.table-top .left {
    float: left
}

.table-top .right {
    float: right
}

div.dataTables_wrapper .table-top div.dataTables_info {
    padding-top: 0;
    line-height: 30px
}

.toggle.btn {
    min-width: initial;
    min-height: initial
}

.toggle.btn.btn-sm {
    min-width: 50px;
    min-height: 30px
}

.pane-footer {
    height: 40px
}

#popupmsg {
    position: fixed;
    z-index: 90001;
    display: none;
    max-width: 600px
}

.dataTables_scrollHeadInner {
    height: auto!important
}

tr.odd td,tr.selected td {
    background-color: #fff
}

div.dataTables_scrollHeadInner table.table-bordered tr th:first-child {
    border-left: none!important
}

div.dtfc-right-top-blocker {
    background-color: transparent!important
}

table.dataTable tr.selected td.select-checkbox:after,table.dataTable tr.selected th.select-checkbox:after {
    content: '\2714';
    font-size: 14px;
    margin-top: -11px
}

.bootbox.modal .modal-footer {
    border-top: none
}

.bootbox.modal .bootbox-body {
    margin-top: 20px
}

.td-expend .glyphicon:before {
    content: "\002b"
}

.parent .td-expend .glyphicon:before {
    content: "\2212"
}

@media (max-width: 767px) {
    body {
        font-size:12px
    }

    .nav-tabs>li>a {
        padding: 8px
    }

    .form-control {
        font-size: 12px;
        height: 30px
    }

    .btn {
        height: 30px!important;
        font-size: 12px
    }

    .input-group-addon {
        font-size: 12px
    }

    .dropdown-menu {
        font-size: 12px
    }

    .bootstrap-select .dropdown-menu li a span.text,.bootstrap-select.show-tick .dropdown-menu li a span.text {
        max-width: 200px
    }

    .selected-item-wrapper .bootstrap-select .dropdown-menu li a span.text {
        max-width: 300px
    }

    .dd-select-picker .bs-donebutton,.selected-item-wrapper .select-picker .bs-donebutton,.table-select-picker .bs-donebutton {
        display: block
    }

    #mobile-menu-btn {
        position: absolute;
        top: 5px;
        left: 0;
        z-index: 5
    }

    #setting-btn {
        position: absolute;
        top: 5px;
        z-index: 5
    }

    .table-top {
        padding-left: 40px;
        padding-right: 40px
    }

    #pane-cal-optimal-results,#pane-cal-rules,#pane-cal-settings,.pane-export-import,.pane-info,.pane-materials {
        padding-top: 35px
    }

    ::-webkit-scrollbar {
        width: 6px
    }

    ::-webkit-scrollbar:horizontal {
        height: 6px
    }

    ::-webkit-scrollbar-thumb {
        background: #ccc
    }
}

@media (max-width: 1310px) {
    .selected-sum {
        font-size:12px
    }

    .selected-item-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        max-width: 600px
    }

    .selected-item {
        flex-direction: column;
        font-size: 12px;
        margin: 0;
        width: 33%
    }

    .selected-item .content small {
        font-size: 8px;
        display: inline-block
    }

    .selected-box {
        margin-top: 4px
    }

    .chef-box,.condiment-box,.equip-box {
        width: auto
    }

    .chef-box {
        flex-direction: column;
        justify-content: flex-start;
        min-width: auto
    }

    .chef-box .chef-box-1,.chef-box .chef-box-2 {
        width: 100%
    }

    .chef-box .chef-box-1 {
        align-items: flex-start
    }

    .chef-box .disk-box {
        min-height: 25px
    }

    .chef-box-1 .skill {
        font-size: 85%;
        max-width: 70px;
        margin: auto
    }

    .chef-box-1 .name,.condiment-box .name,.equip-box .name {
        padding-top: 2px
    }

    .recipe-box {
        flex-direction: column;
        justify-content: flex-start
    }

    .recipe-box .recipe-qec {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center
    }

    .recipe-box .recipe-quantity {
        width: auto;
        order: 2
    }

    .recipe-box .recipe-quantity .available {
        display: none
    }

    .recipe-box .recipe-ex {
        order: 1
    }

    .recipe-box .recipe-condiment {
        order: 3
    }

    label.chk-label input[type=checkbox]+span span {
        display: none
    }

    .recipe-box .recipe-box-1,.recipe-box .recipe-box-2 {
        width: 100%
    }

    .recipe-box .recipe-box-1 .name {
        padding-top: 2px
    }

    .recipe-box .recipe-ric {
        font-size: 85%
    }

    .recipe-box .recipe-result {
        font-size: 80%
    }

    .recipe-box .recipe-box-2 {
        font-size: 80%
    }

    .recipe-box .recipe-box-2 .rank {
        margin-left: 0
    }

    .recipe-box .recipe-box-2 .content {
        width: 100%;
        max-width: 110px;
        margin: auto
    }

    .recipe-box .recipe-box-2 .add .blank {
        display: none
    }

    .selected-item .select-picker:not(.position-c) {
        position: fixed;
        left: 10px;
        top: 35px;
        z-index: 2
    }

    .selected-item .select-picker:not(.position-c) .dropdown-menu-right {
        right: auto;
        left: 0
    }

    body.m-no-scroll {
        overflow-y: hidden
    }

    .guest-rate-calculator {
        max-width: 590px !important;
    }
}

/* 套装下拉框三列布局 - 使用data-content和内联样式 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li a {
    position: relative !important;
    min-height: 30px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* 确保下拉菜单宽度足够 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu {
    min-width: 250px !important;
}

/* 表头样式 - 不置灰，黑色文字，加粗 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li.disabled a {
    opacity: 1 !important;
    font-weight: bold !important;
    background-color: #fff !important;
    cursor: default !important;
    color: #000 !important;
}

.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li.disabled a span {
    color: #000 !important;
}

/* 选中项背景色 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li.selected a {
    background-color: #d9d9d9 !important;
}

/* 确保选中项文字颜色正常 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li.selected a span {
    color: #333 !important;
}

/* 隐藏勾选标记 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li a span.check-mark {
    display: none !important;
}

.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li.selected a::before,
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-menu li.selected a::after {
    display: none !important;
}

/* 选择框按钮中只显示套装名称，隐藏排名和日均值 */
.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    display: block !important;
}

.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-toggle .filter-option-inner-inner span {
    display: none !important;
}

.select-wrapper:has(#select-decoration-suit) .bootstrap-select .dropdown-toggle .filter-option-inner-inner span:nth-child(2) {
    display: inline !important;
}





/* 细分类型下拉框 - 使用input-group-mid样式 */
#chef-global-subtype-wrapper.input-group-mid .bootstrap-select .dropdown-toggle {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-left: -1px !important;
}

/* 光环细分类型下拉框 - 使用input-group-mid样式 */
#chef-aura-subtype-wrapper.input-group-mid .bootstrap-select .dropdown-toggle {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-left: -1px !important;
}

/* 含遗玉厨具按钮wrapper - 当细分类型显示时 */
#chef-global-subtype-wrapper + .input-group-btn.input-group-last {
    margin-left: -1px !important;
}

/* 含遗玉厨具按钮wrapper - 当光环细分类型显示时 */
#chef-aura-subtype-wrapper + .input-group-btn.input-group-last {
    margin-left: -1px !important;
}

/* 含遗玉厨具按钮 - input-group-last样式 */
.input-group .input-group-btn.input-group-last .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


/* 贵客率计算器样式 - 表格风格 */
.guest-rate-calculator {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    /* 与 .selected-item-wrapper 完全相同的宽度设置 */
    max-width: 1310px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.calc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.calc-result-header h4 {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.calc-result-header .btn-collapse {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.calc-result-header .btn-collapse:hover {
    color: #333;
}

.calc-result-content {
    display: block;
    padding: 10px;
    overflow: visible;
}

.guest-rate-calculator.collapsed .calc-result-content {
    display: none;
}

.guest-rate-calculator.collapsed .btn-collapse .glyphicon {
    transform: rotate(180deg);
}

/* 贵客率计算器样式 - 表格风格 */
.guest-rate-calculator {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    /* 与 .selected-item-wrapper 完全相同的宽度设置 */
    max-width: 1190px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}lt-row {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 0;
    position: relative;
    z-index: 1;
}

.calc-result-row.calc-controls {
    overflow: visible !important;
    z-index: 1;
    position: relative;
}

.calc-result-row.calc-controls:nth-child(1) {
    z-index: 1;
}

.calc-result-row.calc-controls:nth-child(2) {
    z-index: 1;
}

.calc-result-row.calc-controls:nth-child(3) {
    z-index: 1;
}

.calc-result-row.calc-data-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin-bottom: 8px;
    padding: 5px 0;
}

.calc-result-row.calc-data-row .calc-result-item {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.calc-result-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.calc-result-item label {
    margin: 0;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
}

.calc-result-item .value {
    font-weight: bold;
    color: #000;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

/* 当容器宽度小于800px时，缩小字体 */
@media (max-width: 550px) {
    .calc-result-item label {
        font-size: 12px;
    }
    
    .calc-result-item .value {
        font-size: 12px;
    }
    
    .calc-result-item .value.highlight {
        font-size: 13px;
    }
}

/* 当容器宽度小于500px时，进一步缩小字体 */
@media (max-width: 450px) {
    .calc-result-item label {
        font-size: 11px;
    }
    
    .calc-result-item .value {
        font-size: 11px;
    }
    
    .calc-result-item .value.highlight {
        font-size: 12px;
    }
}

.calc-result-item .value.highlight {
    color: #337ab7;
    font-size: 14px;
}

.calc-controls {
    background: #f9f9f9;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 0;
    gap: 10px;
    margin: 5px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.calc-control-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calc-control-group label {
    font-size: 13px;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.calc-control-group .form-control {
    height: 30px;
    font-size: 13px;
    padding: 5px 8px;
    display: inline-block;
    width: auto;
}

.calc-control-group select.form-control {
    width: 80px;
}

.quantity-control {
    display: flex !important;
    width: auto;
    align-items: stretch;
}

.quantity-control .input-group-btn {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    width: auto !important;
}

.quantity-control .input-group-btn .btn {
    padding: 5px 10px !important;
    font-size: 13px !important;
    height: 30px !important;
    min-width: 30px !important;
    width: auto !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 20px !important;
}

.quantity-control .form-control {
    text-align: center;
    padding: 5px;
    width: 50px;
    flex-shrink: 0;
}

.calc-divider {
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.double-recipe-section {
    overflow: visible;
}

.calc-section-title {
    color: #337ab7;
    font-weight: bold;
    font-size: 13px;
    margin: 10px 0 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.calc-summary {
    padding: 8px 0;
    margin-top: 8px;
}

.calc-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.calc-summary-item span:first-child {
    color: #333;
    font-size: 13px;
}

.calc-summary-item .value {
    font-weight: bold;
    color: #000;
    font-size: 13px;
}

#sync-guest-double {
    white-space: nowrap;
    padding: 5px 12px;
    font-size: 13px;
    height: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .calc-result-row {
        /* 保持横向排列，自动换行 */
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .calc-result-item {
        /* 不强制100%宽度，让元素自然排列 */
        flex: 0 1 auto;
        min-width: auto;
    }
    
    .calc-control-group {
        /* 不强制100%宽度 */
        flex: 0 1 auto;
        min-width: auto;
    }
    
    .calc-controls {
        /* 保持横向排列 */
        flex-wrap: wrap;
    }
    
    /* 小屏幕下调整按钮样式 */
    #sync-guest-double {
        font-size: 12px;
        padding: 5px 10px;
        height: auto;
        min-height: 30px;
        white-space: nowrap;
        width: 100%;
    }
    
    /* 确保包含按钮的容器不会超出 */
    .calc-result-row.calc-data-row {
        gap: 8px;
    }
    
    .calc-result-row.calc-data-row .calc-result-item {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }
    
    .calc-result-row.calc-data-row .calc-result-item:last-child {
        justify-content: flex-start;
    }
}

/* 超小屏幕 */
@media (max-width: 450px) {
    /* 保持3列布局*/
    .calc-result-row.calc-data-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }
    
    
    #sync-guest-double {
        font-size: 13px;
        padding: 6px 12px;
        width: auto;
        max-width: 90%;
    }
}


/* 隐藏贵客率计算页面中的调料选择框*/
#pane-cal-custom.guest-rate-mode .condiment-box {
    display: none !important
}

#pane-cal-custom.guest-rate-mode .recipe-box .recipe-condiment {
    display: none !important
}
