:root{--text:#253234;--muted:#69777a;--line:#dfe6e5;--bg:#f4f7f6;--accent:#14766e;--danger:#b33838;--blue:#075184;--white:#fff;--amber:#946914}
*{box-sizing:border-box;letter-spacing:0}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--text);cursor:pointer;min-height:38px;white-space:nowrap}button:hover{background:#edf3f1}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--accent);border-color:var(--accent);color:white}button.primary:hover{background:#105e58}button.danger{color:var(--danger)}button svg,a svg{width:17px;height:17px;flex-shrink:0}.icon-button{height:36px;width:36px;min-height:36px;padding:7px}input,select,textarea{padding:9px 10px;background:white;border:1px solid #cfd9d7;border-radius:5px;width:100%;min-width:0;color:var(--text)}input:focus,select:focus,textarea:focus{outline:2px solid #8ec3bb;outline-offset:1px}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}label.check{flex-direction:row;align-items:center;font-size:14px;color:var(--text)}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:600}h2{font-size:17px;font-weight:600}h3{font-size:14px;font-weight:600}.muted{color:var(--muted);font-size:12px}.mono{font-variant-numeric:tabular-nums}.right{text-align:right}.negative{color:var(--danger)}[hidden]{display:none!important}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.sidebar{width:222px;background:white;border-right:1px solid var(--line);position:fixed;top:0;bottom:0;display:flex;flex-direction:column;padding:24px 14px}.brand{padding:4px 6px 27px;display:block}.brand img{width:182px;height:auto}.nav-caption{font-size:10px;color:#879390;font-weight:bold;padding:0 12px 12px}nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;margin-bottom:5px;color:#5d6b6b;border-radius:5px;font-weight:500}nav a:hover{text-decoration:none;background:#f3f6f5}nav a.active{background:#e7f2ef;color:#14675f;font-weight:600}nav svg{width:18px;height:18px}.sidebar-bottom{margin-top:auto;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px;padding:12px}.connection{width:6px;height:6px;border-radius:50%;background:#219074}.workspace{margin-left:222px;min-width:0}.topbar{background:white;border-bottom:1px solid var(--line);padding:21px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:11px;color:var(--muted);margin-bottom:4px}.top-actions{display:flex;align-items:center;gap:15px}.top-actions>span{font-size:12px}.period-control{display:flex;flex-direction:row;gap:7px;align-items:center;color:var(--muted)}.period-control svg{width:18px}.period-control input{width:157px;background:#fafcfb;padding:7px 9px}main{padding:26px 30px;min-height:calc(100vh - 150px)}footer{padding:12px 30px 24px;color:#83908d;font-size:11px}.section-head,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 18px}.section-head p{margin-top:3px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid var(--line);margin:0 0 28px;background:#fff}.stat{padding:19px 20px;border-right:1px solid var(--line);min-width:0}.stat:last-child{border:0}.stat-label{color:var(--muted);font-size:12px;display:flex;gap:8px;align-items:center}.stat-label svg{width:16px;height:16px}.stat strong{display:block;font-size:25px;font-weight:600;margin:9px 0 3px;overflow-wrap:anywhere}.stat.teal strong{color:#14766e}.stat.amber strong{color:#946914}.stat small{color:var(--muted);font-size:11px}.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);background:white;border-radius:4px;margin-bottom:22px}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th{text-align:left;background:#f8faf9;font-size:11px;color:#6d7c78;font-weight:600;white-space:nowrap;border-bottom:1px solid var(--line);padding:12px}td{padding:12px;border-bottom:1px solid #eaf0ed;font-size:12px;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfc}td .muted{font-size:11px;margin-top:3px;display:block}td strong{font-size:12px}td input{width:110px;font-size:12px;padding:8px}td input.note{width:150px}td .price{width:120px}td.action-cell{white-space:nowrap}td.action-cell>*{margin-left:5px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:3px 7px;border-radius:4px;white-space:nowrap;background:#edf1ef;color:#69766d}.badge.paid{background:#e5f3ed;color:#187451}.badge.waiting{background:#fff3d9;color:#896416}.badge.off{background:#f0f0f0;color:#777}.empty{text-align:center;padding:45px 15px;color:var(--muted)}.empty svg{display:block;width:28px;height:28px;margin:0 auto 10px;color:#8a9e98}.filter{width:240px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.span-all{grid-column:1/-1}.settings-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.settings-section h2{margin-bottom:18px}.utility-top{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:22px}.utility-settings{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-top:18px}.utility-settings label{min-width:170px;flex:1}.invoice-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}.invoice-total{background:#eaf2ef;padding:18px;border-left:3px solid var(--accent)}.invoice-total strong{display:block;font-size:27px;margin:7px 0}.invoice-total .divider{border-top:1px solid #d1dfda;margin:12px 0}.invoice-list{margin-top:15px;display:flex;gap:8px;flex-wrap:wrap}.invoice-item{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;background:white;padding:8px 10px;font-size:12px}.invoice-item small{color:var(--muted)}.message{padding:12px 14px;background:#fff5df;border:1px solid #efdfb4;border-radius:4px;font-size:12px;color:#705319;margin:14px 0}.message.error{background:#fff0f0;border-color:#eccccc;color:var(--danger)}.reading-bar{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:white;padding:13px 16px;border:1px solid var(--line);border-radius:6px;box-shadow:0 3px 12px #122c2410;z-index:2}.reading-bar .summary{font-size:12px}.reading-bar .summary strong{color:var(--accent)}.login-page{min-height:100vh;display:grid;place-items:center;background:#f3f7f5;border-top:5px solid #126e67}.login-form{width:360px;max-width:calc(100vw - 40px);display:grid;gap:18px}.login-logo{width:250px;max-width:100%;margin:0 auto 20px}.login-form h1{text-align:center;font-size:20px;margin-bottom:8px}.login-form button{margin-top:4px}#login-error{color:var(--danger);font-size:12px}dialog{border:1px solid var(--line);border-radius:8px;width:760px;max-width:calc(100vw - 28px);padding:0;max-height:90vh;box-shadow:0 16px 60px #12252225}dialog::backdrop{background:#15292366}.modal-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-body{padding:22px 24px;overflow:auto;max-height:calc(90vh - 155px)}.modal-footer{padding:15px 24px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-end;background:#fafcfb}.modal-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-body h3{margin:16px 0 10px}#toast{position:fixed;bottom:26px;right:26px;padding:14px 18px;background:#25443d;color:white;border-radius:6px;max-width:480px;z-index:20;font-size:13px}#toast.error{background:#943c38}.notice-sheet{max-width:780px;margin:0 auto;background:white;padding:32px;border:1px solid var(--line)}.notice-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.notice-head img{width:230px;max-width:45%}.notice-sheet h2{font-size:14px;margin:20px 0 8px}.notice-sheet td{padding:8px 10px}.notice-sheet td:first-child{width:35%;background:#f7f9f8}.notice-sheet .total td{font-weight:bold;background:#edf5f1;font-size:16px}.notice-footer{margin-top:18px;font-size:11px;color:var(--muted)}.mobile-only{display:none}
@media(min-width:1600px){main{max-width:1600px}.topbar{max-width:1600px}}
@media(max-width:1100px){.sidebar{width:186px}.brand img{width:152px}.workspace{margin-left:186px}main{padding:22px}.topbar{padding:20px 22px}.top-actions>span{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.utility-top{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:760px){.sidebar{position:static;width:auto;padding:14px 16px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 14px}.brand img{width:170px}.nav-caption,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;gap:3px;padding-bottom:8px}nav a{white-space:nowrap;font-size:12px;padding:8px;gap:6px;margin:0}nav a svg{width:15px;height:15px}.workspace{margin:0}.topbar{padding:17px 16px;gap:8px}.topbar h1{font-size:19px}.breadcrumb{display:none}.top-actions{gap:6px}.period-control input{width:136px;font-size:12px}.period-control>svg{display:none}main{padding:18px 16px}.stats{margin-bottom:23px}.stat{padding:15px 12px}.stat strong{font-size:21px}.form-grid,.two,.utility-top{grid-template-columns:1fr}.utility-top{gap:16px}.form-grid{gap:12px}.filter{width:100%}.modal-body .form-grid{grid-template-columns:1fr}.reading-bar{flex-wrap:wrap;bottom:6px;padding:12px}.reading-bar .actions{width:100%}.reading-bar button{flex:1;white-space:normal;font-size:12px}.invoice-total strong{font-size:24px}.notice-sheet{padding:14px}.notice-head{gap:10px;font-size:12px}.notice-head img{width:180px}.notice-sheet td{font-size:11px;overflow-wrap:anywhere}dialog .modal-head,dialog .modal-body,dialog .modal-footer{padding:16px}#toast{left:16px;right:16px;bottom:16px}footer{padding:12px 16px}.topbar .icon-button{width:32px}.section-head .actions{width:100%}}
@media print{body{background:white}.sidebar,.topbar,footer,.no-print,#toast{display:none!important}.workspace{margin:0}main{padding:0;min-height:0}.notice-sheet{border:0;padding:0;max-width:none}.notice-sheet tr{break-inside:avoid}.notice-sheet h2{break-after:avoid}@page{size:A4;margin:13mm}}
