.registry-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:0 0 24px;overflow-x:auto;padding:0 0 1px}
.registry-tabs>a{padding:14px 20px;border-bottom:3px solid transparent;color:#7a859a;font-size:14px;font-weight:600;white-space:nowrap;min-height:48px}
.registry-tabs>a.active{color:var(--red);border-color:var(--red);background:#fff5f2;border-radius:8px 8px 0 0}
.registry-edit-link{display:block;margin-top:10px;font-weight:600}
@media(max-width:700px){.registry-tabs{gap:0}.registry-tabs>a{padding:12px;font-size:12px}.registry-edit-link{min-height:44px;padding:10px}}

#registry-filter>input[name="Q"]{flex:1 1 320px;min-width:240px}
.registry-column-filters>summary{cursor:pointer;font-weight:600;color:#70678f;min-height:44px}

body[data-page="Verifications"] .mobile-nav>a[href="/Verifications"]{color:var(--red)}

#registry-filter-box>summary{display:none;padding:16px 20px;min-height:48px;font-weight:600;color:#596888;cursor:pointer}@media(max-width:700px){#registry-filter-box>summary{display:list-item;list-style-position:inside;font-size:13px;border-bottom:1px solid var(--line)}}
.registry-column-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:18px 0}.registry-column-options label{display:flex;align-items:center;gap:8px;cursor:pointer}.registry-column-options input{width:18px;height:18px;flex-shrink:0}.registry-column-picker summary{cursor:pointer;font-weight:600}.registry-column-picker p{margin-top:14px;color:var(--muted)}#registry-table [hidden]{display:none!important}

.registry-column-filters.padded,.registry-column-picker.padded{padding:0;border-bottom:1px solid var(--line)}
.registry-column-filters>summary,.registry-column-picker>summary{min-height:44px;padding:12px 20px;line-height:20px}
.registry-column-filters>div.padded{padding:12px 20px 20px}
#registry-column-picker{padding:0 20px 16px}
.registry-pagination{padding:8px 16px;gap:10px;flex-wrap:wrap;font-size:12px}
.registry-page-links{display:flex;align-items:center;gap:6px}
.registry-page-links>a{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;font-size:20px}
.registry-page-links>span{padding:0 8px;white-space:nowrap}
.registry-page-size{display:flex;align-items:center;gap:8px;white-space:nowrap}
@media(max-width:700px){.registry-column-filters>summary,.registry-column-picker>summary{padding:12px 16px}.registry-pagination{padding:6px 12px}.registry-pagination>span:first-child{font-size:11px}.registry-page-links{gap:3px}.registry-page-links>a{min-width:36px}.registry-page-links>span{padding:0 4px}}

.list-page-size{display:flex;align-items:center;gap:8px;margin:0}.list-page-size label{display:flex;align-items:center;gap:8px;white-space:nowrap}.list-page-size select{width:75px;min-height:40px}.list-page-size .search-select{min-width:75px}.list-page-size button{min-height:40px}@media(max-width:700px){.list-page-size{order:3;width:100%;justify-content:flex-end}.registry-pagination{background:#fff}.list-page-size label{font-size:11px}}

.list-page-size{display:flex;align-items:center;gap:8px;margin:0}.list-page-size label{display:flex;align-items:center;gap:8px;white-space:nowrap}.list-page-size select{width:75px;min-height:40px}.list-page-size .search-select{min-width:75px}.list-page-size button{min-height:40px}@media(max-width:700px){.list-page-size{order:3;width:100%;justify-content:flex-end}.registry-pagination{background:#fff}.list-page-size label{font-size:11px}}

.service-tv-menu{position:fixed;z-index:2000;background:white;border:1px solid #dce2ed;border-radius:10px;padding:6px;box-shadow:0 8px 30px #18223b30}.service-tv-menu[hidden]{display:none}.service-tv-menu button{min-height:44px}.tv-item-action{margin-bottom:12px}

.tv-list-badge{display:flex;align-items:center;gap:5px;width:fit-content;margin-top:8px;padding:4px 7px;border-radius:6px;background:#e8f5ed;color:#287447;font-size:11px;font-weight:600;white-space:nowrap}.tv-list-badge .icon{width:15px;height:15px}.tv-list-badge.waiting{background:#fff4df;color:#8b671f}

.registry-deadline{display:inline-block;padding:4px 8px;border-radius:6px;font-weight:600;white-space:nowrap}.registry-deadline.expired{background:#fbe8e6;color:#a82c23}.registry-deadline.due{background:#fff1ce;color:#7f590a}.registry-deadline.valid{background:#e6f4ec;color:#246847}.registry-deadline.inactive{background:#edf0f5;color:#667085}.registry-colour-key{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:8px 16px;font-size:11px}html[data-theme=dark] .registry-deadline.expired{background:#512e35;color:#ffb6ab}html[data-theme=dark] .registry-deadline.due{background:#4b3e25;color:#f8d98b}html[data-theme=dark] .registry-deadline.valid{background:#1e4339;color:#a5e6c8}html[data-theme=dark] .registry-deadline.inactive{background:#303a4c;color:#b6c2d5}

/* Legacy service colours: ZAVRSEN = orange, ZATVOREN = green-yellow. */
body[data-page=Orders] .service-status-row[data-service-status=Finished]>td,body[data-page=Orders] .service-status-card[data-service-status=Finished]{background:#fff0d5;color:#684b18}
body[data-page=Orders] .service-status-row[data-service-status=Closed]>td,body[data-page=Orders] .service-status-card[data-service-status=Closed]{background:#eef8d7;color:#39531c}
body[data-page=Orders] .service-status-card[data-service-status=Finished]{border-left:4px solid #df921c}
body[data-page=Orders] .service-status-card[data-service-status=Closed]{border-left:4px solid #83ad36}
body[data-page=Orders] .badge.Finished{background:#ffe0a3;color:#704709}
body[data-page=Orders] .badge.Closed{background:#ddefac;color:#3d5c16}
html[data-theme=dark] body[data-page=Orders] .service-status-row[data-service-status=Finished]>td,html[data-theme=dark] body[data-page=Orders] .service-status-card[data-service-status=Finished]{background:#443721;color:#f4d8a2}
html[data-theme=dark] body[data-page=Orders] .service-status-row[data-service-status=Closed]>td,html[data-theme=dark] body[data-page=Orders] .service-status-card[data-service-status=Closed]{background:#2b3d25;color:#d5e7b4}
html[data-theme=dark] body[data-page=Orders] .badge.Finished{background:#63491e;color:#ffdc9b}
html[data-theme=dark] body[data-page=Orders] .badge.Closed{background:#40592c;color:#daefad}

.service-item-preview{min-width:240px;max-width:420px}.service-item-preview summary{cursor:pointer;font-weight:600;padding:6px 0}.service-item-preview article{padding:12px 0;border-bottom:1px solid var(--line)}.service-item-preview p{margin:6px 0;font-size:12px;overflow-wrap:anywhere}

.service-modal{position:fixed;width:min(850px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--bg);color:var(--ink);overflow:auto;box-shadow:0 24px 80px #0005;overscroll-behavior:contain}
.service-modal::backdrop{background:#10182799;backdrop-filter:blur(3px)}
.service-modal-close{position:absolute;right:14px;top:12px;min-width:44px;min-height:44px;font-size:26px;padding:0;z-index:2}
.service-modal .page-heading{padding-right:40px;margin:0 0 20px}.service-modal .page-heading h1{font-size:25px}.service-modal .page-heading>.button{display:none}.service-modal .panel{margin-bottom:0}.service-modal-message{margin:14px 0 0;font-size:13px}.service-modal-message:empty{display:none}
html:has(dialog.service-modal[open]){overflow:hidden}
@media(max-width:700px){.service-modal{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:22px 16px;margin:0}.service-modal .page-heading h1{font-size:22px}.service-modal .form-panel>form{padding:18px 14px}.service-modal .form-actions{flex-wrap:wrap}.service-modal .form-actions>button{width:100%}.service-modal .form-grid.two{grid-template-columns:1fr}}

.logout-dialog{width:min(420px,calc(100vw - 32px));padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);box-shadow:0 24px 70px #0004}.logout-dialog::backdrop{background:#10182799;backdrop-filter:blur(3px)}.logout-dialog h2{font-size:21px}.logout-dialog p{margin:14px 0 24px}.logout-dialog .actions{justify-content:flex-end}

.password-change-shell{width:100%;max-width:620px;margin:0 auto}.password-change-shell .page-heading h1{font-size:26px}.password-change-shell .form-grid{grid-template-columns:1fr}.service-modal.compact-modal{width:min(620px,calc(100vw - 32px))}.service-modal .password-change-shell .form-panel>form{padding:24px}.service-modal .password-change-shell .form-actions{flex-wrap:wrap}@media(max-width:700px){.service-modal.compact-modal{width:100%;height:auto;max-height:calc(100dvh - 24px);margin:auto;border-radius:14px}.service-modal .password-change-shell .form-panel>form{padding:18px 14px}}
