body {
    background: #f2f5f9;
    color: #263238;
}

.layui-layout-admin .layui-header {
    background: #1f2d3d;
}

.layui-layout-admin .layui-logo {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

.layui-layout-admin .layui-nav .layui-nav-item a {
    color: #c7d2dd;
}

.layui-layout-admin .layui-nav .layui-this a {
    color: #fff;
}

.layui-nav .layui-badge {
    margin-left: 8px;
}

.app-body {
    padding: 18px 20px 40px;
    margin-left: 0 !important;
}

.app-main {
    max-width: 1400px;
    margin: 0 auto;
}

.panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(21, 45, 70, .08);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1f2d3d;
}

.status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: center;
    font-size: 13px;
    color: #607d8b;
}

.status-bar b {
    color: #1f2d3d;
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background: #b0bec5;
}

.status-dot.ok { background: #16b777; }
.status-dot.error { background: #ff5722; }
.status-dot.skip { background: #ffb800; }

.toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.stock-cell .name {
    font-weight: 600;
    color: #1f2d3d;
}

.stock-cell .code {
    color: #90a4ae;
    font-size: 12px;
    margin-left: 6px;
}

.price-up { color: #e53935; font-weight: 600; }
.price-down { color: #1e9e6a; font-weight: 600; }
.price-flat { color: #607d8b; }

.badge-soft {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: #eef3f8;
    color: #456;
}

.badge-soft.on { background: #e8f7ef; color: #16a06b; }
.badge-soft.off { background: #f1f3f5; color: #90a4ae; }

.rule-desc { color: #37474f; }

.muted { color: #90a4ae; font-size: 12px; }

.stock-search-wrap {
    position: relative;
}

.stock-suggest {
    position: absolute;
    z-index: 99;
    left: 0;
    right: 0;
    top: 40px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    display: none;
}

.stock-suggest div {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.stock-suggest div:hover {
    background: #f2f8ff;
}

.stock-suggest .code {
    color: #90a4ae;
    margin-left: 8px;
    font-size: 12px;
}

.notify-hint {
    font-size: 12px;
    color: #90a4ae;
}

.login-page {
    background: linear-gradient(135deg, #1f2d3d 0%, #34495e 60%, #4b6584 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 360px;
    background: #fff;
    border-radius: 8px;
    padding: 34px 30px 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.login-card h1 {
    font-size: 22px;
    text-align: center;
    color: #1f2d3d;
    margin-bottom: 6px;
    font-weight: 600;
}

.login-sub {
    text-align: center;
    color: #90a4ae;
    font-size: 12px;
    margin-bottom: 24px;
}

.login-tip {
    margin-top: 14px;
    font-size: 12px;
    color: #b0bec5;
    text-align: center;
}

.form-tip {
    color: #90a4ae;
    font-size: 12px;
    line-height: 20px;
}

.setting-grid .layui-form-label {
    width: 110px;
}

.setting-grid .layui-input-block {
    margin-left: 140px;
}

.table-empty {
    padding: 30px 0;
    text-align: center;
    color: #90a4ae;
}
