:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#243126;background:#f4f6f3}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:1rem max(1rem,calc((100vw - 1200px)/2));background:#173c2d;color:white}header a{color:white;text-decoration:none;font-weight:700}header form{margin:0}.container{max-width:1200px;margin:2rem auto;padding:0 1rem}h1{font-size:2rem}h2{font-size:1.3rem;margin:0 0 1rem}section{background:white;border:1px solid #dce5dc;border-radius:12px;padding:1.2rem;margin:1.3rem 0;box-shadow:0 2px 8px #102e1d0b}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1.5rem}.grid>div{min-width:0}form{display:grid;gap:.8rem}label{display:grid;gap:.25rem;font-weight:600;font-size:.9rem}input,select,textarea{width:100%;padding:.65rem;border:1px solid #b9c9bb;border-radius:6px;font:inherit;background:white}textarea{min-height:80px}button{border:0;border-radius:6px;background:#176e4a;color:white;font:inherit;font-weight:600;padding:.6rem 1rem;cursor:pointer}button:hover{background:#105738}button:disabled{opacity:.6;cursor:wait}header button{background:#355e4a}.table{overflow:auto}table{border-collapse:collapse;width:100%;min-width:720px}th,td{text-align:left;border-bottom:1px solid #e3e9e2;padding:.65rem;vertical-align:top}th{background:#f2f6f1}.allocation{margin-bottom:.4rem}.inline{display:inline-block;margin-left:.5rem}.inline button{font-size:.8rem;padding:.25rem .5rem}small{color:#617667}.login{max-width:420px;margin:12vh auto}.login form{background:white;padding:1.5rem;border:1px solid #dce5dc;border-radius:12px}.token-value{overflow-wrap:anywhere;padding:1rem;background:#edf5ec;border-radius:6px;font-size:1.1rem}
.summary-card{border-top:1px solid #dce5dc;padding:1rem 0}.summary-card h3{margin:.1rem 0}.summary-card p{margin:.55rem 0}.summary-description{line-height:1.55;white-space:normal}.summary-card .inline{margin:0}
.source-details{background:white;border:1px solid #dce5dc;border-radius:12px;padding:1.2rem;margin:1.3rem 0}.source-details summary{cursor:pointer;font-weight:700}.source-details[open] summary{margin-bottom:1rem}
.workflow-overview{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:1rem;background:#eef5ed;border-color:#bfd4c3}.workflow-overview>div{display:grid;gap:.2rem}.workflow-overview strong{font-size:2rem;color:#174d34}.workflow-overview span{color:#385742}.workflow-overview>p{grid-column:1/-1;display:flex;gap:.8rem;flex-wrap:wrap;margin:.3rem 0 0}.action-link{display:inline-block;padding:.7rem 1rem;border-radius:6px;background:#176e4a;color:white;text-decoration:none;font-weight:700}.action-link.secondary{background:#e0ece2;color:#174d34}.workflow-intro{background:#eef5ed}.source-card,.task-card{padding:1rem 0;border-top:1px solid #dce5dc}.source-card h3,.task-card h3{margin:.2rem 0;overflow-wrap:anywhere}.source-card p,.task-card p{margin:.45rem 0}.workflow-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:.7rem;margin:.8rem 0}.workflow-form button{min-height:43px}.workflow-form input,.workflow-form select{min-width:0}@media(max-width:700px){.workflow-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Správa zákazníků, projektů a úkolů */
.topbar{gap:1.2rem;flex-wrap:wrap}.brand{white-space:nowrap}.main-nav{display:flex;gap:.2rem;align-items:center;flex-wrap:wrap}.main-nav a{padding:.5rem .7rem;border-radius:6px;font-weight:600;white-space:nowrap}.main-nav a:hover,.main-nav a:focus-visible{background:#355e4a}.topbar form{margin-left:auto}.topbar form button{white-space:nowrap}
.main-nav a[aria-current="page"]{background:#4b795f;box-shadow:inset 0 -2px #bde4c8}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.6rem}.page-heading h1{margin:.2rem 0}.page-heading p{margin:.3rem 0;color:#506454}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-weight:700;font-size:.78rem;color:#176e4a!important}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.2rem 0}.dashboard-grid.workflow-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card{display:grid;gap:.3rem;min-height:145px;background:white;border:1px solid #dce5dc;border-radius:12px;padding:1.15rem 1.3rem;text-decoration:none;color:#243126;box-shadow:0 2px 8px #102e1d0b}.dashboard-card:hover,.dashboard-card:focus-visible{border-color:#176e4a;box-shadow:0 5px 16px #102e1d18}.dashboard-card span{font-weight:700}.dashboard-card strong{font-size:2.2rem;color:#174d34}.dashboard-card small{align-self:end}.dashboard-card.emphasis{background:#eaf4ec;border-color:#bfd4c3}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.section-heading p{margin:.3rem 0}.section-heading form{display:block}.device-status{padding:.55rem 0;border-top:1px solid #e3e9e2}.status-dot{display:inline-block;width:.65rem;height:.65rem;border-radius:50%;background:#9eaaa2;margin-right:.4rem}.status-dot.online{background:#1b9c56}.collector .source-details{box-shadow:none;padding:.8rem 1rem}
.catalog-stats{display:flex;align-items:baseline;gap:.5rem;background:#eaf4ec;border-color:#bfd4c3}.catalog-stats strong{font-size:2rem;color:#174d34}.catalog-stats a{margin-left:auto}.search-label{max-width:500px;margin-bottom:1rem}.catalog-list{display:grid;gap:1rem}.catalog-card{border:1px solid #dce5dc;border-radius:10px;padding:1rem 1.2rem;scroll-margin-top:1rem}.catalog-card:target{border-color:#176e4a;box-shadow:0 0 0 3px #b5ddc2}.catalog-card-head{display:flex;align-items:start;justify-content:space-between;gap:1rem}.catalog-card-head h2{margin:0 0 .25rem}.catalog-card-head p{margin:.2rem 0;color:#506454}.catalog-card>p{margin:.8rem 0}.catalog-meta{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.65rem 0}.catalog-meta strong{font-size:.86rem;margin-right:.25rem}.pill,.source-path{display:inline-block;border-radius:999px;padding:.3rem .6rem;background:#eaf4ec;color:#174d34;font-size:.8rem;font-weight:600}.pill.soft{background:#f2f6f1;color:#385742}.pill.muted-pill{background:#eee;color:#666}.source-path{border-radius:5px;font-family:ui-monospace,monospace;overflow-wrap:anywhere;max-width:100%}.muted{color:#6e7d70;font-size:.86rem}.catalog-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:.9rem}.catalog-actions details{min-width:min(100%,320px);flex:1;border-top:1px solid #e3e9e2;padding-top:.6rem}.catalog-actions summary,.catalog-card summary{cursor:pointer;color:#176e4a;font-weight:700}.catalog-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;align-items:end;margin-top:1rem}.catalog-form .wide{grid-column:1/-1}.catalog-form button{justify-self:start}.secondary-button{background:#e0ece2;color:#174d34}.secondary-button:hover{background:#c8ddce}@media(max-width:800px){.dashboard-grid{grid-template-columns:1fr}.dashboard-grid.workflow-cards{grid-template-columns:1fr}.topbar{justify-content:flex-start}.topbar form{margin-left:0}}@media(max-width:600px){.catalog-form{grid-template-columns:1fr}.catalog-form .wide{grid-column:auto}.catalog-card-head{display:block}.catalog-card-head .pill{margin-top:.6rem}.catalog-actions{display:block}.catalog-actions details{margin-top:.6rem}.catalog-stats{flex-wrap:wrap}.catalog-stats a{margin-left:0;width:100%}}

.queue-nav{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.queue-nav a{display:flex;gap:.5rem;align-items:center;padding:.7rem 1rem;background:#e7eee8;border-radius:8px;text-decoration:none;color:#174d34;font-weight:700}.queue-nav a[aria-current="page"]{background:#176e4a;color:white}.queue-nav strong{background:#fff;color:#174d34;border-radius:999px;padding:.1rem .5rem;min-width:1.7rem;text-align:center}.queue-section{margin-top:1rem}.queue-item{padding:1rem 0;border-top:1px solid #dce5dc}.queue-item:first-of-type{margin-top:1rem}.queue-item-head{display:flex;align-items:start;justify-content:space-between;gap:1rem}.queue-item h3{margin:0 0 .3rem}.queue-item-head p{margin:.2rem 0;color:#617667;overflow-wrap:anywhere}.queue-item>p{margin:.6rem 0}.queue-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:.7rem;margin-top:.8rem}.queue-form label{min-width:0}.queue-form button{min-height:43px}.queue-examples{line-height:1.4;color:#506454}.queue-empty{padding:1.2rem;background:#eef5ed;border-radius:8px}.project-picker{display:flex;align-items:end;gap:.6rem;max-width:600px;margin:1rem 0}.project-picker label{flex:1}.project-picker button{min-height:43px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0}.pagination a{font-weight:700;color:#176e4a}@media(max-width:720px){.queue-form{grid-template-columns:1fr}.queue-item-head{display:block}.queue-item-head .pill{margin-top:.5rem}}

.report-stats{display:flex;gap:.7rem;flex-wrap:wrap}.report-stats span{display:flex;align-items:center;gap:.4rem;background:#eaf4ec;border:1px solid #bfd4c3;border-radius:8px;padding:.6rem .9rem}.report-stats strong{font-size:1.4rem;color:#174d34}.report-table{overflow:auto}.report-table table{min-width:880px}.report-table td{line-height:1.4}.report-table td form{display:block}.report-table td button{white-space:nowrap}.report-draft{border-top:1px solid #dce5dc;padding:1rem 0;scroll-margin-top:1rem}.report-draft:target{background:#eef5ed}.report-draft-head{display:flex;justify-content:space-between;gap:1rem}.report-draft-head h3{margin:0}.report-draft-head p{margin:.3rem 0;color:#617667}.report-draft-head>strong{font-size:1.4rem;color:#174d34;white-space:nowrap}.report-description{line-height:1.5;white-space:normal}.report-draft .report-description{margin:1rem 0}.report-actions{display:flex;gap:1rem;align-items:start;flex-wrap:wrap}.report-actions details{flex:1;min-width:min(100%,350px)}.report-actions summary{cursor:pointer;color:#176e4a;font-weight:700;padding:.6rem 0}.report-actions>form{display:block}.report-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1rem 0}.report-edit .wide{grid-column:1/-1}.report-edit button{justify-self:start}@media(max-width:600px){.report-edit{grid-template-columns:1fr}.report-edit .wide{grid-column:auto}}

.bulk-tasks{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;background:#eaf4ec;border:1px solid #bfd4c3;border-radius:8px;padding:.7rem 1rem;margin:1rem 0}.bulk-tasks button{white-space:nowrap}.bulk-check{display:flex;grid-auto-flow:column;align-items:center;gap:.35rem;color:#174d34;cursor:pointer;white-space:nowrap}.bulk-check input{width:1.1rem;height:1.1rem;margin:0}.bulk-check span{font-size:.8rem}@media(max-width:720px){.bulk-check{margin-top:.5rem}}
.queue-form.compact{grid-template-columns:minmax(180px,480px) auto;justify-content:start}.queue-form.compact button{white-space:nowrap}@media(max-width:720px){.queue-form.compact{grid-template-columns:1fr}}

/* Compact workbench grids */
body:has(.workbench){height:100vh;overflow:hidden;background:#edf1f3;color:#192d34}
body:has(.workbench) .topbar{min-height:56px;padding:.45rem 1.1rem;background:#18343c;flex-wrap:nowrap}
body:has(.workbench) .topbar .main-nav{gap:0;flex-wrap:nowrap;overflow-x:auto}
body:has(.workbench) .container{max-width:none;margin:0;padding:0;height:calc(100vh - 56px)}
.workbench{display:flex;flex-direction:column;height:100%;min-height:0;padding:1rem 1.2rem;gap:.75rem}
.workbench-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:62px}
.workbench-head h1{font-size:1.55rem;line-height:1.15;margin:.08rem 0}
.workbench-head p{margin:.1rem 0;font-size:.84rem;color:#52666d}
.workbench .eyebrow{margin:0!important;font-size:.7rem!important}
.workbench-tools{display:flex;align-items:center;gap:.65rem;min-height:44px}
.workbench-tools input{width:min(380px,34vw);padding:.45rem .7rem}
.workbench-tools select{width:auto;max-width:250px;padding:.45rem .7rem}
.workbench-tools button{padding:.48rem .7rem}
.workbench-tools span{margin-left:auto;color:#53666d;font-size:.82rem;white-space:nowrap}
.workbench-tools a{white-space:nowrap;font-size:.84rem}
#workspace-grid{flex:1;min-height:0;border:1px solid #cbd7dc;background:white}
.workbench .tabulator{border:0;font-size:12px;color:#233943;background:white}
.workbench .tabulator .tabulator-header{background:#e9eef1;color:#24414b;border-bottom:1px solid #bccbd0}
.workbench .tabulator .tabulator-header .tabulator-col{background:#e9eef1}
.workbench .tabulator .tabulator-row{min-height:35px;border-bottom:1px solid #e7edef}
.workbench .tabulator .tabulator-row:nth-child(even){background:#f8fafb}
.workbench .tabulator .tabulator-row:hover{background:#dff0ed;cursor:pointer}
.workbench .tabulator .tabulator-group{background:#edf3f4;color:#24414b;border-top:1px solid #cbd7dc;font-weight:700}
.workbench .tabulator .tabulator-group.tabulator-group-level-1{background:#f0f5f6}
.workbench .tabulator .tabulator-group.tabulator-group-level-2{background:#f7fafb}
.workbench .tabulator .tabulator-group span{color:inherit}
.workbench .group-stats{float:right;margin-right:1rem;color:#52666d!important;font-weight:500}
.workbench .tabulator .tabulator-header-filter input{padding:.24rem .4rem;border-radius:3px;font-size:11px}
.ledger-totals{display:flex;gap:1px;background:#cbd7dc;border:1px solid #cbd7dc}
.ledger-totals>div{display:flex;align-items:baseline;gap:.5rem;background:white;padding:.43rem .8rem;min-width:155px}
.ledger-totals strong{font-size:1.05rem;color:#184d43}
.ledger-totals span{font-size:.75rem;color:#63757b}
.record-dialog{width:min(760px,calc(100vw - 2rem));max-height:min(88vh,950px);border:1px solid #b9cbd0;border-radius:9px;padding:0;box-shadow:0 20px 60px #142d3566;color:#243a42}
.record-dialog::backdrop{background:#0b242db0}
.record-dialog>form{gap:0}
.record-dialog header{position:sticky;top:0;z-index:1;background:#18343c;color:#fff;padding:.75rem 1rem;display:flex;justify-content:space-between}
.record-dialog header h2{margin:0;font-size:1.15rem}
.record-dialog header button{background:transparent;padding:.1rem .5rem;font-size:1.3rem}
.record-dialog .modal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;padding:1rem;overflow:auto}
.record-dialog .modal-fields label{font-size:.82rem}
.record-dialog .modal-fields input,.record-dialog .modal-fields select,.record-dialog .modal-fields textarea{padding:.45rem .55rem;font-size:.9rem}
.record-dialog .modal-fields textarea{min-height:85px}
.record-dialog .span-all{grid-column:1/-1}
.record-dialog footer{display:flex;justify-content:flex-end;gap:.6rem;padding:.7rem 1rem;border-top:1px solid #d9e2e5;background:#f7f9fa}
.record-dialog #record-form[data-mode="new"] .edit-only,.record-dialog #record-form[data-mode="edit"] .new-only{display:none}
.record-dialog .relation-panel{margin:0;padding:.8rem 1rem;border:0;border-top:1px solid #d9e2e5;border-radius:0;box-shadow:none}
.record-dialog .relation-panel[hidden]{display:none}
.record-dialog .relation-panel h3{margin:0;font-size:.95rem}
.record-dialog .relation-panel p{margin:.3rem 0;color:#53666d;font-size:.82rem}
.record-dialog .relation-panel form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:.5rem}
.record-dialog .relation-panel label{font-size:.78rem}
.record-dialog .relation-panel input,.record-dialog .relation-panel select{padding:.4rem}
.record-dialog .relation-panel button{white-space:nowrap;padding:.5rem .65rem}
.workbench input[type=number]{text-align:right}
@media(max-width:800px){body:has(.workbench){overflow:auto;height:auto}.workbench{min-height:calc(100vh - 56px)}.workbench-head{flex-wrap:wrap}.workbench-tools{flex-wrap:wrap}.workbench-tools input{width:100%}.workbench-tools span{margin-left:0}.record-dialog .relation-panel form{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.record-dialog .modal-fields,.record-dialog .relation-panel form{grid-template-columns:1fr}.record-dialog .span-all{grid-column:auto}}
.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.workflow-steps section{margin:0;padding:1rem;display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;border-top:4px solid #216f6a;box-shadow:0 2px 10px #173c2d12}
.workflow-steps h2{margin:0;font-size:1.1rem}
.workflow-steps strong{font-size:1.2rem;color:#164c43}
.workflow-steps p{font-size:.82rem;color:#52666d;margin:0}
.workflow-steps form{margin:auto 0 0;width:100%}
.workflow-steps form button{width:100%}
.workflow-steps .action-link{margin-top:auto}
.step-number{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#216f6a;color:white;font-size:.82rem;font-weight:700}
.inline-notice{margin:0;padding:.45rem .7rem;border:1px solid #e1cfa0;background:#fff8e8;color:#6d5719;font-size:.8rem}
@media(max-width:1000px){.workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.workflow-steps{grid-template-columns:1fr}}
.review-progress{display:flex;gap:.4rem;flex-wrap:wrap}
.review-progress span{font-size:.78rem;padding:.35rem .55rem;border:1px solid #cbd7dc;background:white;border-radius:4px;color:#405860}
.related-links{display:flex;gap:1rem;padding:.5rem 1rem;border-top:1px solid #d9e2e5;font-size:.85rem}
.related-links a{color:#176e4a;font-weight:700}

/* Customer report workflow */
.report-page{max-width:1380px;margin:auto}.report-page .page-heading{padding:.35rem .2rem}.report-page .page-heading h1{font-size:1.9rem!important;margin:.2rem 0}.report-page .page-heading p{font-size:.95rem!important}
.report-create{display:grid;grid-template-columns:minmax(210px,1fr) 3fr;gap:1.5rem;align-items:center;border-top:4px solid #16836f!important}.report-create h2{font-size:1.3rem}.report-create p{color:#607178;line-height:1.5;margin:.4rem 0}.report-pick{display:grid;grid-template-columns:minmax(190px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:.7rem;align-items:end}.report-pick button{min-height:44px;white-space:nowrap}.report-preview .section-heading{margin-bottom:1rem}.report-metrics{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.report-metrics span,.report-metrics strong{padding:.6rem .8rem;background:#ecf5f2;color:#174d43;border-radius:6px}.report-metrics strong{font-size:1.08rem}.report-preview table{min-width:760px}.report-preview td{line-height:1.45}.report-preview .inline-notice{margin:.5rem 0}.report-create-action{display:block;margin-top:1.2rem;text-align:right}.report-create-action button{font-size:1.02rem;padding:.8rem 1.3rem}.report-success{padding:.9rem 1.1rem;background:#e6f5eb;border:1px solid #a6d5b8;color:#174d34;font-weight:700;border-radius:6px}
.report-card{border:1px solid #d9e4e2;border-radius:8px;padding:1.1rem 1.2rem;margin:1rem 0;background:#fff;scroll-margin-top:1rem}.report-card:target{outline:3px solid #acd8ca}.report-card-head{display:flex;justify-content:space-between;gap:1rem}.report-number{font-size:.78rem;letter-spacing:.07em;font-weight:800;color:#16836f}.report-card h3{font-size:1.15rem;margin:.2rem 0}.report-card p{margin:.3rem 0;color:#607178}.report-card-total{text-align:right;display:grid;justify-items:end;align-content:start;gap:.45rem}.report-card-total strong{font-size:1.28rem;white-space:nowrap}.report-status{display:inline-block;padding:.28rem .5rem;border-radius:5px;background:#e8f1ee;color:#23584b;font-weight:700;font-size:.75rem;white-space:nowrap}.report-status.rejected,.report-status.cancelled{background:#f5eae7;color:#814331}.report-status.billed{background:#e1efe6;color:#17643b}.report-card-actions{border-top:1px solid #e5eeeb;margin-top:1rem;padding-top:1rem;display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.report-card-actions form{display:flex;align-items:center;gap:.4rem}.report-card-actions input{width:min(240px,40vw);padding:.55rem}.report-card-actions button,.report-card-actions .action-link{font-size:.85rem;white-space:nowrap;padding:.65rem .8rem}
.report-card-items{margin-top:1rem}.report-card-items table{min-width:800px}.report-card-items th,.report-card-items td{font-size:.84rem}
.report-dashboard-cta{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;background:#e6f3ef!important;border:1px solid #a8d4c5!important;border-left:5px solid #16836f!important}.report-dashboard-cta h2{margin:.15rem 0;font-size:1.2rem}.report-dashboard-cta p{margin:.35rem 0;color:#42615a}.report-dashboard-cta .action-link{white-space:nowrap}@media(max-width:650px){.report-dashboard-cta{display:block}.report-dashboard-cta .action-link{margin-top:.7rem}}
@media(max-width:1000px){.report-create{grid-template-columns:1fr}.report-pick{grid-template-columns:repeat(3,minmax(0,1fr))}.report-pick label:first-child{grid-column:1/-1}}@media(max-width:650px){.report-pick{grid-template-columns:1fr 1fr}.report-pick label:first-child{grid-column:1/-1}.report-pick button{grid-column:1/-1}.report-card-head{display:block}.report-card-total{justify-items:start;text-align:left;margin-top:.8rem}.report-card-actions form{width:100%}.report-card-actions form input{flex:1;width:100%;min-width:0}.report-card-actions form button{white-space:normal}}

/* Shared admin shell for the dashboard and older management pages. */
body:has(.topbar){background:#edf1f3;color:#192d34}
body:has(.topbar) .topbar{min-height:56px;padding:.45rem 1.1rem;background:#18343c;gap:1.2rem;flex-wrap:nowrap}
body:has(.topbar) .topbar .main-nav{gap:0;flex-wrap:nowrap;overflow-x:auto}
body:has(.topbar) .topbar form button{background:#315761;padding:.45rem .65rem}
body:has(.topbar) .container:not(:has(.workbench)){max-width:none;margin:0;padding:1rem 1.2rem}
body:has(.topbar) .container:not(:has(.workbench))>section,
body:has(.topbar) .container:not(:has(.workbench))>.source-details{border:1px solid #cbd7dc;border-radius:6px;box-shadow:none;margin:.75rem 0;padding:1rem}
body:has(.topbar) .container:not(:has(.workbench)) h1{font-size:1.55rem;line-height:1.15;margin:.1rem 0 .5rem}
body:has(.topbar) .container:not(:has(.workbench)) h2{color:#243f49}
body:has(.topbar) .container:not(:has(.workbench)) .page-heading{min-height:62px;margin:0 0 .75rem}
body:has(.topbar) .container:not(:has(.workbench)) .page-heading p{font-size:.84rem;color:#52666d}
body:has(.topbar) button,body:has(.topbar) .action-link{background:#216f6a;border-radius:5px}
body:has(.topbar) button:hover,body:has(.topbar) .action-link:hover{background:#185853}
body:has(.topbar) .secondary-button,body:has(.topbar) .action-link.secondary{background:#e3ecee;color:#24414b}
body:has(.topbar) .secondary-button:hover,body:has(.topbar) .action-link.secondary:hover{background:#d3e2e5}
body:has(.topbar) input,body:has(.topbar) select,body:has(.topbar) textarea{border-color:#b9cbd0;border-radius:4px}
body:has(.topbar) th{background:#e9eef1;color:#24414b}
body:has(.topbar) th,body:has(.topbar) td{border-color:#dce5e8}
body:has(.topbar) .queue-nav a,body:has(.topbar) .pill,body:has(.topbar) .workflow-overview{background:#e3ecee;color:#24414b;border-radius:5px}
body:has(.topbar) .queue-nav a[aria-current="page"]{background:#216f6a;color:#fff}
body:has(.topbar) .queue-nav a[aria-current="page"] strong{color:#24414b}
body:has(.topbar) .queue-item{padding:.75rem 0;border-color:#dce5e8}
body:has(.topbar) .queue-section{margin-top:.75rem}
body:has(.topbar) .queue-form{gap:.5rem;margin-top:.55rem}
body:has(.topbar) .catalog-card{border-color:#cbd7dc;border-radius:5px}
body:has(.topbar) .source-details{border-color:#cbd7dc;border-radius:5px;box-shadow:none}
body:has(.topbar) .workflow-steps section{border-top:4px solid #216f6a}
body:has(.topbar) .workflow-steps strong{color:#24414b}
body:has(.topbar) .eyebrow{color:#216f6a!important}
body:has(.topbar) a:not(.action-link):not(.main-nav a):not(.brand){color:#176961}

.settings-page{max-width:1000px}
.settings-panel{background:#fff;border:1px solid #cbd7dc;border-radius:6px;padding:1.1rem;margin:.75rem 0}
.settings-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border-bottom:1px solid #dce5e8;padding-bottom:.75rem;margin-bottom:1rem}
.settings-panel-head h2{margin:0 0 .25rem}
.settings-panel-head p{margin:0;color:#52666d;font-size:.88rem}
.settings-status{background:#fff4dc;color:#745b1c;border:1px solid #e7d4a7;border-radius:4px;padding:.35rem .6rem;font-size:.8rem;font-weight:700;white-space:nowrap}
.settings-status.is-ready{background:#e4f3e9;color:#245a40;border-color:#b8d9c4}
.settings-form{max-width:650px;gap:.6rem}
.settings-form input{font-family:ui-monospace,monospace}
.settings-form button{justify-self:start}
.settings-help{font-size:.82rem;line-height:1.5;color:#52666d;margin:0 0 .2rem}
.settings-remove{margin-top:1rem;padding-top:1rem;border-top:1px solid #dce5e8}
.settings-remove button{justify-self:start}
.settings-message{padding:.65rem .8rem;background:#e4f3e9;border:1px solid #b8d9c4;color:#245a40;border-radius:4px}
.settings-links{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.settings-links h2{width:100%;margin:0}
body:has(.topbar) .record-dialog header button{background:transparent;color:#fff}
@media(max-width:700px){body:has(.topbar) .topbar{gap:.5rem}.settings-panel-head{flex-wrap:wrap}}
.report-create-action label{display:block;margin-left:auto;max-width:310px;text-align:left}.report-create-action input{display:block;width:100%;margin-top:.35rem}.report-create-action p{font-size:.85rem;color:#607178}.report-hours-detail{margin:.45rem 0 0;color:#52666b;font-size:.85rem}

.daily-ledger{max-width:1120px;margin:0 auto;padding:.3rem 0 2rem}.daily-ledger .page-heading{align-items:center;gap:1rem}.daily-ledger .page-heading h1{font-size:1.8rem!important}.daily-ledger .page-heading p{max-width:800px;line-height:1.5}
.daily-ledger-intro{background:#f3f8f5;border:1px solid #cdded4;border-radius:8px;padding:1rem 1.15rem;margin:.7rem 0 1rem}.daily-ledger-intro strong{color:#275443}.daily-ledger-intro p{margin:.4rem 0 0;color:#526b61;line-height:1.55;font-size:.88rem}
.daily-ledger-filters{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1rem 0 .35rem}.daily-ledger-filters label{display:grid;gap:.3rem;min-width:190px;flex:1;font-size:.82rem;color:#435c51}.daily-ledger-filters select{width:100%;min-height:40px}.daily-ledger-filters.is-enhanced button{display:none}.daily-ledger-count{margin:.4rem 0 .8rem;color:#60766c;font-size:.82rem}.daily-ledger-empty{background:#fff;border:1px solid #dbe5df;border-radius:8px;padding:1rem 1.15rem}
.daily-entry{background:#fff;border:1px solid #dbe5df;border-radius:8px;padding:1rem 1.15rem;margin:.75rem 0;scroll-margin-top:1rem}.daily-entry:target{outline:3px solid #acd8ca}.daily-entry-heading{display:flex;justify-content:space-between;gap:1.2rem;border-bottom:1px solid #e5ece7;padding-bottom:.75rem}.daily-entry-date{font-size:.76rem;font-weight:700;color:#597568}.daily-entry h2{font-size:1.08rem;margin:.25rem 0;color:#2d4540}.daily-entry-heading p{margin:0;color:#687b72;font-size:.82rem}.daily-entry-final{text-align:right;display:grid;gap:.25rem;align-content:start;white-space:nowrap}.daily-entry-final strong{font-size:1.2rem;color:#254f3f}.daily-entry-final span{font-size:.76rem;color:#5d7468}
.daily-entry form{display:grid;gap:.65rem;margin-top:.8rem}.daily-entry form label{font-size:.83rem;color:#435c51}.daily-entry textarea{width:100%;min-height:108px;line-height:1.5;padding:.65rem}.daily-entry-controls{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}.daily-entry-controls label{margin-right:auto}.daily-entry-controls input{display:block;width:180px;margin-top:.3rem}.daily-entry-controls button{white-space:nowrap}.daily-entry-description{white-space:pre-line;line-height:1.5;padding:.8rem 0;color:#344d41}.daily-ledger-footer{margin:1.2rem 0}
@media(max-width:700px){.daily-ledger .page-heading,.daily-entry-heading{display:block}.daily-entry-final{text-align:left;margin-top:.6rem}.daily-entry-controls{display:grid}.daily-entry-controls input,.daily-entry-controls button{width:100%}}
