/* Visual consistency V04–V14, scoped to the affected components. */
body.ge-app #editor .ticket-mail-design-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important}
body.ge-app .ge-color-slots{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body.ge-app .ge-color-slots .ge-color-slot{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex:0 0 32px!important;padding:0!important}
body.ge-app .ge-color-row{grid-template-columns:48px minmax(0,1fr)}
body.ge-app .ge-color-values{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.ge-app .ge-color-values>label:first-child{grid-column:1/-1}
body.ge-app .ge-color-values input{padding:10px 8px!important;min-width:0!important;font-variant-numeric:tabular-nums}
@media(max-width:1100px){body.ge-app #editor .ticket-mail-form{grid-template-columns:minmax(0,1fr)!important}body.ge-app #editor .ticket-mail-preview{position:static!important}}
body.ge-app #app :is(.widget-filter,.calendar-view-switch,.workspace-shift-window,.workspace-tabs,.media-view-toggle,.knowledge-navigation) button{box-shadow:none!important;border-radius:12px!important}
body.ge-app #app :is(.widget-filter,.calendar-view-switch,.workspace-shift-window,.workspace-tabs,.media-view-toggle,.knowledge-navigation) button[aria-pressed=true],body.ge-app #app .widget-filter button.selected{background:color-mix(in srgb,var(--petrol) 18%,var(--white))!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:none!important}
body.ge-app #app :is(.widget-filter,.calendar-view-switch,.workspace-shift-window,.workspace-tabs,.media-view-toggle,.knowledge-navigation) button[aria-pressed=true]::after{box-shadow:none!important;border:0!important}
body.ge-app #app .unified-shop-link{padding:24px!important;display:grid;gap:12px;margin-block:24px}
body.ge-app #app .unified-shop-link :is(h2,p,button){margin:0!important}
body.ge-app #app .unified-shop-link button{justify-self:start;max-width:100%;white-space:normal}
body.ge-app #app details.commerce-details{padding:0!important;margin-block:16px;overflow:hidden}
body.ge-app #app details.commerce-details>summary{padding:18px 20px!important;min-height:56px;box-sizing:border-box;cursor:pointer}
body.ge-app #app details.commerce-details[open]>summary{border-bottom:1px solid var(--line);margin-bottom:16px}
body.ge-app #app details.commerce-details>:not(summary){margin-inline:20px}
body.ge-app #app details.commerce-details>:last-child:not(summary){margin-bottom:20px}
body.ge-app #app .commerce-heading{align-items:start}
body.ge-app #app .commerce-heading>h3{min-width:0;flex:1;overflow-wrap:anywhere}
body.ge-app #app .commerce-heading>.badge{flex:none;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
body.ge-app #app .commerce-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
body.ge-app #app .commerce-filters>label{display:grid!important;gap:8px;margin:0;min-width:0;flex:0 1 240px}
body.ge-app #app :is(.commerce-filters>.commerce-search,.commerce-search){display:grid;gap:8px;min-width:0;flex:1 1 280px}
body.ge-app #app .commerce-filters :is(input,select){width:100%;min-width:0;box-sizing:border-box;margin:0}
body.ge-app #app .goods-page .goods-filters{display:flex;flex-wrap:wrap;width:100%;max-width:none;gap:12px;align-items:end}
body.ge-app #app .goods-page .goods-filters>label:not(.goods-search){flex:0 0 230px;min-width:230px}
body.ge-app #app .goods-page .goods-filters>.goods-search{flex:1 1 300px;width:auto;min-width:230px}
body.ge-app #app .goods-filters select{padding-right:48px!important;background-position:right 18px center!important}
body.ge-app #app .loss-filters{display:flex!important;flex-wrap:wrap;align-items:end;gap:12px}
body.ge-app #app .loss-filters>.month-control{flex:0 1 290px;max-width:100%}
body.ge-app #app .loss-filters>label{flex:0 1 210px;min-width:0}
body.ge-app #app .loss-filters>label:has(input[type=search]){flex:1 1 280px;min-width:min(100%,240px)}
body.ge-app #app .pp-card .pp-actions{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
body.ge-app #app .pp-card .pp-actions>button{flex:1 1 90px;width:auto;min-height:44px}
body.ge-app #app .pp-card .pp-actions>details{flex:0 0 44px;margin:0}
body.ge-app #app .pp-card .pp-actions>details>summary{width:44px;min-width:44px;height:44px;min-height:44px;box-sizing:border-box}
body.ge-app #app .offer-grid{align-items:stretch}
body.ge-app #app .offer-grid>.offer-card{display:flex;flex-direction:column;height:100%;box-sizing:border-box}
body.ge-app #app .offer-card>.template-row-actions{margin-top:auto;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;min-height:60px}
body.ge-app #app .offer-card>.template-row-actions>button{flex:1 1 130px;min-height:44px;width:auto}
body.ge-app #app .offer-card>.template-row-actions>details{flex:0 0 44px;margin:0}
body.ge-app #app .board-column>header{min-height:104px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
body.ge-app #app .board-column>header>div{min-height:42px;align-items:start}
body.ge-app #app .time-person-bottom.approved{color:#24624e}
body.ge-app[data-theme=dark] #app .time-person-bottom.approved,html[data-theme=dark] body.ge-app #app .time-person-bottom.approved,body.ge-app.dark-mode #app .time-person-bottom.approved{color:#b7dfc9!important}
@media(max-width:600px){body.ge-app #app .unified-shop-link{padding:20px!important}body.ge-app #app .goods-page .goods-filters>label,body.ge-app #app .goods-page .goods-filters>.goods-search,body.ge-app #app .commerce-filters>label{flex:1 1 100%;min-width:0;width:100%}body.ge-app #app .loss-filters>label:has(input[type=search]){flex-basis:100%}}

body.ge-app #app .filters .filter>span{opacity:1!important;color:var(--ink)!important;background:color-mix(in srgb,var(--ink) 8%,var(--white))!important;font-size:.8em;font-weight:600;min-width:1.7em;padding:3px 6px;display:inline-block;text-align:center;font-variant-numeric:tabular-nums}
body.ge-app #app .filters .filter.selected>span{color:inherit!important;background:color-mix(in srgb,currentColor 10%,transparent)!important}

/* Match the spectrum controls to the field width, including narrow editor columns. */
body.ge-app .ge-color-panel{container-type:inline-size}
body.ge-app .ge-color-row:has(.ge-color-hex){min-width:0}
body.ge-app #app .knowledge-navigation button[aria-pressed=true]{box-shadow:none!important}
body.ge-app #app .pp-card .pp-actions>button{grid-column:auto!important}
body.ge-app #app .pp-card .pp-actions>details :is(button,a){flex:none}

/* Compact loss month navigation: room for September and a four-digit year. */
body.ge-app #app .loss-filters>.month-control.date-navigation-field{flex:0 0 auto!important;width:max-content!important;grid-template-columns:44px 158px 44px!important;max-width:100%}
body.ge-app #app .loss-filters>.month-control.date-navigation-field input[type=month]{font-variant-numeric:tabular-nums;width:158px!important}
/* Keep the area heading in the same flow as the allocation rows. */
body.ge-app #app .event-guests>legend{float:left;width:100%;margin:0 0 12px;padding:0;line-height:1.5}
body.ge-app #app .event-guests>#allocations{clear:both}
body.ge-app #app .event-guests .event-area-layout:first-child{padding-top:0}
/* Reserve room around the complete selected tab, including its focus outline. */
body.ge-app #app .shift-controls>.widget-filter[aria-label="Dienstplanansicht"]{padding:6px!important;gap:6px!important;overflow:visible;align-items:center}
body.ge-app #app .shift-controls>.widget-filter>[data-shift-view]{box-shadow:none!important;transform:none!important;border:1px solid transparent!important;line-height:1.4;white-space:nowrap}
body.ge-app #app .shift-controls>.widget-filter>[data-shift-view][aria-pressed=true]{border-color:var(--line)!important;box-shadow:none!important}

/* Zoom stays anchored to the visible canvas rather than the page toolbar. */
body.ge-app #app .occupancy-surface.room-surface{position:relative}
body.ge-app #app .occupancy-surface>.room-camera-toolbar{position:absolute;top:12px;right:12px;z-index:3;margin:0;padding:6px;gap:6px;flex-wrap:nowrap;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 2px 8px #0002;max-width:calc(100% - 24px)}
body.ge-app #app .occupancy-surface>.room-camera-toolbar button{padding:8px 10px}
body.ge-app #app .occupancy-surface>.room-camera-toolbar output{color:var(--ink)}
@media(max-width:400px){body.ge-app #app .occupancy-surface>.room-camera-toolbar{top:8px;right:8px;gap:2px;padding:4px;max-width:calc(100% - 16px)}body.ge-app #app .occupancy-surface>.room-camera-toolbar button{padding-inline:8px}body.ge-app #app .occupancy-surface>.room-camera-toolbar output{min-width:48px}}

body.ge-app #app .commerce-filters{margin-bottom:16px}

body.ge-app #app .filters .filter>span{font-size:12px!important;line-height:1.4}
body.ge-app #app .event-guests{margin:0 0 16px!important}
body.ge-app #app .event-guests>legend{margin-bottom:8px!important}
body.ge-app #app .ticket-list-filters :is(input,select){height:46px;min-height:46px;box-sizing:border-box;margin:0}
body.ge-app #app .board-column>header{height:144px;min-height:144px;display:grid;grid-template-rows:minmax(0,1fr) 24px;gap:8px;align-items:start}
body.ge-app #app .board-column>header>div{min-height:0}
body.ge-app #app .board-column>header>p{margin:0;line-height:24px}

body.ge-app #app .offer-card>.template-row-actions{min-height:76px;align-items:stretch}
body.ge-app #app .offer-card>.template-row-actions>button{min-height:60px}

/* Keep week navigation compact and immediately before the view choices. */
@media(min-width:701px){
 body.ge-app #app .shift-controls{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}
 body.ge-app #app .shift-controls>.shift-period.date-navigation-controls{width:max-content!important;flex:0 0 auto!important;margin:0!important;justify-content:flex-start;max-width:100%}
 body.ge-app #app .shift-controls>.shift-period>.date-navigation-field{width:210px!important;flex:0 0 210px!important;grid-template-columns:44px minmax(0,1fr) 44px!important}
 body.ge-app #app .shift-controls>.widget-filter{flex:0 1 auto;margin:0!important}
 body.ge-app #app .shift-controls>.shift-view-picker{display:none!important}
}
/* Contract templates, search and status share one aligned filter row. */
body.ge-app #app .contracts-search{display:grid;grid-template-columns:auto minmax(200px,1fr) minmax(180px,260px);align-items:center;gap:12px;width:100%;max-width:none}
body.ge-app #app .contracts-search>label{margin:0;min-width:0}
body.ge-app #app .contracts-search :is(input,select),body.ge-app #app .contracts-search>button{height:46px;min-height:46px;box-sizing:border-box;margin:0}
body.ge-app #app .contracts-toolbar:not(:has(button)){display:none}
@media(max-width:700px){body.ge-app #app .contracts-search{grid-template-columns:minmax(0,1fr)}body.ge-app #app .contracts-search>button{justify-self:start;max-width:100%}}

body.ge-app #app .template-library-controls{grid-template-columns:minmax(0,1fr);align-items:start;gap:16px}
body.ge-app #app .template-kind-tabs.widget-filter{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;border:0;background:transparent;overflow:visible}
body.ge-app #app .template-kind-tabs>button{min-height:44px;white-space:normal;gap:8px;max-width:100%;margin:0}
body.ge-app #app .template-kind-count{font-size:12px;line-height:1.4;min-width:22px;padding:2px 5px;border-radius:5px;background:color-mix(in srgb,var(--ink) 8%,transparent);color:inherit;font-variant-numeric:tabular-nums}
body.ge-app #app .template-search-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
body.ge-app #app .template-search-row>label{flex:1 1 280px;min-width:0}
body.ge-app #app .template-search-row>button{flex:0 0 auto;min-height:46px;max-width:100%;white-space:normal}
body.ge-app #app .template-library-search input{width:100%;min-width:0}
@media(max-width:600px){body.ge-app #app .template-kind-tabs{gap:6px}body.ge-app #app .template-kind-tabs>button{flex:1 1 145px;padding:10px 12px}body.ge-app #app .template-search-row>label{flex-basis:100%}}

/* One geometry for day, month and week navigation throughout the app. */
body.ge-app :is(#app,#editor) input:is([type=date],[type=month],[type=time],[type=datetime-local]){height:46px;min-height:46px;box-sizing:border-box;border-radius:12px;font-size:16px;font-variant-numeric:tabular-nums;min-width:0}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation){display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center!important;gap:0!important;box-sizing:border-box;width:max-content!important;min-width:0!important;max-width:100%;height:46px!important;min-height:46px!important;padding:0!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--white)!important;color:var(--ink);overflow:hidden}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation)>button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ink)!important;font-size:22px}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation)>label{display:flex!important;align-items:center;justify-content:center;width:auto!important;min-width:0!important;margin:0!important;padding:0!important}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation) input{height:44px!important;min-height:44px!important;margin:0!important;padding:10px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:center;font-size:16px!important;max-width:100%!important}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation):has(input[type=date]){grid-template-columns:44px 144px 44px!important;width:234px!important;flex:0 0 auto!important}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation) input[type=date]{width:144px!important}
html body.ge-app #app .date-navigation-field:has(input[type=month]),html body.ge-app #app .month-navigation-group>.month-control{grid-template-columns:44px 158px 44px!important;width:248px!important;flex:0 0 auto!important}
html body.ge-app #app .date-navigation-field input[type=month]{width:158px!important}
html body.ge-app #app .date-navigation-field:has(>h2),html body.ge-app #app .date-navigation-field:has(>strong):not(:has(.shift-kw-label)){grid-template-columns:44px 158px 44px!important;width:248px!important}
html body.ge-app #app .date-navigation-field>:is(h2,strong){font-size:16px!important;line-height:1.3;padding:4px!important;margin:0!important;min-width:0;text-align:center}
html body.ge-app #app .shift-period>.date-navigation-field{grid-template-columns:44px 122px 44px!important;width:212px!important;flex:0 0 auto!important}
html body.ge-app #app .date-navigation-controls{width:max-content!important;max-width:100%;gap:10px!important;align-items:center!important}
html body.ge-app #app .date-navigation-controls>button{height:46px!important;min-height:46px!important;margin:0!important}
html body.ge-app #app .unified-week-picker,html body.ge-app #app .cake-week-picker{width:max-content!important;flex:0 0 auto!important;max-width:100%}
html body.ge-app #app .toolbar.occupancy-controls{grid-template-columns:max-content 112px auto!important;width:max-content!important;max-width:100%;align-items:end}
html body.ge-app #app .occupancy-controls>label:has([name=occupancy_time]){width:112px!important;min-width:0!important;margin:0}
html body.ge-app #app input[name=occupancy_time]{width:112px!important;min-width:0!important;padding-inline:10px!important}
@media(max-width:640px){html body.ge-app #app .toolbar.occupancy-controls{grid-template-columns:112px auto!important;justify-content:start}html body.ge-app #app .occupancy-controls>.occupancy-date-picker{grid-column:1/-1!important;grid-row:1!important}html body.ge-app #app .occupancy-controls>label:has([name=occupancy_time]){grid-column:1!important;grid-row:2!important}html body.ge-app #app .occupancy-controls>[data-occupancy-now]{grid-column:2!important;grid-row:2!important}}
@media(max-width:360px){html body.ge-app #app .date-navigation-controls{flex-wrap:wrap!important}}

/* Override remaining legacy field radii and flex bases. */
body.ge-app :is(#app,#editor) input:is([type=date],[type=month],[type=time],[type=datetime-local]){border-radius:12px!important;font-size:16px!important}
html body.ge-app #app :is(.date-navigation-field,.unified-week-navigation) input{border-radius:0!important}
html body.ge-app #app .task-date-controls{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;width:max-content;max-width:100%}
html body.ge-app #app .task-date-controls>.date-navigation-field{flex:none!important}
html body.ge-app #app .task-date-controls>[data-task-day-today]{width:auto!important;min-height:46px!important;height:46px!important;margin:0}
html body.ge-app #app .toolbar.occupancy-controls{display:flex!important;align-items:end;flex-wrap:wrap;justify-content:flex-start!important}
html body.ge-app #app .toolbar.occupancy-controls>.occupancy-date-picker{flex:0 0 234px!important;width:234px!important}
html body.ge-app #app .toolbar.occupancy-controls>label:has([name=occupancy_time]){flex:0 0 112px!important;width:112px!important}
html body.ge-app #app .toolbar.occupancy-controls input[name=occupancy_time]{width:112px!important;inline-size:112px!important;min-width:0!important;max-width:112px!important}
html body.ge-app #app :is(.toolbar,.ticket-list-filters) input[type=date]:not(.date-navigation-field input):not(.unified-week-navigation input){width:172px!important;max-width:100%!important}

/* Equal offer tiles across every row, regardless of action count. */
body.ge-app #app #offers-overview .offer-grid{grid-auto-rows:1fr!important;align-items:stretch!important}
body.ge-app #app #offers-overview .offer-grid>.offer-card{align-self:stretch!important;height:100%!important;width:100%;min-width:0;box-sizing:border-box}
/* Three shared address fields, with optional legacy address additions. */
body.ge-app :is(#app,#editor) .ge-address-fields{border:0;padding:0;margin:0 0 16px;min-width:0;grid-column:1/-1}
body.ge-app :is(#app,#editor) .ge-address-fields>legend{float:left;width:100%;padding:0;margin:0 0 10px;font-weight:600;font-size:14px}
body.ge-app :is(#app,#editor) .ge-address-street{clear:both}
body.ge-app :is(#app,#editor) .ge-address-fields label{display:grid;gap:8px;margin:0;min-width:0}
body.ge-app :is(#app,#editor) .ge-address-fields :is(input:not([type=hidden]),textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
body.ge-app :is(#app,#editor) .ge-address-locality{display:grid;grid-template-columns:minmax(100px,.3fr) minmax(0,1fr);gap:12px;margin-top:12px}
body.ge-app :is(#app,#editor) .ge-address-extra{margin-top:12px}
body.ge-app :is(#app,#editor) .ge-address-extra>summary{cursor:pointer;color:var(--muted);font-size:13px;min-height:32px;padding-block:6px}
body.ge-app :is(#app,#editor) .ge-address-extra>label{margin-top:10px}
@media(max-width:360px){body.ge-app :is(#app,#editor) .ge-address-locality{grid-template-columns:minmax(0,1fr)}}

/* Active view/tab selectors share one theme-aware selection color. */
body.ge-app #app :is([role=tablist],.recipe-type-tabs,.rt-switch,.knowledge-tabs,.workspace-tabs,.docs-tabs,.data-tabs,.filter-pills,.commerce-tabs,.widget-filter,.calendar-view-switch,.workspace-shift-window,.media-view-toggle,.knowledge-navigation,.occupancy-area-switch)>button:is([aria-selected=true],[aria-pressed=true],.selected){background:var(--ge-selected)!important;color:var(--petrol)!important;border-color:var(--line)!important;box-shadow:none!important}

/* Product-pass filters form one aligned row, wrapping deliberately on mobile. */
body.ge-app #app .pp-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important}
body.ge-app #app .pp-filters>label{display:block!important;grid-column:auto!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important}
body.ge-app #app .pp-filters :is(input,select),body.ge-app #app .pp-filters>button{box-sizing:border-box!important;height:44px!important;min-height:44px!important;margin:0!important;padding-block:0!important;line-height:1.4!important}
body.ge-app #app .pp-filters :is(input,select){width:100%!important;min-width:0!important;max-width:100%!important}
body.ge-app #app .pp-filters select{padding-right:46px!important;background-position:right 18px center!important}
@media(max-width:700px){body.ge-app #app .pp-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}body.ge-app #app .pp-filters>label{grid-column:1/-1!important}body.ge-app #app .pp-filters>button{min-width:0;white-space:normal}}

/* Ticket filters: search on its own row, date and sales state together. */
@media(max-width:700px){
 html body.ge-app #app .ticket-list-filters{display:grid!important;grid-template-columns:minmax(180px,1.2fr) minmax(90px,1fr)!important;gap:10px!important;align-items:center!important}
 html body.ge-app #app .ticket-list-filters>label:first-child{grid-column:1/-1;min-width:0!important;width:100%!important}
 html body.ge-app #app .ticket-list-filters>label:last-child{min-width:0!important;width:100%!important;margin:0!important}
 html body.ge-app #app .ticket-list-filters>.date-navigation-field:has(input[type=date]){grid-template-columns:32px minmax(0,1fr) 32px!important;width:100%!important;min-width:0!important;max-width:100%!important}
 html body.ge-app #app .ticket-list-filters>.date-navigation-field>button{width:32px!important;min-width:32px!important;padding:0!important}
 html body.ge-app #app .ticket-list-filters>.date-navigation-field input[type=date]{width:100%!important;min-width:0!important;padding:0!important;font-size:14px!important}
 html body.ge-app #app .ticket-list-filters select{width:100%!important;min-width:0!important;padding-left:12px!important;padding-right:40px!important;background-position:right 18px center!important;text-overflow:ellipsis}
}

/* A 44px native date value must not also receive vertical input padding. */
html body.ge-app #app .ticket-list-filters>.date-navigation-field>label{height:44px!important;align-self:center!important;align-items:center!important}
html body.ge-app #app .ticket-list-filters>.date-navigation-field input[type=date]{box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;line-height:44px!important;align-self:center!important}
html body.ge-app #app .ticket-list-filters>.date-navigation-field input[type=date]::-webkit-date-and-time-value{box-sizing:border-box;display:flex!important;align-items:center!important;justify-content:center!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;line-height:normal!important;text-align:center}
html body.ge-app #app .ticket-list-filters>.date-navigation-field input[type=date]::-webkit-datetime-edit{padding:0!important}
html body.ge-app #app .ticket-list-filters>.date-navigation-field input[type=date]::-webkit-datetime-edit-fields-wrapper{padding:0!important}
html body.ge-app #app .ticket-list-filters>.date-navigation-field>button{display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
