#pane-cal-custom.collection-team-mode {
    max-width: 1130px;
    margin: 0 auto;
}

.collection-team-root {
    padding: 4px 0 12px;
}

.collection-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collection-settings-panel {
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.collection-panel-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

.collection-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.collection-panel-toggle {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    text-align: center;
    border-radius: 6px;
}

.collection-panel-toggle:hover {
    background: #e9eef3;
}

.collection-panel-toggle:focus {
    outline: none;
}

.collection-panel-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2d3d;
}

.collection-settings-body {
    padding: 0 12px 12px;
}

.collection-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.collection-area-card {
    min-width: 0;
    min-height: 40px;
    border-radius: 6px;
    padding: 4px 8px 4px 10px;
    color: #22313f;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.collection-tone-veg {
    background: #e8f5e8;
    border-color: #d6ead6;
}

.collection-tone-jade {
    background: #fff3e0;
    border-color: #f4dfbf;
}

.collection-tone-lab {
    background: #e3f2fd;
    border-color: #cde4f5;
}

.collection-tone-cond {
    background: #f3e5f5;
    border-color: #e4d3e8;
}

.collection-area-name {
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.collection-area-card.is-disabled {
    opacity: 0.72;
}

.collection-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.collection-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.collection-switch-track {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: rgba(92, 107, 122, 0.28);
    position: relative;
    transition: background 0.2s ease;
}

.collection-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 37, 55, 0.18);
    transition: transform 0.2s ease;
}

.collection-switch input:checked + .collection-switch-track {
    background: #4a90d9;
}

.collection-switch input:checked + .collection-switch-track::after {
    transform: translateX(14px);
}

.collection-switch input:disabled + .collection-switch-track {
    background: rgba(160, 160, 160, 0.32);
}

.collection-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.collection-action-btn {
    min-width: 0;
    min-height: 32px;
    height: auto;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    white-space: normal;
    padding: 6px 8px;
}

.collection-query-btn {
    font-weight: 500;
}

.collection-preview-panel {
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e9ef;
}

.collection-preview-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2d3d;
}

.collection-preview-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.collection-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    background: #eef2f6;
    color: #5d6f81;
    font-size: 12px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.collection-pill.is-active {
    background: #4a90d9;
    color: #fff;
}

.collection-pill:focus {
    outline: none;
}

.collection-preview-loading,
.collection-preview-empty {
    margin-top: 10px;
    min-height: 120px;
    border-radius: 6px;
    border: 1px dashed #d7d7d7;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa5b1;
    font-size: 12px;
}

.collection-preview-loading {
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #4a90d9;
}

.collection-result-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collection-result-card {
    border: 1px solid #e5e9ef;
    border-top-width: 3px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(31, 45, 61, 0.06);
    overflow: hidden;
}

.collection-result-card-veg {
    border-top-color: #58b76a;
}

.collection-result-card-jade {
    border-top-color: #f0a142;
}

.collection-result-card-lab {
    border-top-color: #4a90d9;
    overflow: visible;
}

.collection-result-card-cond {
    border-top-color: #9aa5b1;
}

.collection-result-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #edf1f5;
    flex-wrap: nowrap;
}

.collection-result-card-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.collection-result-card-title {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    color: #22313f;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    word-break: break-word;
}

.collection-result-area-name {
    font-weight: 600;
}

.collection-result-card-title .collection-result-summary-pill {
    font-size: 11px;
    font-weight: 400;
}

.collection-result-card-veg .collection-result-card-title,
.collection-result-card-jade .collection-result-card-title,
.collection-result-card-lab .collection-result-card-title,
.collection-result-card-cond .collection-result-card-title {
    color: #22313f;
}

.collection-result-card-target {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 11px;
    background: #f5f7fa;
    color: #5d6f81;
    font-size: 11px;
    line-height: 22px;
    white-space: nowrap;
}

.collection-result-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.collection-result-save-btn {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.collection-result-lock-btn {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #8a5a00;
    background: #fff7e6;
    border: 1px solid #f0c36d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.collection-result-lock-btn.is-locked {
    color: #fff;
    background: #f0ad4e;
    border-color: #e59a2d;
}

.collection-result-lock-btn:hover {
    background: #fff2cc;
    border-color: #e6b85c;
}

.collection-result-lock-btn.is-locked:hover {
    background: #ec9a2f;
    border-color: #d8891f;
}

.collection-result-save-btn:hover {
    background: #f6f8fa;
    border-color: #2196f3;
}

.collection-result-save-btn:active {
    background: #e8eef3;
}

.collection-result-toggle-btn {
    padding: 4px 8px;
    min-width: 32px;
    height: 28px;
    font-size: 12px;
    line-height: 1.4;
    color: #5d6f81;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    caret-color: transparent;
}

.collection-result-toggle-btn:hover {
    background: #f6f8fa;
    border-color: #2196f3;
    color: #2196f3;
}

.collection-result-toggle-btn:active {
    background: #e8f0f8;
}

.collection-result-toggle-btn:focus,
.collection-result-toggle-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.collection-result-toggle-btn .glyphicon {
    font-size: 11px;
    transition: transform 0.2s;
}

.collection-result-card.is-collapsed .collection-result-chef-list {
    display: none;
}

.collection-result-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.collection-result-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #556575;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.collection-result-summary-pill.is-warning {
    background: #fff1f0;
    color: #d9534f;
}

.collection-result-summary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #d8e2ec;
    border-radius: 12px;
    background: #ffffff;
    color: #4b5c6d;
    font-size: 11px;
    line-height: 1.3;
}

.collection-result-summary-btn:hover,
.collection-result-summary-btn:focus {
    color: #2f82ff;
    border-color: #9fc4ff;
    outline: none;
}

.collection-area-summary-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-area-summary-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.collection-area-summary-overview-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid #e6edf5;
}

