/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
/* +----------------------------------------------------------------------
/* | 开源协议 ( https://mit-license.org )
/* | 免责声明 ( https://thinkadmin.top/disclaimer )
/* +----------------------------------------------------------------------
/* | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-static
/* | github 代码仓库：https://github.com/zoujingli/think-plugs-static
/* +----------------------------------------------------------------------
/* | 自定义后台扩展样式，需要在加载 console.css 后载入
/* | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
/* +---------------------------------------------------------------------- */

/* 财务管理统计卡片 */
.rp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.rp-stats.rp-stats-3col{grid-template-columns:repeat(3,1fr)}
.rp-stat{border-radius:10px;padding:14px 16px;border:1px solid #ebeef5;background:#fff;min-height:84px}
.rp-stat-label{font-size:13px;color:#606266;margin-bottom:8px}
.rp-stat-amt{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.rp-stat-out{background:#fff4e6}
.rp-stat-out .rp-stat-label,.rp-stat-out .rp-stat-amt{color:#d97706}
.rp-stat-in{background:#eafaf1}
.rp-stat-in .rp-stat-label,.rp-stat-in .rp-stat-amt{color:#2e7d32}
.rp-stat-net{background:#e6f4ff}
.rp-stat-net .rp-stat-label,.rp-stat-net .rp-stat-amt{color:#1565c0}
.rp-stat-acc{background:#f3effe}
.rp-stat-acc .rp-stat-label{color:#6d28d9}
.rp-acc-list{max-height:96px;overflow:auto;margin-top:2px}
.rp-acc-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;padding:3px 0;border-bottom:1px dashed #ece6fb}
.rp-acc-row:last-child{border-bottom:none}
.rp-acc-left{display:inline-flex;align-items:center;gap:6px;overflow:hidden}
.rp-acc-name{color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-acc-bal{color:#6d28d9;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.rp-acc-info{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:#409eff;color:#fff;font-size:10px;font-style:italic;font-weight:700;line-height:1;cursor:help;flex-shrink:0}
.rp-amt-in{color:#2e7d32;font-weight:600}
.rp-amt-out{color:#c0392b;font-weight:600}
.rp-opening{font-size:13px;color:#606266;background:#f0f9eb;border:1px solid #e1f3d8;padding:4px 10px;border-radius:4px;white-space:nowrap}
.rp-opening b{color:#2e7d32;font-variant-numeric:tabular-nums}
.erp-ro-tip{font-size:12px;color:#909399;background:#f4f4f5;border:1px solid #e9e9eb;padding:4px 10px;border-radius:4px}
.erp-page-note{margin:0 0 12px;padding:10px 12px;color:#3d5a55;background:#eef5f2;border:1px solid #d7e6e1;line-height:1.55;box-sizing:border-box}
.erp-page-note i{margin-right:4px;color:#18866f}

/* 船舶收支卡片 */
.vessel-section .vs-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
.vessel-section .vs-block{border-radius:8px;padding:12px 10px;text-align:center}
.vessel-section .vs-income{background:#eafaf1}
.vessel-section .vs-expense{background:#fff4e6}
.vessel-section .vs-net{background:#e6f4ff}
.vessel-section .vs-sales{background:#f3e8ff}
.vessel-section .vs-label{font-size:12px;color:#606266;margin-bottom:6px}
.vessel-section .vs-income .vs-label,.vessel-section .vs-income .vs-amt{color:#2e7d32}
.vessel-section .vs-expense .vs-label,.vessel-section .vs-expense .vs-amt{color:#d97706}
.vessel-section .vs-net .vs-label,.vessel-section .vs-net .vs-amt{color:#1565c0}
.vessel-section .vs-sales .vs-label,.vessel-section .vs-sales .vs-amt{color:#7c3aed}
.vessel-section .vs-amt{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}

/* 船舶费用年度树 */
.vessel-fee-report .report-title{font-size:17px;font-weight:700;margin-bottom:6px}
.vessel-fee-report .report-desc{font-size:12px;color:#909399;background:#f4f4f5;border:1px solid #e9e9eb;padding:6px 10px;border-radius:4px;margin-bottom:10px;line-height:1.6}
.vessel-fee-report .fee-cat{background:#f5f7fa;font-weight:600}
.vessel-fee-report .fee-toggle{display:inline-block;width:0;height:0;border-style:solid;border-width:5px 0 5px 7px;border-color:transparent transparent transparent #409eff;margin-right:8px;vertical-align:middle;transition:transform .15s}
.vessel-fee-report .fee-toggle.expanded{transform:rotate(90deg)}
.vessel-fee-report .fee-indent-1{padding-left:28px}
.vessel-fee-report .fee-indent-2{padding-left:48px}
.vessel-fee-report tr.fee-row{cursor:pointer}
.vessel-fee-report tr.fee-row:hover{background:#eef6ff}

@media (max-width:1100px){
    .rp-stats,.rp-stats.rp-stats-3col,.vessel-section .vs-summary{grid-template-columns:1fr 1fr}
}

/* 后台列表统一视觉：浅灰表头、阴阳行与一致的悬停反馈 */
.layui-table-view .layui-table-header,
.layui-table-view .layui-table-header th,
.layui-table-view .layui-table thead tr,
.layui-table > thead > tr{background-color:#f8f8f8!important}
.layui-table-view .layui-table-header th,
.layui-table > thead > tr > th{color:#56656b;font-weight:600}
.layui-table-view .layui-table[lay-even] tbody tr:nth-child(even),
.layui-table[lay-even] > tbody > tr:nth-child(even){background-color:#f8f8f8!important}
.layui-table-view .layui-table[lay-even] tbody tr:nth-child(odd),
.layui-table[lay-even] > tbody > tr:nth-child(odd){background-color:#fff}
.layui-table-view .layui-table-hover,
.layui-table-view .layui-table[lay-even] tbody tr.layui-table-hover,
.layui-table[lay-even] > tbody > tr:hover{background-color:#eeeeee!important}

/* Layui 下拉选项过多时限制面板高度，支持鼠标滚轮和触控滚动 */
.layui-form-select dl{
    min-height:0!important;
    max-height:min(360px,calc(100vh - 140px));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}
.layui-form-select dl::-webkit-scrollbar{width:8px}
.layui-form-select dl::-webkit-scrollbar-track{background:#f1f3f2}
.layui-form-select dl::-webkit-scrollbar-thumb{background:#aeb9b5;border:2px solid #f1f3f2;border-radius:8px}
.layui-form-select dl::-webkit-scrollbar-thumb:hover{background:#87958f}
