/* 后台内页统一视觉层：页面级面板、标题栏、工具栏和数据表格。 */
.inside-header:not(.is-dialog) .content > .panel.panel-intro {
    margin: 0 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e6edf5;
    color: #334155;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .panel-lead {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .panel-lead em {
    display: block;
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading h3,
.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading h4,
.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .panel-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .text-muted {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .btn,
.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .page-module-help {
    flex: 0 0 auto;
    margin: 0;
    border-radius: 4px;
    white-space: nowrap;
}

.inside-header:not(.is-dialog) .page-module-heading {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
}

.inside-header:not(.is-dialog) .page-module-heading > i {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    text-align: center;
    line-height: 22px;
}

.inside-header:not(.is-dialog) .page-module-heading > strong {
    flex: 0 0 auto;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.inside-header:not(.is-dialog) .page-module-heading > span {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inside-header:not(.is-dialog) .page-module-help {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    text-decoration: none;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-body {
    padding: 16px;
    background: #fff;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro .toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 8px 10px;
    border: 1px solid #e6edf5;
    border-radius: 6px;
    background: #f8fafc;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro .toolbar .btn {
    margin: 0;
    border-radius: 4px;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro .alert {
    margin-bottom: 14px;
    border-radius: 6px;
    line-height: 1.6;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-body > .table,
.inside-header:not(.is-dialog) .content > .panel.panel-intro .widget-body > .table {
    margin-bottom: 0;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro table thead th {
    background: #f7f9fb;
    border-bottom-color: #dbe4ee;
    color: #475569;
    font-weight: 600;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro table tbody td {
    vertical-align: middle;
}

.inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading > .nav-tabs {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: -12px;
}

/* 少数旧模板把文档链接直接放在 panel 下，统一成标题栏右侧操作。 */
.inside-header:not(.is-dialog) .content > .panel.panel-intro > a[href*="/docs.php"] {
    position: relative;
    z-index: 1;
    display: block;
    width: max-content;
    margin: -42px 16px 12px auto;
    padding: 4px 8px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
}

@media (max-width: 767px) {
    .inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading {
        align-items: flex-start;
        padding: 10px 12px;
    }

    .inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading h3,
    .inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading h4,
    .inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-heading .panel-title {
        font-size: 14px;
    }

    .inside-header:not(.is-dialog) .content > .panel.panel-intro > .panel-body {
        padding: 10px;
    }

    .inside-header:not(.is-dialog) .content > .panel.panel-intro .toolbar {
        gap: 5px;
        padding: 7px;
    }

    .inside-header:not(.is-dialog) .page-module-heading > span {
        display: none;
    }
}

/* 门店工作页：标题、工具和行操作采用同一套可换行布局。 */
.store-page-shell {
    padding: 0 20px 30px;
    border-radius: 8px;
    background: #fff;
    color: #334155;
}

.store-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 8px 0 12px;
    border-bottom: 1px solid #e6edf5;
}

.store-page-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.store-page-heading > i {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    text-align: center;
    line-height: 24px;
}

.store-page-heading > strong {
    flex: 0 0 auto;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.store-page-heading > span {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-page-help {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    white-space: nowrap;
}

.store-page-help:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}

.store-page-search {
    flex: 0 0 236px;
}

.store-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
}

.store-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.store-page-actions > * {
    margin: 0;
}

.store-page-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dbe4ee;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}

.store-page-icon-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.store-page-shell .create-btn,
.store-page-shell .recycle-btn {
    width: auto;
    min-width: 88px;
    height: 32px;
    padding: 0 12px;
    line-height: 30px;
}

.store-page-shell .recycle-btn {
    border-color: #dbe4ee;
    color: #64748b;
}

.store-page-shell .opt-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.store-page-shell .opt-container > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    white-space: nowrap;
}

.store-page-shell .opt-container .open-status,
.store-page-shell .opt-container .close-status {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.store-page-shell .opt-container .close-status {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.store-page-shell .opt-container .edit-btn-text {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.store-page-shell .opt-container .delete-btn-text {
    border-color: #fecaca;
    background: #fff1f2;
    color: #e11d48;
}

@media (max-width: 767px) {
    .store-page-shell {
        padding: 0 10px 20px;
    }

    .store-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .store-page-heading > span {
        display: none;
    }

    .store-page-search {
        flex-basis: auto;
        width: 100%;
    }

    .store-page-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* 产品化反馈层：统一替换后台默认的 Bootstrap/FastAdmin 提示观感。 */
.alert { border: 0; border-radius: 10px; box-shadow: 0 4px 14px rgba(31, 52, 78, .05); }
.alert-success { color: #166534; background: #ecfdf3; }
.alert-info { color: #1e40af; background: #eff6ff; }
.alert-warning { color: #92400e; background: #fff8e7; }
.alert-danger { color: #991b1b; background: #fff1f0; }
.alert-success, .alert-info, .alert-warning, .alert-danger { position: relative; padding-left: 44px; }
.alert-success:before, .alert-info:before, .alert-warning:before, .alert-danger:before { position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; border-radius: 50%; text-align: center; font-size: 12px; line-height: 18px; font-weight: 700; }
.alert-success:before { content: '✓'; color: #fff; background: #22a06b; }
.alert-info:before { content: 'i'; color: #fff; background: #3b82f6; }
.alert-warning:before { content: '!'; color: #fff; background: #e6a23c; }
.alert-danger:before { content: '!'; color: #fff; background: #e8615a; }
#toast-container > div { border-radius: 10px; box-shadow: 0 10px 28px rgba(31, 52, 78, .16); opacity: .98; }
