/** $.toast 插件，默认字体大小 */
.jq-toast-single, .jq-toast-wrap {
    font-size: 14px;
}

/** 顶部导航：左侧业务菜单 + 右侧账户区（昵称 / 管理首页|前台首页 / 退出） */
.om-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.om-nav .nav {
    margin-bottom: 0;
}

.om-nav-user {
    margin-left: auto;
}

.om-nav-user > li > a {
    color: #777;
}

.om-nav-user > li > a:hover,
.om-nav-user > li > a:focus {
    color: #333;
    background-color: #f5f5f5;
}

.om-nav-user .om-nav-nick > a {
    color: #337ab7;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .om-nav {
        justify-content: flex-start;
    }

    .om-nav-user {
        margin-left: 0;
    }
}

/** AdminLTE 风格：垂直标签页（左导航右内容） */
.vert-tabs {
    border-bottom: none;
    border-right: 1px solid #dee2e6;
}

.vert-tabs > li {
    float: none;
    margin-bottom: 2px;
}

.vert-tabs > li > a {
    display: block;
    padding: 10px 12px;
    margin-right: 0;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: #495057;
    white-space: nowrap;
}

.vert-tabs > li > a:hover,
.vert-tabs > li > a:focus {
    background-color: #f4f6f9;
    border-color: #dee2e6;
    color: #495057;
}

.vert-tabs > li.active > a,
.vert-tabs > li.active > a:hover,
.vert-tabs > li.active > a:focus {
    background-color: #f4f6f9;
    border: 1px solid #dee2e6;
    border-left: 3px solid #007bff;
    border-radius: 0;
    color: #007bff;
}

.vert-tab-content {
    padding-left: 20px;
    border-left: 1px solid #dee2e6;
}

/** 后台首页：数据概览统计卡片 */
.om-dashboard {
    margin-top: 10px;
}

.om-dashboard-title {
    margin: 0 0 20px;
    font-weight: 500;
    color: #555;
}

.om-stat {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.om-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.om-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin-right: 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
}

.om-stat-value {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
}

.om-stat-label {
    margin-top: 2px;
    font-size: 13px;
    color: #999;
}

.om-stat-blue .om-stat-icon {
    background: #337ab7;
}

.om-stat-teal .om-stat-icon {
    background: #5bc0de;
}

.om-stat-purple .om-stat-icon {
    background: #8e6bbf;
}

.om-stat-green .om-stat-icon {
    background: #5cb85c;
}

/** 后台首页：收支趋势折线图 */
.om-chart-panel {
    margin-top: 10px;
}

.om-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.om-chart-title {
    font-size: 15px;
    font-weight: 500;
    color: #555;
}

.om-chart-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.om-chart-toolbar select {
    width: auto;
    min-width: 90px;
}

.om-chart-summary {
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.om-chart-summary span + span {
    margin-left: 18px;
}

.om-chart-income {
    color: #5cb85c;
}

.om-chart-expense {
    color: #d9534f;
}

.om-chart-balance {
    color: #337ab7;
}

/* 笔数图：与金额图（绿/红）区分，使用蓝/橙主题 */
.om-chart-panel-count {
    border-top: 2px solid #337ab7;
}

.om-chart-panel-count .om-chart-title {
    color: #337ab7;
}

.om-chart-count-income {
    color: #337ab7;
}

.om-chart-count-expense {
    color: #f0ad4e;
}

.om-chart-count-total {
    color: #777777;
}

.om-chart-wrap {
    position: relative;
    min-height: 340px;
}

.om-chart-canvas {
    height: 340px;
}

.om-chart-empty {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

