:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Microsoft YaHei","PingFang SC",sans-serif;color:#26334d;background:#f5f7fb;font-size:14px;line-height:1.55}*{box-sizing:border-box}body{margin:0}a{color:#2463eb;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.sidebar{width:222px;background:#fff;box-shadow:1px 0 0 #e8edf5;position:fixed;left:0;top:0;bottom:0;display:flex;flex-direction:column;z-index:3}.brand{height:82px;display:flex;gap:12px;align-items:center;padding:18px 18px;border-bottom:1px solid #edf1f6}.brand-icon{background:linear-gradient(145deg,#4388ff,#2358ca);color:white;box-shadow:0 5px 12px #2664e633;border-radius:12px;font-size:20px;font-weight:800;width:43px;height:43px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.brand b{display:block;font-size:17px;letter-spacing:.7px}.brand small{display:block;color:#95a1b4;font-size:11px}.side-caption{color:#a9b2c2;font-size:11px;padding:29px 24px 10px}.sidebar nav{display:grid;gap:4px;padding:0 12px}.nav-item{display:flex;gap:11px;align-items:center;color:#53627a;padding:11px 16px;border-radius:8px;font-weight:500}.nav-item:hover{background:#f2f6ff;text-decoration:none}.nav-item.active{background:#edf4ff;color:#2161d1;font-weight:700}.nav-dot{display:inline-block;width:7px;height:7px;border:2px solid #b3c0d0;border-radius:50%}.nav-item.active .nav-dot{background:#2c72ed;border-color:#2c72ed}.side-foot{margin-top:auto;border-top:1px solid #eef0f5;font-size:11px;color:#9aa5b4;padding:18px 20px}.main{margin-left:222px;min-height:100vh}.top{height:65px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e6eaf0}.crumb{color:#53627b;font-weight:550}.crumb span{color:#b1bac7;padding:0 12px}.identity{display:flex;align-items:center;gap:10px;color:#4a556b}.online{width:7px;height:7px;background:#36b77e;border-radius:50%}.muted{color:#97a0ae;font-size:12px}.logout{color:#8390a0;padding-left:8px;border-left:1px solid #e3e8ee}.content{max-width:1500px;margin:0 auto;padding:26px 32px 70px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:23px;margin:0 0 4px;font-weight:700;letter-spacing:-.4px}.subheading{color:#9ba6b5;font-size:12px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:21px}.kpi{background:#fff;border-radius:12px;padding:22px 20px;box-shadow:0 1px 6px #1e2c5210;border:1px solid #eef1f6}.kpi span{display:block;color:#8190a4;font-size:13px}.kpi strong{display:block;font-size:25px;color:#202e47;font-weight:750;margin:12px 0 8px;line-height:1.1;white-space:nowrap}.kpi small{color:#a4b0bd}.card{background:#fff;border:1px solid #e9edf4;border-radius:12px;margin-bottom:20px;overflow:hidden;box-shadow:0 2px 9px #24335708}.card-header{min-height:61px;padding:15px 20px;border-bottom:1px solid #eef0f5;display:flex;justify-content:space-between;align-items:center;gap:10px}.card-header h2{font-size:15px;margin:0;font-weight:700;color:#2c3a51}.card:not(:has(.card-header)){padding:20px}.card .hint{padding-left:20px;padding-right:20px}.heading-actions{display:flex;gap:10px}.btn{background:#fff;display:inline-flex;justify-content:center;align-items:center;border:1px solid #dbe2ed;border-radius:7px;color:#4a5a73;font-size:13px;min-height:36px;padding:8px 14px;font-weight:600}.btn:hover{text-decoration:none;background:#f6f9ff}.btn.primary{background:#2869e6;color:#fff;border-color:#2869e6;box-shadow:0 2px 7px #2368e428}.btn.primary:hover{background:#175bd6}.btn.small{min-height:29px;padding:3px 10px}.table-scroll{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:12px;font-weight:600;color:#7d8da2;background:#fbfcfe;padding:13px 17px;white-space:nowrap;border-bottom:1px solid #eef1f5}td{padding:13px 17px;border-bottom:1px solid #f0f2f6;color:#415069;white-space:nowrap}tr:last-child td{border-bottom:none}tbody tr:hover{background:#fafcff}td.empty{text-align:center;color:#a0acbc;padding:40px}.badge{display:inline-block;padding:3px 9px;font-size:11px;border-radius:20px;font-weight:650}.badge.green{background:#eaf9f1;color:#219665}.badge.amber{background:#fff5e5;color:#bc7d18}.badge.blue{background:#eaf2ff;color:#2a69d7}.badge.gray{background:#f3f5f8;color:#8190a2}.red{color:#de4b4b!important}.green-text{color:#10a46a}.hint{font-size:12px;color:#8393a7;line-height:1.7}.notice{padding:13px 16px;background:#eef6ff;color:#2862a9;border:1px solid #d8e9ff;border-radius:8px;margin:14px 0 17px}.notice.danger{color:#b82e37;background:#fff0f0;border-color:#ffdadd}.grid-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:22px}.field{display:flex;flex-direction:column;gap:8px;color:#65738a;font-size:12px;font-weight:550;min-width:0}.field input,.field select{width:100%;height:40px;background:#fff;border:1px solid #dae2ed;border-radius:7px;padding:8px 11px;color:#33415b;outline:none}.field input:focus,.field select:focus,td input:focus,td select:focus{border-color:#528cff;box-shadow:0 0 0 3px #e9f1ff}.form-footer{grid-column:1/-1;display:flex;gap:12px;justify-content:flex-end;align-items:center;padding:14px 0 5px}.form-footer form{display:inline}.inner-heading{font-size:14px;margin:8px 20px 10px;padding-bottom:10px;border-bottom:1px solid #f1f3f7}.purchase-entry>.grid-form,.sale-entry>.grid-form{padding:24px 20px}.purchase-entry>.notice,.sale-entry>.notice{margin-left:20px;margin-right:20px}.purchase-entry>.form-footer,.sale-entry>.form-footer{padding:20px}.entry-table td input,.entry-table td select{border:1px solid #dde5f0;border-radius:6px;max-width:100%;height:38px;padding:5px 8px;background:#fff;color:#415069}.entry-table td:first-child{min-width:300px}.entry-table td:first-child select{min-width:250px;width:100%}.entry-table td{padding:11px 9px}.entry-table th{padding:12px}.entry-table tbody td:first-child{padding-left:20px}.icon-btn{border:0;background:#f7f8fc;color:#919fb2;border-radius:6px;font-size:20px;padding:0;width:30px;height:30px}.icon-btn:hover{color:#d23c40}#add-row{margin:14px 20px}.total-preview{text-align:right;margin:0 24px 18px;color:#728198}.total-preview strong{font-size:23px;margin-left:7px;color:#e58a3f}.detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:15px 20px;padding:23px 20px;color:#65748b;font-size:13px}.detail-meta strong,.detail-meta b{color:#26384f}.card>p{padding:0 20px}.card>form{padding:0 20px 20px}.inline-form{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.inline-form input[type=file]{font-size:12px;max-width:370px}.pad{padding:26px!important}.login-shell{height:100vh;min-height:550px;display:grid;place-items:center;background:radial-gradient(circle at 75% 20%,#dfeaff,#f5f8ff 54%,#e7eefb)}.login-box{width:min(435px,90vw);padding:38px;background:white;box-shadow:0 22px 80px #2a4c8a23;border-radius:18px}.login-heading{text-align:center;margin-bottom:31px}.login-heading .brand-icon{width:54px;height:54px;font-size:24px;margin:0 auto 18px}.login-heading h1{margin:0;font-size:21px}.login-heading p{color:#a2adc0;margin:7px 0}.login-box .field{margin:0 0 20px}.login-box .field input{height:46px}.login-box button{width:100%;margin:5px 0 13px;height:45px;font-size:15px}.login-info{text-align:center;color:#9dabbc;font-size:11px;margin-top:16px}.print-body{background:#eceff3}.print-toolbar{max-width:900px;margin:25px auto;display:flex;gap:10px}.print-paper{background:white;max-width:900px;margin:0 auto 40px;padding:45px 40px;min-height:600px}.print-paper h1{text-align:center;font-size:25px;letter-spacing:7px;font-weight:650;margin:3px 0 24px}.print-company{text-align:center;font-size:19px;font-weight:700}.print-info{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #2f3544;padding-bottom:14px;margin-bottom:0}.print-paper table th,.print-paper table td{border:1px solid #555!important;color:#222;padding:8px 7px}.print-paper table th{background:#fff}.print-total{text-align:right;font-size:15px;font-weight:700;margin:18px 0}.signatures{display:flex;justify-content:space-between;margin-top:50px}.card-header .btn{min-height:34px}@media(max-width:1150px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-form,.detail-meta{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{position:static;width:100%;height:auto;box-shadow:none}.brand{height:64px}.sidebar nav{display:flex;overflow-x:auto;white-space:nowrap;padding:8px;gap:4px}.nav-item{padding:7px 10px;font-size:12px}.side-caption,.side-foot{display:none}.main{margin-left:0}.top{height:50px;padding:0 15px}.content{padding:16px 11px}.page-heading h1{font-size:19px}.kpi-grid{gap:8px}.kpi{padding:15px 13px}.kpi strong{font-size:17px}.grid-form,.detail-meta{grid-template-columns:1fr;gap:13px;padding:15px}.card-header{padding:12px}.card-header h2{font-size:14px}.card-header .btn{font-size:11px;padding:5px 9px}.crumb{font-size:11px}.identity .muted{display:none}.print-paper{padding:20px}.print-company{font-size:16px}.print-info{flex-wrap:wrap;font-size:11px}.signatures{font-size:10px}}
@media print{.print-toolbar{display:none}.print-body{background:#fff}.print-paper{margin:0;box-shadow:none;max-width:none;padding:0;min-height:0}.print-paper table{break-inside:auto}.print-paper tr{break-inside:avoid}.print-paper thead{display:table-header-group}@page{size:A4 portrait;margin:14mm}}

.source-hint{font-size:11px;color:#bf7830;margin-top:5px;white-space:normal;max-width:340px}