.collection-area-summary-overview-label {
    display: block;
    font-size: 11px;
    color: #7a8794;
    margin-bottom: 4px;
}

.collection-area-summary-overview-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #22313f;
}

.collection-area-summary-section {
    border: 1px solid #e6edf5;
    border-radius: 10px;
    background: #fff;
}

.collection-area-summary-section-title {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #22313f;
    border-bottom: 1px solid #eef3f8;
}

.collection-area-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
}

.collection-area-summary-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fbfd;
}

.collection-area-summary-chef {
    flex: 0 0 auto;
    min-width: 64px;
    font-weight: 600;
    color: #22313f;
}

.collection-area-summary-text {
    color: #556575;
    line-height: 1.6;
}

.collection-area-summary-empty {
    padding: 12px;
    border-radius: 8px;
    background: #f9fbfd;
    color: #7a8794;
    font-size: 12px;
}

.collection-result-chef-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 12px;
}

.collection-result-chef-card {
    min-width: 0;
    position: relative;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f9fbfd;
    border: 1px solid #e8edf3;
}

.collection-result-card.is-locked {
    box-shadow: inset 0 0 0 1px rgba(240, 173, 78, 0.22);
}

.collection-result-chef-card.is-locked {
    border-color: #f4d29a;
    background: #fffaf1;
}

.collection-result-card-lab .collection-result-chef-list,
.collection-result-card-lab .collection-result-chef-card,
.collection-result-card-lab .collection-result-chef-meta,
.collection-result-card-lab .collection-result-chef-meta-item.is-lab-equip {
    overflow: visible;
}

.collection-result-chef-card.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    background: #fafafa;
    border-style: dashed;
    border-color: #d6dee8;
}

.collection-result-chef-empty {
    font-size: 12px;
    color: #8a97a3;
}

.collection-result-summary-pill.is-locked {
    background: #fff3cd;
    color: #8a5a00;
}

.collection-result-chef-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.collection-result-chef-head-left {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.collection-result-chef-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.collection-result-chef-name {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #22313f;
}

.collection-result-chef-stars {
    display: inline-flex;
    gap: 2px;
}

.collection-result-chef-ult {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(76, 175, 80, 0.12);
    color: #2f8f42;
    font-size: 10px;
    line-height: 18px;
}

.collection-result-chef-value {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #2e78c5;
    white-space: nowrap;
}

.collection-result-chef-value-number {
    color: #2196f3;
    font-weight: 700;
}

.collection-result-chef-red-amber-inline {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #d9534f;
}

.collection-result-chef-green-amber-inline {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #2f8f42;
}

.collection-result-chef-blue-amber-inline {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #2e78c5;
}

.collection-result-chef-amber-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    box-shadow: none;
    cursor: pointer;
}

.collection-result-chef-amber-trigger:hover,
.collection-result-chef-amber-trigger:focus {
    opacity: 0.9;
    text-decoration: none;
    outline: none;
}

.collection-result-chef-replace-btn {
    padding: 4px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: #2196f3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.collection-result-chef-remove-btn {
    padding: 4px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: #f06b67;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.collection-result-chef-replace-btn:hover {
    background: #1976d2;
}

.collection-result-chef-replace-btn:active {
    background: #1565c0;
}

.collection-result-chef-replace-btn[disabled],
.collection-result-chef-remove-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

.collection-result-chef-remove-btn:hover {
    background: #df514c;
}

.collection-result-chef-remove-btn:active {
    background: #cc423c;
}

/* 替换厨师对话框样式 */
.replace-chef-modal .modal-dialog {
    max-width: 600px;
}

.replace-chef-modal .modal-content {
    position: relative;
}

.replace-chef-modal .modal-body {
    padding: 0;
}

.replace-chef-modal .bootbox-close-button.close,
.replace-chef-modal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    margin: 0;
    float: none;
    z-index: 3;
}

.replace-chef-dialog {
    background: #fff;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.replace-chef-dialog-header {
    padding: 20px 56px 20px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.replace-chef-dialog-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #22313f;
}

.replace-chef-current {
    font-size: 14px;
    color: #666;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.replace-chef-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.replace-chef-search-box {
    flex: 0 0 128px;
    width: 128px;
    min-width: 0;
}

.replace-chef-search-box input.form-control {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
}

