:root{--header: #e2ecdd;--green-dark: #123a12;--green-btn: #0e330e;--green-text: #1d5c1d;--gray-active: #d2d2d2;--border: #b8b8b8;--danger: #a33;--yellow: #ffd400}*{box-sizing:border-box}html,body{margin:0;padding:0;background:#fff}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#111;-webkit-tap-highlight-color:transparent}#root{min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:20;background:var(--header);padding:calc(env(safe-area-inset-top) + 14px) 12px 14px;display:flex;align-items:center;gap:10px}.topbar h1{margin:0;font-size:21px;font-weight:700;text-align:center;color:var(--title-color, #111)}.topbar .titlegroup{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}.topbar .applogo{height:54px;max-width:190px;object-fit:contain}.roundbtn{width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid #ccc;box-shadow:0 1px 3px #0000001f;display:inline-flex;align-items:center;justify-content:center;font-size:19px;cursor:pointer;flex:none;color:#222;text-decoration:none}.roundbtn:active{background:#eee}.pillbtn{background:#fff;border:1px solid #ccc;border-radius:22px;box-shadow:0 1px 3px #0000001f;padding:10px 16px;font-size:15px;cursor:pointer}.main{flex:1;padding:12px 12px calc(env(safe-area-inset-bottom) + 86px)}.bottombar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px calc(env(safe-area-inset-bottom) + 10px);pointer-events:none}.bottombar>*{pointer-events:auto}.calfab{position:fixed;left:14px;bottom:calc(env(safe-area-inset-bottom) + 66px);z-index:21;background:var(--green-btn);color:#fff;border-color:var(--green-btn)}.bellfab{position:fixed;right:14px;bottom:calc(env(safe-area-inset-bottom) + 66px);z-index:21}.bottominfo{background:#fff;border:1px solid #ddd;border-radius:18px;box-shadow:0 1px 4px #00000026;padding:6px 16px;font-size:12.5px;text-align:center;color:#333;line-height:1.35}.tabs{display:flex;gap:8px;margin-bottom:12px}.tabs button{flex:1;padding:10px;border-radius:12px;border:1px solid #ccc;background:#fff;font-size:15px;cursor:pointer}.tabs button.active{background:var(--green-btn);color:#fff;border-color:var(--green-btn)}.searchrow{display:flex;gap:8px;align-items:center;margin:0 0 12px}.searchrow input{flex:1;padding:10px 12px;font-size:15px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#111}.ordercard{background:var(--gray-active);border-radius:12px;padding:10px 12px;margin-bottom:10px;cursor:pointer}.ordercard .row1{display:flex;justify-content:space-between;align-items:baseline}.ordercard .name{font-weight:700;font-size:16.5px}.ordercard .date{font-size:13px;color:#333}.ordercard .row2{font-size:13.5px;color:var(--green-text);margin-top:3px}.ordercard .row3{display:flex;justify-content:space-between;font-size:11.5px;color:#444;margin-top:6px}.ordercard.done{opacity:.75}.badge-done{background:var(--green-btn);color:#fff;border-radius:8px;padding:1px 7px;font-size:11px;margin-left:6px}.summary{font-size:14px;color:var(--green-text);margin:4px 2px 12px;line-height:1.5}.summary b{color:#0d2d0d;font-size:15px}.section-btn{width:100%;display:block;text-align:left;background:var(--green-btn);color:#fff;border:none;border-radius:12px;padding:17px 16px;font-size:16.5px;margin-bottom:9px;cursor:pointer}.section-btn.active{background:var(--gray-active);color:#111}.led{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:9px;vertical-align:middle;flex:none}.led-red{background:#d33;box-shadow:0 0 0 2px #d333}.led-green{background:#2ea44f;box-shadow:0 0 0 2px #2ea44f33}.led-grey{background:#ccc}.section-body{padding:8px 2px 18px}.field{margin-bottom:12px}.field label{display:block;font-size:14.5px;color:var(--green-text);margin:0 0 3px 2px}.field input[type=text],.field input[type=number],.field input[type=date],.field input[type=email],.field input[type=password],.field input:not([type]),.field input[type=tel],.field select,.field textarea{width:100%;padding:10px;font-size:16px;border:1px solid var(--border);border-radius:4px;background:#fff;color:#111;font-family:inherit}.field textarea{min-height:74px;resize:vertical}.field input:disabled{background:#eee}.check{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:15.5px;color:var(--green-text)}.check input{width:24px;height:24px;accent-color:var(--green-btn);flex:none}.field input:read-only{background:#f2f2f2;color:#555}.switchrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 2px 6px;font-size:15px;color:var(--green-text)}.switch{position:relative;width:52px;height:30px;flex:none}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;top:0;right:0;bottom:0;left:0;background:#bbb;border-radius:30px;transition:background .15s;cursor:pointer}.switch .slider:before{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .15s}.switch input:checked+.slider{background:var(--green-btn)}.switch input:checked+.slider:before{transform:translate(22px)}.tslbl{display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:var(--green-text)}.pdfviewer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#444;display:flex;flex-direction:column}.pdfbar{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 6px) 10px 6px;background:var(--green-btn)}.pdfbar .roundbtn{width:40px;height:40px;font-size:22px}.pdftitle{flex:1;color:#fff;font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdfscroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background:#525659}.pdfpages{display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px}.pdfpage{background:#fff;box-shadow:0 1px 6px #00000073;max-width:100%;height:auto}.calbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}.calnav{display:flex;align-items:center;gap:6px}.caltabs{display:flex;gap:4px}.caltabs button{border:1px solid var(--border);background:#fff;border-radius:8px;padding:4px 12px;cursor:pointer;font-size:14px}.caltabs button.active{background:var(--green-btn);color:#fff;border-color:var(--green-btn)}.callegend{display:flex;flex-wrap:wrap;gap:12px;font-size:12.5px;color:#444;margin-bottom:8px;align-items:center}.callegend span{display:flex;align-items:center;gap:5px}.callegend i{width:12px;height:12px;border-radius:3px;display:inline-block}.calscroll{position:relative;max-height:64vh;overflow-y:auto;border:1px solid var(--border);border-radius:8px;background:#fff}.draglabel{position:sticky;top:4px;z-index:9;float:right;margin:4px 6px 0 0;background:#123a12;color:#fff;padding:3px 9px;border-radius:8px;font-size:12px;font-weight:700;box-shadow:0 2px 6px #0000004d}.timegrid{display:grid;background:#fff}.tg-corner{border-bottom:1px solid var(--border);border-right:1px solid var(--border);background:#f7f7f7;position:sticky;top:0;z-index:3}.tg-dayhead{text-align:center;font-size:12.5px;font-weight:600;padding:6px 2px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);background:#f7f7f7;position:sticky;top:0;z-index:3}.tg-dayhead.today{background:#fff7e0}.tg-hours{border-right:1px solid var(--border)}.tg-hour{font-size:10.5px;color:#999;text-align:right;padding-right:4px;border-bottom:1px solid #f0f0f0;box-sizing:border-box}.tg-col{position:relative;border-right:1px solid var(--border)}.tg-cell{border-bottom:1px solid #f0f0f0;box-sizing:border-box}.tg-ev{position:absolute;left:2px;right:2px;border-radius:5px;color:#fff;padding:2px 4px;font-size:10.5px;overflow:hidden;box-shadow:0 1px 2px #00000040;line-height:1.25}.tg-ev b{display:block;font-size:10px}.tg-ev span{display:block;opacity:.95}.monthgrid{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.mg-head{text-align:center;font-size:12px;font-weight:600;padding:5px;background:#f7f7f7;border-bottom:1px solid var(--border)}.mg-cell{min-height:84px;border:1px solid #f0f0f0;padding:3px}.mg-cell.out{background:#fafafa;color:#aaa}.mg-cell.today{background:#fff7e0}.mg-date{font-size:11.5px;font-weight:600;color:#666}.mg-ev{border-radius:4px;color:#fff;font-size:10.5px;padding:1px 4px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mg-more{font-size:10.5px;color:#888;margin-top:2px}.splitwrap{display:block}@media (min-width: 1100px){.splitwrap{display:grid;grid-template-columns:minmax(360px,460px) 1fr;gap:16px;align-items:start}.splitwrap .calpane{position:sticky;top:8px}}.btn{background:var(--green-btn);color:#fff;border:none;border-radius:10px;padding:12px 18px;font-size:15.5px;cursor:pointer}.btn.secondary{background:#fff;color:#111;border:1px solid #bbb}.btn.danger{background:#7c1f1f}.btn:disabled{opacity:.5}.btnrow{display:flex;gap:10px;justify-content:center;margin:14px 0;flex-wrap:wrap}.hint{font-size:13px;color:#666;margin:8px 2px}.error{color:var(--danger);font-size:14px;margin:8px 0}.ok{color:var(--green-text);font-size:14px;margin:8px 0}.photopager{text-align:center}.pagerhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.pagerhead .nav{background:var(--green-btn);color:#fff;border:none;border-radius:10px;width:56px;height:40px;font-size:18px;cursor:pointer}.pagerhead span{color:var(--green-text);font-size:15px}.photoframe{background:#f0f3ee;border-radius:12px;padding:12px}.photoframe img{max-width:100%;max-height:46vh;border-radius:6px}.photodesc{color:var(--green-text);font-size:14.5px;margin-top:8px;text-align:left}.camerabox{width:160px;height:160px;margin:8px auto;border:1px solid #ccc;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:40px;cursor:pointer;background:#fff}.sigpad{border:1px solid var(--border);border-radius:8px;background:#fff;touch-action:none;width:100%;height:190px}.sigimg{border:1px solid #ddd;border-radius:8px;background:#fff;max-width:100%;max-height:130px}.sigcard{border:1px solid #ddd;border-radius:10px;padding:10px;margin-bottom:10px}.sigmeta{font-size:13px;color:#555;margin-top:4px}.dmgwrap{position:relative;-webkit-user-select:none;user-select:none}.dmgwrap svg{width:100%;height:auto;display:block;background:#fff;border:1px solid #ddd;border-radius:10px}.dmgrow{display:flex;gap:8px;align-items:center;padding:8px;border:1px solid #ddd;border-radius:8px;margin-bottom:8px}.dmgrow.sel{border-color:var(--yellow);background:#fffbe0}.dmgnum{width:28px;height:28px;border-radius:50%;background:var(--green-btn);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;flex:none}.dmgrow.sel .dmgnum{background:var(--yellow);color:#111}.dmgrow input{flex:1;border:1px solid #ccc;border-radius:6px;padding:8px;font-size:15px}.dmgphase{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-2px 0 10px 36px}.phasebtn{border:1px solid #ccc;background:#fff;color:#555;border-radius:999px;padding:4px 12px;font-size:13px;cursor:pointer}.phasebtn.ann{border-color:#1d4ed8;background:#1d4ed8;color:#fff}.phasebtn.rueck{border-color:#c0392b;background:#c0392b;color:#fff}.phasets{font-size:12px;color:#888}.doccat{margin-bottom:16px}.doccat h3{font-size:16px;color:var(--green-text);margin:6px 2px}.docrow{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #ddd;border-radius:8px;margin-bottom:6px}.docrow .nm{flex:1;word-break:break-all;font-size:14.5px}.docrow .sz{font-size:12px;color:#777}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:50;display:flex;align-items:flex-end;justify-content:center}.dialog{background:#fff;border-radius:16px 16px 0 0;width:100%;max-width:560px;max-height:88dvh;overflow-y:auto;padding:18px 16px calc(env(safe-area-inset-bottom) + 18px)}.dialog h2{margin:0 0 12px;font-size:18px}.dialog.wide{max-width:820px}@media (min-width: 640px){.overlay{align-items:center}.dialog{border-radius:16px}.main{max-width:720px;margin:0 auto;width:100%}.topbar>*{max-width:720px}}.centerpage{max-width:420px;margin:8vh auto 0;padding:20px}.centerpage h1{text-align:center;color:var(--title-color, var(--green-dark))}.signpage .summary,.signpage .summary b,.signpage .field label,.signpage .check,.signpage h1,.signpage h2,.signpage h3{color:#111}.logo{text-align:center;font-size:44px}.loginpage{padding:5vh 20px calc(env(safe-area-inset-bottom) + 30px)}.loginlogo{text-align:center;margin-bottom:6px}.loginlogo img{width:min(86vw,520px);max-height:34vh;object-fit:contain}.loginpage h1{text-align:center;color:var(--title-color, var(--green-dark));margin:0 0 26px;font-size:30px}.loginform{max-width:420px;margin:0 auto}.offlinebar{background:#8a6d1a;color:#fff;text-align:center;font-size:13px;padding:5px}.buildtag{position:fixed;left:6px;bottom:4px;z-index:5;font-size:10px;color:#9a9a9a;opacity:.6;pointer-events:none;-webkit-user-select:none;user-select:none}.pending{font-size:12px;color:#8a6d1a}.suggest{border:1px solid var(--border);border-top:none;border-radius:0 0 8px 8px;background:#fff;margin-top:-12px;margin-bottom:12px}.suggest div{padding:9px 10px;border-bottom:1px solid #eee;cursor:pointer;font-size:14.5px}.suggest div:last-child{border-bottom:none}.suggest div:active{background:#eef3ea}.suggest small{color:#777}.dmgimgwrap{position:relative;border:1px solid #ddd;border-radius:10px;overflow:hidden}.dmgimgwrap img{width:100%;display:block}.dmgpoint{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:var(--green-btn);color:#fff;border:2px solid #fff;box-shadow:0 1px 3px #0006;display:flex;align-items:center;justify-content:center;font-size:13px;cursor:pointer}.dmgpoint.sel{background:var(--yellow);color:#111}.dmgthumbs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 10px 36px}.dmgthumbs img{width:96px;height:72px;object-fit:cover;border-radius:6px;border:1px solid #ccc;cursor:pointer}.cardmenu{display:flex;flex-direction:column;gap:8px}.cardmenu button,.cardmenu a{text-align:left}.setlayout{display:flex;gap:16px;align-items:flex-start}.setmenu{display:flex;flex-direction:column;gap:6px;min-width:190px;position:sticky;top:80px}.setmenu button{text-align:left;padding:11px 13px;border-radius:10px;border:1px solid #ccc;background:#fff;font-size:14.5px;cursor:pointer}.setmenu button.active{background:var(--green-btn);color:#fff;border-color:var(--green-btn)}.setcontent{flex:1;min-width:0}@media (max-width: 700px){.setlayout{flex-direction:column}.setmenu{flex-direction:row;flex-wrap:wrap;position:static;min-width:0}}.exceltable{overflow-x:auto;border:1px solid #999;border-radius:6px}.exceltable table{border-collapse:collapse;min-width:1000px;width:100%}.exceltable th{background:#fff;color:#000;font-size:13px;padding:9px 8px;text-align:left;white-space:nowrap;border:1px solid #999;border-top:none}.exceltable.stickyhead{max-height:68vh;overflow:auto}.exceltable.stickyhead thead th{position:sticky;top:0;z-index:2}.exceltable th:first-child{border-left:none}.exceltable th:last-child{border-right:none}.exceltable td{border:1px solid #bbb;padding:0}.exceltable tr td:first-child{border-left:none}.exceltable tr td:last-child{border-right:none}.exceltable input{width:100%;border:1px solid transparent;border-radius:0;padding:8px 7px;font-size:13.5px;min-width:100px}.exceltable input:focus{border-color:var(--green-btn);outline:none;background:#f6faf4}.main.wide{max-width:1240px}.colorrow{display:flex;align-items:center;gap:10px;margin-bottom:10px}.colorrow label{flex:1;font-size:14.5px;color:var(--green-text)}.colorrow input[type=color]{width:46px;height:34px;border:1px solid #ccc;border-radius:6px;padding:2px;background:#fff}.colorrow input[type=text]{width:100px;border:1px solid var(--border);border-radius:4px;padding:7px;font-size:14px}
