:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#17354b;background:#f1f5f9;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;background:#07668c;color:white;padding:11px 15px;font-weight:650}button:hover{filter:brightness(.94)}button.secondary{background:#e8eff5;color:#12425c}button.danger{background:#b72e47}button:disabled{opacity:.45;cursor:not-allowed}header{background:#fff;border-bottom:1px solid #dbe4eb;padding:11px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:11px;font-size:22px;font-weight:800;color:#073e66}.brand img{height:45px;width:60px;object-fit:contain}nav{display:flex;gap:8px;flex-wrap:wrap}main{max-width:1180px;margin:24px auto;padding:0 16px}.card{background:white;border:1px solid #dde5ed;box-shadow:0 3px 14px #152f3c0b;border-radius:14px;padding:19px;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}label{display:block;font-size:13px;font-weight:700;color:#506879;margin:12px 0 5px}input,select,textarea{width:100%;border:1px solid #cddbe5;border-radius:8px;padding:10px;background:white;color:#17354b}textarea{min-height:70px}h1,h2,h3{margin:0 0 12px}h2{font-size:21px}h3{font-size:17px}.muted{color:#667f91;font-size:13px}.item{padding:15px;border:1px solid #dce6ed;border-radius:11px;background:#fff;margin:10px 0}.line{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.pill{display:inline-block;background:#e7f3f8;color:#126387;padding:4px 10px;font-size:12px;font-weight:700;border-radius:30px}.gps-active{background:#dff8ea;color:#137344}.gps-stale{background:#fff1d2;color:#945b00}.error{color:#a81732;background:#fff0f2;border:1px solid #f3b5bf;border-radius:9px;padding:12px;margin:10px 0}.ok{color:#176343;background:#e2f8ec;border-radius:9px;padding:12px;margin:10px 0}.links{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.links a{color:#086e98;background:#edf6fa;border-radius:8px;padding:9px;text-decoration:none;font-weight:650}.login{max-width:420px;margin:10vh auto}.big{font-size:26px;font-weight:800;color:#064b74}.maprow{padding:13px 0;border-bottom:1px solid #edf1f5}.spacer{height:8px}@media(max-width:600px){header{padding:10px}main{margin:12px auto;padding:0 10px}.card{padding:14px}.two{grid-template-columns:1fr}button{padding:12px}nav button{flex:1}.brand{font-size:18px}}

.stkrow{border-bottom:1px solid #e1e9f0;padding:14px 0}.stkrow:last-child{border:0}.stk-expired{background:#ffe0e5;color:#a61c36}
/* CisternPlan 0.5.9: document list and GPS route */
.file-row{padding:12px 0;border-bottom:1px solid #e0e8f0}.file-row:last-child{border:0}
.gps-route{position:relative;width:100%;overflow:hidden;border:1px solid #cbd5df;border-radius:10px;background:#e5edf1;margin-top:10px}
.route-tiles{position:absolute;inset:0}.route-tiles img{position:absolute;width:256px;height:256px;max-width:none;pointer-events:none}
.route-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.route-attribution{position:absolute;bottom:0;right:0;padding:2px 7px;background:#fffd;font-size:11px}.route-attribution a{color:#17465e}

/* 0.6.0 notifications */
.notice-item{border-top:1px solid #dbe4ec;padding:14px 2px}
.notice-item:first-child{border-top:0}
.notice-unread{border-left:4px solid #168c9a;padding-left:12px;background:rgba(20,154,175,.06)}

#statusQueueInfo .notice-item{padding:10px 0;border-top:1px solid #e5e7eb}
#statusQueueInfo button{margin-top:4px}

/* v0.6.5 branding */
.login{max-width:510px;margin:5vh auto}.login-logo{display:block;width:100%;height:300px;object-fit:contain;margin:0 auto 14px}.brand img{width:160px;height:92px;object-fit:contain}.pwa-install{width:100%;margin:0 0 12px}@media(max-width:600px){.login-logo{height:220px}.brand img{width:118px;height:68px}}

/* 0.6.7: Přehledné číselníky */
.settings-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.settings-tabs button{white-space:nowrap}.settings-count{display:inline-block;margin-left:6px;opacity:.8}.settings-row{padding:14px 4px;border-bottom:1px solid #e2e9ef;display:flex;align-items:center;justify-content:space-between;gap:14px}.settings-row:last-child{border:0}.settings-row p{margin:5px 0 0}.settings-row .links{margin:0}#settingEditor[hidden]{display:none}#settingEditor{max-width:680px;margin-top:18px}@media(max-width:700px){.settings-tabs button{flex:1}.settings-row{align-items:flex-start;flex-direction:column}}

/* v0.6.9 HatchDialog */
.hatch-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(12,33,53,.65);display:grid;place-items:center;padding:18px;backdrop-filter:blur(3px)}.hatch-dialog{background:#fff;width:min(100%,480px);border:1px solid #d6e7f0;border-radius:20px;box-shadow:0 22px 80px #001a3690;padding:26px;max-height:calc(100dvh - 40px);overflow:auto}.hatch-dialog-head{display:flex;gap:12px;align-items:center}.hatch-dialog h2{margin:0;color:#073e66;font-size:21px}.hatch-dialog-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#e1f4f5;color:#087b8c;font-size:22px;font-weight:800}.hatch-dialog p{line-height:1.55;white-space:pre-wrap;color:#425c6a}.hatch-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.hatch-dialog button{min-width:95px}.hatch-dialog input:focus-visible,.hatch-dialog button:focus-visible{outline:3px solid #2ba2b6;outline-offset:2px}.hatch-rule{border:0;border-top:1px solid #dfebf0;margin:24px 0}@media(max-width:500px){.hatch-dialog{padding:19px}.hatch-actions{flex-direction:column-reverse}.hatch-dialog button{width:100%}}

/* v0.6.10: Original uploaded wordmark, whitespace precisely cropped. */
.login{max-width:560px;margin:5vh auto}
.login-logo{display:block;width:min(100%,520px);height:auto;max-height:290px;object-fit:contain;margin:0 auto 20px}
.brand img{width:225px;height:auto;max-height:112px;object-fit:contain;display:block}
@media(max-width:950px){.brand img{width:190px;max-height:100px}}
@media(max-width:600px){.login{max-width:100%;margin:3vh auto}.login-logo{width:100%;max-height:230px}.brand img{width:148px;max-height:78px}}

/* v0.6.11: version shown only in authenticated header */
.brand .app-version{font-size:12px;font-weight:650;line-height:1;color:#60788a;background:#edf3f7;border:1px solid #dbe5ec;border-radius:999px;padding:5px 8px;white-space:nowrap;align-self:center}
@media(max-width:600px){.brand .app-version{font-size:11px;padding:4px 6px}}
