:root{font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:#263637;background:#f2f3ef;font-size:14px;--blue:#1d665b;--line:#e0e5df;--muted:#6d7b77;--paper:#fff;--ink:#1c3330;--radius:14px;--shadow:0 3px 14px #23392c04}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{cursor:pointer}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72aa9b}button{color:inherit}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.18;font-weight:650;letter-spacing:-1.25px;color:#203532}h2{font-size:16px;font-weight:650;letter-spacing:-.3px}h3{font-size:14px;font-weight:650}small,.muted{color:var(--muted);font-size:12px}.loading{padding:80px;text-align:center;color:var(--muted)}
.layout{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#1d2f30;color:#b9c8c5;padding:34px 18px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;border-right:1px solid #182b2a}.brand{font-size:23px;font-weight:650;line-height:1.25;letter-spacing:-.7px;color:#f5f7f2;margin:0 16px 38px;overflow-wrap:anywhere}.brand::before{content:"";display:block;width:31px;height:4px;border-radius:2px;background:#bbab7f;margin-bottom:20px}.brand small{display:block;font-size:9px;line-height:1.6;font-weight:500;letter-spacing:1.5px;color:#99ada6;margin-top:9px;text-transform:uppercase}.nav-label{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#849b94;margin:12px 16px 14px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:8px;margin:5px 0;color:#bdccc6;font-size:13px;font-weight:500;border:1px solid transparent;transition:background .15s,color .15s}.nav-link:hover{background:#ffffff09;color:white;text-decoration:none}.nav-link.active{background:#344d47;border-color:#57706470;color:#fcfff9}.nav-link.active::after{content:"";width:5px;height:5px;border-radius:50%;background:#d2c39d;margin-left:auto;flex-shrink:0}.nav-icon{width:18px;height:18px;flex-shrink:0;opacity:.8}.nav-link.active .nav-icon{color:#ded1ae;opacity:1}.sidebar footer{margin-top:auto;padding:28px 16px 0;color:#8da39b;font-size:10px;line-height:1.7;border-top:1px solid #ffffff0d}
.top{height:83px;background:#f9faf6;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:18px}.top strong{font-size:12px;color:#64746d;font-weight:500;letter-spacing:.2px}.user{display:flex;align-items:center;gap:14px;font-size:11px;color:#5b6d65}.user-badge{width:33px;height:33px;display:grid;place-items:center;background:#e6ece5;border:1px solid #d7e1d6;border-radius:50%;color:#426053;font-size:11px;font-weight:650;flex-shrink:0}.content{padding:37px 38px 64px;max-width:1700px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px}.heading p{margin-top:10px;color:var(--muted);font-size:13px;line-height:1.7}.heading>div:first-child{min-width:0}
.btn{display:inline-flex;justify-content:center;align-items:center;border:1px solid #d4ddd5;border-radius:7px;padding:11px 17px;min-height:43px;background:#fff;gap:7px;font-size:12px;font-weight:600;color:#3f5b4f;white-space:normal;line-height:1.35;transition:background .15s,border-color .15s,box-shadow .15s}.btn:hover{background:#f2f6f0;border-color:#a6b9ac;text-decoration:none;box-shadow:0 2px 5px #20392b07}.btn.primary{background:#245e50;color:#fff;border-color:#245e50;box-shadow:0 2px 3px #1d4c3910}.btn.primary:hover{background:#1d4f43;border-color:#1d4f43}.btn.small{font-size:11px;min-height:33px;padding:7px 11px}.btn:disabled{opacity:.45;cursor:default;box-shadow:none}.box{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:25px;margin-bottom:22px;box-shadow:var(--shadow)}.boxhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.boxhead>a{font-size:11px;font-weight:600}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.metric{position:relative;padding:24px 23px 22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.metric::before{content:"";position:absolute;top:0;left:23px;width:27px;height:3px;background:#8aa699;border-radius:0 0 3px 3px}.metric>span{display:block;color:#66786e;font-size:11px;font-weight:550;letter-spacing:.1px}.metric strong{font-size:29px;display:block;margin:15px 0 10px;letter-spacing:-1px;font-weight:600;font-variant-numeric:tabular-nums;color:#243e33;overflow-wrap:anywhere}.metric.warn::before{background:#bdac80}.metric.warn strong{color:#80663d}.metric small{display:block;font-size:10px;line-height:1.6}a.metric:hover{background:#fafbf7;text-decoration:none;border-color:#b6c7b7}
.filters{display:flex;flex-wrap:wrap;gap:13px;align-items:end}.filters .field{flex:1;min-width:125px}.filters .field.search{flex:2;min-width:200px}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#5a7063;font-weight:500;min-width:0}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #d6e0d8;border-radius:7px;padding:11px 12px;color:#2c4438;background:#fcfdfb;min-height:43px;font-weight:400;transition:border-color .15s,box-shadow .15s}.field input:hover,.field select:hover,.field textarea:hover{border-color:#afc1b4}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:#6c9b84;box-shadow:0 0 0 3px #6c9b8419;background:white}.field input:disabled,.field select:disabled,.field textarea:disabled{background:#f1f4ef;color:#7b8a7e;border-color:#e2e8df;cursor:default}.field input::placeholder{color:#9aa69c}.field textarea{resize:vertical;line-height:1.7}.field.full{grid-column:1/-1}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.section{margin:28px 0;padding-bottom:26px;border-bottom:1px solid var(--line)}.section:first-child{margin-top:0}.section h3{margin-bottom:19px;color:#375246}.hint{font-size:11px;color:var(--muted);line-height:1.75}.notice{border:1px solid #e6ddc6;border-left:3px solid #bcaa7d;border-radius:8px;background:#faf7ee;color:#806c43;padding:15px 17px;font-size:12px;line-height:1.8;margin:17px 0}.notice.blue{background:#f0f5f1;border-color:#d5e4da;border-left-color:#789b85;color:#4e7160}.notice.good{background:#f0f7ee;border-color:#d5e7ce;border-left-color:#72936a;color:#517348}.notice.error{background:#fbf3ef;border-color:#eed8cd;border-left-color:#b58068;color:#99583f}.notice b{display:block;font-weight:650}
.tablebox{padding:0;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;color:#6d8073;font-weight:650;letter-spacing:.35px;background:#f7f9f4;padding:16px 20px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:20px;border-bottom:1px solid #eaf0e7;font-size:12px;vertical-align:top;line-height:1.55}td b{font-weight:600;color:#304b3c}td small{display:block;margin-top:6px;font-size:10px}tbody tr:hover{background:#fbfcf9}tr:last-child td{border-bottom:0}td.money,th.money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}td.money>b{font-weight:650}.pill{display:inline-block;border-radius:5px;padding:4px 8px;background:#edf1eb;color:#60725e;font-size:10px;line-height:1.5;font-weight:550;white-space:nowrap;border:1px solid #e1e8dc}.pill.amber{background:#f7f1e4;color:#8c7041;border-color:#eee1c7}.pill.green{background:#edf5e9;color:#557548;border-color:#dcebd4}.pill.red{background:#faeee8;color:#a0684c;border-color:#f1dcd0}.empty{padding:49px 20px;text-align:center;color:#81917f}.empty h3{color:#456548;font-size:17px;font-weight:600;margin-bottom:11px}.empty p{max-width:440px;margin:0 auto 23px;line-height:1.8;font-size:12px}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:23px;align-items:start}.workspace>.box{padding:0;overflow:hidden}.formbody{padding:26px}.tabs{display:flex;flex-wrap:wrap;gap:5px 20px;border-bottom:1px solid var(--line);margin-bottom:26px}.tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:11px 0 15px;color:#81917f;font-size:11px;white-space:nowrap}.tabs button.active{color:#305f43;border-color:#678568;font-weight:650}.tabs button.warn{background:#f7f1e3;border-radius:5px 5px 0 0;padding-left:8px;padding-right:8px;color:#8a7146}.amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;background:#f3f6ef;border:1px solid #e0e8d9;border-radius:9px;padding:17px}.amounts label{font-size:10px}.amounts input{font-weight:600;background:white;padding:10px;min-height:39px;font-variant-numeric:tabular-nums}.savebar{padding:18px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fafcf7}.savebar small{font-size:10px}.preview-head{padding:19px 21px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fcfdf9;font-size:12px}.preview-head a{font-size:10px}.preview-body{background:#e3e8de;padding:20px;min-height:260px}.preview-body canvas{display:block;max-width:100%;height:auto;background:white;margin:auto;box-shadow:0 4px 14px #26392b13}.pdf-tools{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:11px 14px;background:#f5f8f1;border-radius:6px;margin-bottom:12px;font-size:11px}.filename{padding:14px 21px;font-size:10px;color:#879681;overflow-wrap:anywhere;background:#fcfdf9}
.dropzone{border:1px dashed #b8c9ae;border-radius:12px;background:#f6f9f2;padding:52px 22px;text-align:center}.dropzone h2{font-size:22px;font-weight:600;margin-bottom:11px}.dropzone p{color:var(--muted);margin-bottom:25px;line-height:1.8;font-size:12px}.uploadrow{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.uploadrow>div{min-width:0;overflow-wrap:anywhere}.uploadrow small{display:block;margin-top:6px}.row{display:flex;justify-content:space-between;gap:18px;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.7}.row:last-child{border:0}.row b{font-weight:600}.bigamount{font-size:34px;font-weight:600;letter-spacing:-1px;margin:10px 0 22px;font-variant-numeric:tabular-nums;color:#2e503a}.linkback{display:inline-block;font-size:11px;margin-bottom:24px;color:#6a8368}.toolbar{display:flex;gap:9px;flex-wrap:wrap}.statusline{margin-top:18px;color:var(--muted);font-size:10px;line-height:1.7}.chartrow{display:grid;grid-template-columns:minmax(90px,1fr) 1.2fr 110px;gap:17px;align-items:center;padding:17px 0;font-size:11px;border-bottom:1px solid #f0f3eb}.chartrow:last-child{border:0}.chartrow b{font-weight:600;font-variant-numeric:tabular-nums;text-align:right}.bar{height:6px;background:#edf2e6;border-radius:8px;overflow:hidden}.bar>span{display:block;background:#78966d;height:100%;border-radius:8px}.reports-tabs{margin:17px 0 26px;border:0;gap:8px}.testtag{background:#f4efdf;color:#8b764c;padding:6px 10px;border-radius:5px;font-size:10px;white-space:nowrap;border:1px solid #e8dfc9}.catalogcard .row b{display:block}.catalogcard .row small{display:block;font-size:10px;margin-top:5px}.textbutton{background:none;border:0;color:var(--blue);padding:4px 0;font-size:12px}.textbutton:hover{text-decoration:underline}.danger{color:#a36549}.desktop-only{display:block}.mobilecards{display:none}
.loginwrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e4e9dd 0%,#f5f5ee 50%,#e5eadf 100%);padding:28px}.loginbox{width:100%;max-width:460px;padding:44px;background:#ffffffed;border-color:#d5decf;box-shadow:0 24px 80px #263b2110}.loginbox::before{content:"";display:block;width:36px;height:4px;background:#a3966f;margin-bottom:28px;border-radius:3px}.loginbox h1{font-size:32px;font-weight:550}.loginbox p{color:var(--muted);line-height:1.8;margin:12px 0 30px;font-size:12px}.loginbox .field{margin:19px 0}.loginbox .btn{width:100%;margin-top:12px;min-height:46px}.setup{max-width:860px;margin:55px auto;padding:0 22px}.setup h1{margin:15px 0}.setup>p{color:var(--muted);margin-bottom:28px;line-height:1.9}.step{font-size:9px;letter-spacing:1.7px;color:#68805d;font-weight:650}.checkbox{display:flex;gap:11px;align-items:start;font-size:12px;line-height:1.8}.checkbox input{margin-top:5px;accent-color:var(--blue)}dialog{border:1px solid var(--line);border-radius:15px;padding:30px;max-width:650px;width:calc(100% - 32px);max-height:90vh;overflow:auto;color:#2d4535;box-shadow:0 24px 80px #142c2430}dialog::backdrop{background:#1d30256e;backdrop-filter:blur(3px)}dialog h2{margin-bottom:24px;font-size:20px;font-weight:600}.dialogfoot{display:flex;justify-content:flex-end;gap:11px;margin-top:27px;padding-top:19px;border-top:1px solid var(--line)}.errorline{color:#a5684e;font-size:12px;line-height:1.8;margin-top:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#294332;color:#fff;padding:15px 22px;border-radius:9px;box-shadow:0 8px 30px #18332520;z-index:20;font-size:12px;line-height:1.6}.ar-item{border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:18px;background:#f8faf5}.ar-item-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.ar-item-grid input,.ar-item-grid select{padding:9px}
.bank-scroll{overflow:auto}.bank-invoices{padding-bottom:14px}.bank-invoices table{min-width:700px}.bank-iban{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.bank-reason{color:#927b4e;font-size:11px;display:block;max-width:250px}.bank-actions{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:25px 0 9px}.bank-actions .bigamount{margin-bottom:0}.bank-history{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:21px 0;border-bottom:1px solid var(--line)}.bank-history:last-child{border:0}.bank-history small{display:block;font-size:10px;margin:7px 0;color:var(--muted);overflow-wrap:anywhere}.bank-history>div{min-width:0}input[data-bank-select]{width:18px;height:18px;accent-color:var(--blue)}
/* Larger desktop type and controls; independent of browser zoom. */
@media(min-width:1400px){
 :root{font-size:16px}.layout{grid-template-columns:270px minmax(0,1fr)}
 .content{max-width:2000px;padding:40px 40px 72px}.top{height:88px;padding:0 40px}
 .brand{font-size:26px}.brand small{font-size:11px}.nav-label{font-size:11px}.nav-link{font-size:15px;padding:15px}.nav-icon{width:21px;height:21px}.sidebar footer{font-size:12px}
 .top strong{font-size:14px}.user{font-size:13px}.user-badge{width:38px;height:38px;font-size:13px}
 h1{font-size:37px}h2{font-size:20px}h3{font-size:17px}.heading{margin-bottom:32px}.heading p{font-size:15px}
 .btn{font-size:14px;min-height:48px;padding:12px 19px}.btn.small{font-size:13px;min-height:39px;padding:9px 13px}
 .box{padding:28px}.boxhead>a{font-size:13px}.metric{padding:27px}.metric>span{font-size:13px}.metric strong{font-size:37px}.metric small{font-size:12px}
 .field{font-size:13px;gap:9px}.field input,.field select,.field textarea{font-size:15px;min-height:48px;padding:12px 14px}.filters{gap:15px}.formgrid{gap:21px}
 th{font-size:12px;padding:18px 21px}td{font-size:14px;padding:22px 21px}td small{font-size:12px}.pill{font-size:12px}.row{font-size:14px;padding:18px 0}
 small,.muted{font-size:14px}.hint,.statusline{font-size:13px}.notice,.errorline,.checkbox{font-size:14px}.bigamount{font-size:39px}.linkback{font-size:13px}
 .chartrow{font-size:13px;grid-template-columns:minmax(110px,1fr) 1fr 135px}.catalogcard .row small{font-size:12px}.tabs button{font-size:13px;padding-bottom:17px}
 .amounts label{font-size:12px}.amounts input{font-size:15px;min-height:45px}.savebar small{font-size:12px}.preview-head{font-size:14px}.preview-head a,.filename{font-size:12px}
 .bank-reason,.bank-history small{font-size:13px}.testtag{font-size:12px}.textbutton{font-size:14px}.empty h3{font-size:20px}.empty p{font-size:14px}
 dialog{max-width:750px}dialog h2{font-size:24px}.loginbox{max-width:500px}.loginbox p{font-size:14px}
}
@media(min-width:2200px){.layout{grid-template-columns:290px minmax(0,1fr)}.content{padding:48px 52px 80px}.top{padding:0 52px}.nav-link{font-size:16px}.heading h1{font-size:40px}}
@media(max-width:1100px){.layout{grid-template-columns:204px minmax(0,1fr)}.sidebar{padding:28px 12px}.brand{font-size:21px;margin-left:12px;margin-right:12px}.nav-link{padding:12px 11px;font-size:12px;gap:10px}.content{padding:28px 24px}.workspace{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.top{padding:0 24px}.heading h1{font-size:29px}.twocol{gap:18px}.box{padding:22px}}
@media(max-width:700px){.layout{display:block}.sidebar{position:static;height:auto;padding:22px 17px 17px;display:block}.brand{font-size:21px;margin:0 0 20px;display:flex;align-items:center;gap:12px}.brand::before{width:4px;height:22px;margin:0;flex-shrink:0}.brand small{display:none}.brand img{max-height:40px!important;margin-bottom:0!important}.sidebar nav{display:flex;gap:6px;flex-wrap:wrap}.nav-link{padding:10px;white-space:nowrap;font-size:11px;margin:0;flex:1 1 auto;justify-content:center;border-radius:6px;gap:7px}.nav-link.active::after{display:none}.nav-icon{width:15px;height:15px}.nav-label,.sidebar footer{display:none}.top{height:61px;padding:0 17px}.top strong{font-size:10px}.user{gap:8px}.user>span{display:none}.user-badge{width:27px;height:27px;font-size:9px}.content{padding:27px 16px 50px}.heading{align-items:start;flex-wrap:wrap;margin-bottom:23px;gap:15px}.heading h1{font-size:28px}.heading p{font-size:12px}.heading .btn{min-height:42px}.metrics{gap:11px}.metric{padding:20px 16px 17px}.metric::before{left:16px}.metric>span{font-size:10px}.metric strong{font-size:25px;margin:13px 0 8px}.metric small{font-size:10px}.box{padding:19px;margin-bottom:18px;border-radius:11px}.twocol{grid-template-columns:1fr;gap:0}.filters{gap:12px}.filters .field{min-width:125px}.formgrid{gap:15px}.formbody{padding:20px}.savebar{padding:17px;flex-wrap:wrap}.savebar .btn{flex:1}.savebar small{width:100%}.amounts{gap:8px;padding:12px}.amounts input{font-size:12px;padding:8px}.uploadrow{flex-wrap:wrap}.uploadrow .btn{min-width:130px}.chartrow{grid-template-columns:minmax(80px,1fr) .7fr 95px;font-size:11px;gap:10px}.tablebox.desktop-only{display:none}.mobilecards{display:block}.mobilecard{padding:19px;margin-bottom:12px;border:1px solid var(--line);background:white;border-radius:11px;box-shadow:var(--shadow)}.mobilecard .row{padding:0 0 14px}.mobilecard p{margin-top:12px;font-size:12px}.mobilecard small{display:block;margin-top:6px}.setup{margin-top:30px}.setup .formgrid{grid-template-columns:1fr}.preview-head{padding:16px}.preview-head strong{font-size:12px}.preview-head a{font-size:10px}.preview-body{padding:12px}.ar-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-history,.bank-actions{align-items:stretch;flex-direction:column;gap:14px}.bank-actions .btn{width:100%}th{padding:14px}td{padding:17px 14px}.loginbox{padding:32px}.bank-history .toolbar{gap:7px}dialog{padding:23px}.tabs{gap:4px 14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.bank-payer>small,.bank-payer>b{display:block}.bank-payer>b{margin:5px 0}.bank-payer>p{margin:3px 0}

.crm-address{line-height:1.9;font-size:14px}.crm-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;margin-top:20px;padding:15px;background:#f6f8f2;border-radius:8px}.catalogcard .pill{margin-top:9px}.bank-scroll table{min-width:630px}@media(min-width:1400px){.crm-address{font-size:16px}.crm-notes{font-size:14px}}

.mmc-nav-group{margin-top:15px}.mmc-nav-group>summary{list-style:none;cursor:pointer;font-size:10px;font-weight:650;color:#a4b7af;letter-spacing:.6px;padding:11px 15px;display:flex;align-items:center;justify-content:space-between}.mmc-nav-group>summary::-webkit-details-marker{display:none}.mmc-nav-group>summary::after{content:'＋';font-size:13px}.mmc-nav-group[open]>summary::after{content:'−'}.sidebar nav{overflow-y:auto;min-height:80px;scrollbar-width:thin;scrollbar-color:#4c665a transparent;flex:1}.sidebar footer{flex-shrink:0;padding-top:18px;margin-top:20px}.heading h1,.crm-address{overflow-wrap:anywhere}.row>*{min-width:0}@media(min-width:1400px){.mmc-nav-group>summary{font-size:12px}}@media(max-width:700px){.sidebar nav{display:block;overflow:visible}.mmc-nav-group{margin-top:9px}.mmc-nav-group>summary{font-size:11px;padding:10px}.mmc-nav-group>div{display:flex;flex-wrap:wrap;gap:6px}.sidebar nav>.nav-link{display:inline-flex;margin-bottom:5px}.mmc-nav-group .nav-link{flex:1 1 auto}.sidebar footer{display:none}}
