/* The contextual help stays beside the user in the header. */
header{position:relative!important}
header .top>.help-fab{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;flex:0 0 var(--pep-icon-button)!important;margin:0!important;z-index:auto!important}
header .top>.help-fab .pep-svg-icon{width:24px;height:24px}
#startMeasures .task.pep-review-task{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center;min-height:88px}
#startMeasures .pep-review-task>.badge,#startMeasures .pep-review-task>h3{grid-column:1;margin-right:0}
#startMeasures .pep-review-action{grid-column:2;grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:5px 8px;white-space:nowrap}
#startMeasures .pep-review-action .pep-svg-icon{width:16px;height:16px}
#startWork .start-ticket[data-request-id],#startWork .start-ticket[data-order-id]{cursor:pointer}
#startWork .start-ticket[data-request-id]:hover,#startWork .start-ticket[data-order-id]:hover{border-color:#91bfe8;background:#f6faff}
#startWork .start-ticket:focus-visible{outline:3px solid #91bfe8;outline-offset:2px}
#orderTaskList .pep-dashboard-target{border-color:#91bfe8;background:#f3f9ff;box-shadow:0 0 0 2px rgba(36,111,186,.15)}
#serviceCollapse.open{padding:58px 13px 13px!important}
#serviceCollapse.open:before{content:"Leistungsposition | Nachtragsposition erfassen";left:0;top:0;right:0;min-height:47px;display:flex;align-items:center;padding:9px 60px 9px 14px;background:#eef3f7;border-radius:11px 11px 0 0;border-bottom:1px solid #d3dee7;font-size:15px}
#serviceCollapse.open>.pep-service-editor-close{top:4px!important;right:7px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
#serviceCollapse.open .field{padding:4px!important}
#measureLv .lvrow:has(>.pep-measure-more-cell){grid-template-columns:75px minmax(220px,1fr) 90px 76px 108px 105px minmax(250px,340px)}
#measureLv .pep-measure-more-cell small{display:block;color:var(--muted);font-size:11px}
#measureLv .pep-measure-more-cell b{display:block;margin-top:3px;color:#9b6500}
#measureLv .lv-preview{display:block;overflow:visible;white-space:pre-line;line-height:1.5}
#measureLv .pep-measure-inline-more{display:inline;border:0;background:none;padding:0;margin:0;color:#176dc1;text-decoration:underline;text-underline-offset:2px;font-weight:700;cursor:pointer}
#lv .pep-compact-place button.pep-icon-only{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:5px!important}
#lv .pep-compact-place button.pep-icon-only:hover{background:#eaf4ff!important}
.pep-notes-side-head .btn.primary{white-space:nowrap}
.pep-note-list-item b{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.pep-note-list-item small{font-size:10px;line-height:1.45;margin-top:5px}
.pep-time-entry-head{min-height:46px;margin-bottom:11px;padding:6px 12px}
.pep-time-entry-head b{font-size:15px}
.pep-time-projects{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px}
.pep-time-project-wrap{position:relative;display:block;min-width:0}
.pep-time-project-wrap .pep-time-project{width:100%;min-height:36px;padding:7px 29px 7px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.pep-time-favorite-remove{position:absolute;right:3px;top:50%;transform:translateY(-50%);border:0;border-radius:6px;background:transparent;color:#688093;font-size:18px;line-height:1;width:25px;height:28px;cursor:pointer}
.pep-time-favorite-remove:hover{background:#e5edf5;color:#b13e3b}
.pep-time-ticks{position:relative;display:block;margin:-4px 24px 24px;height:19px;color:#536677;font-size:10px}
.pep-time-ticks span{position:absolute;top:0;display:block;transform:translateX(-50%)!important;white-space:nowrap;text-align:center}
.pep-time-ticks span:first-child,.pep-time-ticks span:last-child{transform:translateX(-50%)!important}
.pep-time-ticks .pep-time-half-tick{color:#96a8b8;font-size:13px;line-height:12px}
.pep-pause-choice button{min-height:38px;padding:6px 8px}
@media(max-width:1100px){#measureLv .lvrow:has(>.pep-measure-more-cell){grid-template-columns:62px minmax(0,1fr)}#measureLv .pep-measure-more-cell{display:none}#measureLv .lv-preview{display:block;overflow:visible}}
@media(max-width:720px){#serviceCollapse.open{padding:58px 9px 10px!important}#serviceCollapse.open:before{font-size:13px;min-height:48px;padding-left:10px}#serviceCollapse.open .field{padding:6px!important}.pep-time-projects{grid-template-columns:repeat(2,minmax(0,1fr))}.pep-time-ticks{margin-left:22px;margin-right:22px}.pep-time-ticks .pep-time-hour-tick{font-size:8px}.pep-time-ticks .pep-time-half-tick{font-size:11px}.pep-time-entry-head{min-height:46px;margin-bottom:10px}#startMeasures .pep-review-action{font-size:11px}}
#pep-main-more-actions [data-pep-main-view="admin"][hidden]{display:none!important}
#pep-main-more-actions{z-index:200!important}
@media(min-width:721px) and (max-width:1180px){header .top{grid-template-columns:auto minmax(0,1fr) auto 48px;grid-template-areas:"logo brand user help" "nav nav nav nav"}header .top>.help-fab{grid-area:help}.top>.mainnav{grid-template-columns:repeat(7,48px)!important}}
@media(max-width:720px){header .top{grid-template-columns:38px minmax(0,1fr) auto 48px;grid-template-areas:"logo brand user help"}header .top>.help-fab{grid-area:help}.top>.user{max-width:104px}}
@media(max-width:720px){
  #measureLv .lv-preview{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important}
  #measureLv .addline .btn.pep-icon-only{width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important}
  #measureLv .pep-measure-description,#measureLv .pep-measure-entry-cell{min-width:0}
  #measureLv .measure .mi>span:first-child{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:480px){
  #measureLv .pep-mobile-measure-metrics,#measureLv .pep-mobile-measure-metrics.has-price{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #measureLv .pep-mobile-measure-metrics b{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
}
@media(max-width:720px) and (max-height:500px){
  #measureLv .pep-measure-controls{position:relative!important;top:auto!important}
  #pep-main-more-actions{max-height:calc(100dvh - var(--pep-mobile-bar) - 20px)!important;overflow-y:auto!important}
}

/* Langtext im Aufmaß kompakt: 2 Zeilen Vorschau, „mehr“ klappt im Feld auf (V10.3) */
#measureLv .lv-preview.pep-longtext{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;white-space:normal!important;margin:3px 0 0!important;line-height:1.4!important;font-size:11px!important;color:#647382;max-width:760px}
#measureLv .lv-preview.pep-longtext.open{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;white-space:pre-line!important}
#measureLv .pep-measure-inline-more{display:inline-block;margin:2px 0 0;padding:0;border:0;background:none;color:var(--navy,#1d4f7a);font-size:11px;font-weight:600;text-decoration:underline;cursor:pointer}
#measureLv .pep-measure-description > b{display:inline}#measureLv .pep-measure-description > .tiny.pep-measure-inline-more{display:inline-block!important}

/* Leistungs-/Nachtragsposition erfassen: filigraner und kompakter (V10.4) */
#serviceCollapse.open{padding:62px 14px 14px!important;border-radius:12px!important}
#serviceCollapse.open:before{min-height:40px!important;padding:8px 56px 8px 14px!important;font-size:14px!important;font-weight:650;letter-spacing:.01em}
#serviceCollapse.open>.pep-service-editor-close{top:4px!important;right:6px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:8px!important}
#serviceCollapse.open .pep-v710-service-grid{display:grid!important;grid-template-columns:minmax(220px,2.2fr) minmax(150px,1.3fr) 96px 96px!important;gap:8px 10px!important;align-items:end}
#serviceCollapse.open .field{padding:0!important;margin:0!important;min-width:0}
#serviceCollapse.open .field label{display:block;margin:0 0 3px!important;font-size:10px!important;font-weight:650;letter-spacing:.06em;color:#6a7784}
#serviceCollapse.open .field input:not([type=file]),#serviceCollapse.open .field select{height:34px!important;min-height:34px!important;padding:6px 10px!important;font-size:13px!important;border-radius:8px!important;width:100%;box-sizing:border-box}
#serviceCollapse.open .field.wide{grid-column:1/-1}
#serviceCollapse.open .field.service-photo-row{grid-column:1/3!important}
#serviceCollapse.open .field.service-photo-row input[type=file]{width:100%;height:34px;padding:4px 6px!important;font-size:12px!important;border:1px dashed #c9d5df;border-radius:8px;background:#fafcfd;box-sizing:border-box}
#serviceCollapse.open .field.service-photo-row input[type=file]::file-selector-button{height:24px;margin-right:8px;padding:0 10px;font-size:12px;border:1px solid #c9d5df;border-radius:6px;background:#fff;color:#24435f;cursor:pointer}
#serviceCollapse.open .pep-v710-service-grid>.wide:last-child{grid-column:3/-1!important;display:flex;justify-content:flex-end;align-items:end}
#serviceCollapse.open .pep-v710-service-grid>.wide:last-child .btn{height:34px;min-height:34px;width:100%;justify-content:center;padding:0 10px;font-size:12.5px;border-radius:8px;background:var(--navy,#163a5f);border-color:var(--navy,#163a5f);color:#fff;white-space:nowrap}
#serviceCollapse.open .pep-v710-service-grid>.wide:last-child .btn svg{stroke:#fff}
@media(max-width:900px){
  #serviceCollapse.open .pep-v710-service-grid{grid-template-columns:1fr 1fr!important}
  #serviceCollapse.open .field.service-photo-row,#serviceCollapse.open .pep-v710-service-grid>.wide:last-child{grid-column:1/-1!important}
}
@media(max-width:560px){
  #serviceCollapse.open .pep-v710-service-grid>.field:nth-child(1),#serviceCollapse.open .pep-v710-service-grid>.field:nth-child(2){grid-column:1/-1}
}#serviceCollapse.open .field{border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
#serviceCollapse.open .pep-v710-service-grid>.field.wide:not(.service-photo-row){grid-column:1/-1!important}
#serviceCollapse.open .pep-v710-service-grid>.wide:last-child .btn .pep-button-label{display:inline!important}
#serviceCollapse.open .pep-v710-service-grid>.wide:last-child .btn{gap:6px}
@media(max-width:900px){#serviceCollapse.open .pep-v710-service-grid>.wide:last-child .btn{width:100%!important;min-width:0!important}}#serviceCollapse.open .pep-v710-service-grid>.wide:last-child .btn{flex:1 1 auto!important;width:100%!important;font-size:12.5px!important;padding:0 12px!important;gap:6px!important;height:36px!important}

/* Anfrage-Vorschaubilder in Ticket und Auftragsübersicht (V10.6) */
.pep-captured-thumbs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.pep-captured-thumbs:empty{display:none}
.pep-captured-thumbs img{width:92px;height:70px;object-fit:cover;border-radius:6px;border:1px solid #d6dfe7;background:#fff}
#pepTimeProjects .pep-time-project-entry-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
#pepTimeProjects .pep-time-project-heading{margin:0;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6a7784}
