:root{--navy:#1f3a5f;--navy-2:#2d527f;--bg:#f4f5f7;--card:#fff;--line:#dfe3e8;--text:#1c2430;--muted:#667085;--red:#c0392b;--red-bg:#fdecea;--green:#1e7d4f;--green-bg:#e8f5ee;--amber-bg:#fff4d6;--amber:#8a5a00;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1{margin:0;font-size:1.35rem}h2{margin:0;font-size:1.15rem}h3{margin:1.2rem 0 .5rem;font-size:1.02rem}h4{color:var(--muted);margin:1rem 0 .3rem;font-size:.9rem}a{color:var(--navy-2)}.muted{color:var(--muted)}.small{font-size:.85rem}.grow{flex:1}.right{text-align:right}.neg{color:var(--red);font-weight:600}.pad{padding:1.5rem}.error{background:var(--red-bg);color:var(--red);border-radius:8px;margin:.6rem 0;padding:.6rem .8rem}.error.small{padding:.3rem .5rem}.ok{background:var(--green-bg);color:var(--green);border-radius:8px;margin:.6rem 0;padding:.6rem .8rem}.note{background:var(--amber-bg);white-space:pre-wrap;border-radius:8px;padding:.5rem .7rem}.shell{min-height:100vh;display:flex}.side{background:var(--navy);color:#fff;flex-direction:column;gap:2px;width:210px;height:100vh;padding:1rem .6rem;display:flex;position:sticky;top:0}.side .brand{padding:.3rem .6rem 1rem;font-size:1.05rem;font-weight:700}.side a{color:#dbe4f0;border-radius:8px;padding:.55rem .7rem;text-decoration:none}.side a.active{background:var(--navy-2);color:#fff;font-weight:600}main{flex:1;min-width:0;max-width:1300px;padding:1.2rem 1.5rem 3rem}.bottom{display:none}@media (width<=800px){.side{display:none}main{padding:.8rem .8rem 5.5rem}.bottom{background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:5;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom a{text-align:center;color:var(--muted);flex:1;padding:.9rem .2rem;font-size:.85rem;text-decoration:none}.bottom a.active{color:var(--navy);box-shadow:inset 0 3px 0 var(--navy);font-weight:700}}.btn{background:var(--navy);color:#fff;font:inherit;cursor:pointer;border:0;border-radius:8px;padding:.55rem .95rem;font-weight:600;display:inline-block}.btn:disabled{opacity:.6}.btn.secondary{color:var(--navy);border:1px solid var(--line);background:#fff}.btn.danger{color:var(--red);border:1px solid var(--red);background:#fff}.btn.small{padding:.25rem .6rem;font-size:.85rem}.btn.big{width:100%;margin-top:.6rem;padding:.9rem;font-size:1.02rem}.x{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0 .4rem;font-size:1.5rem;line-height:1}input,select,textarea{font:inherit;border:1px solid var(--line);width:100%;color:var(--text);background:#fff;border-radius:8px;padding:.55rem .6rem}input[type=checkbox]{width:1.15rem;height:1.15rem}.field{flex-direction:column;gap:.25rem;display:flex}.field>span{color:var(--muted);font-size:.82rem;font-weight:600}.field.inline,label.inline{flex-direction:row;align-items:center;gap:.5rem;display:flex}.field.inline>span{color:var(--text);order:2;font-size:.95rem;font-weight:400}.seg{border:1px solid var(--line);border-radius:8px;align-self:flex-start;display:inline-flex;overflow:hidden}.seg button{font:inherit;cursor:pointer;background:#fff;border:0;padding:.5rem .9rem}.seg button.on{background:var(--navy);color:#fff;font-weight:600}.badge{color:var(--navy);white-space:nowrap;background:#e8edf3;border-radius:99px;padding:.1rem .45rem;font-size:.75rem}.badge.l2{color:#4a2e83;background:#ede7f6}.badge.warn{background:var(--amber-bg);color:var(--amber)}.bar{flex-wrap:wrap;align-items:center;gap:.6rem;margin:.2rem 0 .7rem;display:flex}.bar h3{margin:0}.back{padding-right:.3rem;text-decoration:none}.search{max-width:220px}.crud{margin-bottom:1.4rem}.table-wrap{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.92rem}th,td{text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;padding:.5rem .7rem}th.right,td.right{text-align:right;font-variant-numeric:tabular-nums}th{color:var(--muted);background:#fafbfc;font-size:.78rem;font-weight:600}tbody tr{cursor:pointer}tbody tr:hover{background:#f7f9fc}tbody tr:last-child td{border-bottom:0}tfoot td{border-top:2px solid var(--line);background:#fafbfc;border-bottom:0;font-weight:700}tr.todo{background:var(--amber-bg)}tr.over td:first-child{box-shadow:inset 4px 0 0 var(--red)}table.breakdown tbody tr{cursor:default}.stats{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.6rem;margin:.8rem 0 1rem;display:grid}.stat{background:var(--card);border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:.15rem;padding:.7rem .8rem;display:flex}.stat .label{color:var(--muted);font-size:.78rem;font-weight:600}.stat strong{font-variant-numeric:tabular-nums;font-size:1.2rem}.stat small{color:var(--muted);font-size:.78rem}.stat.good strong{color:var(--green)}.stat.bad strong{color:var(--red)}.tabs{border-bottom:1px solid var(--line);gap:.2rem;margin-bottom:1rem;display:flex;overflow-x:auto}.tabs button{font:inherit;cursor:pointer;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;padding:.6rem .8rem}.tabs button.on{color:var(--navy);border-bottom-color:var(--navy);font-weight:700}.modal-bg{z-index:20;background:#141e2d73;justify-content:center;align-items:flex-start;padding:3vh 1rem;display:flex;position:fixed;inset:0;overflow-y:auto}.modal-bg .modal-bg{z-index:30}.modal{background:var(--card);border-radius:12px;width:100%;max-width:620px;padding:1rem 1.1rem;box-shadow:0 10px 40px #00000040}.modal.wide{max-width:860px}.modal header{justify-content:space-between;align-items:center;margin-bottom:.8rem;display:flex}.modal footer{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.fields{grid-template-columns:1fr 1fr;gap:.7rem;display:grid}.fields .wide{grid-column:1/-1}@media (width<=800px){.modal-bg{padding:0}.modal{border-radius:0;max-width:none;min-height:100vh}.fields{grid-template-columns:1fr}input,select,textarea{font-size:16px}}.attachments{margin-top:.9rem}.thumbs{flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem;display:flex}.thumb{position:relative}.thumb img{object-fit:cover;border:1px solid var(--line);border-radius:8px;width:96px;height:96px;display:block}.thumb .filelink{border:1px solid var(--line);text-overflow:ellipsis;border-radius:8px;max-width:160px;padding:.6rem;display:block;overflow:hidden}.thumb .x{border:1px solid var(--line);background:#fff;border-radius:50%;width:24px;height:24px;padding:0;font-size:1rem;position:absolute;top:-8px;right:-8px}.today{max-width:640px}.row2{grid-template-columns:1.6fr 1fr;gap:.6rem;margin:.8rem 0;display:grid}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:1rem;padding:.9rem}.card h3{margin-top:0}.card.actions{flex-direction:column;gap:.1rem;display:flex}.ticklist,.plain,.menu{margin:0;padding:0;list-style:none}.ticklist li{border:1px solid var(--line);border-radius:10px;margin-bottom:.45rem}.ticklist li.on{border-color:var(--navy);background:#f2f6fb}.tick{width:100%;font:inherit;text-align:left;cursor:pointer;color:var(--text);background:0 0;border:0;align-items:center;gap:.7rem;padding:.7rem;display:flex}.tick .box{border:2px solid var(--line);color:#fff;border-radius:6px;flex:none;place-items:center;width:1.7rem;height:1.7rem;font-weight:700;display:grid}li.on .tick .box{background:var(--navy);border-color:var(--navy)}.tick .who{flex-direction:column;display:flex}.tick small{color:var(--muted)}.tickopts{flex-wrap:wrap;align-items:center;gap:.5rem;padding:0 .7rem .7rem 3.1rem;display:flex}.tickopts select{flex:1;width:auto;min-width:150px}.plain li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:.45rem 0;display:flex}.menu li a{background:var(--card);border:1px solid var(--line);color:var(--text);border-radius:10px;margin-bottom:.5rem;padding:1rem;font-weight:600;text-decoration:none;display:block}.login{background:var(--card);border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:.8rem;max-width:340px;margin:12vh auto;padding:1.5rem;display:flex}
