:root{--primary: #2b5caa;--primary-dark: #1e4080;--primary-light: #e8f0fe;--primary-hover: #3a6fc0;--success: #52c41a;--warning: #faad14;--danger: #f5222d;--text-primary: #303133;--text-regular: #606266;--text-secondary: #909399;--border-color: #dcdfe6;--border-light: #e4e7ed;--border-lighter: #ebeef5;--bg-page: #f0f2f5;--bg-white: #ffffff;--bg-hover: #f5f7fa;--radius: 4px;--header-height: 48px;--sidebar-width: 200px}*{margin:0;padding:0;box-sizing:border-box}html,body,#app{height:100%}body{font-family:Microsoft YaHei,PingFang SC,sans-serif;font-size:13px;color:var(--text-primary);background:var(--bg-page)}.header{height:var(--header-height);background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);display:flex;align-items:center;padding:0 16px;color:#fff;box-shadow:0 2px 6px #0003}.header-logo{display:flex;align-items:center;gap:10px;margin-right:32px}.header-logo .logo-icon{width:28px;height:28px;background:#fff3;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.header-logo .logo-text{font-size:15px;font-weight:600;letter-spacing:1px}.header-nav{display:flex;gap:0;flex:1}.header-nav-item{padding:0 18px;height:var(--header-height);display:flex;align-items:center;cursor:pointer;font-size:13px;position:relative;transition:background .2s}.header-nav-item:hover{background:#ffffff1a}.header-nav-item.active{background:#ffffff26}.header-nav-item.active:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:60%;height:3px;background:#fff;border-radius:2px 2px 0 0}.header-right{display:flex;align-items:center;gap:16px;margin-left:auto}.header-right .user-avatar{width:30px;height:30px;border-radius:50%;background:#ffffff40;display:flex;align-items:center;justify-content:center;font-size:12px;cursor:pointer}.layout{display:flex;height:calc(100vh - var(--header-height))}.sidebar{width:var(--sidebar-width);background:var(--bg-white);border-right:1px solid var(--border-lighter);overflow-y:auto;flex-shrink:0;padding:8px 0}.sidebar-group-title{padding:12px 16px 6px;font-size:11px;color:var(--text-secondary);letter-spacing:1px;font-weight:500}.sidebar-item{padding:9px 16px 9px 24px;cursor:pointer;display:flex;align-items:center;gap:8px;color:var(--text-regular);transition:all .15s;position:relative;font-size:13px}.sidebar-item:hover{background:var(--bg-hover);color:var(--primary)}.sidebar-item.active{background:var(--primary-light);color:var(--primary);font-weight:500}.sidebar-item.active:before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;background:var(--primary);border-radius:0 2px 2px 0}.sidebar-item .icon{width:16px;text-align:center;font-style:normal}.main-content{flex:1;overflow:hidden;display:flex;flex-direction:column}.page-tabs{background:var(--bg-white);border-bottom:1px solid var(--border-lighter);display:flex;align-items:center;padding:0 12px;height:36px}.page-tab{padding:8px 16px;font-size:12px;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-regular);transition:all .2s;white-space:nowrap;display:flex;align-items:center;gap:6px}.page-tab:hover{color:var(--primary)}.page-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:500}.page-tab .close-btn{font-size:14px;opacity:.5;cursor:pointer}.page-tab .close-btn:hover{opacity:1;color:var(--danger)}.page-body{flex:1;overflow-y:auto;padding:12px}.toolbar{background:var(--bg-white);border:1px solid var(--border-lighter);border-radius:var(--radius);padding:8px 12px;display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-shrink:0}.btn{padding:6px 14px;border-radius:var(--radius);border:1px solid var(--border-color);background:var(--bg-white);cursor:pointer;font-size:12px;display:inline-flex;align-items:center;gap:4px;transition:all .2s;color:var(--text-regular);white-space:nowrap}.btn:hover{border-color:var(--primary);color:var(--primary)}.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover);color:#fff}.btn-success{background:var(--success);border-color:var(--success);color:#fff}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.toolbar-divider{width:1px;height:20px;background:var(--border-lighter);margin:0 4px}.form-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.form-item{display:flex;align-items:center;gap:4px}.form-label{font-size:12px;color:var(--text-regular);white-space:nowrap}.form-input,.form-select{height:28px;padding:0 8px;border:1px solid var(--border-color);border-radius:var(--radius);font-size:12px;outline:none;transition:border-color .2s}.form-input:focus,.form-select:focus{border-color:var(--primary);box-shadow:0 0 0 2px #2b5caa1a}.query-panel{background:var(--bg-white);border:1px solid var(--border-lighter);border-radius:var(--radius);padding:12px 16px;margin-bottom:8px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.data-table-wrapper{flex:1;background:var(--bg-white);border:1px solid var(--border-lighter);border-radius:var(--radius);overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table thead{background:#f5f7fa;position:sticky;top:0;z-index:10}.data-table th{padding:9px 10px;text-align:center;font-weight:500;color:var(--text-regular);border-bottom:1px solid var(--border-lighter);border-right:1px solid var(--border-lighter);white-space:nowrap}.data-table th:last-child{border-right:none}.data-table td{padding:7px 10px;border-bottom:1px solid var(--border-lighter);border-right:1px solid var(--border-lighter);color:var(--text-primary)}.data-table td:last-child{border-right:none}.data-table tbody tr:hover{background:#ecf5ff}.data-table .text-right{text-align:right}.data-table .text-center{text-align:center}.data-table .amount{font-family:Consolas,Courier New,monospace;text-align:right}.data-table .total-row{background:#fafafa;font-weight:600}.data-table .total-row td{border-top:2px solid var(--border-color)}.voucher-info{background:var(--bg-white);border:1px solid var(--border-lighter);border-radius:var(--radius);padding:12px 16px;margin-bottom:8px;display:flex;align-items:center;gap:24px}.voucher-info .vh-item{display:flex;align-items:center;gap:6px}.voucher-info .vh-label{font-size:13px;color:var(--text-regular)}.voucher-info .vh-value{font-size:13px;font-weight:500}.voucher-table-wrapper{flex:1;background:var(--bg-white);border:1px solid var(--border-lighter);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}.voucher-table{width:100%;border-collapse:collapse;font-size:13px}.voucher-table th{padding:8px 10px;background:linear-gradient(180deg,#f8f9fb,#f0f2f5);font-weight:500;color:var(--text-regular);border:1px solid var(--border-color);text-align:center;font-size:12px}.voucher-table td{padding:0;border:1px solid var(--border-color);height:34px}.voucher-table td input{width:100%;height:100%;border:none;padding:0 8px;font-size:12px;outline:none;background:transparent}.voucher-table td input:focus{background:#fffbe6;box-shadow:inset 0 0 0 1px var(--primary)}.voucher-table td input.amount-input{text-align:right;font-family:Consolas,monospace;font-size:13px}.voucher-table td select{width:100%;height:100%;border:none;padding:0 4px;font-size:12px;outline:none;background:transparent}.voucher-table .row-total{background:#f5f7fa}.voucher-table .row-total td{padding:8px 10px;font-weight:600}.voucher-footer{background:var(--bg-white);border:1px solid var(--border-lighter);border-top:none;border-radius:0 0 var(--radius) var(--radius);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--text-secondary)}.status-tag{padding:2px 8px;border-radius:3px;font-size:11px;display:inline-block}.status-tag.draft{background:#f0f0f0;color:#666}.status-tag.pending{background:#fff7e6;color:#d48806}.status-tag.reviewed{background:#e6f7ff;color:#1890ff}.status-tag.posted,.status-tag.closed{background:#f6ffed;color:#52c41a}.status-tag.open{background:#fff7e6;color:#d48806}.digit-header{font-size:10px;color:#999;letter-spacing:0}.digit-header span{display:inline-block;width:13px;text-align:center}.period-list{list-style:none;padding:0}.period-item{display:flex;align-items:center;padding:10px 16px;border-bottom:1px solid var(--border-lighter);gap:16px}.period-item:hover{background:var(--bg-hover)}.period-item .period-name{flex:1;font-size:13px}.period-item .period-status{min-width:60px}.dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;z-index:2000}.dialog-box{background:#fff;border-radius:6px;box-shadow:0 8px 30px #0003;min-width:360px;max-width:95vw;max-height:90vh;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column}.dialog-header{padding:14px 20px;border-bottom:1px solid #ebeef5;font-size:14px;font-weight:500;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:center;align-items:center;-webkit-flex-shrink:0;flex-shrink:0}.dialog-body{padding:20px;-webkit-flex:1;flex:1;overflow-y:auto;min-height:0}.dialog-footer{padding:12px 20px;border-top:1px solid #ebeef5;display:-webkit-flex;display:flex;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-flex-shrink:0;flex-shrink:0}.dialog-footer>*+*{margin-left:8px}
