/* Traxtic Operations OS V0.8.6.66 — Kundenakte simplification & stabilization
   Scope: #view-customers + customer PDF overlay only. */

#view-customers .v08664-akte-head{
  margin:2px 0 18px;
  padding:2px 2px 0;
}
#view-customers .v08664-akte-head h1{
  margin:14px 0 0;
  font-size:clamp(34px,3vw,48px);
  line-height:1.02;
  letter-spacing:-.045em;
}
#view-customers .v08664-akte-head p{
  margin:8px 0 0;
  color:var(--text-muted);
  font-size:12px;
  font-weight:650;
}
#view-customers .v08664-akte-head .page-actions{
  align-self:center;
  display:flex;
  gap:10px;
}
#view-customers .v08664-akte-head .page-actions button{
  min-height:44px;
  padding-inline:18px;
}

#view-customers .v08664-akte-summary{
  gap:12px;
  margin:0 0 16px;
}
#view-customers .v08664-akte-summary article{
  min-height:92px;
  padding:15px 17px;
  border-radius:17px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
#view-customers .v08664-akte-summary article.contact{
  background:linear-gradient(135deg,rgba(249,64,6,.055),rgba(255,255,255,.018) 55%);
}
#view-customers .v08664-akte-summary small{
  font-size:9px;
  letter-spacing:.085em;
  font-weight:800;
}
#view-customers .v08664-akte-summary strong{
  margin-top:8px;
  font-size:15px;
  line-height:1.2;
  letter-spacing:-.015em;
}
#view-customers .v08664-akte-summary span{
  display:block;
  margin-top:5px;
  color:var(--text-faint);
  font-size:11px;
  line-height:1.35;
}

#view-customers .v06-akte-tabs{
  gap:3px;
  padding:7px;
  margin-bottom:16px;
  border-radius:17px;
  background:rgba(31,34,37,.82);
  box-shadow:0 12px 38px rgba(0,0,0,.08);
}
#view-customers .v06-akte-tabs button{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:9px 12px;
  color:rgba(238,239,241,.72);
  font-size:12px;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
#view-customers .v06-akte-tabs button:hover{
  color:var(--text);
  background:rgba(255,255,255,.028);
}
#view-customers .v06-akte-tabs button.active{
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
#view-customers .v06-akte-tabs button span{
  min-width:19px;
  height:19px;
  padding:0 6px;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.07);
  border-radius:999px;
  color:var(--text-faint);
  font-size:9px;
  font-variant-numeric:tabular-nums;
}
#view-customers .v06-akte-tabs button span:empty{display:none}
#view-customers .v06-akte-tabs button.active span{
  color:#ffb39b;
  border-color:rgba(249,64,6,.22);
  background:rgba(249,64,6,.08);
}

#view-customers .v06-akte-grid{
  grid-template-columns:minmax(0,1fr) 326px;
  gap:16px;
}
#view-customers .v06-akte-main{
  border-radius:22px;
  background:linear-gradient(180deg,rgba(34,37,41,.92),rgba(30,33,37,.94));
  box-shadow:0 24px 60px rgba(0,0,0,.09);
}
#view-customers .v06-akte-main{padding:20px}
#view-customers .v06-akte-aside{
  top:18px;
  padding:15px;
}
#view-customers .v08664-panel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:17px;
  padding-bottom:15px;
  border-bottom:1px solid rgba(255,255,255,.065);
}
#view-customers .v08664-panel-head .section-title{
  margin-top:5px;
  font-size:22px;
  letter-spacing:-.025em;
}
#view-customers .v08664-panel-count{
  color:var(--text-faint);
  font-size:10px;
  font-weight:750;
  letter-spacing:.02em;
}

#view-customers .v06-record-list{gap:8px}
#view-customers .v06-record-item{
  min-height:68px;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:12px;
  padding:11px 12px;
  border-radius:15px;
  border-color:rgba(255,255,255,.075);
  background:rgba(255,255,255,.018);
  box-shadow:none;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
#view-customers button.v06-record-item:hover,
#view-customers tr[data-v07-customer-doc-row]:hover{
  background:rgba(255,255,255,.032);
  border-color:rgba(249,64,6,.22);
}
#view-customers .v06-record-item i{
  width:44px;
  height:44px;
  border-radius:12px;
  background:rgba(249,64,6,.085);
  border:1px solid rgba(249,64,6,.11);
  font-size:11px;
}
#view-customers .v06-record-item strong{
  display:block;
  font-size:13px;
  line-height:1.3;
}
#view-customers .v06-record-item small{
  margin-top:4px;
  font-size:10px;
  line-height:1.4;
}

#view-customers .v08664-overview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
#view-customers .v08664-overview-grid>section{
  min-height:188px;
  padding:16px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:17px;
  background:rgba(255,255,255,.014);
}
#view-customers .v08664-block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:13px;
}
#view-customers .v08664-block-head small{
  display:block;
  margin-bottom:4px;
  color:var(--text-faint);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#view-customers .v08664-block-head strong{
  font-size:15px;
  letter-spacing:-.02em;
}

#view-customers .v08664-customer-empty{
  min-height:126px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(249,64,6,.025),rgba(255,255,255,.008));
}
#view-customers .v08664-customer-empty>div>span{
  display:block;
  margin-bottom:8px;
  color:rgba(249,94,47,.92);
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
}
#view-customers .v08664-customer-empty strong{
  display:block;
  font-size:15px;
  letter-spacing:-.015em;
}
#view-customers .v08664-customer-empty p{
  max-width:540px;
  margin:7px 0 0;
  color:var(--text-faint);
  font-size:11px;
  line-height:1.55;
}
#view-customers .v08664-empty-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:0 0 auto;
}
#view-customers .v08664-empty-actions button{min-height:38px}

#view-customers .v08664-activity-mini{display:grid;gap:2px}
#view-customers .v08664-activity-mini>div{
  display:grid;
  grid-template-columns:12px minmax(0,1fr);
  gap:9px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.045);
}
#view-customers .v08664-activity-mini>div:last-child{border-bottom:0}
#view-customers .v08664-activity-mini i{
  width:7px;height:7px;border-radius:50%;margin-top:4px;
  background:#F94006;
  box-shadow:0 0 0 4px rgba(249,64,6,.075);
}
#view-customers .v08664-activity-mini strong{display:block;font-size:11px}
#view-customers .v08664-activity-mini small{display:block;margin-top:3px;color:var(--text-faint);font-size:9px;line-height:1.4}
#view-customers .v08664-activity-mini p{color:var(--text-faint);font-size:11px}

#view-customers .v08664-context-card{
  margin-top:14px;
  padding:16px;
  border:1px solid rgba(249,64,6,.20);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(249,64,6,.055),rgba(255,255,255,.014));
}
#view-customers .v08664-context-card small,
#view-customers .v08664-context-card span{
  display:block;
  color:var(--text-faint);
  font-size:10px;
  line-height:1.45;
}
#view-customers .v08664-context-card strong{
  display:block;
  margin:7px 0 5px;
  font-size:15px;
  line-height:1.25;
  word-break:break-word;
}
#view-customers .v08664-context-card b{
  display:block;
  margin:4px 0 7px;
  font-size:21px;
  font-variant-numeric:tabular-nums;
}
#view-customers .v08664-context-card button{
  width:100%;
  margin-top:14px;
  min-height:40px;
}
#view-customers .v08664-aside-block{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.065);
}
#view-customers .v08664-aside-block h4,
#view-customers .v06-akte-aside .inspector-section h4{
  margin:0 0 10px;
  color:rgba(239,240,242,.68);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#view-customers .v06-akte-aside .gx-mini-check{
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.045);
}
#view-customers .v06-akte-aside .gx-mini-check span:first-child{
  color:var(--text-faint);
  font-size:9px;
}
#view-customers .v06-akte-aside .gx-mini-check span:last-child{
  color:var(--text);
  font-size:9px;
  font-weight:750;
  text-align:right;
}

#view-customers .v08664-communication-list{display:grid;gap:9px}
#view-customers .v08664-communication-list article{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:15px;
  background:rgba(255,255,255,.015);
}
#view-customers .v08664-communication-list i{
  width:42px;height:42px;display:grid;place-items:center;
  border-radius:12px;background:rgba(249,64,6,.08);color:#ff7650;
  font-style:normal;font-weight:900;
}
#view-customers .v08664-communication-list strong{display:block;font-size:12px}
#view-customers .v08664-communication-list span{display:block;margin-top:4px;color:var(--text-muted);font-size:11px;line-height:1.5}
#view-customers .v08664-communication-list small{display:block;margin-top:6px;color:var(--text-faint);font-size:9px}

