:root{font-family:Arial,Helvetica,sans-serif;color:#203b48;background:#f4f6f7;font-size:14px;--blue:#14618a;--navy:#153b50;--border:#dce3e7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #59a9d5;outline-offset:2px}button{border:1px solid var(--border);background:white;padding:9px 13px;border-radius:6px;color:inherit}button:hover{background:#edf5fa}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:#104e70}.danger{color:#ad3333}.muted,small{color:#697e8b}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}aside{background:var(--navy);color:#d2e0e7;padding:30px 18px;display:flex;flex-direction:column;gap:9px}aside .brand{font-size:24px;color:white;line-height:1.2;margin:8px 10px 32px}aside .brand small{display:block;font-size:12px;letter-spacing:1px;margin-top:9px;color:#b6cbd7}aside nav{display:grid;gap:8px}aside nav button{background:transparent;border:none;text-align:left;color:#cddde6;padding:13px 15px}aside nav button.active{background:#31596e;color:white}aside .bottom{margin-top:auto;border-top:1px solid #416274;padding:20px 10px 0;font-size:12px;line-height:1.8}main{min-width:0}.topbar{height:79px;padding:0 32px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;background:white}.wordmark{font-size:16px;font-weight:bold;letter-spacing:.4px}.top-right{display:flex;gap:18px;align-items:center}.test{font-size:11px;font-weight:bold;letter-spacing:1px;color:#8f660c;background:#fff4d7;border:1px solid #ecdbab;border-radius:4px;padding:7px 9px}.workspace{padding:28px 32px}h1{font-size:29px;letter-spacing:-.7px;margin:0 0 9px}h2{font-size:21px;margin-top:0}h3{font-size:16px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.heading p{margin:0;color:#697e8b}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--border);border-radius:8px;padding:18px 21px;display:flex;justify-content:space-between;align-items:center}.stat strong{font-size:30px;font-weight:500}.stat span{font-size:12px;color:#6b818c}.stat em{font-style:normal;font-size:12px}.card{background:white;border:1px solid var(--border);border-radius:9px;overflow:hidden}.toolbar{padding:17px;display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--border);align-items:center}.toolbar input{flex:1;min-width:150px;max-width:270px}.toolbar select{max-width:190px}input,select,textarea{border:1px solid #cdd8de;background:white;border-radius:5px;padding:9px 10px;color:inherit;min-width:0}input[type=month]{max-width:180px}.tablewrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;table-layout:fixed}th{text-align:left;background:#f8fafb;font-size:11px;color:#6d8390;text-transform:uppercase;letter-spacing:.35px;border-bottom:1px solid var(--border);padding:13px 10px}th button{padding:0;border:none;background:transparent;font-size:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left}td{border-bottom:1px solid #edf0f2;padding:13px 10px;vertical-align:middle;font-size:13px;overflow-wrap:anywhere}tbody tr:hover{background:#f8fbfd}tbody tr:last-child td{border-bottom:none}.ticket-title{border:0;background:none;padding:0;text-align:left;color:#1a526e;line-height:1.4;font-weight:600}.ticket-title:hover{text-decoration:underline}.ticket-id{font-size:10px;color:#8c9ba4;margin-top:5px}.clip{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#6b7e88;font-size:12px;line-height:1.5}.priority{width:100%;padding:6px 3px;font-size:12px;border:none;background:#edf3f6}.priority.Dringend{background:#fbe3e6;color:#a42f4a}.priority.Hoch{background:#fff0d7;color:#986911}.priority.Niedrig{background:#e9f1eb;color:#54725a}.status{display:flex;gap:2px}.status button{padding:7px 2px;flex:1;font-size:10px;border-radius:3px;border:0;background:#eef2f4;color:#6c7f88}.status .selected{background:#d9ebf5;color:#15597d;font-weight:bold}.status .done{background:#e0f0e7;color:#27704e}.warning{color:#9d6a11;background:#fff5df;border-radius:3px;padding:3px 6px;font-size:10px;display:inline-block;margin-top:5px}.footer{padding:13px 17px;color:#84959e;font-size:11px;display:flex;justify-content:space-between}.empty{padding:50px;text-align:center;color:#708590}.login{max-width:420px;margin:12vh auto;background:white;border:1px solid var(--border);padding:36px;border-radius:12px;box-shadow:0 12px 45px #12384a0d}.login h1{font-size:26px}.login form{display:grid;gap:16px;margin:25px 0}.login .test{display:inline-block;margin-bottom:20px}label{display:grid;gap:7px;font-size:12px;font-weight:600}dialog{border:1px solid var(--border);border-radius:12px;padding:0;width:min(1000px,95vw);max-height:91vh;color:inherit;box-shadow:0 25px 100px #12384a40}dialog::backdrop{background:#17384966}.modal-head{padding:22px 26px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}.modal-head h2{margin:0}.modal-body{padding:24px 26px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}textarea{resize:vertical;min-height:100px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px;padding-top:20px;border-top:1px solid var(--border)}.notice{padding:12px 15px;border-radius:5px;background:#fff6e2;color:#8d650f;margin:14px 0;line-height:1.5}.error{color:#a82a3c;font-size:13px;white-space:pre-wrap}.original{background:#f4f7f9;padding:15px;white-space:pre-wrap;max-height:250px;overflow:auto;font-size:12px;line-height:1.6}.history{font-size:12px;line-height:1.8}.history pre{white-space:pre-wrap;font-size:11px;max-height:160px;overflow:auto}.section-row{display:flex;gap:12px;align-items:end;margin-bottom:20px;flex-wrap:wrap}.management{max-width:1000px}.management table{table-layout:auto}.management td input{width:100%}#toast{position:fixed;bottom:24px;right:24px;max-width:500px;background:#173f54;color:white;padding:14px 20px;border-radius:7px;box-shadow:0 5px 25px #1234;display:none;z-index:99}.source-status{font-size:12px;color:#728894;line-height:1.7}.source-status b{color:#365c70}.mono{font-family:Consolas,monospace}details{margin:15px 0}summary{cursor:pointer;font-size:13px;color:#315e75}a{color:#14618a}.badge{display:inline-flex;background:#e7f1f7;border-radius:50%;width:27px;height:27px;align-items:center;justify-content:center;font-size:10px;margin-right:5px;color:#286583}.preview{max-height:350px;overflow:auto}.preview table{table-layout:auto}@media(max-width:1200px){.shell{grid-template-columns:165px minmax(0,1fr)}.workspace{padding:20px 15px}.topbar{padding:0 16px}.toolbar{gap:6px}td{padding:10px 6px}.status{flex-direction:column}.stats{gap:8px}.stat{padding:13px}}@media(max-width:750px){.shell{display:block}aside{padding:12px}aside .brand,aside .bottom{display:none}aside nav{display:flex;flex-wrap:wrap}.stats{grid-template-columns:1fr 1fr}.heading{gap:15px}.formgrid{grid-template-columns:1fr}.wide{grid-column:auto}table.board{min-width:950px}.top-right{gap:5px}}
:root .board col:nth-child(1){width:17%}:root .board col:nth-child(2){width:11%}:root .board col:nth-child(3){width:6%}:root .board col:nth-child(4){width:8%}:root .board col:nth-child(5){width:14%}:root .board col:nth-child(6){width:10%}:root .board col:nth-child(7){width:11%}:root .board col:nth-child(8){width:16%}:root .board col:nth-child(9){width:7%}.category{width:100%;padding:6px 4px;font-size:12px;background:#edf4f8;border-color:#d9e7ef;color:#245d7a}.official-logo{max-width:200px;max-height:52px;object-fit:contain}.lab-title{margin-top:20px}
:root .shell>aside{position:sticky;top:0;height:100vh;align-self:start}.settings-nav{margin-top:auto;background:transparent;color:#d2e0e7;border-color:#42657a;text-align:left}.settings-nav.active{background:#31596e;color:white}:root aside .bottom{margin-top:12px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card{padding:24px;margin-bottom:20px;overflow:visible}.settings-card>button{margin-top:18px}.settings-card .formgrid{gap:14px}.settings-card p{line-height:1.6}.settings-save{display:flex;align-items:center;gap:18px;background:white;padding:20px;border:1px solid var(--border);border-radius:8px}.settings-save span{color:#697e8b;font-size:12px}.check{display:flex;align-items:center;gap:9px;min-height:36px;font-size:13px}.check input{width:16px;height:16px}.secret-clear{font-size:11px;color:#a15a52}.settings-card fieldset,fieldset{border:0;padding:0;min-width:0}.success{color:#26724c}.inbox-table{table-layout:auto}@media(max-width:1000px){.settings-grid{grid-template-columns:1fr}.settings-save{flex-wrap:wrap}}@media(max-width:750px){:root .shell>aside{position:static;height:auto}.settings-nav{margin-top:10px}}

/* Compact board: every field stays in view on a standard desktop. */
:root .shell{grid-template-columns:200px minmax(0,1fr)}
:root .workspace{padding:24px;min-width:0}main{min-width:0}
.board-card{overflow:visible}.board-card .tablewrap{overflow:visible}
:root table.board{min-width:0;width:100%;table-layout:fixed}
:root .board col:nth-child(1){width:3%}:root .board col:nth-child(2){width:17%}:root .board col:nth-child(3){width:11%}:root .board col:nth-child(4){width:7%}:root .board col:nth-child(5){width:14%}:root .board col:nth-child(6){width:10%}:root .board col:nth-child(7){width:9%}:root .board col:nth-child(8){width:9%}:root .board col:nth-child(9){width:6%}:root .board col:nth-child(10){width:8%}:root .board col:nth-child(11){width:6%}
.board th{padding:12px 7px;font-size:10px;letter-spacing:0}.board td{padding:12px 7px;font-size:12px;min-width:0}.board td select{width:100%;min-width:0;padding:7px 3px;font-size:12px;text-overflow:ellipsis}.board td input[type=checkbox],#select-all{width:16px;height:16px;accent-color:var(--blue);cursor:pointer}.board td:first-child,.board th:first-child{text-align:center;padding:8px 3px}.board td .ticket-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}.board .number-sort{display:block;font-size:9px;margin-top:4px;color:#7d919c}.row-selected{background:#eaf4fc!important}.status-select{background:#edf4f8;border-color:#dbe8f0}.attachment-icon{border:0;padding:0 3px;background:none;font-size:11px;color:var(--blue)}.compact-date{white-space:nowrap;font-size:11px!important}.board .clip{-webkit-line-clamp:2;font-size:11px}.board .warning{font-size:9px;padding:2px 4px}.stats .stat{min-height:78px;padding:16px 20px}.stats .stat span{font-size:11px}
.filter-panel{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;padding:18px;background:#f7fafc;border-bottom:1px solid var(--border)}[hidden]{display:none!important}.filter-panel label{font-size:11px}.filter-panel input,.filter-panel select{width:100%;max-width:none;font-size:12px}.toolbar .muted{margin-left:auto;font-size:11px}.bulk-bar{background:#e8f3fb;border-bottom:1px solid #c7dfef;padding:14px 18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.bulk-bar form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.bulk-bar label{font-size:11px;min-width:140px}.bulk-hint{font-size:11px;color:#497087}.bulk-bar button{font-size:12px}.bulk-bar strong{font-size:13px}.deadline-input{display:flex;align-items:center;width:100%;min-width:0;gap:1px}.deadline-input input[type=text]{min-width:0;width:calc(100% - 27px);padding:7px 2px;font-size:12px}.deadline-input input[type=date]{width:26px;min-width:26px;max-width:26px;padding:5px 1px;cursor:pointer;color:transparent}.deadline-input input[type=date]::-webkit-datetime-edit{display:none}.deadline-input input[type=date]::-webkit-calendar-picker-indicator{margin:0;padding:0;opacity:.8;cursor:pointer}.overdue input[type=text]{background:#fff1ed;border-color:#e3b5a7;color:#a6492e}.formgrid .deadline-input input[type=text]{padding:9px 10px}.formgrid .deadline-input{max-width:260px}
.dropzone{border:2px dashed #b3cbd9;border-radius:8px;background:#f6fafc;min-height:110px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;cursor:pointer;padding:20px;color:#316780}.dropzone span{font-size:12px}.dropzone.dragging,.dropzone:hover{background:#e6f3fb;border-color:#3681a6}.file-section{margin:24px 0;padding-top:20px;border-top:1px solid var(--border)}.file-section .muted{font-size:12px;line-height:1.6}.file-input-label{margin-top:12px}.file-list{list-style:none;padding:0;margin:12px 0}.file-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f3;overflow-wrap:anywhere}.file-list small{color:#748a96}.file-list a{font-size:12px}.file-list button{font-size:11px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.template-card{padding:22px}.template-card h2{font-size:19px}.template-card p{line-height:1.6}.template-card .actions{gap:7px}.template-card button{font-size:12px}.template-category{display:inline-block;font-size:11px;background:#eaf3f8;color:#286484;border-radius:4px;padding:5px 8px}.template-name{margin-bottom:22px;font-size:14px}.template-name input{font-size:16px}.board-card .footer{flex-wrap:wrap;gap:8px}
@media(max-width:1400px){:root .shell{grid-template-columns:176px minmax(0,1fr)}:root .workspace{padding:20px 16px}.board td,.board th{padding-left:5px;padding-right:5px}.board td select{font-size:11px}.board .deadline-input input[type=text]{font-size:11px}.filter-panel{grid-template-columns:repeat(4,minmax(0,1fr))}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.template-grid{grid-template-columns:1fr}.board td,.board td select{font-size:10px}.compact-date{font-size:10px!important}.board .ticket-title{font-size:11px}}
@media(max-width:750px){:root .shell{display:block}.board-card .tablewrap{overflow-x:auto}:root table.board{min-width:1100px}.filter-panel{grid-template-columns:1fr 1fr}.bulk-bar form{width:100%}.toolbar .muted{margin-left:0}.file-list li{align-items:start;flex-direction:column}}
.pdf-reader{background:#e7edf1}.pdf-toolbar{position:sticky;top:0;background:#173f54;color:white;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:2}.pdf-toolbar>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pdf-toolbar label{display:flex;align-items:center}.pdf-toolbar input{width:65px}.pdf-toolbar a{color:#d8f0ff}.pdf-toolbar button{padding:6px 12px}.pdf-page{display:flex;justify-content:center;padding:10px 24px 32px;overflow:auto}.pdf-page canvas{background:white;box-shadow:0 4px 20px #173f5430}#pdf-status{text-align:center;font-size:12px;color:#4f6f7f;padding:8px}.pdf-toolbar #zoom-value{min-width:48px}@media(max-width:750px){.pdf-toolbar{position:static;align-items:start;flex-direction:column}}
.pdf-toolbar button,.pdf-toolbar input{color:#203b48}

.personal-layout{padding:20px;background:#f6fafc;border-bottom:1px solid #cbdde7}.personal-layout p{font-size:12px}.column-option{display:inline-flex;align-items:center;gap:4px;margin:5px;padding:8px;border:1px solid #d5e2ea;border-radius:6px}.column-option label{display:flex;align-items:center;gap:6px;font-size:12px}.column-option input{width:16px}.column-option button{padding:3px 6px}.account-info{padding:20px;margin-bottom:20px}.attachment-icon{background:#e6f2fa;border-radius:8px;padding:2px 6px}

.login-brand img{display:block;width:100%;height:auto}.login .login-brand{margin:0 0 18px}.app-brand{background:#fff;border-radius:8px;padding:10px 7px!important;margin-bottom:24px}.app-brand img{display:block;width:100%;height:auto}.login{width:calc(100% - 32px)}
@media(max-width:750px){aside .app-brand{display:block;max-width:220px;margin:0 auto 12px}}

.file-list li{flex-wrap:wrap}.delete-confirmation{flex-basis:100%;padding:12px;background:#fff3ee;border:1px solid #e4c2b7;border-radius:6px}.delete-confirmation p{font-size:12px}

.ticket-chat{border-top:1px solid #dbe3e8;margin:20px 0;padding-top:12px}.chat-log{max-height:260px;overflow-y:auto}.chat-log article{background:#f3f7fa;border-radius:8px;padding:10px 14px;margin:8px 0}.chat-log header{display:flex;gap:12px;flex-wrap:wrap}.chat-log time{font-size:12px;color:#627783}.chat-log p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.chat-form textarea{width:100%;resize:vertical}.chat-form button{margin-top:8px}
