/* Flow Zeit Kontrolle, responsive Gestaltung 20261023 */
.order-time-entries .tz-note{margin:.25rem 0 .75rem;font-size:.9rem;color:#667085}
#order-form button.primary[type="submit"]{position:static;box-shadow:none}
#flow-time-review.card{display:flex;flex-direction:column;gap:0;min-width:0;margin:16px 0!important;padding:0!important;border:1px solid #d7e4df!important;border-radius:12px!important;overflow:hidden;background:#fff!important}
#flow-time-review *{box-sizing:border-box;min-width:0}
#flow-time-review-details{order:0;border:0!important;padding:0!important;margin:0!important}
#flow-time-review summary{cursor:pointer;list-style:none;font-weight:600}
#flow-time-review summary::-webkit-details-marker{display:none}
#flow-time-review-details>summary{display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:center;gap:6px 10px;position:relative;margin:0!important;padding:14px 44px 14px 16px!important;min-height:50px;font-size:14px!important;line-height:1.5;color:#245b4e;background:#f2f7f5;border:0!important;border-radius:0!important;overflow-wrap:anywhere}
#flow-time-review-details>summary::after{content:'';position:absolute;right:18px;top:20px;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
#flow-time-review-details[open]>summary::after{transform:translateY(4px) rotate(225deg)}
#flow-time-review-count{display:inline-block;font-size:12px;font-weight:600;line-height:1.5;background:#fff;border:1px solid #d3e2db;border-radius:20px;padding:2px 9px;white-space:nowrap}
#flow-time-review .flow-time-toolbar{display:flex;justify-content:flex-end;margin:0;padding:12px 16px;border:0;border-bottom:1px solid #eef1f4;background:none}
#flow-time-review .flow-time-toolbar label{display:flex;align-items:center;gap:10px;margin:0;font-size:12px;color:#667085}
#flow-time-review .flow-time-toolbar select{width:auto;max-width:100%;min-height:40px;font-size:14px!important;padding:8px 10px!important;margin:0}
#flow-time-review-list{padding:0 16px}
#flow-time-review-list>p{margin:0;padding:18px 0;color:#667085;font-size:14px}
#flow-time-review .flow-time-position-list{display:grid;gap:0;margin:0}
#flow-time-review .flow-time-position-list:empty{display:none}
#flow-time-review .flow-time-position-card{padding:0!important;margin:0;border:0;border-bottom:1px solid #e9edf1;border-radius:0;background:transparent;box-shadow:none}
#flow-time-review .flow-time-position-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto 16px;gap:12px;align-items:center;margin:0;padding:12px 0!important;min-height:48px;font-size:13px;line-height:1.5;border:0!important;background:none!important}
#flow-time-review .flow-time-position-summary::after{content:'+';font-size:20px;color:#667085;text-align:center}
#flow-time-review .flow-time-position-card[open]>.flow-time-position-summary::after{content:'−'}
#flow-time-review .flow-time-position-title{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;overflow-wrap:anywhere}
#flow-time-review .flow-time-position-date{font-weight:400;color:#667085}
#flow-time-review .flow-time-position-hours{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
#flow-time-review .flow-time-badge{display:inline-block;margin:0;padding:3px 8px;border-radius:20px;font-size:11px;line-height:1.5;white-space:normal;text-align:center}
#flow-time-review .flow-time-badge.checked{background:#eaf5ed;color:#256544}
#flow-time-review .flow-time-badge.pending{background:#fff3df;color:#885911}
#flow-time-review .flow-time-position-body{padding:4px 0 14px;border-top:1px solid #eef1f4;font-size:13px}
#flow-time-review .flow-time-position-body p{margin:8px 0;font-size:13px}
#flow-time-review .flow-time-position-text{display:block;white-space:pre-line;overflow-wrap:anywhere;margin:10px 0;color:#526477;font-size:13px}
#flow-time-review .flow-time-control-date{display:block;margin:8px 0;font-size:12px;color:#667085}
#flow-time-review .flow-time-difference{color:#885911;font-weight:600}
#flow-time-review .flow-time-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#flow-time-review .flow-time-actions>button,#flow-time-review .flow-time-review-row button,#flow-time-review .flow-time-history-event button{min-height:40px;font-size:12px!important;padding:8px 12px!important;max-width:100%;white-space:normal}
#flow-time-review .flow-time-originals,#flow-time-review .flow-time-history{margin:0;padding:0!important;border:0!important;border-radius:0;background:none;box-shadow:none}
#flow-time-review .flow-time-originals>summary,#flow-time-review .flow-time-history>summary{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:10px 0!important;font-size:12px;line-height:1.5;color:#526477;background:none!important;border:0!important}
#flow-time-review .flow-time-originals>summary::before,#flow-time-review .flow-time-history>summary::before{content:'+';font-size:18px;font-weight:400}
#flow-time-review .flow-time-originals[open]>summary::before,#flow-time-review .flow-time-history[open]>summary::before{content:'−'}
#flow-time-review .flow-time-day{margin:8px 0;padding:0 12px!important;border:1px solid #e4e9ee;border-radius:8px;background:#f8fafb}
#flow-time-review .flow-time-day>summary{min-height:44px;padding:10px 0;font-size:13px;line-height:1.5}
#flow-time-review .flow-time-review-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #e4e9ee;font-size:13px}
#flow-time-review .flow-time-review-row[hidden]{display:none}
#flow-time-review .flow-time-review-row small,#flow-time-review .flow-time-history-event small{display:block;margin-top:5px;white-space:pre-line;overflow-wrap:anywhere;color:#667085}
#flow-time-review .flow-time-review-row select{width:100%;min-width:0;font-size:14px!important}
#flow-time-review .flow-time-review-row button{margin-top:8px}
#flow-time-review .flow-time-history{border-top:1px solid #e9edf1!important}
#flow-time-review .flow-time-history-event{padding:12px 0;border-top:1px solid #eef1f4;font-size:12px}
#flow-time-review .flow-time-history-event button{margin-top:8px}
#flow-time-review .flow-time-review-summary{padding:10px 0}
#flow-time-review button:disabled{opacity:.55}
#flow-time-review .flow-time-open{position:static!important;order:1;align-self:flex-start;margin:0 16px 10px;padding:8px 0!important;min-height:40px;border:0!important;background:transparent!important;box-shadow:none!important;color:#526477!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}
#flow-time-review:not(:has(#flow-time-review-details[open]))>.flow-time-open{display:none}
#flow-time-review-msg:empty{display:none}
#flow-time-review-msg{margin:0;padding:8px 16px;font-size:13px}
#flow-time-review summary:focus-visible{outline:2px solid #39866d;outline-offset:-3px}
@media(max-width:640px){
#flow-time-review-details>summary{font-size:14px!important;padding:12px 40px 12px 12px!important;gap:5px 8px}
#flow-time-review .flow-time-toolbar{padding:10px 12px;justify-content:stretch}
#flow-time-review .flow-time-toolbar label{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;gap:10px}
#flow-time-review .flow-time-toolbar select{width:100%;min-height:44px;font-size:16px!important}
#flow-time-review-list{padding:0 12px}
#flow-time-review .flow-time-position-summary{grid-template-columns:minmax(0,1fr) auto 16px;gap:4px 8px;min-height:64px;padding:12px 0!important}
#flow-time-review .flow-time-position-title{grid-column:1;grid-row:1 / 3;flex-direction:column;align-items:flex-start;gap:2px}
#flow-time-review .flow-time-position-date{font-size:12px}
#flow-time-review .flow-time-position-hours{grid-column:2;grid-row:1;font-size:13px;justify-self:end}
#flow-time-review .flow-time-position-summary>.flow-time-badge{grid-column:2;grid-row:2;justify-self:end;max-width:125px}
#flow-time-review .flow-time-position-summary::after{grid-column:3;grid-row:1 / 3}
#flow-time-review .flow-time-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#flow-time-review .flow-time-actions>button{width:100%;min-height:44px;font-size:13px!important}
#flow-time-review .flow-time-review-row{grid-template-columns:minmax(0,1fr)}
#flow-time-review .flow-time-review-row select{font-size:16px!important;min-height:44px}
#flow-time-review .flow-time-review-row button,#flow-time-review .flow-time-history-event button{min-height:44px;width:100%}
#flow-time-review .flow-time-day{padding:0 10px!important}
#flow-time-review .flow-time-open{margin-left:12px}
}

#flow-time-review-count.flow-time-pending{background:#fff3df;border-color:#ead5aa;color:#885911}
#flow-time-review-count.flow-time-complete{color:#256544}

/* Erfasste Zeiten zuordnen: Auswahlfelder auf schmalen Bildschirmen nicht über den Rand laufen lassen 20261029 */
#order-time-entries{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
#order-time-entries>div{grid-template-columns:minmax(0,1fr)!important;min-width:0}
#order-time-entries label{display:grid;gap:6px;min-width:0;max-width:100%}
#order-time-entries select{display:block;width:100%;max-width:100%;min-width:0;text-overflow:ellipsis}
#order-time-entries button{max-width:100%;min-width:0;white-space:normal;height:auto;text-align:center}
#order-time-entries .hint{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){#order-time-entries select{font-size:16px;min-height:44px}#order-time-entries button{width:100%;min-height:44px}}

/* Speicherstatus bleibt sichtbar und wird nicht in einen Hilfetext umgewandelt. */
.order-save-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:14px 16px;margin:0 0 18px;border:1px solid #d7e3dd;border-radius:10px;background:#f3f8f5;color:#24563f;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.order-save-status[data-state="pending"],.order-save-status[data-state="saving"]{background:#fff8e9;border-color:#ead3a0;color:#775619}
.order-save-status[data-state="error"]{background:#fff0ed;border-color:#e4aba3;color:#962d21}
.order-save-status button[hidden]{display:none}
.order-save-summary{display:block;font-size:13px;line-height:1.45;max-width:650px;overflow-wrap:anywhere}
.order-save-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.flow-time-preview::backdrop{background:rgba(20,38,30,.5)}
.flow-time-preview h2{margin-top:0}.flow-time-preview h3{margin:0 0 10px}.flow-time-preview button{min-height:44px}
@media(max-width:640px){.flow-time-preview{padding:16px!important}.flow-time-preview button{width:100%}.order-save-bar{align-items:stretch;flex-direction:column}.order-save-status{font-size:14px}}