#view-customers .v08664-timeline{position:relative;display:grid;gap:0;padding-left:3px}
#view-customers .v08664-timeline:before{
  content:"";position:absolute;left:10px;top:9px;bottom:9px;width:1px;background:rgba(255,255,255,.07);
}
#view-customers .v08664-timeline article{
  position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:11px;
  align-items:start;padding:11px 2px;
}
#view-customers .v08664-timeline i{
  width:9px;height:9px;border-radius:50%;margin:4px 0 0 3px;z-index:1;
  background:#F94006;box-shadow:0 0 0 5px rgba(33,36,39,.96);
}
#view-customers .v08664-timeline strong{display:block;font-size:11px}
#view-customers .v08664-timeline span{display:block;margin-top:3px;color:var(--text-faint);font-size:10px;line-height:1.45}
#view-customers .v08664-timeline time{color:var(--text-faint);font-size:9px;white-space:nowrap}

/* Customer document mini-workspace */
#view-customers .v06-akte-grid.documents-mode>.v06-akte-main{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.065);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(33,36,40,.94),rgba(28,31,35,.96));
}
#view-customers .v07-customer-document-layout{
  display:grid;
  grid-template-columns:205px minmax(0,1fr) 330px;
  min-height:590px;
}
#view-customers .v07-customer-document-layout .document-library-nav,
#view-customers .v07-customer-doc-inspector{
  padding:18px;
  background:rgba(255,255,255,.012);
}
#view-customers .v07-customer-document-layout .document-library-nav{border-right:1px solid rgba(255,255,255,.065)}
#view-customers .v07-customer-doc-inspector{border-left:1px solid rgba(255,255,255,.065)}
#view-customers .v07-customer-document-layout .document-library{padding:18px;min-width:0}
#view-customers .v07-customer-document-layout .document-library-nav h3,
#view-customers .v07-customer-doc-inspector .section-title{
  font-size:19px;
  letter-spacing:-.025em;
}
#view-customers .v07-customer-document-layout .document-library-nav button{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  min-height:38px;margin:2px 0;padding:9px 10px;
  border:0;border-radius:10px;background:transparent;color:var(--text-muted);
  text-align:left;font-weight:750;
}
#view-customers .v07-customer-document-layout .document-library-nav button:hover{background:rgba(255,255,255,.025);color:var(--text)}
#view-customers .v07-customer-document-layout .document-library-nav button.active{background:rgba(249,64,6,.075);color:#ffd5c8}
#view-customers .v07-customer-document-layout .document-library .resource-toolbar,
#view-customers .v07-customer-document-layout .document-library .document-toolbar{
  margin-bottom:14px;
}
#view-customers .v07-customer-document-layout .document-library table{font-size:11px}
#view-customers .v07-customer-document-layout .document-library th{
  color:var(--text-faint);font-size:9px;letter-spacing:.06em;text-transform:uppercase;
}
#view-customers .v07-customer-document-layout .document-library td{padding-top:11px;padding-bottom:11px}
#view-customers .v07-customer-document-layout .document-library tr[data-v07-customer-doc-row]{cursor:pointer;transition:background .15s ease}
#view-customers .v07-customer-document-layout .document-library tr.selected-row{background:rgba(249,64,6,.045)}
#view-customers .v07-customer-document-layout .document-library tr.selected-row td:first-child{box-shadow:inset 2px 0 0 #F94006}
#view-customers .v07-customer-doc-inspector .document-preview-frame.compact{
  height:330px;
  margin-top:14px;
  border-radius:14px;
  overflow:auto;
  border:1px solid rgba(255,255,255,.08);
  background:#fff;
  box-shadow:0 16px 34px rgba(0,0,0,.15);
}
#view-customers .v08664-doc-name{
  display:block;margin-top:5px;color:var(--text-faint);font-size:10px;line-height:1.4;word-break:break-word;
}
#view-customers .v08664-cdoc-primary-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 2px;
}
#view-customers .v08664-cdoc-primary-actions button{min-height:40px}
#view-customers .v08664-cdoc-empty{padding:18px 0;color:var(--text-faint);font-size:11px;line-height:1.5}
#view-customers .v07-customer-doc-inspector .inspector-section{
  margin-top:17px;padding-top:15px;border-top:1px solid rgba(255,255,255,.06);
}

/* Full PDF viewer */
#v08664CustomerPdfOverlay{
  position:fixed;inset:0;z-index:12050;
  display:grid;place-items:center;padding:22px;
  background:rgba(5,6,8,.78);
  backdrop-filter:blur(12px);
}
#v08664CustomerPdfOverlay .v08664-cdoc-overlay-card{
  width:min(1380px,96vw);height:min(920px,94vh);
  display:grid;grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:#1c1f23;
  box-shadow:0 40px 120px rgba(0,0,0,.45);
}
#v08664CustomerPdfOverlay header{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:15px 17px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(28,31,35,.98);
}
#v08664CustomerPdfOverlay header>div:first-child{min-width:0}
#v08664CustomerPdfOverlay header small,
#v08664CustomerPdfOverlay header span{display:block;color:rgba(236,237,239,.55);font-size:10px}
#v08664CustomerPdfOverlay header strong{display:block;margin:3px 0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#v08664CustomerPdfOverlay header>div:last-child{display:flex;gap:8px;flex:0 0 auto}
#v08664CustomerPdfOverlay header button{min-height:38px}
#v08664CustomerPdfOverlay main{min-height:0;overflow:auto;background:#111317}
#v08664CustomerPdfOverlay iframe{display:block;width:100%;height:100%;min-height:100%;border:0;background:#fff}
#v08664CustomerPdfOverlay .v08664-cdoc-loading{height:100%;display:grid;place-items:center;color:rgba(255,255,255,.65);font-weight:750}
#v08664CustomerPdfOverlay .v08664-cdoc-loading.error{color:#ff9b82}

@media(max-width:1280px){
  #view-customers .v07-customer-document-layout{grid-template-columns:180px minmax(0,1fr) 300px}
}
@media(max-width:1100px){
  #view-customers .v08664-overview-grid{grid-template-columns:1fr}
  #view-customers .v07-customer-document-layout{grid-template-columns:180px minmax(0,1fr)}
  #view-customers .v07-customer-doc-inspector{grid-column:1/-1;border-left:0;border-top:1px solid rgba(255,255,255,.065)}
}
@media(max-width:760px){
  #view-customers .v08664-akte-head{align-items:flex-start;flex-direction:column}
  #view-customers .v08664-akte-summary{grid-template-columns:1fr 1fr}
  #view-customers .v08664-akte-summary article.contact{grid-column:1/-1}
  #view-customers .v08664-customer-empty{align-items:flex-start;flex-direction:column}
  #view-customers .v07-customer-document-layout{grid-template-columns:1fr}
  #view-customers .v07-customer-document-layout .document-library-nav{border-right:0;border-bottom:1px solid rgba(255,255,255,.065)}
  #view-customers .v07-customer-document-layout .document-library-nav nav{display:flex;gap:4px;overflow:auto}
  #view-customers .v07-customer-document-layout .document-library-nav button{width:auto;white-space:nowrap}
  #v08664CustomerPdfOverlay{padding:0}
  #v08664CustomerPdfOverlay .v08664-cdoc-overlay-card{width:100vw;height:100vh;border-radius:0}
}


