:root{--red:#8e1b2d;--red-dark:#6f1423;--red-soft:#f6e9eb;--bg:#f4f5f6;--surface:#fff;--text:#26282c;--muted:#6b7078;--line:#e1e3e6;--charcoal:#2b2d31;--grey:#e9eaec;--green:#1f7a4d;--green-soft:#e3f3ea;--amber:#a86100;--amber-soft:#fdf0d9;--blue:#2c5f9e;--blue-soft:#e4edf8;--radius:12px;--shadow:0 1px 2px #0000000f, 0 2px 8px #0000000a;--nav-h:62px;--top-h:56px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark]{--red:#c9475b;--red-dark:#b53a4d;--red-soft:#3a2126;--bg:#17181a;--surface:#212326;--text:#ececee;--muted:#9ba0a8;--line:#34373b;--charcoal:#0f1011;--grey:#2c2e32;--green:#4cc38a;--green-soft:#1d3228;--amber:#e8a64a;--amber-soft:#382b18;--blue:#7fb0ea;--blue-soft:#1e2b3c;--shadow:0 1px 2px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:var(--red)}h1{margin:0;font-size:1.35rem}h2{margin:0;font-size:1.05rem}h3{margin:.8rem 0 .4rem;font-size:.95rem}.muted{color:var(--muted)}.center{text-align:center}.pad{padding:1.2rem}.block{display:block}.row{align-items:center;display:flex}.gap{gap:.5rem}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1}.stack>*+*{margin-top:.75rem}.small{font-size:.85rem}.shell{min-height:100dvh;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}.topbar{z-index:20;height:calc(var(--top-h) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);background:var(--red);color:#fff;align-items:center;gap:.5rem;padding-inline:.9rem;display:flex;position:sticky;top:0}.brand{letter-spacing:.04em;color:#fff;white-space:nowrap;font-size:1.02rem;font-weight:800;text-decoration:none}.brand small{opacity:.85;letter-spacing:0;margin-left:.5rem;font-weight:400;display:none}.topbar .icon-btn{color:#fff;cursor:pointer;background:#ffffff24;border:0;border-radius:10px;min-width:40px;height:40px;font-size:1.05rem;position:relative}.topbar .icon-btn:hover{background:#ffffff40}.dot{color:#000;background:#ffd24a;border-radius:10px;padding:0 5px;font-size:.65rem;font-weight:700;position:absolute;top:4px;right:4px}.bottomnav{bottom:0;z-index:20;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);display:flex;position:fixed;inset-inline:0}.bottomnav a,.bottomnav button{color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.7rem;text-decoration:none;display:flex}.bottomnav .ico{font-size:1.25rem;line-height:1}.bottomnav a.active{color:var(--red);font-weight:700}.sidenav{display:none}.content{max-width:1180px;margin:0 auto;padding:.9rem}.fab{right:16px;bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));z-index:25;background:var(--red);color:#fff;cursor:pointer;border:0;border-radius:50%;width:56px;height:56px;font-size:1.9rem;position:fixed;box-shadow:0 4px 14px #0000004d}.sheet-back{z-index:40;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:520px;padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.sheet h2{margin-bottom:.7rem}.sheet .quick{grid-template-columns:1fr 1fr;gap:.6rem;display:grid}.sheet .quick a{border-radius:var(--radius);background:var(--red-soft);color:var(--red);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:88px;padding:1rem .5rem;font-weight:600;text-decoration:none;display:flex}.sheet .quick .ico{font-size:1.6rem}.menu-list a,.menu-list button{width:100%;color:var(--text);border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;background:0 0;padding:.8rem .4rem;font-size:1rem;text-decoration:none;display:flex}@media (width>=900px){.shell{padding-bottom:0;padding-left:230px}.bottomnav{display:none}.fab{bottom:24px;right:24px}.brand small{display:inline}.sidenav{top:var(--top-h);background:var(--surface);border-right:1px solid var(--line);z-index:10;flex-direction:column;gap:2px;width:230px;padding:.8rem .6rem;display:flex;position:fixed;bottom:0;left:0;overflow-y:auto}.sidenav a{color:var(--text);border-radius:10px;align-items:center;gap:.6rem;padding:.6rem .8rem;text-decoration:none;display:flex}.sidenav a.active{background:var(--red-soft);color:var(--red);font-weight:700}.sidenav a:hover{background:var(--grey)}.sidenav .tag{color:var(--muted);margin-top:auto;padding:.6rem;font-size:.75rem}.content{padding:1.4rem}.sheet-back{align-items:center}.sheet{border-radius:18px}}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.8rem;margin-bottom:.9rem;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:.9rem;padding:.9rem}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.7rem;display:flex}.grid{gap:.7rem;display:grid}.g2,.g3{grid-template-columns:1fr}.g4{grid-template-columns:1fr 1fr}@media (width>=700px){.g2{grid-template-columns:1fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}}.tiles{grid-template-columns:repeat(2,1fr);gap:.6rem;display:grid}@media (width>=700px){.tiles{grid-template-columns:repeat(4,1fr)}}@media (width>=1100px){.tiles{grid-template-columns:repeat(5,1fr)}}.tile{background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--charcoal);border-radius:var(--radius);color:var(--text);box-shadow:var(--shadow);padding:.7rem .8rem;text-decoration:none;display:block}.tile.red{border-left-color:var(--red)}.tile.amber{border-left-color:var(--amber)}.tile.green{border-left-color:var(--green)}.tile.grey{border-left-color:#9aa0a8}.tile-value{font-size:1.7rem;font-weight:800;line-height:1.1}.tile-label{color:var(--muted);margin-top:2px;font-size:.8rem}.tile-hint{color:var(--muted);font-size:.72rem}.btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:.35rem;min-height:44px;padding:0 1rem;font-size:1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn.small{min-height:34px;padding:0 .7rem;font-size:.85rem}.btn.primary{background:var(--red);color:#fff}.btn.primary:hover{background:var(--red-dark)}.btn.secondary{background:var(--surface);color:var(--text);border-color:var(--line)}.btn.secondary:hover{background:var(--grey)}.btn.ghost{color:var(--red);background:0 0}.btn.danger{color:#fff;background:#b3261e}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.wide{width:100%}.field{display:block}.field-label{margin-bottom:3px;font-size:.85rem;font-weight:600;display:block}.req{color:var(--red)}input[type=text],input[type=email],input[type=tel],input[type=password],input[type=date],input[type=datetime-local],input[type=number],input[type=search],input:not([type]),select,textarea{width:100%;min-height:44px;font:inherit;color:var(--text);background:var(--surface);border:1px solid #b9bdc4;border-radius:10px;padding:.55rem .7rem}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{border-color:#4a4e54}input:focus,select:focus,textarea:focus{outline:3px solid color-mix(in srgb, var(--red) 35%, transparent);border-color:var(--red)}.hint{color:var(--muted);margin-top:2px;font-size:.78rem;display:block}.hint.err{color:#b3261e}.check{cursor:pointer;align-items:flex-start;gap:.6rem;min-height:40px;padding:.3rem 0;display:flex}.check input{width:22px;height:22px;accent-color:var(--red);flex:none;margin-top:2px}.form-actions{flex-wrap:wrap;gap:.6rem;margin-top:1rem;display:flex}.form-actions .btn{flex:1;min-width:130px}fieldset{border:1px solid var(--line);border-radius:var(--radius);margin:.8rem 0 0;padding:.7rem}legend{padding:0 .4rem;font-size:.9rem;font-weight:700}.badge{white-space:nowrap;border-radius:99px;padding:2px 9px;font-size:.75rem;font-weight:700;display:inline-block}.badge.grey{background:var(--grey);color:var(--text)}.badge.red{background:var(--red);color:#fff}.badge.amber{background:var(--amber-soft);color:var(--amber)}.badge.green{background:var(--green-soft);color:var(--green)}.badge.blue{background:var(--blue-soft);color:var(--blue)}.badge.dark{background:var(--charcoal);color:#fff}.alert{border-radius:10px;margin-bottom:.7rem;padding:.7rem .9rem}.alert.err{color:#8a1c14;background:#fde8e6;border:1px solid #f3b9b4}.alert.warn{background:var(--amber-soft);color:var(--amber);border:1px solid #ecc88a}.alert.info{background:var(--blue-soft);color:var(--blue)}[data-theme=dark] .alert.err{color:#ffb4ac;background:#3b1d1a;border-color:#6b2c27}.toasts{z-index:60;left:50%;bottom:calc(var(--nav-h) + 80px);pointer-events:none;flex-direction:column;gap:.4rem;width:min(92vw,420px);display:flex;position:fixed;transform:translate(-50%)}.toast{color:#fff;border-radius:10px;padding:.7rem 1rem;box-shadow:0 4px 14px #0000004d}.toast.ok{background:var(--green)}.toast.err{background:#b3261e}.spinner{border:3px solid var(--line);border-top-color:var(--red);border-radius:50%;width:28px;height:28px;margin:1.4rem auto;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.tabs{border-bottom:1px solid var(--line);scrollbar-width:none;gap:.3rem;margin-bottom:.9rem;display:flex;overflow-x:auto}.tabs button{font:inherit;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;padding:.65rem .9rem;font-weight:600}.tabs button.on{color:var(--red);border-bottom-color:var(--red)}.acc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:.6rem}.acc summary{cursor:pointer;justify-content:space-between;align-items:center;gap:.6rem;min-height:48px;padding:.85rem .9rem;font-weight:700;list-style:none;display:flex}.acc summary::-webkit-details-marker{display:none}.acc summary:after{content:"▾";color:var(--muted)}.acc[open] summary:after{content:"▴"}.acc-body{padding:0 .9rem .9rem}.modal-back{z-index:50;background:#00000080;justify-content:center;align-items:center;padding:.8rem;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:16px;width:min(640px,100%);max-height:92dvh;padding:1rem;overflow:auto}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:.92rem}.table.dim{opacity:.55}.table th{text-align:left;border-bottom:2px solid var(--line);color:var(--muted);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;padding:.55rem .6rem;font-size:.78rem}.table th.sortable{cursor:pointer}.table td{border-bottom:1px solid var(--line);vertical-align:top;padding:.6rem}.table tr.clickable{cursor:pointer}.table tr.clickable:hover{background:var(--grey)}.rowcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:.5rem;padding:.75rem .85rem}.rowcard[role=button]{cursor:pointer}.cards-only{display:block}.table-only{display:none}@media (width>=900px){.cards-only{display:none}.table-only{display:block}}.pager{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.7rem;font-size:.85rem;display:flex}.filters{grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.8rem;display:grid}.filters .wide{grid-column:1/-1}@media (width>=900px){.filters{grid-template-columns:repeat(6,1fr)}.filters .wide{grid-column:span 2}}.kv{grid-template-columns:1fr;gap:.15rem .8rem;display:grid}.kv dt{color:var(--muted);margin-top:.5rem;font-size:.78rem}.kv dd{margin:0}@media (width>=700px){.kv{grid-template-columns:1fr 1fr}}.timeline{border-left:3px solid var(--line);margin:0;padding:0 0 0 1rem;list-style:none}.timeline li{padding:0 0 .9rem .9rem;position:relative}.timeline li:before{content:"";background:var(--red);border:2px solid var(--surface);border-radius:50%;width:12px;height:12px;position:absolute;top:.35rem;left:-1.5rem}.timeline li.done:before{background:var(--green)}.timeline li.instruction:before{background:var(--charcoal);width:14px;height:14px;left:-1.55rem}.timeline .when{color:var(--muted);font-size:.78rem}.prio-bar{border-left:5px solid var(--grey)}.prio-bar.urgent{border-left-color:var(--red)}.prio-bar.high{border-left-color:var(--amber)}.prio-bar.medium{border-left-color:var(--blue)}.instruction-box{background:var(--charcoal);color:#fff;border-radius:var(--radius);margin-bottom:.8rem;padding:.8rem .9rem}.instruction-box .when{color:#c5c8cd}.search-results{border:1px solid var(--line);background:var(--surface);border-radius:10px;max-height:260px;margin-top:.3rem;overflow:auto}.search-results button{text-align:left;border:0;border-bottom:1px solid var(--line);width:100%;color:var(--text);font:inherit;cursor:pointer;background:0 0;min-height:48px;padding:.6rem .8rem;display:block}.search-results button:hover{background:var(--grey)}.calendar{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.calendar .dow{text-align:center;color:var(--muted);padding:4px 0;font-size:.72rem}.calendar .day{background:var(--surface);border:1px solid var(--line);cursor:pointer;text-align:left;min-height:54px;color:var(--text);border-radius:8px;padding:3px;font-size:.75rem}.calendar .day.other{opacity:.4}.calendar .day.today{border-color:var(--red);border-width:2px}.calendar .day.sel{background:var(--red-soft)}.calendar .pip{background:var(--red);border-radius:50%;width:7px;height:7px;margin-right:2px;display:inline-block}.calendar .pip.v{background:var(--blue)}.calendar .pip.f{background:var(--amber)}.login{max-width:420px;margin:8vh auto;padding:1rem}.login .logo{text-align:center;margin-bottom:1rem}.login .logo h1{color:var(--red);letter-spacing:.05em}.login .tag{color:var(--muted);font-style:italic}.legend{color:var(--muted);flex-wrap:wrap;gap:.8rem;font-size:.8rem;display:flex}.legend i{border-radius:2px;width:10px;height:10px;margin-right:4px;display:inline-block}.chart-box{width:100%;height:280px}.report-head{display:none}.footer-note{color:var(--muted);text-align:center;margin:1.5rem 0 .5rem;font-size:.75rem}@media print{.topbar,.bottomnav,.sidenav,.fab,.no-print,.toasts,.pager,.tabs,.filters{display:none!important}.shell{padding:0!important}body{color:#000;background:#fff}.card{box-shadow:none;break-inside:avoid;border:1px solid #ccc}.report-head{border-bottom:3px solid #8e1b2d;margin-bottom:1rem;padding-bottom:.5rem;display:block}.table-only{display:block!important}.cards-only{display:none!important}a{color:#000;text-decoration:none}.badge{border:1px solid #999;color:#000!important;background:#fff!important}}.calendar .cal-head{text-align:center;color:var(--muted);padding:4px 0;font-size:.72rem}.calendar .cal-cell{background:var(--surface);border:1px solid var(--line);border-radius:8px;min-height:64px;padding:3px;font-size:.72rem;overflow:hidden}.calendar .cal-cell.empty{background:0 0;border:0}.calendar .cal-cell.today{border:2px solid var(--red)}.calendar .cal-cell.overdue{background:var(--red-soft)}.calendar .cal-day{color:var(--muted);font-weight:600}.calendar .cal-item{white-space:nowrap;text-overflow:ellipsis;color:var(--red);text-decoration:none;display:block;overflow:hidden}.calendar .cal-item.fu{color:var(--amber)}button.linklike{text-align:left;cursor:pointer;width:100%;color:var(--text);font:inherit;justify-content:space-between;align-items:center;margin-bottom:0;display:flex}button.linklike.selected{border-color:var(--red);background:var(--red-soft)}a.rowcard{color:var(--text);text-decoration:none;display:block}