.replace-chef-header-tools .input-group {
    display: inline-table;
    width: auto;
    margin-bottom: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.replace-chef-header-tools .select-wrapper {
    width: auto;
}

.replace-chef-header-tools .input-group-btn {
    width: 1%;
    white-space: nowrap;
}

.replace-chef-header-picker-group .bootstrap-select {
    width: 88px !important;
    min-width: 88px;
}

.replace-chef-header-picker-group .bootstrap-select > .dropdown-toggle {
    width: 88px !important;
    min-width: 88px;
    height: 30px;
    padding: 4px 22px 4px 8px;
    font-size: 12px;
    line-height: 20px;
}

.replace-chef-header-picker-group .input-group-btn > .btn {
    min-width: 52px;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 20px;
}

@media (max-width: 767px) {
    .replace-chef-current {
        font-size: 13px;
    }

    .replace-chef-header-tools {
        gap: 6px 4px;
    }

    .replace-chef-search-box {
        order: 3;
        flex: 0 0 116px;
        width: 116px;
    }

    .replace-chef-search-box input.form-control {
        padding: 5px 7px;
        font-size: 12px;
    }

    .replace-chef-header-tools .input-group .btn,
    .replace-chef-header-tools .input-group .bootstrap-select > .dropdown-toggle {
        font-size: 12px;
    }

    .replace-chef-header-picker-group .bootstrap-select {
        width: 68px !important;
        min-width: 68px;
    }

    .replace-chef-header-picker-group .bootstrap-select > .dropdown-toggle {
        width: 68px !important;
        min-width: 68px;
        padding: 4px 18px 4px 7px;
    }

    .replace-chef-header-picker-group .input-group-btn > .btn {
        min-width: 46px;
        padding: 4px 6px;
    }
}

.replace-chef-dialog-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.replace-chef-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: fit-content;
    margin: 14px auto 2px;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.replace-chef-pagination-btn,
.replace-chef-pagination-ellipsis {
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid #d8e0ea;
    background: #fff;
    color: #4f6b87;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
}

.replace-chef-pagination-btn:last-child,
.replace-chef-pagination-ellipsis:last-child {
    border-right: 0;
}

.replace-chef-pagination-btn:hover {
    background: #f4f8fc;
}

.replace-chef-pagination-btn.is-active {
    background: #2f77b8;
    color: #fff;
}

.replace-chef-pagination-ellipsis {
    color: #90a0b2;
}

.replace-chef-tab-nav {
    margin: 0 0 12px 0;
    border-bottom: 1px solid #e6ebf2;
}

.replace-chef-tab-nav > li > a {
    padding: 6px 12px;
    color: #5f6f81;
    font-size: 12px;
    font-weight: 600;
}

.replace-chef-tab-nav > li.active > a,
.replace-chef-tab-nav > li.active > a:hover,
.replace-chef-tab-nav > li.active > a:focus {
    color: #1e88e5;
    border: 1px solid #d9e7f8;
    border-bottom-color: transparent;
    background: #fff;
}

.replace-chef-tab-content > .tab-pane {
    display: none;
}

.replace-chef-tab-content > .active {
    display: block;
}

.replace-chef-group + .replace-chef-group {
    margin-top: 18px;
}

.replace-chef-group-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #22313f;
}

.replace-chef-group-list {
    display: flex;
    flex-direction: column;
}

.replace-chef-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.replace-chef-item:last-child {
    margin-bottom: 0;
}

.replace-chef-item:hover {
    background: #f5f5f5;
    border-color: #2196f3;
}

.replace-chef-item.is-locked {
    cursor: not-allowed;
    background: #faf7f2;
    border-color: #ead5b0;
}

.replace-chef-item.is-locked:hover {
    background: #faf7f2;
    border-color: #ead5b0;
}

.replace-chef-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.replace-chef-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #22313f;
}

.replace-chef-item-stars {
    font-size: 12px;
    color: #ffa500;
}

.replace-chef-item-inline-tag {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 10px;
    line-height: 18px;
    font-weight: 600;
}

.replace-chef-item-inline-tag.is-red-amber {
    background: rgba(244, 67, 54, 0.12);
    color: #d84315;
}

.replace-chef-item-inline-tag.is-expectation {
    background: #eef7ea;
    color: #4a8f3a;
}

.replace-chef-item-ult {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(76, 175, 80, 0.12);
    color: #2f8f42;
    font-size: 10px;
    line-height: 18px;
}

.replace-chef-item-values {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.replace-chef-item-value-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f2f5f9;
    color: #6b7a88;
    font-size: 11px;
    line-height: 20px;
    font-weight: 600;
}

.replace-chef-item-value-chip.is-highlight {
    background: #e3f2fd;
    color: #1e88e5;
}

.replace-chef-item-value-chip.is-aura {
    background: #eef7ea;
    color: #4a8f3a;
}

.replace-chef-item-value-chip.is-expectation {
    background: #eef7ea;
    color: #4a8f3a;
}

.replace-chef-item-skill-metrics {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.replace-chef-item-extra-metrics {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.replace-chef-item-skill-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 20px;
    font-weight: 600;
}

.replace-chef-item-skill-chip.is-material {
    background: #eaf3ff;
    color: #2e78c5;
}

.replace-chef-item-skill-chip.is-crit-material {
    background: #f7ecff;
    color: #8a48c7;
}

.replace-chef-item-skill-chip.is-crit-chance {
    background: #fff1e8;
    color: #e67e22;
}

.replace-chef-item-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 20px;
    font-weight: 600;
}

.replace-chef-item-meta-chip.is-equip {
    background: #eef3f8;
    color: #5f6f81;
}

.replace-chef-item-meta-chip.is-green-amber {
    background: #eaf7e8;
    color: #4a8f3a;
}

.replace-chef-item-meta-chip.is-red-amber {
    background: #ffebe7;
    color: #d84315;
}

.replace-chef-item-meta-chip.is-blue-amber {
    background: #eaf3ff;
    color: #2e78c5;
}

.replace-chef-item-assigned {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(244, 67, 54, 0.12);
    color: #d84315;
    font-size: 10px;
    line-height: 18px;
    font-weight: 600;
}

.replace-chef-item-assigned.is-locked {
    background: rgba(240, 173, 78, 0.16);
    color: #8a5a00;
}

.replace-chef-item.is-assigned-other-area {
    border-color: #ffccbc;
    background: #fff8f5;
}

.replace-chef-item-value {
    font-size: 13px;
    font-weight: 600;
    color: #2e78c5;
}

.replace-chef-item-value-number {
    color: #2196f3;
    font-weight: 700;
    font-size: 14px;
}

.replace-chef-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.collection-result-chef-detail {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #4f5f6f;
}

.collection-result-chef-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.collection-result-chef-meta.has-action {
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.collection-result-chef-meta-content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.collection-result-chef-meta-action {
    flex: 0 0 auto;
    margin-left: 8px;
}

.collection-result-chef-meta:first-of-type {
    margin-top: 8px;
}

.collection-result-chef-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #eef3f8;
    color: #647587;
    font-size: 10px;
    line-height: 20px;
    white-space: nowrap;
}

.collection-result-chef-meta-item.collection-result-chef-amber-trigger {
    padding: 0 18px 0 6px;
    position: relative;
    min-height: 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.collection-result-chef-meta-item.collection-result-chef-amber-trigger::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transform: translateY(-25%);
}

