/* 五毛科技 · Light Bootstrap Dashboard 风格面板 */
:root {
    --wm-orange: #ff8f00;
    --wm-orange-dark: #e65100;
    --wm-bg: #f4f3ef;
    --wm-card-bg: #fff;
    --wm-text: #333;
    --wm-muted: #9a9a9a;
    --wm-border: #eee;
}

html.wm-panel-ready,
html.wm-panel-ready body {
    min-height: 100vh;
}

body.wm-admin-body {
    background: var(--wm-bg) !important;
    padding: 0 !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--wm-text);
}

.wm-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.wm-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ffb74d 0%, #ff8f00 45%, #ef6c00 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.wm-sidebar-logo {
    padding: 24px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.wm-sidebar-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-sidebar-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.wm-sidebar-nav {
    list-style: none;
    padding: 12px 0 24px;
    margin: 0;
}

.wm-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.wm-sidebar-nav li a:hover,
.wm-sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.wm-sidebar-nav li a .wm-nav-icon {
    width: 22px;
    text-align: center;
    opacity: 0.9;
}

.wm-main-panel {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wm-navbar {
    background: var(--wm-card-bg);
    border-bottom: 1px solid var(--wm-border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wm-navbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--wm-text);
    text-decoration: none;
}

.wm-navbar-toggle {
    display: none;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.wm-content {
    padding: 24px;
    flex: 1;
}

.wm-content .container,
.wm-content .wrap {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wm-content .header {
    display: none !important;
}

/* LBD 卡片 — 勿作用于 .wm-dash-card */
.wm-card,
.wm-content .section-card,
.wm-content .welcome,
.wm-content .wm-panel-block,
.wm-content .wm-hero-card,
.wm-content .container > .card {
    background: var(--wm-card-bg);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: none;
}

.wm-card > .header,
.wm-content .card-title {
    padding: 18px 20px 0;
    border-bottom: none;
    margin-bottom: 0;
}

.wm-card > .header h4.title,
.wm-content .card-title,
.wm-content .card-title span:first-child {
    font-size: 18px;
    font-weight: 500;
    color: var(--wm-text);
    margin: 0 0 6px;
}

.wm-card > .header p.category,
.wm-card > .content {
    padding: 0 20px 20px;
}

.wm-card > .header p.category {
    font-size: 13px;
    color: var(--wm-muted);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wm-border);
}

.wm-content .container > .card,
.wm-content .wrap > .wm-panel-block {
    padding: 0;
    overflow: hidden;
}

.wm-content .container > .card .card-title {
    padding: 18px 20px;
    border-bottom: 1px solid var(--wm-border);
    margin-bottom: 0;
}

.wm-content .container > .card > .order-stats-row,
.wm-content .container > .card > .filter-bar,
.wm-content .container > .card > #orderListHint,
.wm-content .container > .card > #orderTableWrap,
.wm-content .container > .card > .order-layout {
    padding-left: 20px;
    padding-right: 20px;
}

.wm-content .container > .card > #orderTableWrap {
    padding-bottom: 20px;
}

.wm-content .container > .card > .order-stats-row {
    padding-top: 16px;
}

/* 表格 */
.table,
.wm-content .order-table,
.wm-content .service-table,
.wm-content .dealer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 0;
}

.table > thead > tr > th,
.wm-content .order-table th {
    background: #fafafa;
    color: #888;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid var(--wm-border);
    white-space: nowrap;
}

.table-hover > tbody > tr:hover,
.wm-content .order-table tr:hover td {
    background: #fafafa;
}

.table-striped > tbody > tr:nth-of-type(odd),
.wm-content .order-table tbody tr:nth-child(odd) td {
    background: #fcfcfc;
}

.table > tbody > tr > td,
.wm-content .order-table td {
    padding: 11px 10px;
    border-top: 1px solid var(--wm-border);
    vertical-align: middle;
}

.table-responsive,
.wm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 标签 */
.label {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1.2;
}

.label-info { background: #23ccef; color: #fff; }
.label-success { background: #87cb16; color: #fff; }
.label-warning { background: #ff9800; color: #fff; }
.label-danger { background: #f44336; color: #fff; }
.label-primary { background: #667eea; color: #fff; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: 0.2s;
}

.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-primary { background: #667eea; color: #fff; border-color: #667eea; }
.btn-primary:hover { background: #5568d3; }
.btn-warning { background: #ff9800; color: #fff; border-color: #ff9800; }
.btn-danger { background: #f44336; color: #fff; border-color: #f44336; }
.btn-default { background: #fff; color: #666; border-color: #ddd; }

.alert {
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.alert-info {
    background: #e8f4fd;
    border: 1px solid #b3e0ff;
    color: #31708f;
}

.alert-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* 用户端面板 — 详见 wm-user-center.css */
body.wm-user-body {
    background: var(--wm-bg) !important;
    padding: 0 !important;
}

.wm-user-shell .wm-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* SweetAlert2 微调 */
.swal2-popup {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    border-radius: 8px !important;
}

.swal2-title {
    font-size: 20px !important;
}

@media (max-width: 991px) {
    .wm-sidebar {
        transform: translateX(-100%);
    }

    .wm-sidebar.open {
        transform: translateX(0);
    }

    .wm-main-panel {
        margin-left: 0;
    }

    .wm-navbar-toggle {
        display: inline-block;
    }

    .wm-content {
        padding: 16px 12px;
    }
}

@media (max-width: 768px) {
    body.wm-admin-body .wm-content .card-title {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
}
