:root{
 --blue1:#4f95c8;--blue2:#2e74ad;--blue3:#185d91;--blue4:#0f4d78;
 --bg:#edf3f7;--card:#fff;--line:#d6dee5;--ink:#1d2b38;--muted:#71808e;
 --red:#d34545;--green:#2aa75a;--shadow:0 2px 8px rgba(28,62,90,.16);--r:15px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}.hidden{display:none!important}button{cursor:pointer}
.login-page{min-height:100vh;display:grid;place-items:center;padding:18px;background:linear-gradient(180deg,#f6fbff,#eaf2f8)}.phone-page{width:min(420px,100%);background:#f5f8fb;border:1px solid #dce5eb;border-radius:24px;box-shadow:0 22px 70px rgba(31,72,104,.18);overflow:hidden}.brand-hero{min-height:160px;display:flex;align-items:center;justify-content:center;gap:12px;padding:26px 20px;background:linear-gradient(180deg,var(--blue1),var(--blue2));color:#fff}.brand-hero img{width:82px;height:82px;object-fit:contain}.brand-hero h1{margin:0;font-size:28px;letter-spacing:.02em}.brand-hero p{margin:5px 0 0;font-size:16px;font-weight:700}.form-card{margin:0;padding:28px 24px 24px;background:#fff;border-radius:24px 24px 0 0}.form-card label{display:block;font-size:14px;font-weight:600;margin-bottom:16px}.input-wrap{margin-top:8px;display:flex;align-items:center;height:48px;border:1px solid #cfd9e1;border-radius:10px;background:#fbfcfd;box-shadow:inset 0 1px 2px rgba(0,0,0,.04)}.input-wrap:focus-within{border-color:#4e91c3;box-shadow:0 0 0 3px rgba(78,145,195,.12)}.input-wrap input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;padding:0 8px;font-size:16px}.input-ico{width:36px;text-align:center;color:#477ca4}.eye{width:44px;height:100%;border:0;background:transparent;color:#477ca4;font-size:19px}.remember{display:flex!important;align-items:center;gap:9px;font-weight:500!important}.remember input{width:18px;height:18px;accent-color:#2e7db8}.btn{height:46px;border-radius:12px;border:1px solid #cfd9e1;padding:0 18px;font-weight:700}.btn-primary{width:100%;background:linear-gradient(180deg,#4ca0dc,#247aba);color:#fff;border-color:#1d70ad;box-shadow:var(--shadow)}.btn-light{background:linear-gradient(180deg,#fff,#f2f4f6);color:#28445c;box-shadow:0 2px 6px rgba(0,0,0,.08)}.form-card .btn-light{width:100%;margin-top:10px}.error{min-height:20px;padding-top:8px;color:#ba2020;font-size:13px;text-align:center}.login-foot{display:flex;align-items:center;justify-content:center;gap:10px;color:#6b8ba5;font-size:12px;padding:0 20px 22px;background:#fff}.login-foot span{height:1px;width:50px;background:#d9e2e9}
.mobile-header{position:sticky;top:0;z-index:20;height:64px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:linear-gradient(180deg,var(--blue1),var(--blue2));color:#fff;padding:7px max(10px,calc((100vw - 920px)/2));box-shadow:0 2px 8px rgba(0,0,0,.16)}.header-brand{display:flex;align-items:center;gap:8px;justify-self:start;min-width:0}.header-brand img{width:42px;height:42px;object-fit:contain}.header-brand strong{font-size:17px;line-height:1;white-space:nowrap}.header-brand small{display:block;font-size:11px;margin-top:4px;opacity:.9;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-back{height:34px;border:1px solid rgba(255,255,255,.42);border-radius:18px;background:#2b72a9;color:#fff;padding:0 10px;font-weight:700;margin-right:8px}.header-right{justify-self:end;display:flex;align-items:center;gap:5px;font-size:11px;opacity:.95}.status-dot{width:9px;height:9px;border-radius:50%;background:#23c55e;box-shadow:0 0 0 3px rgba(255,255,255,.25)}.status-dot.off{background:#e54c4c}
.content{width:min(920px,100%);margin:0 auto;padding:10px}.menu-title,.report-title{height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#6ca4ce,#4e82ad);color:#fff;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.18);box-shadow:var(--shadow);margin-bottom:7px}.menu-list{display:grid;gap:7px}.menu-item{width:100%;min-height:47px;border:1px solid #cbd3d9;border-radius:16px;background:linear-gradient(180deg,#fff,#f4f4f6);box-shadow:var(--shadow);display:grid;grid-template-columns:35px 1fr 24px;align-items:center;text-align:left;padding:0 12px;color:#273746;font-weight:750}.menu-item:hover,.menu-item:active{background:#eef7ff;border-color:#7db2d8}.menu-icon{font-size:18px;color:#197bc0;text-align:center}.menu-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-arrow{text-align:right;font-size:22px;color:#6d7f8b}.logout-item{grid-template-columns:35px 1fr;margin-top:9px;background:linear-gradient(180deg,#3f91ca,#2676b2);color:#fff;border-color:#1e6ca4}.logout-item .menu-icon{color:#fff}
#toolbar{background:#f5f7f8;border:1px solid #d1d9df;border-radius:14px;padding:10px;margin-bottom:10px;box-shadow:var(--shadow)}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.filters.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field-row{display:grid;gap:5px}.field-row label{font-size:12px;font-weight:700;color:#3a5265}.field-row input,.field-row select,.search{height:42px;width:100%;border:1px solid #c9d4dc;border-radius:11px;background:#fff;padding:0 11px;outline:0}.field-row input:focus,.field-row select:focus,.search:focus{border-color:#4b90c2;box-shadow:0 0 0 3px rgba(75,144,194,.11)}.search-row{position:relative;margin-bottom:9px}.search-row:before{content:'⌕';position:absolute;left:11px;top:9px;color:#6c8190}.search{padding-left:32px}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}.tab{height:40px;border:1px solid #ccd7df;border-radius:20px;background:#fff;color:#314e64;font-weight:700}.tab.active{background:linear-gradient(180deg,#4698d3,#2d7db9);color:#fff;border-color:#2474ad}.subnav{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.subnav .tab{font-size:12px}.apply-row{display:flex;justify-content:flex-end;margin-top:9px}.apply-row .btn-primary{width:auto;min-width:135px}
.cards{display:grid;gap:8px;margin-bottom:10px}.summary-box{padding:10px 12px;background:#fff;border:1px solid #d3dde4;border-radius:12px;box-shadow:var(--shadow)}.summary-box .row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf0f2}.summary-box .row:last-child{border-bottom:0}.summary-box strong{white-space:nowrap}.summary-box.green{background:#f1fbf4}.summary-box.red{background:#fff3f3}.summary-box.blue{background:#edf7ff}.section-strip{padding:7px 10px;border-radius:10px;font-weight:800;margin-bottom:3px}.section-strip.green{background:#dcf5e4;color:#186a34}.section-strip.red{background:#fde2e2;color:#a71d1d}
.table-wrap{overflow:auto;border:1px solid #d5dde3;border-radius:13px;background:#fff;box-shadow:var(--shadow)}table{border-collapse:collapse;width:100%;min-width:560px;font-size:13px}th,td{padding:9px 10px;border-bottom:1px solid #e5eaee;text-align:left;vertical-align:top}th{position:sticky;top:0;background:#edf2f5;color:#32485a;font-weight:800;z-index:1}td.money,th.money{text-align:right;white-space:nowrap}.row-click{cursor:pointer}.row-click:hover{background:#edf7ff}.neg{color:#d42d2d;font-weight:800}.pos{color:#147541;font-weight:700}.total-row td{background:#dceeff;font-weight:800}.empty{padding:28px 16px;text-align:center;color:#7b8995;background:#fff;border:1px solid #d6dee4;border-radius:12px}.report-actions{display:flex;justify-content:flex-end;gap:10px;margin:12px 0 26px}.report-actions .btn{min-width:125px}.kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.kpi{background:#fff;border:1px solid #d4dde4;border-radius:12px;padding:12px;box-shadow:var(--shadow)}.kpi span{display:block;color:#6f7e89;font-size:12px}.kpi strong{display:block;font-size:19px;margin-top:5px;color:#143e5c}.detail-list{display:grid;gap:8px}.detail-card{background:#fff;border:1px solid #d6dfe5;border-radius:12px;padding:11px;box-shadow:var(--shadow)}.detail-card strong{display:block;margin-bottom:4px}.detail-card small{color:#73828f}.detail-card .amount{float:right;color:#14598c;font-weight:800}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#173f5d;color:#fff;padding:10px 15px;border-radius:999px;opacity:0;pointer-events:none;transition:.2s;z-index:90;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.modal{position:fixed;inset:0;background:rgba(18,35,48,.48);display:grid;place-items:center;padding:14px;z-index:80}.modal-card{width:min(720px,100%);max-height:90vh;overflow:auto;background:#f7fafc;border-radius:16px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.modal-head{position:sticky;top:0;background:linear-gradient(180deg,var(--blue1),var(--blue2));color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;z-index:2}.modal-head button{width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:22px}.modal-card #modalBody{padding:12px}
@media(max-width:600px){.content{padding:7px}.mobile-header{height:58px;padding:5px 8px}.header-brand img{width:36px;height:36px}.header-brand strong{font-size:15px}.header-brand small{max-width:135px;font-size:10px}.header-right{font-size:0}.header-right #agentText{display:none}.header-back{padding:0 8px;font-size:12px}.menu-title,.report-title{height:34px;font-size:14px}.menu-list{gap:6px}.menu-item{min-height:44px;border-radius:15px;padding:0 9px;grid-template-columns:30px 1fr 20px;font-size:13px}.menu-icon{font-size:16px}.filters,.filters.three{grid-template-columns:1fr}.subnav{grid-template-columns:1fr}.table-wrap{border-radius:12px}table{font-size:12px;min-width:520px}th,td{padding:8px}.report-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(237,243,247,0),#edf3f7 30%);padding-top:14px;justify-content:space-between}.report-actions .btn{flex:1;min-width:0}.kpi strong{font-size:17px}.brand-hero{min-height:145px}.brand-hero img{width:72px;height:72px}.brand-hero h1{font-size:24px}.phone-page{border-radius:0;min-height:100vh;box-shadow:none}.login-page{padding:0}.form-card{padding:26px 20px}.modal{padding:7px}}