.collection-result-chef-meta-item.collection-result-chef-amber-trigger:hover,
.collection-result-chef-meta-item.collection-result-chef-amber-trigger:focus {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 49, 63, 0.12);
}

.collection-result-chef-meta-item.is-expectation {
    background: #eef7ea;
    color: #2f8f42;
}

.collection-result-chef-meta-item.is-material {
    background: #eaf3ff;
    color: #2e78c5;
}

.collection-result-chef-meta-item.is-crit-material {
    background: #f7ecff;
    color: #8a48c7;
}

.collection-result-chef-meta-item.is-crit-chance {
    background: #fff1e8;
    color: #e67e22;
}

.collection-result-chef-meta-item.is-collection-highlight {
    background: #e3f2fd;
    color: #2196f3;
    font-weight: 600;
}

.collection-result-chef-meta-item.is-collection-normal {
    background: #f5f5f5;
    color: #7b8794;
}

.collection-result-chef-meta-item.is-lab-value,
.collection-result-chef-meta-item.is-jade-value,
.collection-result-chef-meta-item.is-cond-value {
    background: #e3f2fd;
    color: #2e78c5;
    font-weight: 600;
}

.collection-result-chef-meta-item.is-lab-value .collection-result-chef-value-number,
.collection-result-chef-meta-item.is-jade-value .collection-result-chef-value-number,
.collection-result-chef-meta-item.is-cond-value .collection-result-chef-value-number {
    color: #2196f3;
    font-weight: 700;
}

.collection-result-chef-meta-item.is-aura {
    background: #f3e5f5;
    color: #7b1fa2;
    font-weight: 600;
}

.collection-result-chef-meta-item.is-red-amber {
    background: #fff0ef;
    color: #d9534f;
    font-weight: 600;
    border-color: rgba(217, 83, 79, 0.28);
}

.collection-result-chef-meta-item.is-green-amber {
    background: #eef7ea;
    color: #2f8f42;
    font-weight: 600;
    border-color: rgba(47, 143, 66, 0.28);
}

.collection-result-chef-meta-item.is-cond-amber {
    background: #eff4f8;
    color: #647587;
    font-weight: 600;
    border-color: rgba(100, 117, 135, 0.22);
}

.collection-result-chef-meta-item.is-cond-amber.collection-result-chef-amber-trigger:hover,
.collection-result-chef-meta-item.is-cond-amber.collection-result-chef-amber-trigger:focus {
    background: #e7eef5;
    border-color: rgba(100, 117, 135, 0.4);
}

.collection-result-chef-amber-part {
    display: inline-flex;
    align-items: center;
}

.collection-result-chef-amber-part.is-green {
    color: #2f8f42;
}

.collection-result-chef-amber-part.is-blue {
    color: #2e78c5;
}

.collection-result-chef-amber-part.is-separator,
.collection-result-chef-amber-part.is-empty {
    color: #7b8794;
}

.collection-result-chef-meta-item.is-red-amber.collection-result-chef-amber-trigger:hover,
.collection-result-chef-meta-item.is-red-amber.collection-result-chef-amber-trigger:focus {
    background: #ffe5e2;
    border-color: rgba(217, 83, 79, 0.45);
}

.collection-result-chef-meta-item.is-green-amber.collection-result-chef-amber-trigger:hover,
.collection-result-chef-meta-item.is-green-amber.collection-result-chef-amber-trigger:focus {
    background: #e4f3df;
    border-color: rgba(47, 143, 66, 0.45);
}

.collection-result-equip-select-wrap {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
}

.collection-result-equip-select-wrap.is-readonly {
    max-width: 100%;
}

.collection-result-equip-static {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    min-width: 0;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 12px;
    border: 1px solid #d8e2ea;
    background: #f8fafc;
    color: #22313f;
    font-size: 10px;
    line-height: 20px;
    white-space: nowrap;
}

