:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#F5F7FB;font-synthesis:none;font-size:14px;--blue:#1746FF;--border:#e2e6ed;--muted:#697386}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #1746ff66;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #1746ff55;border-color:var(--blue)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-.9px}h2{font-size:18px;font-weight:650;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.6}button{border:0;background:none;color:inherit}input,select,textarea{width:100%;min-height:42px;border:1px solid #d9dee7;border-radius:6px;background:white;padding:10px 12px;color:#111827}textarea{resize:vertical;min-height:100px;line-height:1.6}input[type=checkbox]{width:18px;min-height:18px}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:550}label .hint{font-size:12px;font-weight:400;color:var(--muted)}.primary,.secondary,.quiet,.danger,.icon-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;padding:10px 15px;font-weight:550;white-space:nowrap}.primary{background:var(--blue);color:white}.primary:hover{background:#1139d5}.secondary{border:1px solid #d9dee7;background:white}.secondary:hover,.quiet:hover{background:#f0f3f8}.quiet{color:var(--muted);font-size:13px}.danger{background:#fff4f4;color:#a33333;border:1px solid #efdada}.icon-button{font-size:24px;min-width:42px;padding:4px}.eyebrow{display:block;font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:650;margin-bottom:9px}.muted{color:var(--muted)}.small{font-size:12px}.shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:216px;padding:28px 18px 20px;background:white;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:10}.brand{display:block;margin:0 11px 40px}.brand img{display:block;width:154px;height:64px;object-fit:contain}.sidebar-label{font-size:10px;letter-spacing:1.2px;color:#9aa2b1;padding:0 14px;margin-bottom:13px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{display:flex;align-items:center;gap:12px;text-align:left;min-height:46px;border-radius:6px;padding:12px 14px;color:#576173;font-size:14px;font-weight:550}.sidebar nav button>span:first-child{font-size:19px;width:20px;text-align:center}.sidebar nav button.active{color:var(--blue);background:#edf1ff}.sidebar nav button:hover{background:#f3f5f9}.nav-count{font-size:11px;margin-left:auto;background:#e3e9ff;padding:2px 6px;border-radius:4px}.nav-count:empty{display:none}.sidebar-bottom{margin-top:auto;display:flex;gap:6px;flex-direction:column;padding:14px}.workspace{margin-left:216px;width:calc(100% - 216px)}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 38px;background:#ffffffc9}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 12px;color:#b1b7c3}.breadcrumb b{font-weight:500;color:#111827}.top-actions{display:flex;gap:5px}main{max-width:1450px;margin:auto;padding:38px 38px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.page-heading p{color:var(--muted);font-size:13px;margin-top:8px}.add-wrap{position:relative}.add-menu{position:absolute;right:0;top:48px;background:white;box-shadow:0 6px 24px #172a4a1c;border:1px solid var(--border);border-radius:7px;min-width:170px;padding:6px;z-index:20}.add-menu button{display:block;width:100%;text-align:left;padding:12px;border-radius:4px}.add-menu button:hover{background:#f5f7fb}.search-wrap{display:flex;align-items:center;background:white;border:1px solid var(--border);border-radius:6px;max-width:590px;margin-bottom:26px;padding:0 12px;gap:9px}.search-wrap>span{font-size:24px;color:#8b95a6}.search-wrap input{border:0;font-size:13px;min-width:0;background:transparent}.search-wrap input:focus{outline:none}.search-wrap:focus-within{border-color:var(--blue)}kbd{color:#a5acb9;background:#f5f7fb;border:1px solid var(--border);padding:2px 5px;border-radius:4px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}.metric{padding:21px 23px;background:white;border:1px solid var(--border);border-radius:7px}.metric-label{font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:4px}.metric strong{display:block;font-size:30px;font-weight:600;margin:11px 0 6px;letter-spacing:-.8px}.metric .small{color:#8b95a6;font-size:11px}.metric.overdue strong{color:#996720}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px}.panel{background:white;border:1px solid var(--border);border-radius:7px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid #edf0f5;gap:12px}.panel-head a,.panel-head button{font-size:12px;color:var(--blue)}.empty{padding:42px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px}.empty .empty-icon{width:44px;height:44px;background:#f5f7fb;color:#9aa4b6;display:grid;place-items:center;border:1px solid #edf0f5;border-radius:8px;font-size:21px;margin-bottom:4px}.empty p{font-size:13px;color:var(--muted);max-width:320px}.empty button{margin-top:7px}.list-row{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:16px;border-bottom:1px solid #edf0f5}.list-row:last-child{border-bottom:0}.list-row .row-main{min-width:0}.row-title{font-size:13px;font-weight:600;color:#111827}.row-main p{font-size:12px;margin-top:5px;color:var(--muted)}.row-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.row-actions{display:flex;gap:6px;flex-shrink:0}.row-actions button{padding:7px 10px;min-height:36px;font-size:12px}.row-actions .icon-button{min-width:36px}.date-label{font-size:11px;color:var(--muted)}.date-label.overdue{color:#996720}.timeline{padding:6px 22px}.timeline-row{position:relative;padding:17px 0 17px 24px;border-bottom:1px solid #edf0f5;overflow-wrap:anywhere}.timeline-row:last-child{border-bottom:0}.timeline-row:before{content:'';position:absolute;left:0;top:22px;width:7px;height:7px;background:#bac6dd;border-radius:50%}.timeline-row .date-label{margin-bottom:6px}.timeline-row p{margin-top:4px;font-size:13px;white-space:pre-wrap}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:17px}.toolbar input{flex:1;min-width:180px}.toolbar select{width:auto;max-width:100%;font-size:12px}.toolbar .spacer{margin-left:auto}.table-panel{border:1px solid var(--border);border-radius:7px;overflow:hidden;background:white}table{width:100%;border-collapse:collapse;text-align:left}th{background:#fafbfd;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-weight:600;padding:15px 17px;border-bottom:1px solid var(--border)}td{font-size:12px;padding:17px;border-bottom:1px solid #edf0f5;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfe}td .row-title{display:inline-block;text-align:left;overflow-wrap:anywhere}td small{display:block;margin-top:5px;color:var(--muted);font-size:11px}td.actions{white-space:nowrap}td .icon-button{font-size:17px;min-height:34px;min-width:34px}.badge{display:inline-flex;align-items:center;font-size:10px;font-weight:550;line-height:1.2;padding:5px 7px;border:1px solid #e1e6ef;border-radius:4px;background:#f5f7fb;color:#596476;white-space:nowrap}.badge.blue{color:#1640ca;background:#edf1ff;border-color:#e0e7ff}.badge.green{color:#3e7158;background:#f0f7f2;border-color:#dbeadd}.badge.amber{color:#946520;background:#faf5e9;border-color:#eee4ce}.badge.blocked{color:#963f42;background:#faf1f1;border-color:#efdddd}.result-count{font-size:12px;color:var(--muted);padding:13px 17px;border-top:1px solid var(--border)}.filter-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:20px}.filter-tabs button{min-height:40px;padding:9px 14px;color:var(--muted);font-size:12px;border:1px solid transparent;border-radius:5px}.filter-tabs button.active{background:white;border-color:var(--border);color:var(--blue)}.detail-back{display:inline-flex;color:var(--muted);font-size:12px;margin-bottom:23px;min-height:30px;align-items:center}.detail-heading{display:flex;justify-content:space-between;gap:20px;margin-bottom:21px}.detail-heading h2{font-size:25px;margin-bottom:12px;overflow-wrap:anywhere}.detail-contact{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:16px 0}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}.detail-actions button{font-size:12px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:22px}.info-list{padding:20px 23px;display:grid;gap:17px}.info-list dt{font-size:11px;color:var(--muted);margin-bottom:5px}.info-list dd{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.block-notice{padding:15px 18px;border:1px solid #ecd9d9;background:#fbf4f4;color:#8f4141;border-radius:6px;margin-bottom:20px;font-size:13px;line-height:1.6}.section-gap{margin-top:22px}.search-results{border:1px solid var(--border);background:white;border-radius:7px;margin-bottom:25px}.search-results h2{font-size:15px;padding:18px 22px;border-bottom:1px solid var(--border)}.search-results button{width:100%;text-align:left;padding:14px 22px;border-bottom:1px solid #edf0f5}.search-results button:hover{background:#f7f9fd}.search-results button:last-child{border:0}footer{font-size:10px;color:#9aa3b3;margin-top:38px;padding:15px 0;display:flex;gap:8px}.login-page{display:grid;place-items:center;min-height:100dvh;padding:25px}.login-card{width:100%;max-width:410px;background:white;border:1px solid var(--border);border-radius:9px;padding:34px}.login-logo{width:154px;height:72px;object-fit:contain;margin-bottom:26px}.login-card h1{font-size:25px}.login-card>p{color:var(--muted);font-size:13px;margin:10px 0 27px}.login-card label{margin-bottom:18px}.login-card .primary{width:100%;justify-content:space-between}.login-foot{display:block;text-align:center;margin-top:25px;color:#8c96a6;font-size:10px}.form-error{color:#a13d40;font-size:12px;line-height:1.5;min-height:0;margin:10px 0}.form-error:empty{display:none}dialog{border:1px solid var(--border);border-radius:9px;padding:0;width:min(620px,calc(100% - 32px));max-height:90dvh;box-shadow:0 16px 60px #10254c26;color:#111827}dialog::backdrop{background:#19253c66}#modal-form{padding:25px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid var(--border);margin-bottom:22px}.modal-head .eyebrow{font-size:9px;margin-bottom:6px}.modal-head h2{font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.form-details{border-top:1px solid var(--border);padding-top:17px;margin-top:18px}.form-details summary{cursor:pointer;color:var(--muted);font-size:12px;min-height:25px}.form-details .form-grid{margin-top:16px}.form-note{font-size:12px;color:var(--muted);margin-bottom:17px;line-height:1.6}.modal-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:20px;margin-top:24px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#111827;color:white;border-radius:7px;padding:13px 20px;max-width:calc(100% - 32px);font-size:13px;box-shadow:0 5px 20px #18253e22;z-index:100}.busy{opacity:.55;pointer-events:none}.list-group-label{font-size:11px;font-weight:650;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);padding:18px 0 10px}.list-group-label.overdue{color:#996720}.priority-high{color:#996720}.completed .row-title{text-decoration:line-through;color:var(--muted)}.company-link{font-weight:600;color:#111827;text-align:left;padding:0;font-size:13px}.company-link:hover{color:var(--blue)}.detail-heading-actions{display:flex;gap:8px;align-items:flex-start}
@media(min-width:1440px){main{padding-top:45px}.metric{padding:24px}.metrics{gap:18px}}
@media(max-width:1100px){.sidebar{width:188px;padding-left:13px;padding-right:13px}.brand{margin-left:7px}.brand img{width:140px}.workspace{margin-left:188px;width:calc(100% - 188px)}main{padding:28px 24px}.topbar{padding:0 24px}.metrics{gap:10px}.metric{padding:17px}.metric-label{font-size:11px}.dashboard-columns,.detail-grid{grid-template-columns:1fr}.table-panel th,.table-panel td{padding:13px 10px}.toolbar{gap:8px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:72px;padding:0;background:white;border-top:1px solid var(--border);border-right:0;padding-bottom:env(safe-area-inset-bottom);height:calc(66px + env(safe-area-inset-bottom))}.brand,.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{height:66px;flex-direction:row;gap:0;justify-content:space-around}.sidebar nav button{flex:1;flex-direction:column;justify-content:center;gap:4px;padding:7px 2px;font-size:10px;border-radius:0;min-width:0;position:relative}.sidebar nav button>span:first-child{font-size:19px}.sidebar nav button.active{background:white;color:var(--blue)}.nav-count{position:absolute;right:12%;top:6px;font-size:9px}.workspace{width:100%;margin:0}.topbar{height:58px;padding:0 18px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 5px}.top-actions .quiet{font-size:10px;padding:7px 6px;min-height:40px}main{padding:25px 18px 85px}.page-heading{gap:10px;margin-bottom:23px}.page-heading p{max-width:225px;font-size:12px}h1{font-size:26px}.eyebrow{font-size:9px;letter-spacing:1.2px}.page-heading .primary{font-size:12px;padding:10px;min-height:42px}.search-wrap{margin-bottom:22px}.search-wrap input{font-size:12px;padding:10px 3px}.search-wrap kbd{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.metric{padding:17px}.metric strong{font-size:27px}.metric .small{font-size:10px}.dashboard-columns{gap:18px}.panel-head{padding:18px}.panel-head h2{font-size:16px}.empty{padding:30px 18px}.list-row{padding:16px 18px;gap:10px}.row-actions{flex-wrap:wrap;justify-content:flex-end}.toolbar input{flex-basis:100%}.toolbar select{flex:1;min-width:calc(50% - 10px);max-width:100%}.toolbar .secondary{font-size:11px;padding:9px 11px}.toolbar .spacer{margin-left:0}.table-panel table,.table-panel tbody{display:block}.table-panel thead{display:none}.table-panel tr{display:grid;grid-template-columns:1fr 1fr;padding:15px 17px;border-bottom:1px solid var(--border);gap:12px 15px}.table-panel td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}.table-panel td:first-child{grid-column:1/-1}.table-panel td::before{content:attr(data-label);display:block;font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}.table-panel td:first-child::before,.table-panel td.actions::before{display:none}.table-panel td.actions{grid-column:2;grid-row:1;justify-self:end;z-index:1}.table-panel td:first-child{padding-right:40px}.row-title{font-size:13px}.detail-heading{flex-direction:column;gap:13px}.detail-heading h2{font-size:24px}.detail-actions{gap:7px}.detail-actions button{font-size:11px;padding:9px 11px;min-height:42px}.detail-contact{gap:12px;font-size:12px;overflow-wrap:anywhere}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}#modal-form{padding:20px}.modal-head{padding-bottom:17px;margin-bottom:18px}.modal-head h2{font-size:18px}.modal-foot{padding-top:18px}.toast{bottom:calc(85px + env(safe-area-inset-bottom))}.login-card{padding:28px}.filter-tabs{gap:4px}.filter-tabs button{font-size:11px;padding:8px 11px}.list-row .row-actions{max-width:95px}.timeline{padding:6px 18px}.detail-heading-actions .secondary,.detail-heading-actions .danger{font-size:12px}.search-results button{padding:14px 18px}}
.breadcrumb{display:flex;align-items:center}.breadcrumb .company-path{margin:0;color:var(--muted)}.mobile-logo{display:none}
@media(min-width:761px) and (max-width:950px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mobile-logo{display:block;width:75px;height:36px;object-fit:contain}.breadcrumb .company-path{display:none}.row-actions button,.row-actions .icon-button,td .icon-button{min-height:42px;min-width:42px}.breadcrumb{min-width:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Theme controls remain available both before and after signing in. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 11px;border:1px solid var(--border);border-radius:6px;background:white;color:#576173;font-size:12px;font-weight:550;white-space:nowrap}
.theme-toggle:hover{background:#f0f3f8}.theme-toggle [data-theme-icon]{font-size:19px;line-height:1}.login-theme{position:absolute;right:24px;top:24px}.login-page{position:relative}
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;background:#0c0d10;color:#f1f3f6;--border:#2b2d34;--muted:#a9aebc;--link:#8daeff}
[data-theme="dark"] body{background:#0c0d10}
[data-theme="dark"] a{color:var(--link)}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#111215;border-color:#363943;color:#f1f3f6}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#939aa9;opacity:1}
[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar{background:#111215}
[data-theme="dark"] .metric,[data-theme="dark"] .panel,[data-theme="dark"] .table-panel,[data-theme="dark"] .search-results,[data-theme="dark"] .login-card,[data-theme="dark"] dialog,[data-theme="dark"] .add-menu{background:#16171c;color:#f1f3f6}
[data-theme="dark"] .secondary,[data-theme="dark"] .theme-toggle{background:#1b1d23;border-color:#363943;color:#e1e5ec}
[data-theme="dark"] .secondary:hover,[data-theme="dark"] .quiet:hover,[data-theme="dark"] .theme-toggle:hover{background:#252831}
[data-theme="dark"] .theme-toggle[aria-pressed="true"]{border-color:#455577;color:#b3c9ff}
[data-theme="dark"] .sidebar nav button{color:#aeb5c4}
[data-theme="dark"] .sidebar nav button:hover,[data-theme="dark"] .add-menu button:hover,[data-theme="dark"] .search-results button:hover,[data-theme="dark"] tbody tr:hover{background:#1d2028}
[data-theme="dark"] .sidebar nav button.active,[data-theme="dark"] .filter-tabs button.active{background:#1b2440;color:#b3c9ff}
[data-theme="dark"] .nav-count{background:#273458;color:#c6d6ff}
[data-theme="dark"] .breadcrumb b,[data-theme="dark"] .row-title,[data-theme="dark"] .company-link{color:#f1f3f6}
[data-theme="dark"] .company-link:hover,[data-theme="dark"] .panel-head a,[data-theme="dark"] .panel-head button{color:var(--link)}
[data-theme="dark"] .metric .small,[data-theme="dark"] .sidebar-label,[data-theme="dark"] .login-foot,[data-theme="dark"] footer{color:#989fae}
[data-theme="dark"] .search-wrap{background:#16171c}
[data-theme="dark"] .search-wrap input{background:transparent}
[data-theme="dark"] .search-wrap>span{color:#9da7b8}
[data-theme="dark"] kbd,[data-theme="dark"] .empty .empty-icon{background:#20232a;border-color:#343842;color:#a9b2c4}
[data-theme="dark"] th{background:#1b1d23}
[data-theme="dark"] td,[data-theme="dark"] .panel-head,[data-theme="dark"] .list-row,[data-theme="dark"] .timeline-row,[data-theme="dark"] .search-results button{border-color:#2b2d34}
[data-theme="dark"] .timeline-row:before{background:#707e98}
[data-theme="dark"] .badge{background:#24272f;border-color:#383d48;color:#c3c9d4}
[data-theme="dark"] .badge.blue{background:#1c294a;border-color:#33476f;color:#b5cdff}
[data-theme="dark"] .badge.green{background:#1b3027;border-color:#345443;color:#a2d8b8}
[data-theme="dark"] .badge.amber{background:#342c1d;border-color:#5b4a2c;color:#dfc18b}
[data-theme="dark"] .badge.blocked,[data-theme="dark"] .danger,[data-theme="dark"] .block-notice{background:#342326;border-color:#5d393e;color:#edb0b3}
.group-count{display:inline-grid;place-items:center;min-width:30px;height:28px;padding:0 9px;border-radius:999px;background:#edf1ff;color:var(--blue);font-size:12px;font-weight:650}.group-empty{padding:28px 23px;color:var(--muted);font-size:13px}.panel-head>div{min-width:0}.panel-head>div .small{display:block;margin-top:5px}
[data-theme="dark"] .group-count{background:#1c294a;color:#b5cdff}
[data-theme="dark"] .metric.overdue strong,[data-theme="dark"] .date-label.overdue,[data-theme="dark"] .priority-high,[data-theme="dark"] .list-group-label.overdue{color:#dfc18b}
[data-theme="dark"] .form-error{color:#edb0b3}
[data-theme="dark"] dialog::backdrop{background:#000a}
[data-theme="dark"] .toast{background:#e8edf5;color:#16171c;box-shadow:0 5px 20px #0005}
/* Keep the original dark logo untouched and legible on a neutral white backing. */
[data-theme="dark"] .brand img,[data-theme="dark"] .login-logo,[data-theme="dark"] .mobile-logo{background:#fff;border-radius:4px}
@media(max-width:760px){.top-actions .theme-toggle{min-height:40px;min-width:40px;padding:6px}.top-actions .theme-label{display:none}.login-theme{top:16px;right:16px}.login-page{padding-top:80px;padding-bottom:35px}[data-theme="dark"] .sidebar nav button.active{background:#111215;color:#b3c9ff}}

.topbar-left{display:flex;align-items:center;gap:14px;min-width:0}
.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;min-width:42px;height:42px;border:1px solid var(--border);border-radius:6px;background:white;color:#576173}
.sidebar-toggle:hover{background:#f0f3f8}
[data-theme="dark"] .sidebar-toggle{background:#1b1d23;color:#e1e5ec;border-color:#363943}
[data-theme="dark"] .sidebar-toggle:hover{background:#252831}
@media(min-width:761px){
  [data-sidebar="hidden"] .sidebar{display:none}
  [data-sidebar="hidden"] .workspace{margin-left:0;width:100%}
  [data-sidebar="hidden"] .breadcrumb .mobile-logo{display:block;width:75px;height:36px;object-fit:contain}
  [data-sidebar="hidden"] .breadcrumb .company-path{display:none}
}
@media(max-width:760px){.sidebar-toggle{display:none}.topbar-left{gap:0}}

/* ================================================================
   HGS Dashboard V2 · Team, Termine, Chat
   ================================================================ */
.user-chip{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:11px;white-space:nowrap}
.team-summary{display:flex;align-items:baseline;gap:8px;color:var(--muted);font-size:12px}.team-summary b{font-size:24px;color:#111827}.appointment-row .row-actions{align-items:center}.appointment-row .company-link{font-size:13px;font-weight:650}

.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:14px;margin-bottom:17px}.calendar-toolbar h2{text-align:center;text-transform:capitalize}.calendar-nav{display:flex;gap:6px}.calendar-tabs{margin:0}.calendar-shell{background:white;border:1px solid var(--border);border-radius:7px;overflow:hidden}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fafbfd;border-bottom:1px solid var(--border)}.calendar-weekdays span{padding:11px 12px;text-align:center;font-size:10px;font-weight:650;letter-spacing:.7px;color:var(--muted);text-transform:uppercase}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-day{min-height:132px;padding:8px;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;background:white;min-width:0}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#fafbfd;color:#a9afbb}.calendar-day.today{box-shadow:inset 0 0 0 1px #1746ff55}.calendar-day-number{width:28px;height:28px;border-radius:50%;font-size:11px;font-weight:650}.calendar-day.today .calendar-day-number{background:var(--blue);color:white}.calendar-events{display:flex;flex-direction:column;gap:4px;margin-top:5px}.calendar-event,.calendar-more{display:flex;gap:5px;align-items:center;width:100%;min-width:0;text-align:left;padding:5px 6px;border-radius:4px;background:#edf1ff;color:#1640ca;font-size:10px;overflow:hidden}.calendar-event span{font-weight:650;flex:0 0 auto}.calendar-event{white-space:nowrap;text-overflow:ellipsis}.calendar-event.status-erledigt{background:#f0f7f2;color:#3e7158}.calendar-event.status-abgesagt{background:#faf1f1;color:#963f42;text-decoration:line-through}.calendar-more{background:transparent;color:var(--muted);padding-left:3px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));min-height:430px;overflow-x:auto}.week-day{border-right:1px solid var(--border);min-width:140px}.week-day:last-child{border-right:0}.week-day.today{background:#f8faff}.week-head{width:100%;padding:14px 10px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:3px;text-align:left}.week-head b{font-size:12px}.week-head span{font-size:10px;color:var(--blue)}.week-event{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:calc(100% - 12px);margin:6px;padding:8px;border:1px solid #e0e7ff;background:#f7f9ff;border-radius:5px;text-align:left}.week-event b{font-size:10px;color:var(--blue)}.week-event span{font-size:11px;font-weight:650;white-space:normal}.week-event small{font-size:9px;color:var(--muted)}.calendar-empty-slot{width:calc(100% - 12px);margin:6px;padding:12px 6px;border:1px dashed var(--border);border-radius:5px;color:var(--muted);font-size:10px}

.chat-shell{height:min(720px,calc(100vh - 245px));min-height:480px;background:white;border:1px solid var(--border);border-radius:7px;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.chat-head{padding:18px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px}.chat-head h2{margin-bottom:4px}.online-pill{font-size:10px;color:#3e7158;background:#f0f7f2;border:1px solid #dbeadd;border-radius:999px;padding:5px 9px}.chat-messages{padding:20px;overflow-y:auto;background:#fafbfd;display:flex;flex-direction:column;gap:10px}.chat-message{display:flex;justify-content:flex-start}.chat-message.own{justify-content:flex-end}.chat-bubble{max-width:min(680px,78%);padding:10px 12px;background:white;border:1px solid var(--border);border-radius:7px 7px 7px 2px;box-shadow:0 1px 2px #172a4a0a}.chat-message.own .chat-bubble{background:#edf1ff;border-color:#dbe3ff;border-radius:7px 7px 2px 7px}.chat-meta{display:flex;justify-content:space-between;gap:15px;margin-bottom:5px;font-size:10px;color:var(--muted)}.chat-meta b{font-weight:650;color:#445065}.chat-bubble p{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;padding:14px;border-top:1px solid var(--border);background:white}.chat-compose textarea{min-height:48px;max-height:140px}.chat-loading{margin:auto;color:var(--muted);font-size:12px}.chat-empty{margin:auto}.chat-empty.empty{padding:20px}

[data-theme="dark"] .user-chip{background:#1b1d23;color:#c7ccd6;border-color:#363943}[data-theme="dark"] .team-summary b{color:#f1f3f6}[data-theme="dark"] .calendar-shell,[data-theme="dark"] .calendar-day,[data-theme="dark"] .chat-shell,[data-theme="dark"] .chat-compose{background:#16171c}[data-theme="dark"] .calendar-weekdays,[data-theme="dark"] .calendar-day.outside,[data-theme="dark"] .chat-messages{background:#111215}[data-theme="dark"] .calendar-day,[data-theme="dark"] .week-day,[data-theme="dark"] .week-head,[data-theme="dark"] .chat-head,[data-theme="dark"] .chat-compose{border-color:#2b2d34}[data-theme="dark"] .calendar-day.today,[data-theme="dark"] .week-day.today{background:#151b2a}[data-theme="dark"] .calendar-event{background:#1c294a;color:#b5cdff}[data-theme="dark"] .calendar-event.status-erledigt{background:#1b3027;color:#a2d8b8}[data-theme="dark"] .calendar-event.status-abgesagt{background:#342326;color:#edb0b3}[data-theme="dark"] .week-event{background:#1b2130;border-color:#33476f}[data-theme="dark"] .chat-bubble{background:#1b1d23;border-color:#363943}[data-theme="dark"] .chat-message.own .chat-bubble{background:#1c294a;border-color:#33476f}[data-theme="dark"] .chat-meta b{color:#d8dde6}[data-theme="dark"] .online-pill{background:#1b3027;border-color:#345443;color:#a2d8b8}

@media(max-width:1050px){.calendar-toolbar{grid-template-columns:1fr auto}.calendar-toolbar h2{order:-1;grid-column:1/-1}.calendar-nav{justify-self:start}.calendar-tabs{justify-self:end}.calendar-toolbar>.primary{grid-column:1/-1;justify-self:end}.calendar-day{min-height:112px}}
@media(max-width:760px){.top-actions .user-chip{display:none}.sidebar nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav button{flex:0 0 70px}.nav-count{right:6px}.calendar-toolbar{display:flex;flex-wrap:wrap}.calendar-toolbar h2{width:100%;text-align:left;order:-1}.calendar-tabs{order:2;width:100%}.calendar-toolbar>.primary{margin-left:auto}.calendar-shell{overflow-x:auto}.calendar-weekdays,.calendar-grid{min-width:700px}.calendar-day{min-height:108px}.week-grid{min-width:770px}.chat-shell{height:calc(100dvh - 245px);min-height:430px}.chat-messages{padding:14px}.chat-bubble{max-width:88%}.chat-compose{grid-template-columns:1fr}.chat-compose .primary{justify-self:end}.team-summary{width:100%}}


/* ================================================================
   HGS Dashboard V2.1 · getrennte Normal- und Brief-Leads
   ================================================================ */
.lead-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1050px}.lead-choice-card{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon eyebrow" "icon title" "icon text" "icon count" "icon action";column-gap:18px;row-gap:5px;padding:26px;text-align:left;background:white;border:1px solid var(--border);border-radius:8px;box-shadow:0 1px 2px #172a4a08;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.lead-choice-card:hover{border-color:#b8c7ff;box-shadow:0 7px 20px #1746ff12;transform:translateY(-1px)}.lead-choice-icon{grid-area:icon;display:grid;place-items:center;width:54px;height:54px;border-radius:7px;background:#edf1ff;color:var(--blue);font-size:24px}.lead-choice-card .eyebrow{grid-area:eyebrow}.lead-choice-card strong{grid-area:title;font-size:20px;color:#111827}.lead-choice-card p{grid-area:text;max-width:520px;color:var(--muted);line-height:1.5}.lead-choice-count{grid-area:count;margin-top:9px;font-size:12px;font-weight:650;color:#445065}.lead-choice-action{grid-area:action;margin-top:5px;color:var(--blue);font-size:12px;font-weight:650}.lead-choice-card.letter-card .lead-choice-icon{background:#fff7e9;color:#9a6413}.lead-mode-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.lead-mode-tabs{margin:0}.lead-mode-head>.secondary:last-child{margin-left:auto}.table-panel td[data-label="Briefstatus"] small{display:block;margin-top:5px;color:var(--muted)}
[data-theme="dark"] .lead-choice-card{background:#16171c;border-color:#2b2d34}[data-theme="dark"] .lead-choice-card:hover{border-color:#33476f;box-shadow:0 7px 20px #0004}[data-theme="dark"] .lead-choice-card strong{color:#f1f3f6}[data-theme="dark"] .lead-choice-count{color:#c3c9d4}[data-theme="dark"] .lead-choice-icon{background:#1c294a;color:#b5cdff}[data-theme="dark"] .lead-choice-card.letter-card .lead-choice-icon{background:#342c1d;color:#dfc18b}
@media(max-width:760px){.lead-choice-grid{grid-template-columns:1fr}.lead-choice-card{padding:20px;grid-template-columns:44px 1fr;column-gap:14px}.lead-choice-icon{width:44px;height:44px;font-size:20px}.lead-choice-card strong{font-size:18px}.lead-mode-head{flex-wrap:wrap}.lead-mode-tabs{order:3;width:100%}.lead-mode-head>.secondary:last-child{margin-left:auto}}

/* HGS team presence and messenger: existing light/dark palette. */
.presence-strip{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 22px}.presence-member{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:11px 15px;background:#fff;min-width:200px}.presence-member b{display:block;font-size:13px}.presence-member span:not(.presence-dot){display:block;font-size:11px;color:var(--muted);margin-top:4px}.presence-member small{display:block;margin-top:3px;font-size:10px}.presence-dot{width:8px;height:8px;border-radius:50%;background:#9299a5;flex:none;margin-top:5px}.presence-dot.online{background:#29a36a;box-shadow:0 0 0 3px #29a36a15}.chat-head{gap:15px}.chat-head p{margin-top:6px;line-height:1.5}.chat-messages{height:clamp(320px,48vh,620px);background:#f5f7fb;overflow-y:auto;overscroll-behavior:contain;padding:22px}.chat-message{display:flex;margin:0 0 14px;justify-content:flex-start}.chat-message.own{justify-content:flex-end}.chat-bubble{min-width:140px;max-width:78%;padding:12px 15px;border-radius:13px 13px 13px 3px;background:white;border:1px solid var(--border);box-shadow:0 2px 6px #17223305}.chat-message.own .chat-bubble{background:#eaf0fc;border-color:#dae4fa;border-radius:13px 13px 3px 13px}.chat-sender{font-size:11px;display:block;color:var(--muted);margin-bottom:6px}.chat-bubble p{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 8px}.chat-meta{justify-content:flex-end;gap:10px;font-size:10px;margin-top:9px;color:var(--muted)}.chat-receipt.read{color:#3475ba}.chat-typing{min-height:26px;padding:5px 22px;font-size:11px;color:var(--muted)}.chat-latest{display:block;margin:4px auto;min-height:30px;font-size:11px}.chat-older{display:block;margin:0 auto 18px}.chat-compose{align-items:flex-end;gap:12px}.chat-compose-main{flex:1;min-width:0}.chat-compose-main textarea{width:100%;min-height:68px;max-height:220px}.chat-compose-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:9px}.chat-compose-actions small{font-size:10px;color:var(--muted)}.chat-file-label{cursor:pointer;margin:0;display:inline-flex;padding:8px 11px;font-size:11px;align-items:center}.chat-file-label input{max-width:180px;font-size:10px;margin-left:8px;border:0;min-height:0;padding:0}.chat-attachment{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;padding:10px;margin-top:8px;min-width:0}.chat-attachment>a:first-child:has(img){flex-basis:100%}.chat-attachment img{max-width:260px;max-height:200px;object-fit:contain;display:block;border-radius:5px}.attachment-info{flex:1;min-width:0}.attachment-info b{font-size:12px;overflow-wrap:anywhere;display:block}.attachment-info small{font-size:10px;color:var(--muted);display:block;margin-top:4px;overflow-wrap:anywhere}.attachment-download{font-size:10px;padding:8px;text-decoration:none}.pending-attachment{display:inline-flex;gap:12px;align-items:center;background:#eaf0fc;border-radius:6px;padding:6px 10px;font-size:11px;margin:0 6px 8px 0;max-width:100%}.pending-attachment span{overflow-wrap:anywhere}.pending-attachment button{font-size:19px}.chat-shell{overflow:hidden}
[data-theme="dark"] .presence-member,[data-theme="dark"] .chat-bubble{background:#17191e}[data-theme="dark"] .chat-messages{background:#101115}[data-theme="dark"] .chat-message.own .chat-bubble,[data-theme="dark"] .pending-attachment{background:#1c2a42;border-color:#31425c}[data-theme="dark"] .chat-file-label{background:#191c23;color:#eef1f7}[data-theme="dark"] .chat-receipt.read{color:#8daeff}
@media(max-width:760px){.presence-strip{gap:8px;margin-bottom:16px}.presence-member{flex:1;min-width:140px;padding:9px 11px}.chat-head{padding:15px;align-items:flex-start}.chat-head h2{font-size:16px}.chat-head button{font-size:10px;padding:8px}.chat-messages{padding:14px;height:45vh;min-height:280px}.chat-bubble{max-width:92%;padding:10px 12px}.chat-compose{padding:14px;gap:8px}.chat-compose .primary{font-size:12px;padding:12px}.chat-compose-actions small{flex-basis:100%}.chat-attachment img{max-width:100%}.chat-file-label input{max-width:130px}}
/* Allow the composer to grow without the V2 fixed-height grid clipping it. */
.chat-shell{display:block;height:auto;min-height:0}.chat-compose{display:flex}
@media(max-width:760px){.chat-compose{display:flex;flex-direction:column;align-items:stretch}.chat-compose>button{align-self:flex-end}.chat-file-label{max-width:100%;flex-wrap:wrap;gap:6px}.chat-compose-main{width:100%}}
.chat-file-label{position:relative}.chat-file-label input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;padding:0;margin:0;clip-path:inset(50%)}.chat-file-label:focus-within{outline:2px solid var(--blue);outline-offset:2px}

/* Documents: keep the existing HGS typography, blue accent and theme tokens. */
.documents-layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:22px;align-items:start}.documents-nav{border:1px solid var(--line);background:var(--card);border-radius:12px;padding:12px;position:sticky;top:20px}.documents-nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:12px 10px;font-size:13px;color:var(--muted);font-weight:600}.documents-nav button.selected{background:var(--blue-soft);color:var(--blue)}.documents-nav button:hover{background:var(--bg)}.documents-nav button span{width:18px;text-align:center;font-size:18px}.documents-nav p{font-size:11px;color:var(--muted);line-height:1.7;border-top:1px solid var(--line);margin:15px 0;padding-top:15px}.documents-nav progress{width:100%;height:5px;accent-color:var(--blue)}#documents-quota{font-size:11px;color:var(--muted);display:grid;gap:8px}.documents-main{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:12px}.documents-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:20px;border-bottom:1px solid var(--line)}.documents-search{display:flex;flex-direction:row;gap:10px;align-items:center;flex:1 1 240px;margin:0}.documents-search input{width:100%;margin:0;background:var(--bg)}.documents-search>span{font-size:24px;color:var(--muted)}.documents-toolbar button,.documents-new summary{white-space:nowrap;font-size:12px}.documents-new,.document-menu{position:relative}.documents-new summary{list-style:none;cursor:pointer;padding:11px 15px;border-radius:8px;user-select:none}.documents-new summary::-webkit-details-marker,.document-menu summary::-webkit-details-marker{display:none}.documents-new>div,.document-menu>div{position:absolute;right:0;top:calc(100% + 5px);min-width:210px;background:var(--card);border:1px solid var(--line);box-shadow:0 8px 30px #0002;border-radius:10px;padding:6px;z-index:25}.documents-new>div button,.document-menu>div button,.document-menu>div a{display:block;text-align:left;background:transparent;border:0;color:var(--text);width:100%;padding:10px 12px;font-size:12px;border-radius:6px;text-decoration:none;white-space:nowrap}.document-menu>div button.danger{color:var(--red,#dc2626)}.documents-new>div button:hover,.document-menu>div button:hover,.document-menu>div a:hover{background:var(--bg)}.documents-location{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:16px 20px;flex-wrap:wrap}#documents-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:12px;min-width:0}#documents-breadcrumbs button{border:0;background:none;color:var(--muted);padding:3px 0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#documents-breadcrumbs button:last-child{color:var(--text);font-weight:650}.documents-sort{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.documents-sort select{font-size:12px;padding:7px 10px;width:auto;max-width:170px}.documents-status{font-size:12px;color:var(--blue);padding:0 20px}.documents-status:empty{display:none}.documents-table-wrap{overflow-x:auto;padding:0 20px 120px;margin-bottom:-110px;isolation:isolate}.documents-table{width:100%;border-collapse:collapse;min-width:700px}.documents-table th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:600;border-bottom:1px solid var(--line);padding:12px;text-align:left}.documents-table td{font-size:12px;padding:16px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.documents-table tbody tr:hover{background:var(--bg)}.documents-table td small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.document-name{display:flex;align-items:center;gap:12px;min-width:220px;max-width:390px}.document-name>svg{width:29px;height:29px;flex:0 0 29px;fill:none;stroke:var(--blue);stroke-width:1.5}.document-name>div{min-width:0}.document-name button{font-weight:600;line-height:1.4;text-align:left;overflow-wrap:anywhere}.document-name>div>span{display:block;font-size:10px;color:var(--muted);margin-top:5px;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-actions{white-space:nowrap}.document-star{border:0;background:transparent;color:var(--muted);font-size:21px;padding:5px;vertical-align:middle}.document-star.is-favorite{color:#d69b17}.document-menu{display:inline-block;vertical-align:middle}.document-menu summary{list-style:none;cursor:pointer;font-size:22px;color:var(--muted);padding:0 9px;line-height:32px;border-radius:7px}.document-menu[open] summary{background:var(--blue-soft);color:var(--blue)}.documents-empty,.documents-loading,.documents-error{text-align:center;padding:70px 24px;color:var(--muted)}.documents-empty>svg{width:55px;height:55px;fill:none;stroke:var(--blue);stroke-width:1;margin-bottom:12px}.documents-empty h3{font-size:18px;color:var(--text);margin:0 0 10px}.documents-empty p{font-size:13px;line-height:1.6;margin-bottom:22px}.documents-error button{display:block;margin:18px auto 0}.documents-pagination{display:flex;justify-content:space-between;align-items:center;padding:20px;font-size:11px;color:var(--muted);gap:10px}.documents-pagination>div{display:flex;gap:6px}.documents-pagination button{font-size:11px;padding:7px 10px}.documents-note{font-size:10px;color:var(--muted);line-height:1.6;padding:15px 20px 18px;border-top:1px solid var(--line);margin:0}.document-preview img{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}.document-preview iframe{width:100%;height:60vh;min-height:300px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.document-share-list{display:grid;gap:10px}.document-share-list label{display:flex;flex-direction:row;align-items:center;gap:12px;background:var(--bg);border-radius:8px;padding:12px}.document-share-list input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--blue)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.documents-layout{grid-template-columns:1fr}.documents-nav{position:static;display:flex;flex-wrap:wrap;gap:6px;padding:8px}.documents-nav button{width:auto;padding:9px 12px;font-size:12px}.documents-nav p,#documents-quota{display:none}.documents-toolbar{padding:15px}.documents-table-wrap{padding-left:8px;padding-right:8px}}
@media(max-width:600px){.documents-toolbar{gap:8px}.documents-search{flex-basis:100%}.documents-toolbar>.secondary{flex:1;white-space:normal}.documents-location{padding:12px 15px}.documents-note{padding:15px}.documents-nav button{padding:8px;font-size:11px;gap:5px}.documents-nav button span{font-size:15px}.documents-sort{width:100%;justify-content:flex-end}.document-preview iframe{min-height:250px}.documents-empty{padding:45px 16px}.documents-layout{gap:12px}}
:root{--line:var(--border);--card:#fff;--bg:#f5f7fb;--text:#111827;--blue-soft:#eef2ff}
:root[data-theme="dark"]{--card:#16171c;--bg:#111215;--text:#f1f3f6;--blue-soft:#1b2440}
[data-theme="dark"] .documents-nav button.selected{color:#b3c9ff}
.form-grid .wide{grid-column:1/-1}
.document-menu>div{position:fixed;width:220px;right:auto;max-height:calc(100vh - 24px);overflow-y:auto;z-index:100}
.document-pdf-controls{display:flex;justify-content:center;align-items:center;gap:18px;margin-bottom:12px;font-size:12px}.document-pdf-controls button{min-width:40px}.document-pdf-scroll{max-height:60vh;overflow:auto;background:#e5e7eb;border-radius:8px;padding:10px;text-align:center}.document-pdf-scroll canvas{display:block;margin:auto;max-width:100%;background:#fff;box-shadow:0 2px 8px #0002}
@media(max-width:760px){.documents-table-wrap{overflow:visible;padding:0 12px;margin:0}.documents-table,.documents-table tbody{display:block;min-width:0}.documents-table thead{display:none}.documents-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;border:1px solid var(--line);border-radius:9px;padding:13px;margin-bottom:12px}.documents-table td{display:block;border:0;padding:0;font-size:11px}.documents-table td:first-child{grid-column:1;grid-row:1}.documents-table td:nth-child(2),.documents-table td:nth-child(3),.documents-table td:nth-child(4){grid-column:1/-1;color:var(--muted)}.documents-table td:nth-child(2)::before{content:'Eigentümer: ';font-weight:600}.documents-table td:nth-child(3)::before{content:'Geändert: ';font-weight:600}.documents-table td:nth-child(4)::before{content:'Datei: ';font-weight:600}.documents-table td small{display:inline;font-size:10px;margin-left:8px}.documents-table .document-actions{grid-column:2;grid-row:1;align-self:start}.document-name{min-width:0;max-width:none;gap:9px}.document-name>svg{width:23px;height:23px;flex-basis:23px}.document-name button{font-size:12px;word-break:break-word}.document-name>div>span{max-width:190px}.document-star{padding:3px}.document-menu summary{padding:0 5px}.documents-pagination{padding:10px 15px 20px}}

/* Local file drag-and-drop uses the authenticated documents upload route. */
.documents-main{position:relative}.documents-drop-hint{margin:12px 20px 16px;padding:16px;border:1px dashed var(--line);border-radius:9px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}.documents-drop-hint[hidden]{display:none}.documents-drop-overlay{display:none;position:absolute;inset:8px;z-index:30;border:2px dashed var(--blue);border-radius:10px;background:var(--card);box-shadow:0 0 0 8px var(--blue-soft);pointer-events:none;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:24px;color:var(--blue)}.documents-main.is-dragging .documents-drop-overlay{display:flex}.documents-drop-overlay>span{font-size:42px}.documents-drop-overlay strong{font-size:21px}.documents-drop-overlay small{font-size:12px;color:var(--muted);line-height:1.6}

/* HGS 4.1 live synchronization indicator */
.live-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--muted);font-size:11px;font-weight:600}
.live-dot{width:7px;height:7px;border-radius:50%;background:#a9b1be;flex:none}
.live-status.connected .live-dot{background:#27a86c}
@media(max-width:760px){.live-status .live-label{display:none}}