/* V0.8.6.65 - unified customer inspector + document workspace */
#view-customers{--v08665-customer-inspector-h:clamp(430px,calc(100vh - 365px),650px)}
#view-customers .v06-akte-grid:not(.documents-mode)>.v06-akte-main{min-height:var(--v08665-customer-inspector-h);height:var(--v08665-customer-inspector-h)}
#view-customers .v06-akte-grid:not(.documents-mode)>.v06-akte-main{overflow:auto}
#view-customers .v08665-cdoc-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;height:var(--v08665-customer-inspector-h);min-height:0}
#view-customers .v08665-cdoc-library{padding:18px;min-width:0;overflow:auto}
#view-customers .v08665-cdoc-inspector{padding:18px;overflow:auto;border-left:1px solid rgba(255,255,255,.065);background:rgba(255,255,255,.012)}
#view-customers .v08665-cdoc-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:13px}
#view-customers .v08665-cdoc-filters{display:flex;gap:5px;flex-wrap:wrap}
#view-customers .v08665-cdoc-filters button{min-height:32px;padding:6px 10px;border-radius:9px;font-size:10px}
#view-customers .v08665-cdoc-filters button.active{background:rgba(249,64,6,.10);border-color:rgba(249,64,6,.26);color:#ffd4c7}
#view-customers tr.selected-record,#view-customers tr.selected-row{background:rgba(249,64,6,.045)!important}
#view-customers tr.selected-record td:first-child,#view-customers tr.selected-row td:first-child{box-shadow:inset 2px 0 0 #F94006}
#view-customers .v08665-cdoc-inspector .document-preview-frame.compact{height:300px;margin-top:12px;border-radius:14px;overflow:auto;border:1px solid rgba(255,255,255,.08);background:#fff}
#view-customers .v08665-cdoc-inspector .document-preview-frame img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
#v08664CustomerPdfOverlay main>img{display:block;max-width:100%;max-height:100%;margin:auto;object-fit:contain}
@media(max-width:1100px){#view-customers .v08665-cdoc-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:760px){#view-customers .v06-akte-grid:not(.documents-mode)>.v06-akte-main,#view-customers .v06-akte-grid:not(.documents-mode)>.v06-akte-aside{height:auto;min-height:0}#view-customers .v08665-cdoc-layout{grid-template-columns:1fr;height:auto}#view-customers .v08665-cdoc-inspector{border-left:0;border-top:1px solid rgba(255,255,255,.065);max-height:620px}}

/* V0.8.6.66 — Kundenakte simplification. Single customer goal, six tabs, one inspector shell. */
#view-customers{--v08666-customer-work-h:clamp(440px,calc(100vh - 360px),650px)}
#view-customers .v08666-akte-summary{grid-template-columns:minmax(250px,1.15fr) repeat(3,minmax(0,1fr))!important}
#view-customers .v06-akte-grid{grid-template-columns:minmax(0,1fr) 310px!important;gap:14px!important}
#view-customers .v06-akte-main{height:var(--v08666-customer-work-h)!important;min-height:var(--v08666-customer-work-h)!important;overflow:auto!important;overscroll-behavior:contain}
#view-customers .v06-akte-aside{position:sticky;top:18px}
#view-customers .v08666-overview-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#view-customers .v08666-overview-goals>section{min-width:0;padding:15px;border:1px solid rgba(255,255,255,.065);border-radius:16px;background:rgba(255,255,255,.014)}
#view-customers .v08666-overview-goals>section>small{display:block;margin-bottom:10px;color:var(--text-faint);font-size:8.5px;font-weight:850;letter-spacing:.085em;text-transform:uppercase}
#view-customers .v08666-overview-goals .v08664-customer-empty{min-height:118px;padding:14px}
#view-customers .v08666-overview-goals .v06-record-item{min-height:118px;grid-template-columns:42px minmax(0,1fr);align-content:center}
#view-customers .v08666-overview-goals .v06-record-item>.status{grid-column:1/-1;justify-self:start;margin-left:54px}
#view-customers .v08666-process-tabs{display:flex;gap:5px;margin-bottom:14px;padding:4px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.014);width:max-content;max-width:100%}
#view-customers .v08666-process-tabs button{display:flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:0;border-radius:9px;background:transparent;color:var(--text-muted);font:750 10.5px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}
#view-customers .v08666-process-tabs button.active{background:rgba(255,255,255,.055);color:var(--text)}
#view-customers .v08666-process-tabs span{min-width:18px;height:18px;display:grid;place-items:center;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.04);color:var(--text-faint);font-size:8px}
#view-customers .v08666-doc-center{display:grid;gap:12px}
#view-customers .v08666-doc-toolbar{display:grid;grid-template-columns:minmax(210px,1fr) auto auto;align-items:center;gap:9px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.06)}
#view-customers .v08666-doc-filter-row{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
#view-customers .v08666-doc-filter-row button{display:flex;align-items:center;gap:5px;min-height:31px;padding:6px 9px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(255,255,255,.018);color:var(--text-muted);font:720 9px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}
#view-customers .v08666-doc-filter-row button.active{border-color:rgba(249,64,6,.28);background:rgba(249,64,6,.08);color:#ffd3c6}
#view-customers .v08666-doc-filter-row b{font-size:8px;color:var(--text-faint)}
#view-customers .v08666-doc-list{display:grid;gap:7px}
#view-customers .v08666-doc-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;min-height:64px;padding:10px 11px;border:1px solid rgba(255,255,255,.065);border-radius:13px;background:rgba(255,255,255,.014);color:inherit;text-align:left;cursor:pointer}
#view-customers .v08666-doc-row:hover{border-color:rgba(249,64,6,.20);background:rgba(255,255,255,.026)}
#view-customers .v08666-doc-row.selected{border-color:rgba(249,64,6,.28);box-shadow:inset 2px 0 0 #F94006;background:rgba(249,64,6,.035)}
#view-customers .v08666-doc-row .file-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:rgba(249,64,6,.08);color:#ff7852;font-size:8px;font-weight:900}
#view-customers .v08666-doc-copy{min-width:0}.v08666-doc-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px}.v08666-doc-copy small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-faint);font-size:9px}
#view-customers .v08666-doc-meta{display:flex;align-items:center;gap:8px}.v08666-doc-meta>b{font-size:9px;color:var(--text-muted)}
#view-customers .v06-akte-aside .document-preview-frame.compact,#view-documents .document-inspector .document-preview-frame{height:245px;margin-top:13px;border-radius:13px;overflow:auto;border:1px solid rgba(255,255,255,.08);background:#fff}
#view-customers .v06-akte-aside .document-preview-frame.compact img{width:100%;height:100%;object-fit:contain;background:#fff}

/* V0.8.6.79 — the global document library uses the page scroll and canonical files. */
#view-documents .document-os-layout{grid-template-columns:220px minmax(0,1fr) 300px!important;align-items:start;min-width:0;max-width:100%}
#view-documents .document-os-layout>.surface{min-width:0;max-width:100%;box-sizing:border-box}
#view-documents .document-library-nav,#view-documents #documentInspector{position:sticky!important;top:78px!important;align-self:start;height:max-content;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;grid-column:auto}
#view-documents .document-library{overflow:visible}
#view-documents .document-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#view-documents .document-table-scroll:focus-visible{outline:2px solid var(--tx-accent);outline-offset:2px}
#view-documents .document-table{min-width:1000px;width:100%}
#view-documents .document-table :is(th,td){white-space:nowrap}
#view-documents .document-library>.panel-head{flex-wrap:wrap;gap:8px}
#view-documents .document-pagination{flex-wrap:wrap;gap:8px}
@media(max-width:1250px){#view-documents .document-os-layout{grid-template-columns:220px minmax(0,1fr)!important}#view-documents #documentInspector{grid-column:2}}
/* The legacy narrow layout hid the library. Keep its navigation alongside the
   workspace; only the existing table scroller owns the table's minimum width. */
#view-documents .document-library-nav{display:block!important}
@media(max-width:800px){#view-documents .document-os-layout{grid-template-columns:minmax(0,1fr)!important}#view-documents #documentInspector{grid-column:auto}#view-documents .document-library-nav{position:static!important}}
#view-documents .document-preview-frame iframe,#view-documents .document-preview-frame img{display:block;width:100%;height:100%;border:0;object-fit:contain;background:#fff}
#view-documents .v08667-doc-preview-loading,#view-documents .v07-doc-empty-preview{display:grid;place-items:center;height:100%;padding:24px;text-align:center;color:#4b4f56;background:#f5f5f3}
#view-customers .v08666-activity-actions{display:flex;gap:8px;justify-content:flex-end;margin-bottom:11px}
#view-customers .v08664-timeline article.latest i{animation:v08666TimelinePulse 1.9s ease-out infinite}
@keyframes v08666TimelinePulse{0%,100%{box-shadow:0 0 0 5px rgba(33,36,39,.96),0 0 0 0 rgba(249,64,6,.26)}55%{box-shadow:0 0 0 5px rgba(33,36,39,.96),0 0 0 8px rgba(249,64,6,0)}}
#view-customers .v08666-aside-action{width:100%;min-height:40px;margin-top:12px}
#view-customers .v08664-context-actions{display:grid;grid-template-columns:1fr;gap:7px}
@media(max-width:1250px){#view-customers .v08666-overview-goals{grid-template-columns:1fr}#view-customers .v08666-akte-summary{grid-template-columns:1fr 1fr!important}#view-customers .v08666-akte-summary .contact{grid-column:1/-1}}
@media(max-width:900px){#view-customers .v06-akte-grid{grid-template-columns:1fr!important}#view-customers .v06-akte-main,#view-customers .v06-akte-aside{height:auto!important;min-height:0!important}#view-customers .v06-akte-aside{position:static}#view-customers .v08666-doc-toolbar{grid-template-columns:1fr}#view-customers .v08666-doc-filter-row{justify-content:flex-start}}

/* V0.8.6.67 — final customer cleanup: separate Kommunikation/Aktivität,
   readable notes, exact file previews and reusable Traxtic e-mail signature. */
#view-customers .v08667-doc-center{display:grid;gap:12px}
#view-customers .v08667-doc-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) auto auto;align-items:center;gap:10px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.06)}
#view-customers .v08667-doc-filter-row{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
#view-customers .v08667-doc-filter-row button{display:flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid rgba(255,255,255,.075);border-radius:9px;background:rgba(255,255,255,.018);color:var(--text-muted);font:720 9.5px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}
#view-customers .v08667-doc-filter-row button.active{border-color:rgba(249,64,6,.34);background:rgba(249,64,6,.09);color:#fff}
#view-customers .v08667-doc-filter-row button b{min-width:18px;height:18px;display:grid;place-items:center;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.05);color:var(--text-faint);font-size:8px}
#view-customers .v08667-doc-filter-row button.active b{background:rgba(249,64,6,.16);color:#ffb29b}
#view-customers .v08667-doc-list{display:grid;gap:7px}
#view-customers .v08667-doc-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;min-height:64px;padding:10px 11px;border:1px solid rgba(255,255,255,.065);border-radius:13px;background:rgba(255,255,255,.014);color:inherit;text-align:left;cursor:pointer}
#view-customers .v08667-doc-row:hover{border-color:rgba(249,64,6,.20);background:rgba(255,255,255,.026)}
#view-customers .v08667-doc-row.selected{border-color:rgba(249,64,6,.30);box-shadow:inset 2px 0 0 #F94006;background:rgba(249,64,6,.035)}
#view-customers .v08667-doc-row .file-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:rgba(249,64,6,.08);color:#ff7852;font-size:8px;font-weight:900}
#view-customers .v08667-doc-copy{min-width:0}
#view-customers .v08667-doc-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px}
#view-customers .v08667-doc-copy small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-faint);font-size:9px}
#view-customers .v08667-doc-meta{display:flex;align-items:center;gap:8px}
#view-customers .v08667-doc-meta>b{font-size:9px;color:var(--text-muted)}
#view-customers .v08667-doc-preview-loading{height:100%;min-height:190px;display:grid;place-content:center;gap:5px;text-align:center;background:#fff;color:#1b1d20}
#view-customers .v08667-doc-preview-loading strong{font-size:11px}
#view-customers .v08667-doc-preview-loading span{font-size:9px;color:#777}

#view-customers .v08667-communication-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:2px 0 13px;border-bottom:1px solid rgba(255,255,255,.06)}
#view-customers .v08667-communication-head>div:first-child{display:grid;gap:4px}
#view-customers .v08667-communication-head strong{font-size:12px}
#view-customers .v08667-communication-head span{font-size:9px;color:var(--text-faint)}
#view-customers .v08667-communication-head>div:last-child{display:flex;gap:8px}
#view-customers .v08667-communication-list{display:grid;gap:7px;margin-top:12px}
#view-customers .v08667-communication-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;width:100%;min-height:66px;padding:10px 12px;border:1px solid rgba(255,255,255,.065);border-radius:13px;background:rgba(255,255,255,.013);color:inherit;text-align:left;cursor:pointer}
#view-customers .v08667-communication-row:hover{border-color:rgba(249,64,6,.22);background:rgba(255,255,255,.024)}
#view-customers .v08667-communication-row>i{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;font-style:normal;font-size:10px;font-weight:900;background:rgba(249,64,6,.08);color:#ff7048}
#view-customers .v08667-communication-row>i.note{background:rgba(255,255,255,.05);color:#d8d9dc}
#view-customers .v08667-communication-row>span{min-width:0}
#view-customers .v08667-communication-row strong{display:block;font-size:11px}
#view-customers .v08667-communication-row small{display:block;margin-top:4px;color:var(--text-faint);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08667-communication-row em{font-style:normal;color:var(--text-faint);font-size:8.5px;white-space:nowrap}

#view-customers .v08667-timeline{display:grid;position:relative;padding:3px 0 4px}
#view-customers .v08667-timeline:before{content:"";position:absolute;left:9px;top:12px;bottom:13px;width:1px;background:rgba(255,255,255,.075)}
#view-customers .v08667-timeline-row{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:54px;padding:7px 8px 7px 0;border:0;border-bottom:1px solid rgba(255,255,255,.045);background:transparent;color:inherit;text-align:left}
#view-customers .v08667-timeline-row[data-v08667-activity-id]{cursor:pointer}
#view-customers .v08667-timeline-row[data-v08667-activity-id]:hover{background:rgba(255,255,255,.012)}
#view-customers .v08667-timeline-row>i{z-index:1;width:8px;height:8px;margin-left:5px;border-radius:50%;background:#F94006;box-shadow:0 0 0 4px rgba(33,36,39,.98),0 0 9px rgba(249,64,6,.22);animation:v08667TimelinePulse 2.6s ease-in-out infinite}
#view-customers .v08667-timeline-row:nth-child(2n)>i{animation-delay:.35s}
#view-customers .v08667-timeline-row:nth-child(3n)>i{animation-delay:.7s}
#view-customers .v08667-timeline-row.kind-rechnung>i{background:#F94006}
#view-customers .v08667-timeline-row.kind-dokument>i{background:#f59d79}
#view-customers .v08667-timeline-row.kind-kommunikation>i,#view-customers .v08667-timeline-row.kind-notiz>i{background:#f6b59e}
#view-customers .v08667-timeline-row.kind-termin>i{background:#e7825d}
#view-customers .v08667-timeline-row>span{min-width:0}
#view-customers .v08667-timeline-row strong{display:block;font-size:10.5px}
#view-customers .v08667-timeline-row small{display:block;margin-top:4px;color:var(--text-faint);font-size:8.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08667-timeline-row time{color:var(--text-faint);font-size:8.5px;white-space:nowrap}
@keyframes v08667TimelinePulse{0%,100%{box-shadow:0 0 0 4px rgba(33,36,39,.98),0 0 0 0 rgba(249,64,6,.20)}50%{box-shadow:0 0 0 4px rgba(33,36,39,.98),0 0 0 6px rgba(249,64,6,0)}}
#view-customers .v08667-activity-aside{display:grid;gap:5px;margin-top:12px;padding:13px;border:1px solid rgba(249,64,6,.18);border-radius:13px;background:rgba(249,64,6,.025)}
#view-customers .v08667-activity-aside strong{font-size:12px}
#view-customers .v08667-activity-aside span{font-size:9px;color:var(--text-faint);line-height:1.45}

.v08667-communication-detail{display:grid;gap:14px}
.v08667-detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v08667-detail-meta span{display:grid;gap:4px;padding:10px 11px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.018);font-size:10px}
.v08667-detail-meta b{color:var(--text-faint);font-size:8px;text-transform:uppercase;letter-spacing:.07em}
.v08667-detail-body{min-height:130px;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.015);font-size:11px;line-height:1.6;white-space:normal}
.v08667-detail-attachments{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.v08667-detail-attachments strong{width:100%;font-size:9px;color:var(--text-faint)}
.v08667-detail-attachments span{padding:7px 9px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(255,255,255,.018);font-size:9px}

.v08667-email-attachment-field input[type=file]{padding:7px!important}
.v08667-email-attachment-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.v08667-email-attachment-list>span{display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(255,255,255,.018);font-size:9px}
.v08667-email-attachment-list small{color:var(--text-faint)}
.v08667-signature-preview{max-height:190px;overflow:auto;background:#fff!important;color:#111!important}
.v08667-field-help{display:block;margin-top:5px;color:var(--text-faint);font-size:8.5px;line-height:1.4}

@media(max-width:980px){#view-customers .v08667-doc-toolbar{grid-template-columns:1fr}#view-customers .v08667-doc-filter-row{justify-content:flex-start}.v08667-detail-meta{grid-template-columns:1fr}}
@media(max-width:760px){#view-customers .v08667-communication-head{align-items:flex-start;flex-direction:column}#view-customers .v08667-communication-row{grid-template-columns:38px minmax(0,1fr)}#view-customers .v08667-communication-row em{grid-column:2}#view-customers .v08667-timeline-row{grid-template-columns:20px minmax(0,1fr)}#view-customers .v08667-timeline-row time{grid-column:2}}
/* V0.8.6.70 - final customer activity + canonical document viewer */
#view-customers .v08670-customer-timeline{display:flex;flex-direction:column;gap:0;padding:4px 0}
#view-customers .v08670-customer-event{appearance:none;width:100%;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.07);border-radius:0;display:grid;grid-template-columns:150px 16px minmax(0,1fr) 90px;gap:10px;align-items:center;text-align:left;padding:14px 8px;color:inherit;cursor:pointer}
#view-customers .v08670-customer-event:hover{background:rgba(255,255,255,.025)}
#view-customers .v08670-customer-event .gx-event-time{font-size:10px;color:var(--text-muted,#8d9198)}
#view-customers .v08670-customer-event .gx-event-dot{width:8px;height:8px;border-radius:50%;display:block;position:relative}
#view-customers .v08670-customer-event .gx-event-dot:before{content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid currentColor;opacity:.18}
#view-customers .v08670-customer-event.latest .gx-event-dot:after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid currentColor;animation:v08670CustomerPulse 1.8s ease-out infinite}
#view-customers .v08670-customer-event.v0732-audit-success .gx-event-dot{background:#6ed7a7;color:#6ed7a7;box-shadow:0 0 10px rgba(110,215,167,.34)}
#view-customers .v08670-customer-event.v0732-audit-info .gx-event-dot{background:#70a9ff;color:#70a9ff;box-shadow:0 0 10px rgba(112,169,255,.30)}
#view-customers .v08670-customer-event.v0732-audit-warning .gx-event-dot{background:var(--accent,#f94006);color:var(--accent,#f94006);box-shadow:0 0 10px rgba(249,64,6,.32)}
#view-customers .v08670-customer-event.v0732-audit-danger .gx-event-dot{background:#ff695f;color:#ff695f;box-shadow:0 0 10px rgba(255,105,95,.34)}
#view-customers .v08670-customer-event strong{display:block;font-size:12px}.v08670-customer-event p{margin:3px 0 0;font-size:10px;color:var(--text-muted,#8d9198)}
#view-customers .v08670-customer-event .gx-event-tag{justify-self:end;font-size:9px;color:var(--text-muted,#8d9198)}
#view-customers .v08670-audit-export{margin-top:12px;width:100%}
@keyframes v08670CustomerPulse{0%{transform:scale(.7);opacity:.55}70%,100%{transform:scale(2);opacity:0}}
#v08664CustomerPdfOverlay .v08664-cdoc-overlay-card>header>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#v08664CustomerPdfOverlay main:fullscreen{background:#1d1f22;padding:18px}
#v08664CustomerPdfOverlay main:fullscreen iframe,#v08664CustomerPdfOverlay main:fullscreen img{width:100%;height:100%;object-fit:contain}
@media(max-width:1100px){#view-customers .v08670-customer-event{grid-template-columns:115px 14px minmax(0,1fr)}#view-customers .v08670-customer-event .gx-event-tag{display:none}}

/* V0.8.6.70 final customer closure */
#view-customers .v08666-akte-summary{gap:12px!important;grid-template-columns:1.25fr 1.05fr 1.05fr 1.05fr!important}
#view-customers .v08666-akte-summary article{min-height:92px!important;padding:17px 18px!important;display:grid!important;grid-template-rows:auto 1fr auto!important;align-content:start!important;border:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018))!important}
#view-customers .v08666-akte-summary article small{font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--text-faint)!important;font-weight:700!important}
#view-customers .v08666-akte-summary article strong{font-size:19px!important;line-height:1.18!important;margin-top:7px!important;color:var(--text)!important;font-weight:800!important}
#view-customers .v08666-akte-summary article.contact strong{font-size:15px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#view-customers .v08666-akte-summary article span{font-size:12px!important;color:var(--text-muted)!important;margin-top:5px!important;line-height:1.3!important}
#view-customers .v06-akte-grid{align-items:start!important;min-height:0!important}
#view-customers .v06-akte-main{max-height:calc(100vh - 318px)!important;height:clamp(440px,calc(100vh - 318px),680px)!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
#view-customers .v06-akte-aside{position:sticky!important;top:14px!important;align-self:start!important}
#view-customers .v08667-doc-center{min-height:0!important}
#view-customers .v07-document-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#view-customers .v07-document-actions .danger{grid-column:1/-1!important}
#view-customers .v08667-communication-head{align-items:center!important}
#view-customers .v08667-signature-preview{max-height:186px!important;overflow:auto!important;background:#fff!important;border-radius:10px!important}
#view-customers .v08667-email-attachment-list{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-top:8px!important}
#view-customers .v08667-email-attachment-list>span{display:flex!important;gap:8px!important;align-items:center!important;padding:7px 10px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:rgba(255,255,255,.03)!important}
@media(max-width:1100px){#view-customers .v08666-akte-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}#view-customers .v06-akte-main,#view-customers .v06-akte-aside{height:auto!important;max-height:none!important;position:static!important}}

/* V0.8.6.71 — Customer closure */
#view-customers .v08666-akte-summary article{min-height:104px!important;padding:16px 18px!important;transition:border-color .18s ease,transform .18s ease,background .18s ease!important;overflow:hidden!important}
#view-customers .v08666-akte-summary article:hover{transform:translateY(-1px);border-color:rgba(249,64,6,.28)!important;background:linear-gradient(180deg,rgba(249,64,6,.045),rgba(255,255,255,.018))!important}
#view-customers .v08666-akte-summary article strong{font-size:15px!important;line-height:1.22!important;margin-top:6px!important;font-weight:750!important}
#view-customers .v08666-akte-summary article.contact strong{font-size:14px!important}
#view-customers .v08666-akte-summary article span{font-size:10.5px!important;line-height:1.35!important;margin-top:5px!important}
#view-customers .v06-akte-main{height:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;scrollbar-gutter:auto!important}
#view-customers .v06-akte-aside{position:sticky!important;top:14px!important;height:auto;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto}
#view-customers .v08671-overview-snapshot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#view-customers .v08671-overview-snapshot>section{min-height:156px;padding:16px;border:1px solid rgba(255,255,255,.085);border-radius:15px;background:rgba(255,255,255,.018);display:flex;flex-direction:column;gap:9px}
#view-customers .v08671-overview-snapshot>section>small{text-transform:uppercase;letter-spacing:.08em;color:var(--text-faint);font-weight:800;font-size:9px}
#view-customers .v08671-overview-snapshot>section>strong{font-size:18px}
#view-customers .v08671-overview-snapshot>section>span,#view-customers .v08671-overview-snapshot>section>p{margin:0;color:var(--text-muted);font-size:10px}
.v08667-detail-attachments{display:grid!important;grid-template-columns:1fr!important}
.v08671-attachment{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center;padding:8px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.018)}
.v08671-attachment>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v08671-email-wide{width:min(560px,96vw)!important;max-width:560px!important}
.v08671-email-wide .modal-body,.v08671-email-wide .action-modal-body{overflow:auto!important}
@media(max-width:760px){#view-customers .v08671-overview-snapshot{grid-template-columns:1fr}.v08671-attachment{grid-template-columns:1fr 1fr}.v08671-attachment>span{grid-column:1/-1}}

#txiPanel.v08671-email-wide,.txi-panel.v08671-email-wide{width:min(560px,calc(100vw - 28px))!important}
#actionModal.v08671-email-wide .action-modal-card,.action-modal.v08671-email-wide .action-modal-card{width:min(560px,calc(100vw - 28px))!important}
#txiPanel.v08671-email-wide .txi-body{overscroll-behavior:auto!important}


/* V0.8.6.72 — Kundenakte operational redesign
   Inspired by Vorgangsakte information architecture, not its visual markup. */
#view-customers .v08672-akte-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:22px!important;margin:0 0 12px!important;padding:0 2px!important}
#view-customers .v08672-akte-head .section-kicker{margin-top:12px}
#view-customers .v08672-akte-head h1{font-size:clamp(31px,2.6vw,42px)!important;line-height:1.02!important;margin:7px 0 0!important;letter-spacing:-.035em!important;text-shadow:none!important}
#view-customers .v08672-akte-head p{margin-top:6px!important;font-size:10.5px!important;color:var(--text-muted)!important}
#view-customers .v08672-head-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
#view-customers .v08672-head-actions button{min-height:38px!important;padding:8px 12px!important;font-size:10.5px!important}
#view-customers .v08672-back{min-height:30px!important;padding:5px 9px!important;font-size:9.5px!important;color:var(--text-muted)!important}
#view-customers .v08672-customer-commandbar{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,2.1fr);gap:10px;margin:0 0 12px;padding:9px;border:1px solid rgba(255,255,255,.075);border-radius:16px;background:rgba(26,29,32,.76);box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
#view-customers .v08672-customer-contact{min-width:0;padding:10px 12px;border-right:1px solid rgba(255,255,255,.06);display:grid;gap:3px;align-content:center}
#view-customers .v08672-customer-contact small,#view-customers .v08672-customer-command-metrics small{font-size:8px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-faint);font-weight:800}
#view-customers .v08672-customer-contact strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08672-customer-contact span{font-size:9.5px;color:var(--text-muted)}
#view-customers .v08672-customer-command-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#view-customers .v08672-customer-command-metrics>button{border:0;border-radius:11px;background:transparent;color:var(--text);text-align:left;padding:8px 11px;display:grid;gap:2px;cursor:pointer;transition:background .15s ease,border-color .15s ease}
#view-customers .v08672-customer-command-metrics>button:hover{background:rgba(255,255,255,.035)}
#view-customers .v08672-customer-command-metrics strong{font-size:14px;line-height:1.15}
#view-customers .v08672-customer-command-metrics span{font-size:8.8px;color:var(--text-muted)}
#view-customers .v08672-customer-overview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:12px}
#view-customers .v08672-customer-focus,#view-customers .v08672-customer-path,#view-customers .v08672-customer-signals,#view-customers .v08672-customer-activity{border:1px solid rgba(255,255,255,.085);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.023),rgba(255,255,255,.014));box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
#view-customers .v08672-customer-focus{padding:16px;display:grid;gap:14px;background:linear-gradient(135deg,rgba(249,64,6,.05),rgba(255,255,255,.018) 48%,rgba(255,255,255,.012))}
#view-customers .v08672-customer-focus-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
#view-customers .v08672-customer-focus-head>div{display:grid;gap:4px}
#view-customers .v08672-customer-focus small,#view-customers .v08672-block-head small,#view-customers .v08672-customer-signals small,#view-customers .v08672-customer-next small{font-size:8px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-faint);font-weight:800}
#view-customers .v08672-customer-focus-head strong{font-size:17px;letter-spacing:-.015em}
#view-customers .v08672-customer-next{display:grid;gap:4px;padding:11px 12px;border:1px solid rgba(255,255,255,.065);border-radius:11px;background:rgba(0,0,0,.09)}
#view-customers .v08672-customer-next strong{font-size:13px}
#view-customers .v08672-customer-focus-actions{display:flex;gap:7px;flex-wrap:wrap}
#view-customers .v08672-customer-focus-actions button{min-height:34px;padding:7px 10px;font-size:9.5px}
#view-customers .v08672-customer-path{grid-column:1/-1;padding:14px 15px}
#view-customers .v08672-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#view-customers .v08672-block-head>div{display:grid;gap:3px}
#view-customers .v08672-block-head strong{font-size:12.5px}
#view-customers .v08672-block-head>span{font-size:9px;color:var(--text-muted)}
#view-customers .v08672-customer-stages{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center}
#view-customers .v08672-customer-stage{min-width:0;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;padding:9px 10px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.014);color:var(--text);text-align:left;cursor:pointer}
#view-customers .v08672-customer-stage:hover{border-color:rgba(249,64,6,.25);background:rgba(249,64,6,.025)}
#view-customers .v08672-customer-stage>i{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-style:normal;font-size:8px;font-weight:900;background:rgba(255,255,255,.05);color:var(--text-muted)}
#view-customers .v08672-customer-stage.done>i{background:rgba(84,194,143,.12);color:#75d9a9;border:1px solid rgba(84,194,143,.18)}
#view-customers .v08672-customer-stage.active{border-color:rgba(249,64,6,.3);background:rgba(249,64,6,.035)}
#view-customers .v08672-customer-stage.active>i{background:rgba(249,64,6,.13);color:#ff8f6b}
#view-customers .v08672-customer-stage span{min-width:0;display:grid;gap:2px}
#view-customers .v08672-customer-stage small{font-size:7.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-faint)}
#view-customers .v08672-customer-stage strong{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08672-customer-stage-link{font-style:normal;color:rgba(255,255,255,.16);font-size:11px}
#view-customers .v08672-customer-signals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:7px;gap:6px}
#view-customers .v08672-customer-signals>button{border:0;border-radius:10px;background:rgba(255,255,255,.012);color:var(--text);text-align:left;padding:11px;display:grid;gap:4px;cursor:pointer;min-height:74px}
#view-customers .v08672-customer-signals>button:hover{background:rgba(255,255,255,.035)}
#view-customers .v08672-customer-signals strong{font-size:12px;line-height:1.2}
#view-customers .v08672-customer-signals span{font-size:8.5px;color:var(--text-muted)}
#view-customers .v08672-customer-activity{padding:14px 15px;grid-column:1/-1}
#view-customers .v08672-customer-activity-row{width:100%;display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 4px;border:0;border-top:1px solid rgba(255,255,255,.055);background:transparent;color:var(--text);text-align:left;cursor:pointer}
#view-customers .v08672-customer-activity-row:hover{background:rgba(255,255,255,.018)}
#view-customers .v08672-customer-activity-row>i{width:7px;height:7px;border-radius:50%;background:#70a9ff;box-shadow:none}
#view-customers .v08672-customer-activity-row>i.success{background:#75d9a9}#view-customers .v08672-customer-activity-row>i.warning{background:var(--accent)}#view-customers .v08672-customer-activity-row>i.danger{background:#ff695f}
#view-customers .v08672-customer-activity-row>span{min-width:0;display:grid;gap:2px}
#view-customers .v08672-customer-activity-row strong{font-size:10px}
#view-customers .v08672-customer-activity-row small{font-size:8.5px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08672-customer-activity-row time{font-size:8px;color:var(--text-faint);font-variant-numeric:tabular-nums}
#view-customers .v08672-customer-aside-focus{display:grid;gap:7px;padding:13px;border:1px solid rgba(249,64,6,.2);border-radius:12px;background:linear-gradient(135deg,rgba(249,64,6,.045),rgba(255,255,255,.012));margin:12px 0 10px}
#view-customers .v08672-customer-aside-focus small{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-faint)}
#view-customers .v08672-customer-aside-focus strong{font-size:13px}
#view-customers .v08672-customer-aside-focus button{margin-top:3px;min-height:34px}
#view-customers .v08672-customer-checks{display:grid;gap:2px;margin-bottom:11px}
#view-customers .v08672-customer-checks .gx-mini-check{width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.055);border-radius:0;background:transparent;color:var(--text);padding:9px 0;display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:9px}
#view-customers .v08672-customer-checks button.gx-mini-check{cursor:pointer}
#view-customers .v08672-customer-checks button.gx-mini-check:hover{color:#fff}
#view-customers .v08672-customer-checks b{font-size:9px;font-weight:750;color:var(--text-muted)}
#view-customers .v08672-customer-checks .ok b{color:#75d9a9}#view-customers .v08672-customer-checks .warn b{color:#ff9b7d}
#view-customers .v08672-customer-empty{min-height:94px!important}
#view-customers .v08672-customer-empty p:empty{display:none!important}
#view-customers .v08672-customer-commandbar + .v06-akte-tabs{margin-top:0}
@media(max-width:1180px){#view-customers .v08672-customer-overview{grid-template-columns:1fr}#view-customers .v08672-customer-signals{grid-template-columns:repeat(4,minmax(0,1fr))}#view-customers .v08672-customer-focus,#view-customers .v08672-customer-signals{grid-column:1/-1}}
@media(max-width:900px){#view-customers .v08672-customer-commandbar{grid-template-columns:1fr}#view-customers .v08672-customer-contact{border-right:0;border-bottom:1px solid rgba(255,255,255,.06)}#view-customers .v08672-customer-stages{grid-template-columns:1fr}.v08672-customer-stage-link{display:none}#view-customers .v08672-customer-signals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){#view-customers .v08672-akte-head{align-items:flex-start!important;flex-direction:column!important}#view-customers .v08672-head-actions{justify-content:flex-start!important}#view-customers .v08672-customer-command-metrics{grid-template-columns:1fr 1fr}#view-customers .v08672-customer-command-metrics>button:last-child{grid-column:1/-1}}

/* V0.8.6.74 — Kundenübersicht rebuilt from the structural grammar of the
   Vorgangsakte: left operational rail + central workspace + right inspector.
   The former V72 dashboard collage is intentionally not used. */
#view-customers .v08674-overview-mode>.v06-akte-main{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#view-customers .v08674-customer-workspace{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:610px}
#view-customers .v08674-customer-rail{padding:15px;align-self:start;min-width:0}
#view-customers .v08674-rail-actions{margin:0 0 18px}
#view-customers .v08674-rail-actions .gx-icon-action:last-child:nth-child(odd){grid-column:1 / -1}
#view-customers .v08674-rail-actions .gx-icon-action{font-size:11px!important;line-height:1.35!important}
#view-customers .v08674-rail-title{margin:16px 0 9px;color:rgba(249,86,37,.9);font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
#view-customers .v08674-flow{display:grid}
#view-customers .v08674-flow-step{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;min-height:46px}
#view-customers .v08674-flow-step:not(:last-child):after{content:"";position:absolute;left:9px;top:20px;bottom:-2px;width:1px;background:rgba(255,255,255,.08)}
#view-customers .v08674-flow-step>i{width:19px;height:19px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:rgba(255,255,255,.025);color:var(--text-faint);font-size:7px;font-style:normal;font-weight:900}
#view-customers .v08674-flow-step.done>i{background:rgba(84,194,143,.12);border-color:rgba(84,194,143,.28);color:#75d9a9}
#view-customers .v08674-flow-step>div{min-width:0;padding-top:1px}
#view-customers .v08674-flow-step strong{display:block;font-size:10px;line-height:1.25}
#view-customers .v08674-flow-step span{display:block;margin-top:3px;color:var(--text-faint);font-size:8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-customer-rail>.gx-mini-check{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:8.5px}
#view-customers .v08674-customer-center{min-width:0;padding:16px;display:grid;gap:12px;align-content:start}
#view-customers .v08674-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#view-customers .v08674-facts>button{min-width:0;min-height:82px;padding:12px;border:1px solid rgba(255,255,255,.075);border-radius:13px;background:rgba(255,255,255,.018);color:var(--text);text-align:left;cursor:pointer;display:grid;align-content:center;gap:4px;transition:.15s ease}
#view-customers .v08674-facts>button:first-child{background:linear-gradient(135deg,rgba(249,64,6,.065),rgba(255,255,255,.018))}
#view-customers .v08674-facts>button:hover{border-color:rgba(249,64,6,.24);background:rgba(255,255,255,.032)}
#view-customers .v08674-facts small,#view-customers .v08674-active-case small,#view-customers .v08674-section-head small,#view-customers .v08674-case-row small{color:var(--text-faint);font-size:7.5px;font-weight:850;letter-spacing:.085em;text-transform:uppercase}
#view-customers .v08674-facts strong{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-facts span{color:var(--text-muted);font-size:8.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-active-case,#view-customers .v08674-recent{border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.014)}
#view-customers .v08674-active-case{padding:15px}
#view-customers .v08674-case-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.06)}
#view-customers .v08674-case-head>div{min-width:0;display:grid;gap:4px}
#view-customers .v08674-case-head strong{font-size:16px;letter-spacing:-.015em}
#view-customers .v08674-case-head span{color:var(--text-muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-case-head button{min-height:36px;padding:7px 12px;font-size:9.5px;flex:0 0 auto}
#view-customers .v08674-case-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
#view-customers .v08674-case-grid>div{min-width:0;padding:10px 11px;border:1px solid rgba(255,255,255,.055);border-radius:11px;background:rgba(0,0,0,.08);display:grid;gap:4px}
#view-customers .v08674-case-grid strong{font-size:10.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-case-grid span{font-size:8.2px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-next-line{margin-top:12px;padding:11px 12px;border:1px solid rgba(249,64,6,.2);border-radius:11px;background:linear-gradient(120deg,rgba(249,64,6,.07),rgba(255,255,255,.01));display:flex;align-items:center;justify-content:space-between;gap:12px}
#view-customers .v08674-next-line span{color:var(--text-faint);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
#view-customers .v08674-next-line strong{font-size:11px}
#view-customers .v08674-recent{padding:14px 15px}
#view-customers .v08674-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
#view-customers .v08674-section-head>div{display:grid;gap:3px}
#view-customers .v08674-section-head strong{font-size:12px}
#view-customers .v08674-activity-row{width:100%;display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 2px;border:0;border-top:1px solid rgba(255,255,255,.05);background:transparent;color:var(--text);text-align:left;cursor:pointer}
#view-customers .v08674-activity-row>i{width:6px;height:6px;border-radius:50%;background:#70a9ff}
#view-customers .v08674-activity-row>i.success{background:#75d9a9}#view-customers .v08674-activity-row>i.warning{background:var(--accent)}#view-customers .v08674-activity-row>i.danger{background:#ff695f}
#view-customers .v08674-activity-row>span{min-width:0;display:grid;gap:2px}
#view-customers .v08674-activity-row strong{font-size:9.6px}
#view-customers .v08674-activity-row small{font-size:8px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-activity-row time{font-size:7.8px;color:var(--text-faint)}

/* Vorgänge is a customer case archive, not three duplicate sub-tabs. */
#view-customers .v08674-case-list{display:grid;gap:8px}
#view-customers .v08674-case-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;padding:8px;border:1px solid rgba(255,255,255,.075);border-radius:14px;background:rgba(255,255,255,.014)}
#view-customers .v08674-case-row.selected{border-color:rgba(249,64,6,.25);background:linear-gradient(120deg,rgba(249,64,6,.035),rgba(255,255,255,.012))}
#view-customers .v08674-case-main{min-width:0;display:grid;grid-template-columns:minmax(145px,.85fr) minmax(200px,1.4fr) minmax(130px,.9fr) minmax(130px,.9fr) minmax(130px,.9fr) minmax(145px,1fr);gap:10px;align-items:center;padding:7px 8px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}
#view-customers .v08674-case-main>span{min-width:0;display:grid;gap:3px}
#view-customers .v08674-case-main b{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-case-main em{font-size:7.8px;color:var(--text-muted);font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-customers .v08674-case-id{grid-template-columns:29px minmax(0,1fr)!important;grid-template-rows:auto auto;column-gap:8px!important}
#view-customers .v08674-case-id>i{grid-row:1/3;width:29px;height:29px;display:grid;place-items:center;border:1px solid rgba(249,64,6,.16);border-radius:9px;background:rgba(249,64,6,.08);color:#ff8c67;font-size:7px;font-style:normal;font-weight:900}
#view-customers .v08674-case-next b{color:#ff9a78}
#view-customers .v08674-open-case{align-self:center;min-height:36px;padding:7px 10px;font-size:9px}

#view-customers .v08674-overview-mode>.v06-akte-aside{top:18px}
#view-customers .v08674-overview-mode .v08672-customer-aside-focus{margin-top:12px}
@media(max-width:1400px){#view-customers .v08674-customer-workspace{grid-template-columns:190px minmax(0,1fr)}#view-customers .v08674-case-main{grid-template-columns:minmax(140px,.9fr) minmax(190px,1.4fr) repeat(3,minmax(110px,.8fr));}.v08674-case-next{display:none!important}}
@media(max-width:1120px){#view-customers .v08674-customer-workspace{grid-template-columns:1fr}#view-customers .v08674-flow{grid-template-columns:repeat(4,1fr);gap:8px}#view-customers .v08674-flow-step{display:grid;grid-template-columns:20px minmax(0,1fr);min-height:auto}#view-customers .v08674-flow-step:after{display:none}#view-customers .v08674-facts,#view-customers .v08674-case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#view-customers .v08674-case-main{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){#view-customers .v08674-facts,#view-customers .v08674-case-grid,#view-customers .v08674-flow{grid-template-columns:1fr}#view-customers .v08674-case-head{align-items:flex-start;flex-direction:column}#view-customers .v08674-case-row{grid-template-columns:1fr}#view-customers .v08674-case-main{grid-template-columns:1fr 1fr}#view-customers .v08674-open-case{width:100%}}


/* V0.8.6.74 — Customer Akte readability + functional journey. */
#view-customers .v08674-customer-workspace{grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:start;min-height:590px}
#view-customers .v08674-customer-rail{padding:15px}
#view-customers .v08674-rail-title{font-size:10px!important;letter-spacing:.1em;margin:18px 0 10px}
#view-customers .v08674-flow{gap:1px}
#view-customers .v08674-flow-step{appearance:none;width:100%;position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 14px;gap:10px;align-items:start;min-height:54px;padding:4px 4px 4px 0;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer;border-radius:10px}
#view-customers .v08674-flow-step:hover{background:rgba(255,255,255,.025)}
#view-customers .v08674-flow-step:disabled{cursor:default;opacity:.68}
#view-customers .v08674-flow-step:not(:last-child):after{left:11px;top:24px;bottom:-4px}
#view-customers .v08674-flow-step>i{width:23px;height:23px;border-radius:8px;font-size:9px}
#view-customers .v08674-flow-step>div{padding-top:1px}
#view-customers .v08674-flow-step strong{font-size:12px!important;line-height:1.3}
#view-customers .v08674-flow-step span{font-size:10px!important;line-height:1.4;margin-top:3px}
#view-customers .v08674-flow-step>b{font-size:16px;line-height:22px;color:var(--text-faint);font-weight:500}
#view-customers .v08674-flow-step:hover>b{color:var(--accent)}
#view-customers .v08674-customer-rail>.gx-mini-check{font-size:10.5px!important;padding:10px 0}
#view-customers .v08674-customer-center{padding:18px;gap:14px}
#view-customers .v08674-facts{gap:10px}
#view-customers .v08674-facts>button{min-height:92px;padding:14px;border-radius:14px;gap:5px}
#view-customers .v08674-facts small,#view-customers .v08674-active-case small,#view-customers .v08674-section-head small,#view-customers .v08674-case-row small{font-size:10px!important;line-height:1.25}
#view-customers .v08674-facts strong{font-size:14px!important;line-height:1.28}
#view-customers .v08674-facts span{font-size:10.5px!important;line-height:1.35}
#view-customers .v08674-active-case{padding:17px;border-radius:16px}
#view-customers .v08674-case-head strong{font-size:19px!important}
#view-customers .v08674-case-head span{font-size:11px!important}
#view-customers .v08674-case-head button{min-height:40px;font-size:11px!important}
#view-customers .v08674-case-grid>div{padding:12px;border-radius:12px;gap:5px}
#view-customers .v08674-case-grid strong{font-size:12.5px!important}
#view-customers .v08674-case-grid span{font-size:10.5px!important}
#view-customers .v08674-next-line{min-height:48px;padding:8px 9px 8px 13px}
#view-customers .v08674-next-line>span{font-size:10px!important}
#view-customers .v08674-next-action{min-height:34px;padding:7px 12px;border:1px solid rgba(249,64,6,.28);border-radius:10px;background:rgba(249,64,6,.11);color:#ff9d7e;font-size:11px!important;font-weight:800;cursor:pointer}
#view-customers .v08674-next-action:hover{background:rgba(249,64,6,.18);color:#fff}
#view-customers .v08674-recent{padding:16px}
#view-customers .v08674-section-head strong{font-size:14px!important}
#view-customers .v08674-activity-row{padding:11px 2px;grid-template-columns:9px minmax(0,1fr) auto;gap:10px}
#view-customers .v08674-activity-row strong{font-size:11.5px!important}
#view-customers .v08674-activity-row small,#view-customers .v08674-activity-row time{font-size:10px!important}
#view-customers .v08674-case-main b{font-size:11.5px!important}
#view-customers .v08674-case-main em{font-size:10px!important}
#view-customers .v08674-open-case{font-size:11px!important}
@media(max-width:1400px){#view-customers .v08674-customer-workspace{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:1120px){#view-customers .v08674-customer-workspace{grid-template-columns:minmax(0,1fr)}#view-customers .v08674-customer-rail{position:static}}

/* V0.8.6.79 — communication actions use the same command-bar logic as Finance filters. */
#view-customers .v08679-communication-controls{min-height:58px;margin:0 0 14px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.015)}
#view-customers .v08679-communication-controls>span{color:var(--text-muted);font-size:11px;font-weight:700}
#view-customers .v08679-communication-controls .page-actions{margin-left:auto;display:flex;gap:8px}
#view-customers .v08679-communication-controls button{min-height:38px;padding:8px 13px;font-size:11px}

/* Communication: keep the established three-column surface without overlap. */
/* Besichtigung is a contextual customer record, not a standalone module. */
.v08679-customer-inspections{display:grid;gap:12px}
.v08679-customer-inspection{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-1)}
.v08679-customer-inspection>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.v08679-customer-inspection>header>div{display:grid;gap:4px}.v08679-customer-inspection>header small,.v08679-customer-inspection>header span{color:var(--text-faint)}
.v08679-inspection-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.v08679-inspection-summary>div{min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--panel-soft)}.v08679-inspection-summary small{color:var(--text-faint);font-weight:760}.v08679-inspection-summary p{margin:6px 0 0;color:var(--text-soft);line-height:1.45}
.v08679-customer-inspection-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}.v08679-customer-inspection-photos button{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:9px;text-align:left;padding:9px;border:1px solid var(--line);border-radius:11px;background:var(--panel-soft);color:var(--text)}.v08679-customer-inspection-photos span{display:grid;place-items:center;width:34px;height:30px;border-radius:8px;background:color-mix(in srgb,var(--accent) 10%,var(--surface-1));color:var(--accent);font-size:9px;font-weight:900}.v08679-customer-inspection>footer{display:flex;justify-content:flex-end}
@media(max-width:820px){.v08679-inspection-summary{grid-template-columns:1fr}}

/* V0.8.6.79 — Besichtigung remains an appointment-owned workspace inside Kundenakte. */
#view-customers .v06-akte-grid.inspections-mode{align-items:start!important}
#view-customers .v06-akte-grid.inspections-mode>.v06-akte-main{align-self:start!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;scrollbar-gutter:auto!important}
#view-customers .v06-akte-grid.inspections-mode>.v06-akte-aside{position:sticky!important;top:14px!important;align-self:start!important;height:fit-content!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;scrollbar-gutter:auto!important}
.v08679-customer-inspection-compact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 14px;width:100%;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-1);color:var(--text);text-align:left;transition:border-color .16s ease,background .16s ease}
.v08679-customer-inspection-compact:hover{border-color:color-mix(in srgb,var(--accent) 35%,var(--line));background:var(--panel-soft)}
.v08679-inspection-compact-main{display:flex;align-items:center;gap:14px;min-width:0}
.v08679-inspection-compact-main>strong{flex:0 0 auto;color:var(--text-soft);font-size:10px}
.v08679-inspection-compact-main>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.v08679-customer-inspection-compact>small{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-faint);font-size:10px}
.v08679-customer-inspection-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.v08679-customer-inspection-form>label{display:grid;align-content:start;gap:7px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--panel-soft)}
.v08679-customer-inspection-form>label>span{color:var(--text-faint);font-size:9px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
.v08679-customer-inspection-form input,.v08679-customer-inspection-form select,.v08679-customer-inspection-form textarea{box-sizing:border-box;width:100%;min-width:0;color:var(--text);border:1px solid var(--line);border-radius:9px;background:var(--surface-1);font:inherit}
.v08679-customer-inspection-form textarea{resize:vertical;line-height:1.42}
.v08679-inspection-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v08679-inspection-assets>section{min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--panel-soft)}
.v08679-inspection-assets>section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.v08679-inspection-assets>section>header>strong{font-size:11px}
.v08679-inspection-assets>section>header>label{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;cursor:pointer}
.v08679-inspection-files{display:grid;gap:7px}
.v08679-inspection-file{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0}
.v08679-inspection-file-open{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid var(--line);border-radius:9px;background:var(--surface-1);color:var(--text);text-align:left}
.v08679-inspection-file-open>span{display:grid;place-items:center;width:32px;height:28px;border-radius:7px;background:color-mix(in srgb,var(--accent) 10%,var(--surface-1));color:var(--accent);font-size:8px;font-weight:900}
.v08679-inspection-file-open>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700}
.v08679-inspection-file-remove{padding:6px;border:0;background:transparent;color:var(--text-faint);font-size:9px;cursor:pointer}
.v08679-inspection-file-remove:hover{color:var(--danger,#d85b51)}
.v08679-inspection-empty-line{margin:2px 0;color:var(--text-faint);font-size:10px}
.v08679-customer-inspection>footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
@media(max-width:1080px){.v08679-customer-inspection-form{grid-template-columns:1fr}.v08679-inspection-assets{grid-template-columns:1fr}}
@media(max-width:900px){#view-customers .v06-akte-grid.inspections-mode>.v06-akte-main,#view-customers .v06-akte-grid.inspections-mode>.v06-akte-aside{position:static!important;top:auto!important;align-self:auto!important}.v08679-customer-inspection>footer>*{flex:1 1 150px}.v08679-inspection-compact-main{align-items:flex-start;flex-direction:column;gap:3px}}

/* V0.8.6.79 — compact customer identity belongs to the contextual inspector. */
#view-customers .v08679-customer-identity{display:grid;gap:4px;margin:0 0 15px;padding:0 0 14px;border-bottom:1px solid var(--line)}
#view-customers .v08679-customer-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:16px;line-height:1.25;font-weight:760}
#view-customers .v08679-customer-identity span{min-width:0;color:var(--text-faint);font-size:9px;line-height:1.4;font-weight:650}
#view-customers .v08679-customer-status-title{margin-bottom:12px}