.collection-result-equip-select-wrap .bootstrap-select {
    width: auto !important;
    max-width: 100%;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle {
    height: 22px;
    min-height: 22px;
    min-width: 0;
    max-width: 100%;
    padding: 0 16px 0 8px;
    border-radius: 12px;
    border: 1px solid #d8e2ea;
    background: #f8fafc;
    color: #22313f;
    font-size: 10px;
    line-height: 20px;
    box-shadow: none;
}

.collection-result-equip-select-wrap .bootstrap-select.open > .dropdown-toggle,
.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle:focus,
.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle:hover {
    border-color: #90caf9;
    background: #eef6ff;
    color: #1f5f96;
    outline: none !important;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .filter-option {
    display: flex !important;
    align-items: center;
    height: 100%;
    padding: 0;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .filter-option-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
    display: block;
    color: #22313f;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.collection-result-equip-select-wrap .bootstrap-select .caret {
    right: 5px;
}

.collection-result-equip-menu {
    min-width: 232px;
    max-width: min(380px, calc(100vw - 24px));
    overflow: hidden;
}

.collection-result-equip-menu-inner {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.collection-result-equip-menu .bs-searchbox,
.collection-result-equip-menu .bs-donebutton {
    background: #fff;
    z-index: 1;
}

.collection-result-equip-menu-actions {
    padding: 0 8px 6px;
    background: #fff;
}

.collection-result-equip-clear-btn {
    width: 100%;
    min-height: 34px;
    padding: 6px 12px;
    text-align: center;
}

.collection-result-equip-clear-btn:hover,
.collection-result-equip-clear-btn:focus {
    outline: none;
}

.collection-result-equip-clear-btn.is-disabled,
.collection-result-equip-clear-btn[disabled] {
    cursor: default;
}

.collection-result-equip-menu .bs-donebutton {
    position: sticky;
    bottom: 0;
    border-top: 1px solid #e6edf3;
}

.collection-result-equip-menu li a {
    overflow: visible;
}

.collection-result-equip-menu li.active:not(.selected) > a,
.collection-result-equip-menu li.active:not(.selected) > a:hover,
.collection-result-equip-menu li.active:not(.selected) > a:focus {
    background: #fff;
    color: inherit;
}

.collection-result-equip-menu li a .text {
    display: inline-block;
    min-width: max-content;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.collection-result-equip-option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
    min-width: max-content;
    white-space: nowrap;
}

.collection-result-equip-option-name {
    display: inline-block;
    color: #22313f;
    font-weight: 600;
    line-height: 1.3;
}

.collection-result-equip-option-skill,
.collection-result-equip-option-origin {
    display: inline-block;
    color: #7b8794;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .collection-result-equip-option {
    display: inline-flex;
    align-items: center;
    padding: 0;
    min-height: 100%;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .collection-result-equip-option-skill,
.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .collection-result-equip-option-origin {
    display: none;
}

.collection-result-equip-select-wrap .bootstrap-select > .dropdown-toggle .collection-result-equip-option-name {
    line-height: 1;
}

.collection-result-chef-card {
    position: relative;
}

.collection-sort-modal .modal-dialog {
    width: calc(100vw - 24px);
    max-width: 560px;
}

.collection-sort-modal .modal-header {
    position: relative;
    padding-right: 90px;
}

.collection-sort-modal .modal-header .bootbox-close-button.close,
.collection-sort-modal .modal-header .close {
    position: absolute;
    top: 8px;
    right: 16px;
    margin: 0;
    float: none;
}

.collection-sort-header-reset {
    position: absolute;
    top: 8px;
    right: 50px;
    min-width: 48px;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 22px;
}

.collection-sort-dialog {
    padding-top: 4px;
}

.collection-sort-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    min-width: 0;
}

.collection-sort-title-text {
    flex: 0 0 auto;
    white-space: nowrap;
}

.collection-sort-title-hint,
.collection-sort-note {
    font-size: 12px;
    line-height: 1.6;
    color: #6f7d8c;
}

.collection-sort-title-hint {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-sort-list {
    margin-top: 6px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.collection-sort-item {
    position: relative;
    z-index: 1;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f5f5f5;
}

.collection-sort-item + .collection-sort-item {
    margin-top: 4px;
}

.collection-sort-item-veg {
    background: #e8f5e8;
}

.collection-sort-item-jade {
    background: #fff3e0;
}

.collection-sort-item-lab {
    background: #e3f2fd;
}

.collection-sort-item-cond {
    background: #f3e5f5;
}

.collection-sort-item.is-dragging {
    opacity: 0.58;
}

.collection-sort-item.is-drop-target {
    border-color: #4a90d9;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.12);
}

.collection-sort-item-main {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: visible;
}

.collection-sort-index {
    display: none;
}

.collection-sort-badge {
    min-width: 16px;
    height: 16px;
    border-radius: 4px;
    padding: 0 3px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    flex: 0 0 auto;
}

.collection-sort-badge-veg {
    background: #4caf50;
}

.collection-sort-badge-jade {
    background: #ff9800;
}

.collection-sort-badge-lab {
    background: #2196f3;
}

.collection-sort-badge-cond {
    background: #9c27b0;
}

.collection-sort-name {
    font-size: 12px;
    color: #243447;
    font-weight: 500;
    width: 50px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.collection-sort-name-池塘,
.collection-sort-name-还寒洞,
.collection-sort-name-炸 {
    color: #2196f3;
}

.collection-sort-name-牧场,
.collection-sort-name-猪圈,
.collection-sort-name-鸡舍,
.collection-sort-name-永昼宫,
.collection-sort-name-炒 {
    color: #f44336;
}

.collection-sort-name-菜棚,
.collection-sort-name-菜地,
.collection-sort-name-森林,
.collection-sort-name-清空谷,
.collection-sort-name-煮 {
    color: #00aa00;
}

.collection-sort-name-作坊,
.collection-sort-name-北冥城,
.collection-sort-name-蒸 {
    color: #ffa500;
}

.collection-sort-name-朝阴山 {
    color: #000;
}

.collection-sort-name-藏心亭 {
    color: #e91e63;
}

.collection-sort-name-樊正阁 {
    color: #ff9800;
}

.collection-sort-name-切 {
    color: #795548;
}

.collection-sort-name-烤,
.collection-sort-name-庖丁阁 {
    color: #f2d56b;
}

.collection-sort-name-膳祖阁 {
    color: #00bcd4;
}

.collection-sort-name-易牙阁 {
    color: #9c27b0;
}

.collection-sort-name-伊尹阁 {
    color: #f44336;
}

.collection-sort-name-彭铿阁 {
    color: #4caf50;
}

.collection-sort-divider,
.collection-sort-label {
    font-size: 11px;
    color: #6f7d8c;
    white-space: nowrap;
}

.collection-sort-select {
    display: none !important;
}

.collection-sort-picker {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    margin: 0;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 20px;
    border-radius: 4px;
}

.collection-sort-picker .caret {
    margin-left: 8px;
    flex: 0 0 auto;
}

.collection-sort-picker-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-sort-picker.is-open {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.45);
}

.collection-sort-picker-people {
    width: 60px;
    min-width: 60px;
}

.collection-sort-picker-capacity {
    width: 70px;
    min-width: 70px;
    padding-right: 6px;
}

.collection-sort-static-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #d9e2ec;
    color: #334e68;
    font-size: 12px;
    line-height: 1;
}

.collection-sort-floating-menu {
    z-index: 1702;
    min-width: 60px;
    max-height: min(320px, calc(100vh - 24px));
    overflow-y: auto;
    overflow-x: hidden;
}

.collection-sort-floating-option {
    position: relative;
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
}

.collection-sort-floating-option:hover,
.collection-sort-floating-option:focus {
    background: #f5f5f5;
    outline: none;
}

.collection-sort-floating-option.is-selected {
    background: #f5f5f5;
    font-weight: 500;
}

.collection-sort-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.collection-sort-move-group {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.collection-sort-move-group .btn.collection-sort-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 14px !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: 3px;
    min-height: 14px !important;
    max-height: 14px !important;
    border: 1px solid #ccc;
    overflow: hidden;
}

.collection-sort-move-group .btn.collection-sort-move .glyphicon {
    font-size: 10px;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
}

.collection-sort-drag-handle {
    color: #8c99a6;
    cursor: move;
    font-size: 18px;
}

.collection-sort-empty {
    padding: 32px 12px;
    border: 1px dashed #d8d8d8;
    border-radius: 8px;
    text-align: center;
    color: #97a4b2;
    font-size: 12px;
    background: #fff;
}

.collection-sort-loading {
    padding: 40px 12px;
    text-align: center;
    color: #97a4b2;
    font-size: 12px;
}

.collection-team-saved-modal .modal-dialog {
    width: calc(100vw - 24px);
    max-width: 700px;
}

.collection-team-detail-modal .modal-dialog {
    width: calc(100vw - 24px);
    max-width: 760px;
}

.collection-team-saved-modal .modal-content,
.collection-team-detail-modal .modal-content {
    border-radius: 14px;
    overflow: hidden;
}

.collection-team-saved-modal .modal-body,
.collection-team-detail-modal .modal-body {
    padding: 16px;
    background: #fff;
}

.collection-team-saved-dialog,
.collection-team-detail-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-team-tabs-shell {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 20px;
    background: #f5f5f5;
}

.collection-team-tab {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    height: 30px;
    padding: 0 10px;
    border-radius: 16px;
    background: transparent;
    color: #2e6fa7;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.collection-team-tab.is-active {
    background: #4a90d9;
    color: #fff;
}

.collection-team-tab-count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.collection-team-tab.is-active .collection-team-tab-count {
    background: rgba(255, 255, 255, 0.22);
}

.collection-team-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.collection-team-toolbar-delete {
    color: #d9534f;
    border-color: #d9534f;
}

.collection-team-toolbar-count {
    font-size: 12px;
    color: #6f7d8c;
}

.collection-team-saved-list,
.collection-team-detail-list {
    max-height: 430px;
    overflow-y: auto;
}

.collection-team-detail-list.is-result-layout {
    max-height: none;
    overflow: visible;
}

.collection-team-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e9ef;
}

.collection-team-item + .collection-team-item,
.collection-team-chef-card + .collection-team-chef-card {
    margin-top: 8px;
}

.collection-team-item-check {
    margin: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.collection-team-item-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.collection-team-item-main {
    min-width: 0;
    flex: 1 1 auto;
}

.collection-team-item-title,
.collection-team-detail-title {
    font-size: 14px;
    font-weight: 500;
    color: #22313f;
}

.collection-team-item-time,
.collection-team-detail-time {
    margin-top: 4px;
    font-size: 12px;
    color: #6f7d8c;
}

.collection-team-item-detail-btn {
    flex: 0 0 auto;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #4a90d9;
    border-color: #4a90d9;
    background: transparent;
}

.collection-team-empty,
.collection-team-detail-empty {
    padding: 36px 12px;
    border-radius: 8px;
    border: 1px dashed #c9d9ea;
    background: #fff;
    text-align: center;
    font-size: 12px;
    color: #8da0b2;
}

.collection-team-chef-card {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e9ef;
}

.collection-team-chef-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.collection-team-chef-head {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.collection-team-chef-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a90d9;
}

.collection-team-chef-stars {
    display: inline-flex;
    gap: 2px;
}

.collection-team-chef-star {
    color: #2196f3;
    font-size: 12px;
    line-height: 1;
}

.collection-team-chef-red-amber {
    font-size: 10px;
    color: #8b98a5;
}

.collection-team-chef-red-amber.is-active {
    color: #f44336;
}

.collection-team-chef-details {
    flex: 0 0 auto;
    max-width: 52%;
    text-align: right;
    font-size: 11px;
    line-height: 1.45;
    color: #4f5f6f;
    word-break: break-word;
}

.collection-team-chef-detail-emphasis {
    color: #f44336;
    font-weight: 600;
}

.collection-team-chef-detail-muted {
    color: #7b8794;
}

.collection-team-chef-detail-space {
    display: inline-block;
    width: 6px;
}

.collection-team-chef-subrow {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.collection-team-chef-origin,
.collection-team-chef-muted {
    font-size: 11px;
    color: #7b8794;
}

.collection-team-chef-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.collection-team-chef-stat {
    font-size: 11px;
    white-space: nowrap;
}

.collection-team-chef-stat-material {
    color: #2196f3;
}

.collection-team-chef-stat-crit-material {
    color: #9c27b0;
}

.collection-team-chef-stat-crit {
    color: #ff5722;
}

.collection-team-chef-badge {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
    font-size: 10px;
    line-height: 1.4;
}

.collection-team-delete-confirm {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

.collection-team-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.collection-team-dialog-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.collection-team-footer-btn {
    min-width: 70px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
}

.collection-team-scheme-modal .modal-dialog {
    width: calc(100vw - 24px);
    max-width: 680px;
}

.collection-team-scheme-modal .modal-content {
    border-radius: 14px;
    overflow: hidden;
}

.collection-team-scheme-modal .modal-body {
    padding: 16px;
    background: #fff;
}

.collection-team-scheme-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-team-scheme-list {
    max-height: 420px;
    overflow-y: auto;
}

.collection-team-scheme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e9ef;
    background: #fff;
}

.collection-team-scheme-item + .collection-team-scheme-item {
    margin-top: 8px;
}

.collection-team-scheme-main {
    min-width: 0;
    flex: 1 1 auto;
}

.collection-team-scheme-title {
    font-size: 14px;
    font-weight: 500;
    color: #22313f;
}

.collection-team-scheme-meta,
.collection-team-scheme-areas {
    margin-top: 4px;
    font-size: 12px;
    color: #6f7d8c;
}

.collection-team-scheme-areas {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-team-scheme-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.collection-team-scheme-btn {
    min-width: 56px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
}

.collection-team-scheme-delete {
    color: #d9534f;
    border-color: #d9534f;
}

@media (max-width: 767px) {
    #pane-cal-custom.collection-team-mode {
        max-width: none;
    }

    .collection-panel-header {
        padding: 10px 12px;
    }

    .collection-settings-body {
        padding: 0 10px 10px;
    }

    .collection-action-btn {
        font-size: 10px;
        padding: 6px;
    }

    .collection-preview-panel {
        padding: 10px;
    }

    .collection-result-card-head {
        padding: 10px 12px 8px;
        gap: 6px;
    }

    .collection-result-card-title-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .collection-result-card-title {
        font-size: 13px;
        gap: 6px;
    }

    .collection-result-card-title .collection-result-summary-pill {
        font-size: 10px;
        min-height: 20px;
        padding: 0 6px;
    }

    .collection-result-card-actions {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
        gap: 4px;
    }

    .collection-result-save-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .collection-result-lock-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .collection-result-toggle-btn {
        padding: 3px 6px;
        min-width: 28px;
        height: 24px;
    }

    .collection-result-summary {
        justify-content: flex-start;
    }

    .collection-result-chef-list {
        grid-template-columns: 1fr;
        padding: 8px 10px 10px;
    }

    .collection-result-chef-head {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .collection-result-chef-head-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .collection-result-chef-head-right {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
        gap: 6px;
    }

    .collection-result-chef-name {
        font-size: 13px;
    }

    .collection-result-chef-value {
        width: auto;
        font-size: 11px;
    }

    .collection-result-equip-select-wrap {
        max-width: 100%;
    }

    .collection-result-equip-menu-container {
        position: fixed !important;
        top: 35px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        z-index: 1065 !important;
    }

    .collection-result-equip-menu-container .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .collection-result-equip-menu {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: calc(100vh - 90px) !important;
    }

    .collection-result-equip-menu-inner {
        max-height: calc(100vh - 190px) !important;
    }

    .collection-result-chef-replace-btn {
        padding: 3px 8px;
        font-size: 11px;
    }

    .collection-result-chef-remove-btn {
        padding: 3px 8px;
        font-size: 11px;
    }

    .collection-result-chef-meta.has-action {
        gap: 4px;
    }

    .collection-result-chef-meta-action {
        margin-left: 4px;
    }

    .collection-sort-modal .modal-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
    }

    .collection-sort-modal .modal-header {
        padding-right: 82px;
    }

    .collection-sort-modal .modal-header .bootbox-close-button.close,
    .collection-sort-modal .modal-header .close {
        right: 14px;
    }

    .collection-sort-header-reset {
        top: 8px;
        right: 44px;
        min-width: 44px;
        padding: 0 8px;
        font-size: 11px;
    }

    .collection-team-saved-modal .modal-dialog,
    .collection-team-detail-modal .modal-dialog,
    .collection-team-scheme-modal .modal-dialog,
    .replace-chef-modal .modal-dialog,
    .collection-data-query-modal .modal-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
    }

    .collection-sort-title-hint {
        text-align: left;
    }

    .collection-sort-item {
        padding: 8px 10px;
        display: inline-flex;
        width: max-content;
        min-width: 100%;
    }

    .collection-sort-name {
        font-size: 12px;
    }

    .collection-sort-item-main {
        gap: 8px;
        flex: 1 0 auto;
        min-width: 0;
    }

    .collection-sort-divider {
        display: none;
    }

    .collection-sort-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .collection-sort-item-actions {
        flex: 0 0 auto;
        gap: 10px;
    }

    .collection-team-saved-modal .modal-body,
    .collection-team-detail-modal .modal-body,
    .collection-team-scheme-modal .modal-body,
    .collection-data-query-modal .modal-body {
        padding: 12px;
    }

    .collection-team-tabs-shell {
        gap: 3px;
        padding: 3px;
    }

    .collection-team-tab {
        height: 28px;
        padding: 0 6px;
        font-size: 11px;
        gap: 4px;
    }

    .collection-team-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .collection-team-item-detail-btn {
        margin-left: 26px;
    }

    .collection-team-dialog-footer {
        align-items: stretch;
    }

    .collection-team-dialog-footer-left {
        width: 100%;
    }

    .collection-team-footer-btn {
        flex: 1 1 calc(50% - 4px);
    }

    .collection-team-chef-row {
        flex-wrap: wrap;
    }

    .collection-team-chef-details {
        max-width: none;
        width: 100%;
        text-align: left;
    }

    .collection-team-scheme-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .collection-team-scheme-actions {
        width: 100%;
    }

    .collection-team-scheme-btn {
        flex: 1 1 0;
    }
}

/* 配置按钮样式 */
.collection-config-btn {
    padding: 2px 8px;
    font-size: 12px;
}

.collection-data-query-modal .modal-dialog {
    width: calc(100vw - 32px);
    max-width: 1080px;
    margin: 24px auto;
}

.collection-data-query-modal .modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.collection-data-query-modal .modal-body {
    padding: 12px;
}

.collection-data-query-dialog {
    min-height: 420px;
}

.collection-data-query-tabs {
    margin-bottom: 12px;
}

.collection-data-query-content {
    min-height: 360px;
}

.collection-data-query-empty {
    min-height: 320px;
}

.collection-data-query-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #22313f;
}

.collection-data-query-table-wrap {
    overflow: auto;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    background: #fff;
}

.collection-data-query-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
}

.collection-data-query-table th,
.collection-data-query-table td {
    padding: 8px 10px;
    border: 1px solid #e9edf3;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.collection-data-query-table thead tr.is-main-header th {
    background: #f3f6fa;
    color: #22313f;
    font-weight: 600;
}

.collection-data-query-table thead tr.is-sub-header th {
    background: #fafbfd;
    color: #7a8795;
    font-weight: 500;
}

.collection-data-query-table .collection-data-query-compact-cell {
    font-size: 11px;
}

.collection-data-query-table tbody tr.collection-data-query-value-row td:nth-child(1),
.collection-data-query-table tbody tr.collection-data-query-value-row td:nth-child(2) {
    font-weight: 600;
    color: #22313f;
}

.collection-data-query-table tbody tr.collection-data-query-pot-row td {
    color: #6b7785;
    background: #fafbfd;
}

.collection-data-query-table tbody tr.collection-data-query-separator-row td {
    height: 18px;
    padding: 0;
    background: #fff;
    border-left-color: transparent;
    border-right-color: transparent;
}

.collection-data-query-table tbody tr.collection-data-query-note-row td {
    font-size: 12px;
    color: #8a94a3;
    text-align: left;
    background: #fff;
}

/* 配置面板样式 */
.config-panel {
    padding: 10px 0;
}

.config-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.config-item:last-child {
    margin-bottom: 0;
}

.config-item-header {
    margin-bottom: 8px;
}

.config-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.config-checkbox {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 34px;
    height: 20px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: rgba(92, 107, 122, 0.28);
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 0 0 auto;
}

.config-checkbox::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 37, 55, 0.18);
    transition: transform 0.2s ease;
}

