:root{--brand:#2e7d32;--brand-d:#1b5e20;--bs-primary:#2e7d32;--bs-primary-rgb:46,125,50;--bs-link-color:#1b5e20;--bs-link-color-rgb:27,94,32;--bs-link-hover-color-rgb:20,70,24}
body{background:#f4f6f8;font-size:.95rem}
.btn-primary{--bs-btn-bg:#2e7d32;--bs-btn-border-color:#2e7d32;--bs-btn-hover-bg:#1b5e20;--bs-btn-hover-border-color:#1b5e20;--bs-btn-active-bg:#1b5e20;--bs-btn-active-border-color:#1b5e20}
.btn-outline-primary{--bs-btn-color:#1b5e20;--bs-btn-border-color:#2e7d32;--bs-btn-hover-bg:#2e7d32;--bs-btn-hover-border-color:#2e7d32;--bs-btn-active-bg:#2e7d32;--bs-btn-active-border-color:#2e7d32}
.form-check-input:checked{background-color:#2e7d32;border-color:#2e7d32}
.form-control:focus,.form-select:focus,.form-check-input:focus{border-color:#66bb6a;box-shadow:0 0 0 .2rem rgba(46,125,50,.2)}
.topbar{background:var(--brand);color:#fff;height:56px;position:sticky;top:0;z-index:1030;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.topbar a{color:#fff;text-decoration:none}
.topbar .brand{font-size:1.15rem;font-weight:500}
.topbar .menu-btn{background:none;border:0;color:#fff;font-size:1.4rem;line-height:1;padding:.4rem .7rem}
.side{width:230px;flex:none;background:#fff;border-right:1px solid #e0e0e0;min-height:calc(100vh - 56px);padding:.75rem 0}
.side a{display:block;padding:.5rem 1.1rem;color:#333;text-decoration:none;border-left:3px solid transparent}
.side a:hover{background:#f1f5f1}
.side a.active{background:#eef5ee;border-left-color:var(--brand);color:var(--brand-d);font-weight:600}
.side .head{padding:1rem 1.1rem .25rem;font-size:.75rem;color:#666;letter-spacing:.04em}
main{flex:1;min-width:0;padding:1.5rem}
main h1{font-size:1.6rem;font-weight:400;margin-bottom:1rem}
main h2{font-size:1.1rem;font-weight:600}
.card{border:0;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.login-card{max-width:400px;margin:8vh auto}
.occ{display:flex;gap:.75rem;align-items:center;padding:.65rem .9rem;border-bottom:1px solid #eee;color:inherit;text-decoration:none;border-left:4px solid transparent}
.occ:last-child{border-bottom:0}
.occ:hover{background:#f7faf7}
.occ .t{flex:1;min-width:0}
.occ .t b{font-weight:500}
.occ .meta{font-size:.82rem;color:#5f6368}
.occ.crit-high{border-left-color:#ef6c00}
.occ.crit-critical{border-left-color:#c62828}
.due{white-space:nowrap;font-variant-numeric:tabular-nums}
.due.late{color:#b71c1c;font-weight:600}
.st{display:inline-block;padding:.1rem .55rem;border-radius:1rem;font-size:.78rem;white-space:nowrap;background:#e3e7ea;color:#333}
.st-open{background:#e3f2fd;color:#0d47a1}.st-in_progress{background:#fff3e0;color:#8a3c00}.st-review{background:#ede7f6;color:#4527a0}.st-done{background:#e8f5e9;color:#1b5e20}.st-missed,.st-overdue{background:#ffebee;color:#b71c1c}.st-skipped{background:#eceff1;color:#455a64}.st-planned{background:#fff;color:#5f6368;border:1px dashed #b0b8bd}
.md :last-child{margin-bottom:0}.md pre{background:#f4f6f8;padding:.6rem;border-radius:4px}.md table{width:auto}.md td,.md th{border:1px solid #ddd;padding:.2rem .5rem}
.timeline{list-style:none;padding:0;margin:0}
.timeline li{border-left:2px solid #c8e6c9;padding:0 0 .9rem 1rem;margin-left:.4rem;position:relative}
.timeline li::before{content:"";position:absolute;left:-6px;top:.4rem;width:10px;height:10px;border-radius:50%;background:var(--brand)}
.timeline .who{font-size:.82rem;color:#5f6368}
.pre{white-space:pre-line;overflow-wrap:anywhere}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#e0e0e0;border:1px solid #e0e0e0}
.cal .h{background:#fafafa;padding:.3rem .5rem;font-size:.8rem;font-weight:600}
.cal .d{background:#fff;min-height:104px;padding:.25rem}
.cal .d.off{background:#f7f7f7}.cal .d.other{opacity:.7}
.cal .n{font-size:.8rem;color:#555}.cal .today .n{background:var(--brand);color:#fff;border-radius:1rem;padding:0 .45rem;display:inline-block}
.cal .ev{display:block;font-size:.76rem;padding:.05rem .35rem;border-radius:3px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
.year{columns:3 260px;column-gap:1rem}
.year .card{break-inside:avoid;margin-bottom:1rem}
.kpi{padding:.9rem 1rem}.kpi .v{font-size:1.6rem;font-weight:500;line-height:1.1}.kpi .l{font-size:.8rem;color:#5f6368}
meter{width:100%;height:.8rem}
.table>:not(caption)>*>*{padding:.5rem .6rem}
.nowrap{white-space:nowrap}
fieldset{border:0;padding:0;margin:0 0 .25rem}
fieldset legend{font-size:1.05rem;font-weight:600}
.scroll{max-height:15rem;overflow:auto}
.w-num{max-width:7rem}.w-mid{max-width:14rem}
.item-row{display:grid;grid-template-columns:1fr 8.5rem 5rem 5.5rem 5.5rem 5.5rem 2.2rem;gap:.4rem;align-items:center;margin-bottom:.4rem}
.codes{columns:2;font-family:monospace;font-size:1.1rem}
.qr{width:220px;height:220px}
@media(max-width:900px){.side{position:fixed;left:0;top:56px;bottom:0;z-index:1025;transform:translateX(-100%);transition:transform .15s;overflow:auto}.nav-open .side{transform:none;box-shadow:2px 0 10px rgba(0,0,0,.25)}main{padding:1rem}
.cal{display:block;border:0;background:none}.cal .h,.cal .d.empty,.cal .d.other{display:none}.cal .d{min-height:0;margin-bottom:.4rem;box-shadow:0 1px 2px rgba(0,0,0,.12);padding:.5rem}.cal .ev{white-space:normal;font-size:.9rem;padding:.3rem .5rem}
.item-row{grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid #eee;padding-bottom:.5rem}.item-row .lbl{grid-column:1/-1}}
@media(min-width:901px){.cal .wd{display:none}.nav-closed .side{display:none}}
@media(max-width:600px){.occ{flex-wrap:wrap}.occ .t{flex-basis:100%}.stack-table thead{display:none}.stack-table tr{display:block;border-bottom:1px solid #ddd;padding:.5rem}.stack-table td{display:block;border:0;padding:.1rem .3rem}}
