.workspace-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:8px 0;border-bottom:1px solid var(--line,#47624e)}.workspace-tabs button{min-height:44px;border-radius:9px;padding:10px 16px;background:#233d2e!important;color:#e9eee7!important;border:1px solid #718575!important;flex:0 1 auto}.workspace-tabs button[aria-selected=true]{background:#cdb28b!important;color:#17251b!important;border-color:#e1c9a6!important;font-weight:750!important}.workspace-pane{min-width:0}.workspace-pane[hidden],.workspace-paged-out{display:none!important}.workspace-details>summary{display:none}.workspace-details{margin:0}.workspace-list-tools{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px;margin:12px 0}.workspace-list-tools label{display:grid;gap:6px;flex:1 1 240px;max-width:520px}.workspace-list-tools input{width:100%}.workspace-filter-tabs{display:flex;flex-wrap:wrap;gap:6px}.workspace-filter-tabs button[aria-pressed=true]{background:#cdb28b!important;color:#17251b!important}.workspace-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0;font-size:14px}.workspace-pager .actions{margin:0}.workspace-pane>.panel,.workspace-pane>form{margin-top:0}.workspace-pane:empty:after{content:'Wähle eine Aktion, um diesen Bereich zu öffnen.';display:block;padding:18px;color:#bdc9c0}.workspace-details:not([open])>form{display:block}.workspace-details>form{padding-top:0}body.business-salon #page-dashboard .hero,body.business-salon #page-dashboard .grid2{display:none!important}@media(max-width:600px){.workspace-tabs{gap:6px}.workspace-tabs button{flex:1 1 125px;padding:10px}.workspace-list-tools label{max-width:none;flex-basis:100%}.workspace-pager{align-items:stretch;flex-direction:column}.workspace-pager .actions{display:flex;justify-content:space-between}.workspace-pager button{min-width:100px}}

.quick-customer-button{margin-top:8px;align-self:start}.quick-customer-dialog{width:min(520px,94vw);max-height:90dvh;overflow:auto;background:#1c2d25;color:#f2f4ef;border:1px solid #78917f;border-radius:14px;padding:22px}.quick-customer-dialog::backdrop{background:#0009}.quick-customer-dialog input{width:100%}.quick-customer-matches{display:grid;gap:8px;padding:12px;background:#294233;border-radius:8px}.quick-customer-dialog [hidden]{display:none!important}.quick-customer-dialog [data-quick-error]{color:#ffd0c4}.quick-customer-dialog h2{margin:0}.quick-customer-dialog .actions{margin:0}

.workspace-document-form>#offer-guide .offer-steps{display:none}.workspace-document-form>.workspace-pane{display:grid;gap:16px}.workspace-document-form>.workspace-pane[hidden]{display:none!important}.workspace-document-form>.workspace-tabs{margin:0}.workspace-document-form>.actions{order:99}#page-dashboard>.workspace-tabs{margin-top:16px}.workspace-pane>.schedule-inbox{margin-top:0}

.workspace-empty-hint{display:none}#workspace-pane-schedule-editor:has(>#schedule-editor[hidden])>.workspace-empty-hint,#workspace-pane-voice-review:has(>#voice-review[hidden])>.workspace-empty-hint{display:block;padding:18px}#request-incoming-card{margin-bottom:20px}

@media(max-width:600px){.customer-list-tools{grid-template-columns:minmax(0,1fr) minmax(130px,.8fr);gap:10px}.customer-list-tools>label:first-child{grid-column:1/-1}.customer-list-tools>#customer-new{align-self:end;min-height:49px}.customer-list-tools>label input{width:100%}#page-notes>.panel>.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}#page-notes>.panel>.actions>.primary{grid-column:1/-1}#page-notes>.panel>.actions>button{width:100%}.workspace-tabs{margin-bottom:14px}}

/* 4.13.1: predictable alignment for the delivery-note action groups. */
#page-notes>.panel>.actions{justify-content:flex-start;align-items:stretch}
#notes-table td{vertical-align:top;padding-block:14px}
#notes-table td:last-child{width:440px}
#notes-table .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;justify-content:start;width:100%;min-width:408px;max-width:440px;margin:0}
#notes-table .actions>button,#notes-table .actions>.badge{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 8px;line-height:1.35;text-align:center;white-space:normal}
@media(min-width:821px) and (max-width:1100px){#notes-table td:last-child{width:300px}#notes-table .actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:272px;max-width:300px}}
@media(max-width:820px){#notes-table td:last-child{width:auto}#notes-table .actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:none}#notes-table .actions>button,#notes-table .actions>.badge{min-height:46px}#page-notes>.panel>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#page-notes>.panel>.actions>.primary{grid-column:1/-1}}

#notes-table .actions>[data-billing-action=send]{grid-column:2}#notes-table .actions>[data-billing-action=delete-note]{grid-column:3}
@media(max-width:1100px){#notes-table .actions>[onclick^="invoiceFromNote"]{grid-column:1/-1}#notes-table .actions>[data-billing-action=send]{grid-column:1}#notes-table .actions>[data-billing-action=delete-note]{grid-column:2}}

/* 4.13.2: invoice controls and readable billing columns. */
#page-invoices .invoice-overview-tools{display:grid;grid-template-columns:minmax(200px,520px) minmax(180px,240px);justify-content:start;align-items:end;gap:16px;margin:14px 0}
#page-invoices .invoice-overview-tools label{max-width:none;margin:0}#page-invoices #billing-invoice-filter{margin:0;width:100%;height:48px}
#invoice-table td{vertical-align:top;padding:14px 8px}
#invoice-table td:nth-child(1){min-width:90px}#invoice-table td:nth-child(2){min-width:125px}#invoice-table td:nth-child(3){min-width:140px}
#invoice-table td:nth-child(4),#invoice-table td:nth-child(5){min-width:88px}#invoice-table td:nth-child(6){min-width:118px}#invoice-table td:nth-child(7){min-width:80px}
#invoice-table td:nth-child(1) small,#invoice-table td:nth-child(2) b,#invoice-table td:nth-child(4) .billing-cell,#invoice-table td:nth-child(5) .billing-cell,#invoice-table td:nth-child(6) .billing-cell,#invoice-table .badge{white-space:nowrap;overflow-wrap:normal;word-break:normal}
#invoice-table td:nth-child(3) .billing-cell{overflow-wrap:break-word;word-break:normal}
#invoice-table td:last-child{width:424px}
#invoice-table .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;justify-content:start;width:100%;min-width:408px;max-width:424px;margin:0;grid-auto-rows:minmax(48px,auto)}
#invoice-table .actions>button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:9px 8px;line-height:1.35;text-align:center;white-space:normal}
#invoice-table .actions>[data-billing-action=closed-edit],#invoice-table .actions>[data-billing-action=replacement]{grid-column:span 2}
@media(min-width:1101px) and (max-width:1600px){#invoice-table td:last-child{width:280px}#invoice-table .actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:264px;max-width:280px}#invoice-table .actions>[data-billing-action=closed-edit],#invoice-table .actions>[data-billing-action=replacement]{grid-column:1/-1}}
@media(max-width:1100px){
 #page-invoices .table-wrap:has(#invoice-table) table{display:block;width:100%;min-width:0!important}
 #page-invoices .table-wrap:has(#invoice-table) thead{display:none}
 #invoice-table{display:block;width:100%}#invoice-table tr{display:block;margin:12px 0;padding:14px;border:1px solid #52675a;border-radius:10px;background:#192f24}
 #invoice-table td{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;width:auto!important;min-width:0!important;padding:9px 0;border:0}
 #invoice-table td::before{content:attr(data-mobile-label);font-size:13px;line-height:1.5;color:#bdc9c0;flex:0 0 28%;font-weight:650}
 #invoice-table td .billing-cell{flex:1;min-width:0;text-align:right}
 #invoice-table td:last-child{display:block}#invoice-table td:last-child::before{display:block;margin-bottom:8px}
 #invoice-table .actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:none}
 #invoice-table .actions>[data-billing-action=closed-edit],#invoice-table .actions>[data-billing-action=replacement]{grid-column:1/-1}
}
@media(max-width:600px){#page-invoices .invoice-overview-tools{grid-template-columns:1fr;gap:12px}}

/* 4.13.3: even month rows with room reserved before entries arrive. */
#schedule-content .schedule-month-cells{grid-auto-rows:minmax(124px,1fr);gap:8px;align-items:stretch}
#schedule-content .schedule-weeknames{gap:8px}
#schedule-content .schedule-month-day{min-height:124px;height:100%;padding:12px;gap:6px;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}
#schedule-content .schedule-month-day>span{line-height:1.5;flex:none}
#schedule-content .schedule-month-day small{flex:none;line-height:1.4}
@media(max-width:900px){#schedule-content .schedule-month-cells{grid-auto-rows:minmax(112px,1fr);gap:6px}#schedule-content .schedule-weeknames{gap:6px}#schedule-content .schedule-month-day{min-height:112px;padding:8px}}
@media(max-width:600px){#schedule-content .schedule-month-cells{grid-auto-rows:minmax(96px,1fr);gap:4px}#schedule-content .schedule-weeknames{gap:4px}#schedule-content .schedule-month-day{min-height:96px;padding:6px 4px;gap:5px}}

/* 4.13.4: common action alignment, with existing document/calendar layouts retained. */
.page .section-head{gap:16px;flex-wrap:wrap;align-items:center}
.page .section-head>div:first-child{min-width:0;flex:1 1 320px}
.page .section-head>.actions{flex:0 1 auto;align-items:center;justify-content:flex-start}
.page .section-head>.actions>select{width:auto;flex:0 1 180px;min-width:130px}
.page .actions{justify-content:flex-start;align-items:center}
.page .form-edit-actions{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:10px}
.page .form-edit-actions>button{flex:0 1 auto;min-width:140px;width:auto;max-width:100%}
.page .actions>button,.page .form-edit-actions>button,.page .schedule-card-actions>button,
.billing-dialog button,.delivery-dialog button,.quick-customer-dialog button,.modal-card button{min-height:46px;line-height:1.4}
.page .actions>button,.page .form-edit-actions>button{overflow-wrap:break-word}
.page button:disabled,dialog button:disabled{cursor:not-allowed;opacity:.55}
.page .workspace-pager>.actions,.page .customer-list-pages>.actions{justify-content:flex-end}
.page .workspace-pager button,.page .customer-list-pages .actions button{min-width:100px}
.page .workspace-tabs>button,.page .workspace-filter-tabs>button,.page .delivery-tabs>button{min-height:46px}
.page .schedule-card-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:8px;align-items:stretch}
.page .schedule-card-actions>button{width:100%;min-width:0;padding:10px 8px}
.page .v37-catalog-item .actions{display:grid;grid-template-columns:44px 44px minmax(100px,1fr) minmax(110px,1fr);gap:8px;align-items:stretch}
.page .v37-catalog-item .actions>button{width:100%;min-width:0;margin:0;padding-inline:8px}
#page-offers>.panel>.actions{justify-content:flex-start}
#v34-offer-list td{vertical-align:top;padding-block:14px}
#v34-offer-list td:last-child{width:440px}
#v34-offer-list .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;grid-auto-rows:minmax(46px,1fr);width:100%;min-width:408px;max-width:440px;margin:0}
#v34-offer-list .actions>button{width:100%;min-width:0;margin:0;padding:10px 8px;text-align:center}
#invoice-table .actions{grid-auto-rows:minmax(48px,1fr);align-items:stretch}
#billing-customers>.row{align-items:end;gap:16px;margin-bottom:16px}
#billing-customers>.actions{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(180px,1fr) minmax(220px,1fr);gap:16px;align-items:end;margin:16px 0}
#billing-customers>.actions>[data-billing-action=inventory]{grid-column:1/-1;justify-self:start;width:auto}
#billing-customers>.actions>[data-billing-action=upload]{width:100%;min-height:48px}
#billing-customers>.actions>label{margin:0;min-width:0}
#page-deliveries>[data-actions]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch;gap:10px}
#page-deliveries>[data-actions]>button{width:100%;height:100%;min-width:0}
.page .document-save-actions{align-items:stretch}
:is(.billing-dialog,.delivery-dialog,.quick-customer-dialog,.modal-card) .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;justify-content:flex-start}
:is(.delivery-dialog,.quick-customer-dialog,.modal-card) button{border-radius:8px;padding:10px 16px;box-sizing:border-box}
:is(.delivery-dialog,.quick-customer-dialog) button:not(.primary):not(.danger):not(.stop){background:#2b4435;color:#f2f4ef;border:1px solid #78917f}
@media(min-width:821px) and (max-width:1300px){#v34-offer-list td:last-child{width:280px}#v34-offer-list .actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:256px;max-width:280px}}
@media(max-width:1100px){#billing-customers>.actions{grid-template-columns:repeat(2,minmax(0,1fr))}#billing-customers>.actions>[data-billing-action=upload]{grid-column:1/-1;justify-self:start;width:auto}}
@media(max-width:820px){#v34-offer-list td:last-child{width:auto}#v34-offer-list .actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:none}.page .section-head>div:first-child{flex-basis:100%}.page .section-head>.actions{width:100%}}
@media(max-width:600px){
 .page .form-edit-actions>button{flex:1 1 140px;min-width:0}
 .page .form-edit-actions>.primary{flex-basis:100%}
 .page .section-head>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 .page .section-head>.actions>button,.page .section-head>.actions>select{width:100%;min-width:0}
 .page .section-head>.actions>.primary{grid-column:1/-1}
 .page .v37-catalog-item .actions{grid-template-columns:44px 44px minmax(0,1fr)}
 .page .v37-catalog-item .actions>[data-catalog-action=toggle]{grid-column:1/-1}
 #billing-customers>.actions{grid-template-columns:minmax(0,1fr)}
 #billing-customers>.actions>[data-billing-action]{width:100%;justify-self:stretch}
 #page-deliveries>[data-actions]{grid-template-columns:repeat(2,minmax(0,1fr))}
 #page-deliveries>[data-actions]>.primary{grid-column:1/-1}
 :is(.billing-dialog,.delivery-dialog,.quick-customer-dialog,.modal-card) .actions>button{flex:1 1 140px;min-width:0}
 :is(.billing-dialog,.delivery-dialog,.quick-customer-dialog,.modal-card) .actions>.primary{flex-basis:100%}
}

/* Long security labels must wrap within narrow settings cards. */
#page-settings .assistant-admin{overflow-wrap:anywhere}

@media(max-width:900px){#page-settings .settings-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){#page-settings .assistant-admin .row{grid-template-columns:minmax(0,1fr)!important}}

#page-settings .assistant-admin form{grid-template-columns:minmax(0,1fr)}

#page-settings .assistant-admin label:not(.check){grid-template-columns:minmax(0,1fr)}

#page-settings .assistant-admin select{overflow:hidden;text-overflow:ellipsis}

/* WebKit must not size the native select from the longest option. The native picker stays intact. */
#page-settings .assistant-admin select{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23e9eee7' stroke-width='2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:12px 8px!important}

/* 4.13.5: one logical, consistently styled sidebar for every enabled business profile. */
#mobile-nav-panel #tabs{gap:4px;padding:12px 12px 18px}
#mobile-nav-panel #tabs::before{content:none}
#mobile-nav-panel #tabs>.sidebar-group-label{font-family:inherit;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.065em;text-transform:uppercase;color:#afc0b3;margin:12px 0 4px;padding:14px 10px 4px;border-top:1px solid #d7e0d51c}
#mobile-nav-panel #tabs>.sidebar-group-label:first-child{margin-top:0;padding-top:4px;border-top:0}
#mobile-nav-panel #tabs>button{display:flex;align-items:center;gap:11px;min-height:46px;width:100%;margin:0;padding:11px 12px;border:1px solid transparent!important;border-radius:9px;background:transparent!important;color:#e4ebe1!important;line-height:1.4;text-align:left;box-sizing:border-box}
#mobile-nav-panel #tabs>button>.nav-icon{width:20px;height:20px;flex:0 0 20px}
#mobile-nav-panel #tabs>button>span{flex:1;min-width:0;font-size:14px;font-weight:600;overflow-wrap:break-word}
#mobile-nav-panel #tabs>button:hover{background:#ffffff0a!important;border-color:#c2d0c02e!important}
#mobile-nav-panel #tabs>button[aria-current=page],#mobile-nav-panel #tabs>button.active{background:#cdb28b!important;border-color:#e1c9a6!important;color:#17251b!important}
#mobile-nav-panel #tabs>button:focus-visible{outline:2px solid #e5c28b!important;outline-offset:1px}
#mobile-nav-panel .industrial-sidebar-brand{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:12px;row-gap:4px;align-items:center;padding:18px 16px;text-align:left}
#mobile-nav-panel .industrial-sidebar-brand img{width:52px;height:52px;grid-row:1/3;object-fit:contain}
#mobile-nav-panel .industrial-sidebar-brand strong{margin:0;font-size:11px;line-height:1.4;letter-spacing:.05em;align-self:end;overflow-wrap:anywhere}
#mobile-nav-panel .industrial-sidebar-brand small{font-size:10px!important;line-height:1.5;letter-spacing:.04em;align-self:start}
#mobile-nav-panel .industrial-sidebar-foot{min-height:80px;margin-top:12px}
#mobile-nav-panel .industrial-sidebar-foot span{padding-top:15px}
body.business-salon #mobile-nav-panel .industrial-sidebar-brand{grid-template-columns:minmax(0,1fr)}
body.business-salon #mobile-nav-panel .industrial-sidebar-brand strong{font-size:15px;text-transform:none;letter-spacing:0}
@media(min-width:821px) and (max-width:1100px){#mobile-nav-panel #tabs{padding-inline:8px}#mobile-nav-panel #tabs>button{padding-inline:10px;gap:9px}#mobile-nav-panel .industrial-sidebar-brand{grid-template-columns:44px minmax(0,1fr);gap:8px;padding:16px 12px}#mobile-nav-panel .industrial-sidebar-brand img{width:44px;height:44px}}