.config-checkbox:checked {
    background: #4a90d9;
}

.config-checkbox:checked::after {
    transform: translateX(14px);
}

.config-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.18);
}

.config-checkbox:disabled {
    background: rgba(160, 160, 160, 0.32);
    cursor: not-allowed;
}

.config-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.config-item-desc {
    font-size: 12px;
    color: #666;
    margin-left: 0;
    line-height: 1.5;
    white-space: normal;
}

.config-item-desc > div + div {
    margin-top: 4px;
}

.collection-bootbox-center {
    padding: 0 !important;
}

.collection-bootbox-center .modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: calc(100vw - 32px);
    max-width: 600px;
}

.collection-bootbox-center .modal-content {
    margin: 0;
}

#area-config-modal #config-cond .config-item:last-child .config-item-desc {
    margin-left: 0;
    white-space: nowrap;
}

#area-config-modal .config-cond-list {
    margin-top: 12px;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    align-items: flex-start;
    gap: 8px 12px;
}

#area-config-modal .config-cond-row {
    width: 100%;
    max-width: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

#area-config-modal .config-cond-name {
    display: inline-flex;
    align-items: center;
    width: 52px;
    flex: 0 0 52px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

#area-config-modal .config-cond-picker {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
}

#area-config-modal .config-cond-picker > .dropdown-toggle {
    height: 34px;
    min-height: 34px;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 22px 0 10px;
    border-radius: 8px;
    border: 1px solid #d8e2ea;
    background: #f8fafc;
    color: #22313f;
    font-size: 12px;
    line-height: 32px;
    box-shadow: none;
}

