/* 物业管理系统自定义样式 */
html, body {
    height: 100%;
}

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

.layui-body {
    background: #f5f6f8;
    bottom: 0;
}

.page-wrap {
    padding: 15px;
}

.page-card {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    margin-bottom: 12px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2d3d;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.filter-bar .layui-input,
.filter-bar .layui-select {
    height: 34px;
}

.filter-bar .layui-form-select {
    width: 160px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    border-left: 4px solid #1e9fff;
}

.stat-card .label {
    color: #7a8793;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 26px;
    font-weight: 700;
    color: #1f2d3d;
}

.stat-card.green { border-left-color: #16b777; }
.stat-card.orange { border-left-color: #ffb800; }
.stat-card.red { border-left-color: #ff5722; }

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.chart-box {
    background: #fff;
    border-radius: 6px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    height: 320px;
}

.chart-box h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2d3d;
}

.chart {
    width: 100%;
    height: 270px;
}

.toolbar {
    margin-bottom: 10px;
}

.toolbar .layui-btn + .layui-btn {
    margin-left: 6px;
}

.money {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

.money-red { color: #ff5722; }
.money-green { color: #16b777; }

.text-muted { color: #999; }
.text-small { font-size: 12px; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.detail-grid .item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.detail-grid .item .label {
    color: #7a8793;
    display: inline-block;
    width: 100px;
}

.timeline {
    padding-left: 6px;
}

.timeline .node {
    position: relative;
    padding: 0 0 18px 22px;
    border-left: 2px solid #e6e8eb;
}

.timeline .node:last-child {
    border-left-color: transparent;
}

.timeline .node::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e9fff;
}

.timeline .node.done::before {
    background: #16b777;
}

.timeline .node .time {
    color: #999;
    font-size: 12px;
}

.login-body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 380px;
    background: #fff;
    border-radius: 8px;
    padding: 34px 34px 26px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}

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

.login-box .sub {
    text-align: center;
    color: #8c96a3;
    font-size: 13px;
    margin-bottom: 24px;
}

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

.receipt-page {
    background: #eef0f3;
    min-height: 100vh;
    padding: 24px 0;
}

.receipt-paper {
    width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 46px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.receipt-paper h1 {
    text-align: center;
    font-size: 22px;
    letter-spacing: 6px;
    margin-bottom: 8px;
}

.receipt-paper .receipt-no {
    text-align: right;
    color: #666;
    font-size: 13px;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.receipt-table th,
.receipt-table td {
    border: 1px solid #d9dde3;
    padding: 10px 12px;
    font-size: 14px;
}

.receipt-table th {
    background: #f7f8fa;
    width: 110px;
    text-align: left;
    font-weight: 500;
}

.receipt-actions {
    width: 720px;
    margin: 16px auto 0;
    text-align: center;
}

.receipt-sign {
    margin-top: 26px;
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 13px;
}

@media (max-width: 900px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .chart-row { grid-template-columns: 1fr; }
}

@media print {
    .receipt-actions { display: none; }
    .receipt-page { background: #fff; padding: 0; }
    .receipt-paper { width: auto; box-shadow: none; padding: 0; }
    @page { size: A5; margin: 10mm; }
}