#area-config-modal .config-cond-picker.open > .dropdown-toggle,
#area-config-modal .config-cond-picker > .dropdown-toggle:focus,
#area-config-modal .config-cond-picker > .dropdown-toggle:hover {
    border-color: #90caf9;
    background: #eef6ff;
    color: #1f5f96;
    outline: none !important;
}

#area-config-modal .config-cond-picker > .dropdown-toggle .filter-option {
    display: flex !important;
    align-items: center;
    height: 100%;
    padding: 0;
}

#area-config-modal .config-cond-picker > .dropdown-toggle .filter-option-inner,
#area-config-modal .config-cond-picker > .dropdown-toggle .filter-option-inner-inner {
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

#area-config-modal .config-cond-picker > .dropdown-toggle .filter-option-inner-inner {
    line-height: 1.2;
}

#area-config-modal .config-cond-picker .caret {
    right: 7px;
}

#area-config-modal .config-cond-menu {
    min-width: 150px;
    max-width: min(280px, calc(100vw - 24px));
}

#area-config-modal .config-cond-menu li a .text {
    overflow: visible;
}

#area-config-modal .config-cond-menu li > a {
    position: relative;
}

#area-config-modal .config-cond-menu li > a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.45);
}

#area-config-modal .config-cond-menu li:last-child > a::after {
    display: none;
}

#area-config-modal .config-cond-menu li.active:not(.selected) > a,
#area-config-modal .config-cond-menu li.active:not(.selected) > a:hover,
#area-config-modal .config-cond-menu li.active:not(.selected) > a:focus {
    background: #fff;
    color: inherit;
}

.config-cond-option {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    white-space: nowrap;
}

.config-cond-option-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.config-cond-option-text.is-empty {
    color: #7b8794;
}

@media (max-width: 767px) {
    .config-item-desc {
        font-size: 11px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .collection-bootbox-center .modal-dialog {
        width: calc(100vw - 20px);
        max-width: none;
    }

    #area-config-modal .config-cond-list {
        gap: 8px 10px;
    }

    #area-config-modal .config-cond-row {
        gap: 6px;
    }

    #area-config-modal .config-cond-name {
        width: 46px;
        flex: 0 0 46px;
        font-size: 12px;
    }

    #area-config-modal .config-cond-picker {
        min-width: 0;
    }

    #area-config-modal .config-cond-picker > .dropdown-toggle {
        padding-right: 20px;
        font-size: 11px;
    }

    .collection-data-query-content {
        min-height: 300px;
    }

    .collection-data-query-empty {
        min-height: 260px;
    }

    .collection-data-query-table th,
    .collection-data-query-table td {
        padding: 7px 8px;
        font-size: 11px;
    }
}
