:root{color-scheme:light;--bg:#fff;--surface:#fff;--soft:#f7f7f8;--text:#202124;--muted:#797b80;--line:#e3e4e7;--blue:#2f63e9;--green:#407b61;--green-soft:#edf6f0;--amber:#b57b19;--amber-soft:#fff6e7;font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--text)}a{color:var(--blue);text-decoration:none}.shell{display:grid;grid-template-columns:272px minmax(0,1fr);min-height:100vh}.sidebar{padding:16px 9px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fff}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 18px;min-height:48px;border-bottom:1px solid var(--line);margin-bottom:13px;color:var(--text)}.brand b{font-size:15px;font-weight:500;letter-spacing:-.02em}.brand small{display:block;margin-top:1px;font-size:11px;color:var(--muted);letter-spacing:.03em}.mark{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:var(--blue);color:#fff;box-shadow:inset 0 0 0 1px #ffffff35}.mark svg{width:24px;height:24px}.navlabel{padding:14px 10px 6px;color:var(--muted);font-size:11px;font-weight:500}nav{display:grid;gap:3px}.navitem{display:flex;gap:11px;align-items:center;padding:9px 10px;min-height:39px;color:#6f7278;border:1px solid transparent;border-radius:7px}.navitem:hover{background:#f8f9fb;color:var(--text)}.navitem.active{border-color:var(--line);background:#fff;color:var(--text);box-shadow:0 1px 3px #1b24300a}.navicon{width:17px;text-align:center;color:#8a8d92;font-size:15px}.navitem.active .navicon{color:var(--blue)}.sidefoot{margin-top:auto;padding:15px 10px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:9px;font-size:12px}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--soft)}.sidefoot form{margin-left:auto}.logout{border:0;background:none;color:var(--muted);cursor:pointer;font-size:11px}.main{min-width:0}.topline{height:46px;padding:0 28px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;border-bottom:1px solid #f0f0f1}.topline b{color:var(--text);font-weight:500}.content{max-width:1500px;margin:auto;padding:28px}.pagehead,.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.pagehead h1{font-size:29px;line-height:1.2;letter-spacing:-.045em;margin:0 0 5px;font-weight:600}.pagehead p,.muted{margin:0;color:var(--muted);font-size:12px}.sectionhead{margin-bottom:14px}.sectionhead h2{margin:0}.sectionhead p{margin-top:3px}.card{padding:20px;margin-bottom:16px;border:1px solid #e5e6e9;border-radius:10px;background:#fff;box-shadow:0 2px 7px #2021240a;min-width:0}.card h2{font-size:15px;font-weight:550;margin:0 0 5px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.metric{min-height:136px;display:flex;flex-direction:column;gap:7px}.metric small,.metric-inline small{color:#92949a;font-size:11px;text-transform:uppercase;letter-spacing:.02em}.metric strong{font-size:26px;line-height:1.2;font-weight:500;letter-spacing:-.035em}.metric span{font-size:12px;color:var(--muted)}.button{display:inline-flex;justify-content:center;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:7px;padding:8px 12px;min-height:36px;font:inherit;font-size:12px;cursor:pointer}.button:hover{background:var(--soft)}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:500}.button.wide{width:100%;margin-top:8px}.layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.75fr);gap:16px;align-items:start}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.formgrid label,.auth-card label{display:grid;gap:5px;color:var(--muted);font-size:11px;min-width:0}.formgrid label small{font-size:10px}.formgrid .span2{grid-column:1/-1}input,select,textarea{font:inherit;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 10px;min-height:38px;outline-color:var(--blue);width:100%;min-width:0}select[multiple]{height:auto}textarea{resize:vertical}.check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.check input{width:15px;min-height:15px}.inlineform{display:flex;align-items:center;gap:9px;margin-top:14px}.inlineform select,.inlineform input{max-width:320px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{padding:9px;color:var(--muted);font-size:10px;font-weight:400;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:11px 9px;border-bottom:1px solid var(--line);font-size:11px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);margin-top:3px}.empty{text-align:center;color:var(--muted);padding:24px}.badge{display:inline-flex;padding:4px 8px;background:var(--amber-soft);color:var(--amber);border-radius:14px;font-size:10px;white-space:nowrap}.badge.paid{background:var(--green-soft);color:var(--green)}.mutedbadge{background:#f1f1f2;color:var(--muted)}.textbtn{border:0;padding:3px 0;background:none;color:var(--blue);cursor:pointer;font:inherit;font-size:11px;white-space:nowrap}.metric-inline{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.metric-inline b{font-size:16px;font-weight:500}.small{font-size:11px;margin-top:14px}.notice{padding:11px 14px;border-radius:7px;background:#f0f4ff;color:#244db8;margin-bottom:14px;font-size:12px}.auth-wrap{max-width:440px;margin:10vh auto;padding:24px}.auth-brand{display:flex;align-items:center;gap:11px;margin:0 0 24px}.auth-brand b{font-size:18px}.auth-brand small{display:block;color:var(--muted);font-size:11px}.auth-card{padding:24px;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 12px #2021240a}.auth-card h1{font-size:23px;letter-spacing:-.03em;margin:0 0 5px}.auth-card form{display:grid;gap:14px;margin-top:20px}.auth-card input{margin-top:1px}@media(max-width:900px){.shell{grid-template-columns:205px minmax(0,1fr)}.layout{grid-template-columns:1fr}.content{padding:20px}.topline{padding:0 20px}}@media(max-width:650px){.shell{grid-template-columns:1fr}.sidebar{padding:10px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 4px 10px}.navlabel,.sidefoot{display:none}nav{display:flex;overflow:auto}.navitem{white-space:nowrap;padding:8px}.navicon{display:none}.topline{height:38px;padding:0 13px}.content{padding:16px 12px}.cards{grid-template-columns:1fr}.pagehead{align-items:flex-start}.pagehead h1{font-size:24px}.card{padding:15px}.formgrid{grid-template-columns:1fr}.formgrid .span2{grid-column:auto}.inlineform{align-items:stretch;flex-direction:column}.inlineform select,.inlineform input{max-width:none}}
/* Ferrano wordmark alongside the unchanged TmTrck clock/billing mark. */
.brand-logo{display:block;width:84px;height:auto;flex:none;margin-left:auto}.brand-code{min-width:0}.brand-code small{font-size:8px;letter-spacing:0}.auth-brand .brand-logo{width:210px;margin-left:0}.auth-brand .brand-code small{font-size:11px;letter-spacing:.03em}
@media(max-width:900px){.brand-logo{width:64px}.brand-code small{display:none}}
.sidebar-footer{margin-top:auto;padding:14px 10px 12px;border-bottom:1px solid var(--line)}.portal-logo{display:block;width:142px;max-width:100%;height:auto}.sidefoot{margin-top:0}
@media(max-width:650px){.sidebar-footer{display:none}}
.searchform{display:flex;align-items:center;gap:7px}.searchform input{width:min(270px,34vw)}
.compact-cards{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.compact-cards .metric{min-height:0;padding:15px 18px;gap:3px}.compact-cards .metric strong{font-size:22px}.compact-cards .metric strong span{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0}
.management-create{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.management-create .card{margin:0}.create-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.create-summary::-webkit-details-marker{display:none}.create-summary b,.create-summary small{display:block}.create-summary b{font-size:14px;font-weight:550}.create-summary small{margin-top:3px;color:var(--muted);font-size:11px}.plusmark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef2ff;color:var(--blue);font-size:21px;line-height:1}.management-create details[open] .plusmark{transform:rotate(45deg)}
.client-list{display:grid;gap:13px}.client-card{padding:17px 19px}.client-heading,.client-identity,.client-controls,.project-row,.project-summary,.project-actions{display:flex;align-items:center}.client-heading{justify-content:space-between;gap:14px}.client-identity{gap:12px;min-width:0}.customer-number{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-weight:600;color:#565a62}.client-name{font-size:15px;font-weight:600}.client-subline{margin-top:3px;color:var(--muted);font-size:11px}.client-controls,.project-actions{gap:10px;flex:none}.edit-block{border-top:1px solid var(--line);margin-top:14px;padding-top:11px}.edit-block>summary{color:var(--blue);font-size:11px;cursor:pointer;list-style:none}.edit-block>summary::-webkit-details-marker{display:none}.edit-block>summary:after{content:'⌄';margin-left:6px;color:var(--muted)}.edit-block[open]>summary:after{content:'⌃'}.edit-block form{margin-top:12px}
.project-list{margin-top:18px}.project-list>.sectionhead{margin-bottom:8px}.project-list>.sectionhead h2{font-size:13px}.project-card{padding:12px 0;border-top:1px solid #eff0f2}.project-row{justify-content:space-between;gap:12px}.project-summary{gap:9px;min-width:0}.project-summary b,.project-summary small{display:block}.project-summary b{font-size:12px;font-weight:550}.project-summary small{margin-top:3px;color:var(--muted);font-size:10px;max-width:650px}.project-status{width:8px;height:8px;flex:none;border-radius:50%;background:#4c9868}.project-status.inactive-dot{background:#aaa}.project-actions{font-size:10px}.project-edit{margin-left:17px}.project-edit .formgrid{margin-bottom:14px}.field-title{display:block;margin-bottom:6px;color:var(--muted);font-size:11px}.assign-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;padding:7px;border:1px solid var(--line);border-radius:7px;max-height:150px;overflow:auto}.assign-option{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important;gap:8px!important;padding:5px;border-radius:5px}.assign-option:hover{background:var(--soft)}.assign-option input{width:15px;min-height:15px}.assign-option span,.assign-option small{display:block}.assign-option small,.hint{color:var(--muted);font-size:10px}.service-manager{padding:13px 0 0;border-top:1px solid #eff0f2}.service-manager .sectionhead{margin-bottom:9px}.service-manager h3{margin:0;font-size:12px;font-weight:550}.service-list{display:grid;gap:7px}.service-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(110px,145px) auto minmax(130px,auto);align-items:center;gap:7px}.service-row input{min-height:34px;padding:7px 9px;font-size:11px}.rate-input{display:flex;align-items:center;gap:5px;min-width:0;color:var(--muted);font-size:10px}.rate-input input{min-width:0}.service-row .badge{justify-self:start}.service-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.service-row .textbtn{font-size:10px}.add-service{grid-template-columns:minmax(130px,1fr) minmax(110px,145px) auto;margin-top:8px;padding-top:9px;border-top:1px dashed var(--line)}.searchform .button{flex:none}
@media(max-width:850px){.pagehead:has(.searchform){align-items:flex-start;flex-direction:column}.searchform{width:100%}.searchform input{width:auto;flex:1}.management-create{grid-template-columns:1fr}}
@media(max-width:650px){.client-heading{align-items:flex-start;flex-direction:column}.client-controls{width:100%;justify-content:space-between}.project-row{align-items:flex-start}.project-actions{align-items:flex-end;flex-direction:column;gap:4px}.project-edit{margin-left:0}.assign-list{grid-template-columns:1fr}.service-row{grid-template-columns:minmax(0,1fr) 105px}.service-row .badge{grid-column:1}.service-actions{grid-column:1/-1;justify-content:flex-start}.add-service{grid-template-columns:minmax(0,1fr) 105px}.add-service button{grid-column:1/-1;justify-self:start}.compact-cards .metric{padding:13px}.searchform{flex-wrap:wrap}.searchform input{width:100%;flex-basis:100%}}
.billing-table th,.billing-table td{white-space:nowrap}.billing-table td:nth-child(4){white-space:normal;min-width:220px}.billing-table .right,.right{text-align:right}.select-col{width:56px}.select-all{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px}.select-all input,.billing-entry{width:15px;min-height:15px;accent-color:var(--blue);cursor:pointer}.billing-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.billing-actions .muted{font-size:11px}.billing-actions small{color:var(--muted);font-size:10px}.billing-actions [data-invoice-submit]:disabled{opacity:.5;cursor:not-allowed}.flat-billing>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}.flat-billing>summary::-webkit-details-marker{display:none}.flat-billing summary span:first-child b,.flat-billing summary small{display:block}.flat-billing summary small{font-size:11px;color:var(--muted)}.flat-billing .tablewrap{margin-top:12px}@media(max-width:650px){.billing-actions{align-items:stretch;flex-direction:column}.billing-actions .button{width:100%}}
.dashboard-head{margin-bottom:23px}.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.dashboard-metric{display:flex;align-items:center;gap:13px;min-width:0;padding:17px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 2px 7px #20212408}.dashboard-metric:hover{border-color:#cdd7f7;box-shadow:0 3px 12px #2021240c}.dashboard-metric.highlight{border-color:#dbe4ff;background:linear-gradient(120deg,#f8faff,#fff)}.dashboard-metric>span:nth-child(2){display:block;flex:1;min-width:0}.dashboard-metric .metric-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:9px;background:#f4f5f7;color:#717680;font-size:18px;flex:none}.dashboard-metric.highlight .metric-icon{background:#eaf0ff;color:var(--blue)}.dashboard-metric small,.invoice-overview small{display:block;color:var(--muted);font-size:11px}.dashboard-metric strong{display:block;margin-top:4px;font-size:22px;font-weight:550;letter-spacing:-.035em;white-space:nowrap}.dashboard-metric strong i{font-size:11px;font-style:normal;font-weight:400;color:var(--muted);letter-spacing:0}.dashboard-metric em{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-style:normal}.dashboard-metric>b{color:#a1a4aa;font-weight:400}.dashboard-chart{padding-bottom:13px}.chart-legend{display:flex;gap:14px;color:var(--muted);font-size:10px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:8px;height:8px;border-radius:2px}.legend-all,.bar-all{background:#d9dde5}.legend-billed,.bar-billed{background:var(--blue)}.month-chart{height:190px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:end;padding:13px 2px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 45px,#f1f2f4 46px,#f1f2f4 47px)}.month-column{height:100%;min-width:0;display:grid;grid-template-rows:1fr auto;align-items:end;text-align:center}.month-bars{height:100%;display:flex;align-items:end;justify-content:center;gap:4px}.month-bars span{display:block;width:min(24px,38%);min-height:2px;border-radius:4px 4px 0 0;transition:height .25s}.month-bars .bar-billed{opacity:.9}.month-column small{padding:7px 0 6px;color:var(--muted);font-size:10px}.recent-card{padding-bottom:6px}.recent-table td:first-child{white-space:nowrap}.recent-table .badge{font-size:9px}.invoice-card{padding-bottom:5px}.invoice-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:3px 0 17px;border-bottom:1px solid var(--line)}.invoice-overview>div+div{padding-left:18px;border-left:1px solid var(--line)}.invoice-overview strong{display:block;margin-top:4px;font-size:20px;font-weight:550}.invoice-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 0 9px}.invoice-toolbar h2{margin:0;font-size:15px}.status-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fafafa}.status-tabs a{display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:5px;color:var(--muted);font-size:10px}.status-tabs a.active{background:#fff;color:var(--text);box-shadow:0 1px 3px #20212415}.status-tabs small{padding:1px 5px;border-radius:10px;background:#f0f1f3;font-size:9px}.invoice-table .amount{font-weight:550;white-space:nowrap}.invoice-table td:nth-child(2){font-weight:500}.invoice-table th{padding-top:12px;padding-bottom:11px}.billing-summary{display:flex;align-items:center;gap:28px;padding:13px 17px;margin:0 0 15px;border:1px solid var(--line);border-radius:9px;background:#fbfbfc}.billing-summary>div{min-width:105px}.billing-summary small{display:block;color:var(--muted);font-size:10px}.billing-summary strong{display:block;margin-top:2px;font-size:17px;font-weight:550}.billing-summary .button{margin-left:auto}.billing-group{scroll-margin-top:18px}.billing-actions{position:sticky;bottom:8px;z-index:2;padding:12px 10px;margin-inline:-10px;background:#fffffff2;backdrop-filter:blur(8px);border-top:1px solid var(--line);border-radius:0 0 8px 8px}.billing-actions .button{min-width:245px}.client-list{gap:10px}.client-card{transition:box-shadow .15s,border-color .15s}.client-card:focus-within{border-color:#d8def0;box-shadow:0 4px 14px #2021240c}.management-create details:not([open]){transition:border-color .15s}.management-create details:hover{border-color:#d3d6dc}
.month-chart{grid-template-rows:minmax(0,1fr);align-items:stretch}.month-column{align-self:stretch}@media(max-width:950px){.dashboard-metrics{grid-template-columns:1fr}.dashboard-metric{padding:13px 15px}.dashboard-metric strong{font-size:20px}.billing-summary{gap:16px}}
@media(max-width:650px){.month-chart{height:145px;gap:3px}.month-bars{gap:2px}.month-column small{font-size:9px}.dashboard-metrics{gap:8px}.invoice-overview{gap:8px}.invoice-overview>div+div{padding-left:9px}.invoice-overview strong{font-size:17px}.invoice-toolbar{align-items:flex-start;flex-direction:column}.status-tabs{width:100%;justify-content:space-around}.billing-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.billing-summary .button{grid-column:1/-1;margin:0}.billing-actions{margin-inline:-4px}.billing-actions .button{min-width:0}.dashboard-head{align-items:center}.dashboard-head .button{white-space:nowrap}}

/* Natur & Software: ruhige Salbei-Akzente und geführte Zeiterfassung */
:root{--blue:#52745f;--line:#e5e9e4;--soft:#f3f6f2}
body{background:#f7f8f5}.sidebar{background:#fbfcfa}.navitem.active{background:#edf3ed;color:#315c43;border-color:#dce8dd}.button.primary{background:#426b50;border-color:#426b50}.button.primary:hover{background:#365b43}.dashboard-metric.highlight{border-color:#dbe8dc;background:linear-gradient(120deg,#f4f8f2,#fff)}.dashboard-metric.highlight .metric-icon,.metric-icon{background:#eef3ec;color:#52745f}.legend-billed,.bar-billed{background:#668b6a}.billing-actions{background:#fbfcf9f2}
.entry-layout{align-items:start}.entry-card{padding:22px 24px}.entry-title{display:flex;align-items:center;gap:12px;margin-bottom:21px}.entry-title h2,.entry-title p{margin:0}.entry-title p{margin-top:4px}.entry-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef4eb;color:#4d7656;font-size:24px}.entry-form{display:grid;gap:20px}.entry-step{padding-top:17px;border-top:1px solid var(--line)}.step-heading{display:flex;gap:11px;align-items:center;margin-bottom:13px}.step-heading>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e9f1e8;color:#426b50;font-size:12px;font-weight:650}.step-heading b,.step-heading small{display:block}.step-heading b{font-size:13px}.step-heading small{margin-top:3px;color:var(--muted);font-size:11px}.recent-projects{display:flex;gap:8px;overflow:auto;padding:0 0 12px}.project-chip{display:grid;gap:2px;flex:none;min-width:125px;padding:9px 11px;text-align:left;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);cursor:pointer}.project-chip:hover,.project-chip.selected{border-color:#98b39a;background:#f4f8f2}.project-chip b{font-size:11px;font-weight:550}.project-chip small{color:var(--muted);font-size:10px}.entry-label{display:block;margin:0 0 12px;color:var(--text);font-size:11px;font-weight:550}.entry-label select,.entry-label input,.entry-label textarea{display:block;width:100%;margin-top:6px}.entry-label textarea{resize:vertical;min-height:76px}.entry-label select:disabled{background:#f4f5f3;color:#949b92}.selected-rate{margin:-4px 0 0 1px;color:#53745c;font-size:11px}.entry-fields{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(0,1.45fr);gap:15px}.duration-field{min-width:0;margin:0;padding:0;border:0}.duration-field legend{margin-bottom:7px;color:var(--text);font-size:11px;font-weight:550}.duration-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:9px}.duration-presets button{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:white;color:#4c554c;font-size:10px;cursor:pointer}.duration-presets button:hover,.duration-presets button.selected{border-color:#92ad94;background:#edf4eb;color:#315c43}.duration-custom{margin-bottom:0}.billable-toggle{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#fafbf9;cursor:pointer}.billable-toggle input{width:16px;height:16px;accent-color:#52745f}.billable-toggle b,.billable-toggle small{display:block}.billable-toggle b{font-size:11px}.billable-toggle small{margin-top:3px;color:var(--muted);font-size:10px}.entry-submit{width:100%;display:flex;justify-content:center;align-items:center;gap:9px;min-height:43px}.entry-submit span{font-size:17px}.entry-year{position:sticky;top:18px}.entry-year h2{margin-bottom:16px}.entry-year-stat{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.year-stat-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eff4ed;color:#54785b}.entry-year-stat small,.entry-year-stat b{display:block}.entry-year-stat small{color:var(--muted);font-size:10px}.entry-year-stat b{margin-top:3px;font-size:14px;font-weight:550}.entry-year>.small{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--line)}
@media(max-width:850px){.entry-layout{grid-template-columns:1fr}.entry-year{position:static}.entry-fields{grid-template-columns:1fr}}
@media(max-width:520px){.entry-card{padding:17px 15px}.recent-projects{margin-right:-15px}.duration-presets{gap:5px}.duration-presets button{padding:7px 8px}}

/* Jahresauswahl auf der Rechnungsseite */
.year-tabs{width:max-content;max-width:100%;flex-wrap:wrap;margin:0 0 12px}.year-tabs a{font-size:11px;padding:6px 11px}
@media(max-width:650px){.year-tabs{width:100%;justify-content:flex-start}}

/* Neues Projekt / neue Leistung direkt in der Zeiterfassung */
.entry-new{margin:-2px 0 14px;padding:12px 13px 2px;border:1px dashed #c9d6cb;border-radius:9px;background:#f8faf8}.entry-new legend{padding:0 6px;color:#53745c;font-size:11px;font-weight:600}.entry-new .small{margin:-4px 0 10px;font-size:10px}.entry-new-grid{display:grid;grid-template-columns:2fr 1fr;gap:10px}
@media(max-width:650px){.entry-new-grid{grid-template-columns:1fr;gap:0}}

/* Pauschalen: zuletzt abgerechnet, bereits abgerechnete eingeklappt */
.flat-last{white-space:nowrap;color:var(--muted)}.flat-last a{color:var(--text)}.flat-none{margin:4px 0 12px}.flat-done{margin:6px 0 4px;border-top:1px solid var(--line);padding-top:10px}.flat-done>summary{cursor:pointer;color:var(--muted);font-size:11px;padding:4px 0 8px}.flat-done table{opacity:.85}

/* Zeiteinträge bearbeiten und löschen */
.entry-actions{white-space:nowrap;text-align:right}.entry-actions form{display:inline;margin-left:10px}.textbtn.danger{color:#b4423a}.entry-form.is-editing{outline:2px solid #cfdcd2;outline-offset:6px;border-radius:8px}.entry-cancel{margin-left:8px}

/* Pauschalen in der Kundengruppe beim Abrechnen */
.flat-badge{background:#eef1fb;color:#4a5fa8}.flat-row td{background:#fbfcfe}.flat-done-row td{color:var(--muted)}.flat-done-row small a{color:inherit}

/* Rechnungen: Versendet/Bezahlt mit Datum, Löschen */
.badge.sent{background:#eef1fb;color:#4a5fa8}.status-date{display:block;margin-top:3px;color:var(--muted);font-size:10px}.invoice-actions{white-space:nowrap}.date-action{display:flex;align-items:center;gap:6px;margin:0 0 5px}.date-action input[type=date]{width:auto;padding:4px 6px;font-size:11px;min-height:0}.delete-action{display:inline}
@media(max-width:650px){.date-action{flex-wrap:wrap}}

/* Zeiterfassung als Stundenzettel-Zeile (Entwurf A) */
.entry-line{padding:12px;margin-bottom:22px;overflow:visible}
.entry-line.is-editing{outline:2px solid #cfdcd2;outline-offset:4px}
.line-edit-note{margin:0 2px 10px;font-size:12px;color:var(--muted)}
.line-row{display:grid;grid-template-columns:132px minmax(0,1.35fr) minmax(0,1.6fr) 92px auto;gap:8px;align-items:stretch}
.lf{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;border:1px solid #dfe4dd;border-radius:8px;background:#fff;padding:5px 11px 4px;margin:0;font-weight:400}
.lf:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #52745f22}
.lf>small{font-size:10px;line-height:1.2;color:#8a8e88}
.lf input,.lf select{border:0;padding:0;min-height:24px;background:transparent;font-weight:550;outline:none;box-shadow:none}
.lf-hours input{text-align:right;font-size:16px;font-variant-numeric:tabular-nums}
.lf-combo{padding-left:26px}
.combo-dot{position:absolute;left:11px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:#d6dbd4}
.combo-rate{position:absolute;right:11px;bottom:8px;font-size:11px;color:#8a8e88;background:#fff;padding-left:6px}
.lf-combo.invalid{border-color:#b4423a;box-shadow:0 0 0 3px #b4423a22}
.combo-list{position:absolute;left:-1px;top:calc(100% + 6px);width:max(100%,440px);max-height:340px;overflow:auto;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #dfe4dd;border-radius:10px;box-shadow:0 10px 30px #20212420;z-index:20}
.combo-list li{display:flex;justify-content:space-between;gap:14px;padding:8px 9px;border-radius:6px;cursor:pointer;font-size:13px}
.combo-list li.on{background:#f0f5f1}
.combo-list .combo-group{cursor:default;padding:8px 9px 2px;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#8a8e88}
.combo-opt-rate{color:#8a8e88;white-space:nowrap}
.combo-list .combo-new{color:var(--blue);font-weight:550}
.line-save{min-height:46px;padding:0 18px;font-size:13px;font-weight:600}
.line-save .kbd{font-size:10px;border:1px solid #ffffff60;border-radius:4px;padding:0 4px;opacity:.85}
.line-new{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:8px;padding:8px;border:1px dashed #c9d6cb;border-radius:9px;background:#f8faf8}
.line-new[data-new-service]{grid-template-columns:minmax(0,1fr) 120px}
.line-new[hidden]{display:none}
.line-hint{display:flex;flex-wrap:wrap;gap:6px 18px;padding:9px 3px 0;font-size:11px;color:#8a8e88}
.line-bill{margin-left:auto;display:flex;gap:6px;align-items:center;color:var(--text);font-size:12px}
.line-bill input{width:auto;min-height:0;margin:0}
.day-head{display:flex;justify-content:space-between;align-items:baseline;padding:14px 4px 6px;font-size:12px;color:#6b6f6a;font-weight:600}
.day-head b{color:var(--text)}
.day-card{padding:0;margin-bottom:6px}
.day-row{display:grid;grid-template-columns:minmax(0,1fr) auto 56px;gap:14px;align-items:center;padding:11px 15px;border-top:1px solid #eef0ec}
.day-row:first-child{border-top:0}
.day-main b{display:block;font-weight:550}.day-main small{display:block;color:var(--muted);font-size:12px}
.day-acts{display:flex;gap:12px;align-items:center;white-space:nowrap;font-size:12px}.day-acts form{display:inline}
.day-acts .textbtn{color:#8a8e88}.day-row:hover .day-acts .textbtn{color:var(--blue)}.day-row:hover .day-acts .textbtn.danger{color:#b4423a}
.day-hours{text-align:right;font-weight:650;font-size:15px;font-variant-numeric:tabular-nums}
@media(max-width:900px){
 .line-row{grid-template-columns:1fr 1fr}
 .lf-combo,.lf-text{grid-column:1/-1}.lf-combo{order:-2}.lf-text{order:-1}
 .lf{min-height:52px}.line-save{grid-column:1/-1;min-height:50px;font-size:15px}.line-save .kbd{display:none}
 .combo-list{width:100%}
 .line-new,.line-new[data-new-service]{grid-template-columns:1fr}
 .line-hint span:first-child{display:none}
 .day-row{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.day-acts{grid-column:1;grid-row:2}.day-hours{grid-row:1/span 2;grid-column:2}
}

/* Icons */
.ic{width:16px;height:16px;flex:none;display:inline-block;vertical-align:-3px}
.ic-inline{width:14px;height:14px;vertical-align:-2px;color:#8a8e88}
.navicon{display:grid;place-items:center}.navicon .ic{width:18px;height:18px}
.button .ic{width:15px;height:15px;margin-right:1px}
.textbtn{display:inline-flex;align-items:center;gap:5px}.textbtn .ic{width:14px;height:14px}
.badge{align-items:center;gap:4px}.badge .ic{width:12px;height:12px}
.logout{display:inline-flex;align-items:center;gap:5px}.logout .ic{width:13px;height:13px}
.h1-ic{display:inline-grid;place-items:center;width:38px;height:38px;margin-right:12px;border-radius:10px;background:#edf3ee;color:var(--blue);vertical-align:-5px}
.h1-ic .ic{width:21px;height:21px;stroke-width:1.9}
.pdf-links{display:inline-flex;gap:12px;white-space:nowrap}
.metric-icon .ic,.year-stat-icon .ic{width:19px;height:19px}
.line-save .ic{width:16px;height:16px}
@media(max-width:650px){.h1-ic{width:32px;height:32px;margin-right:9px;vertical-align:-4px}.h1-ic .ic{width:18px;height:18px}}
.mail-action{margin:0 0 5px}.mail-btn .ic{color:var(--blue)}

/* E-Rechnung: Status in der Verwaltung */
.einvoice-status{display:flex;gap:8px;align-items:flex-start;margin:0 0 14px;padding:10px 12px;border-radius:10px;font-size:.9rem;line-height:1.4}
.einvoice-status .ic{flex:none;margin-top:2px}
.einvoice-status.ok{background:color-mix(in srgb,#1f9d55 10%,transparent);color:inherit}
.einvoice-status.ok .ic{color:#1f9d55}
.einvoice-status.warn{background:color-mix(in srgb,#d97706 12%,transparent)}
.einvoice-status.warn .ic{color:#d97706}

/* E-Rechnung: Hinweis in der Rechnungsliste */
.einv-badge{position:relative;display:inline-flex;align-items:center;gap:4px;font-size:.75rem;padding:3px 7px;border-radius:999px;white-space:nowrap;cursor:default}
.einv-badge .ic{width:14px;height:14px}
.einv-badge.ok{color:#1f9d55;padding:3px 2px;background:none}
.einv-badge.warn{color:#9a5b06;background:color-mix(in srgb,#d97706 14%,transparent)}
.einv-badge.warn{cursor:help}
.einv-reason-box{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:50;width:min(460px,calc(100vw - 32px));padding:12px 14px;border-radius:12px;background:#24262b;color:#fff;font-size:.88rem;line-height:1.45;box-shadow:0 10px 30px rgba(0,0,0,.25);cursor:pointer}

/* Rechnungsliste: Verlauf, Dokument-Icons, Split-Knopf */
.inv2 td{vertical-align:middle}.inv2 .cell-sub{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.trk{display:flex;align-items:flex-start;min-width:212px}
.trk-step{display:flex;flex-direction:column;align-items:center;width:58px;flex:none}
.trk-dot{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1.5px solid #cfd6d0;background:#fff;color:#fff}
.trk-dot .ic{width:12px;height:12px}
.trk-step.done .trk-dot{background:#426b50;border-color:#426b50}
.trk-step.now .trk-dot{border-color:#c98a1c;box-shadow:0 0 0 3px #fff3dc}
.trk-step.skip .trk-dot{border-style:dashed}
.trk-lbl{margin-top:4px;font-size:10.5px;line-height:1.25;color:var(--muted);text-align:center;white-space:nowrap}
.trk-lbl small{display:block;font-size:10.5px;color:#9a9da2}
.trk-step.done .trk-lbl{color:#3c4a41}.trk-step.now .trk-lbl{color:#9a6510}
.trk-bar{height:2px;width:18px;margin:9px -10px 0;background:#dfe5e0;flex:none}.trk-bar.done{background:#426b50}
.doc-tools{display:flex;align-items:center;gap:5px}.doc-tools form{margin:0}
.doc-tools .einv-badge{padding:3px 4px;background:none}.doc-tools .einv-badge.warn{color:#c98a1c}
.ibtn{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#4c5a51;cursor:pointer;padding:0;text-decoration:none}
.ibtn .ic{width:16px;height:16px}.ibtn:hover{background:#f3f6f2;border-color:#d4ddd5}.ibtn.danger{color:#b4423a}.ibtn.danger:hover{background:#fbefee}
.ibtn.ghost{opacity:.3;cursor:not-allowed}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.row-actions form{margin:0}
.split{position:relative;display:inline-flex;align-items:stretch}.split>form{display:flex;margin:0}
.split-main,.split-toggle{display:inline-flex;align-items:center;gap:6px;height:34px;border:1px solid #426b50;background:#426b50;color:#fff;font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.split-main{padding:0 12px;border-radius:9px 0 0 9px}.split-toggle{padding:0 8px;border-radius:0 9px 9px 0;border-left-color:rgba(255,255,255,.35)}
.split-main:hover,.split-toggle:hover{background:#38604a}.split-main .ic,.split-toggle .ic{width:15px;height:15px}
.split-toggle[aria-expanded="true"] .ic{transform:rotate(180deg)}
.split-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:250px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(20,30,25,.16);text-align:left}
.split-date{display:grid;gap:8px;margin:0}.split-date+.split-date{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.split-date label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.split-date input{height:36px}
.split-date .button{justify-content:center}
.done-note{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12.5px}.done-note .ic{width:15px;height:15px;color:#1f9d55}
.inv2 .tablewrap,.tablewrap:has(.inv2){overflow:visible}
@media(max-width:760px){
.tablewrap:has(.inv2){overflow:visible}
.inv2,.inv2 tbody{display:block;width:100%}.inv2 thead{display:none}
.inv2 tr{display:grid;grid-template-columns:1fr auto;grid-template-areas:"no amt" "client client" "trk trk" "doc doc" "act act";gap:8px 10px;padding:14px 2px;border-bottom:1px solid var(--line)}
.inv2 td{display:block;padding:0!important;border:0!important}
.inv2 .c-no{grid-area:no}.inv2 .c-amt{grid-area:amt;font-size:15px;font-weight:650}.inv2 .c-client{grid-area:client;color:var(--muted);margin-top:-6px}
.inv2 .c-trk{grid-area:trk;margin:4px 0 2px}.inv2 .c-doc{grid-area:doc}.inv2 .c-act{grid-area:act}.inv2 .c-act .row-actions{justify-content:flex-start}.inv2 .split-menu{left:0;right:auto}
.inv2 .c-no .cell-sub{display:inline;margin-left:6px}
.inv2 td.empty{grid-column:1/-1}
.inv2 .ibtn{width:36px;height:36px}
}
@media(max-width:650px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar,.main{min-width:0}.sidebar nav{max-width:100%}}

/* Kunden & Projekte: Desktop = Liste + Kundenakte, Handy = Karten */
.cx-head{align-items:flex-end}.cx-head-actions{display:flex;gap:8px}
.button.disabled{opacity:.55;cursor:default;pointer-events:none}
.cx-create{margin-bottom:14px}.cx-create-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.cx-create-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:16px}.cx-create-head .ibtn .ic{transform:rotate(180deg)}
.cx-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.cx-chips{display:flex;gap:6px;flex-wrap:wrap}
.cx-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#444;font-size:12.5px;text-decoration:none}
.cx-chip b{font-weight:600;color:var(--muted);font-size:11.5px}.cx-chip.on{background:#24262b;border-color:#24262b;color:#fff}.cx-chip.on b{color:#bdbfc3}
.cx-search{position:relative;display:flex;align-items:center;gap:6px}.cx-search input{width:min(280px,60vw);height:38px;padding-left:34px}.cx-search-ic{position:absolute;left:11px;top:11px;color:var(--muted);pointer-events:none}.cx-search-ic .ic{width:16px;height:16px}
.cx{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:start}
.cx-list{display:flex;flex-direction:column;gap:2px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;position:sticky;top:14px}
.cx-item{border:1px solid transparent;border-radius:11px}.cx-item.sel{background:#f2f6f2;border-color:#d3e2d6}.cx-item.inactive{opacity:.55}
.cx-item-main{display:flex;align-items:center;gap:11px;padding:9px 10px;color:inherit;text-decoration:none}.cx-item:not(.sel):hover{background:#f7f9f6}
.cx-num{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;font-weight:650;font-size:13px;flex:none}.cx-num.lg{width:54px;height:54px;border-radius:14px;font-size:17px}
.cx-item-text{flex:1;min-width:0;display:flex;flex-direction:column}.cx-item-text b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cx-item-text small{color:var(--muted);font-size:11.5px}
.cx-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.cx-item-open{font-size:12.5px;font-weight:600;white-space:nowrap}.cx-item-open.none{color:#b4b6b9;font-weight:400}
.cx-warn-ic{color:#c98a1c}.cx-warn-ic .ic{width:15px;height:15px}
.cx-card-extra{display:none}
.cx-add{display:flex;align-items:center;gap:10px;width:100%;margin-top:4px;padding:10px;border:1px dashed #cfdacf;border-radius:11px;background:none;color:#426b50;font:inherit;font-size:13px;cursor:pointer;text-align:left}.cx-add small{display:none}.cx-add-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eef3ee}
.cx-detail{padding:0;overflow:hidden}.cx-back{display:none}
.cx-dhead{display:flex;gap:16px;align-items:flex-start;padding:20px 22px 14px}.cx-dtitle{flex:1;min-width:0}.cx-dtitle h2{margin:0 0 7px;font-size:22px;letter-spacing:-.3px}.cx-addr{display:block;margin-top:8px}
.cx-dstate{display:flex;align-items:center;gap:8px}.cx-dstate form{margin:0}
.cx-pills{display:flex;gap:6px;flex-wrap:wrap}
.cx-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:#f1f3f1;color:#555;font-size:11.5px;text-decoration:none;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.cx-pill .ic{width:12px;height:12px;flex:none}.cx-pill.ok{background:#edf3ed;color:#315c43}.cx-pill.warn{background:#fff3dc;color:#8a5a1c}.cx-pill.blue{background:#eaf0fb;color:#3557a8}.cx-pill.soft{background:#f6f7f5}
.cx-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 16px}
.cx-kpis{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfcfa}
.cx-kpis>div{padding:13px 18px}.cx-kpis>div+div{border-left:1px solid var(--line)}.cx-kpis small{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.cx-kpis small .ic{width:14px;height:14px}.cx-kpis b{display:block;margin-top:3px;font-size:19px;font-weight:650}
.cx-tabs{display:flex;gap:22px;padding:0 22px;border-bottom:1px solid var(--line)}.cx-tabs a{padding:12px 0;color:var(--muted);font-size:13px;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}.cx-tabs a span{margin-left:3px;color:#a3a6aa}.cx-tabs a.on{color:var(--text);font-weight:600;border-bottom-color:#426b50}
.cx-proj{border-bottom:1px solid var(--line)}.cx-proj:last-child{border-bottom:0}.cx-proj.inactive .cx-proj-row{opacity:.5}
.cx-proj-row,.cx-inv{display:flex;align-items:center;gap:14px;padding:13px 22px}
.cx-inv{border-bottom:1px solid var(--line)}
.cx-proj-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;flex:none}.cx-proj-ic .ic{width:17px;height:17px}.cx-proj-ic.hour{background:#eef2ee;color:#4c6a55}.cx-proj-ic.flat{background:#f6f0e4;color:#8a5a1c}
.cx-proj-text{flex:1;min-width:0;display:flex;flex-direction:column}.cx-proj-text b{font-size:14px;font-weight:600}.cx-proj-text small{color:var(--muted);font-size:12px}
.cx-proj-open{font-size:12.5px;font-weight:600;color:#9a6510;white-space:nowrap}.cx-proj-open.none{color:#b4b6b9;font-weight:400}
.cx-proj-acts{display:flex;gap:6px}.cx-proj-acts form{margin:0}
.ibtn[aria-expanded="true"]{background:#edf3ed;border-color:#cfe0d3;color:#315c43}
.cx-proj-edit{padding:4px 22px 20px 70px;background:#fbfcfa;border-top:1px dashed var(--line)}.cx-proj-edit .formgrid{margin-top:12px}
.cx-inv-amt{min-width:90px;text-align:right;font-size:13.5px}
.cx-empty{display:grid;justify-items:center;gap:8px;padding:34px 20px;color:var(--muted)}.cx-empty>.ic{width:26px;height:26px}.cx-empty p{margin:0}
.cx-more{display:inline-flex;margin:12px 22px 18px}
.cx-data{padding:18px 22px 22px}
.cx-alert{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:10px;background:#fff3dc;color:#8a5a1c;font-size:12.5px;text-decoration:none}.cx-alert span{flex:1}.cx-alert .ic{width:15px;height:15px}
@media(max-width:1100px){.cx{grid-template-columns:250px minmax(0,1fr)}.cx-kpis{grid-template-columns:repeat(2,1fr)}.cx-kpis>div:nth-child(3){border-left:0}.cx-kpis>div:nth-child(n+3){border-top:1px solid var(--line)}}
/* Handy und Tablet: Karten (Variante B), Akte nur nach Auswahl */
@media(max-width:900px){
.cx{grid-template-columns:minmax(0,1fr)}
.cx-head{align-items:flex-start}.cx-search{width:100%}.cx-search input{width:100%;flex:1}
.cx:not(.has-selection) .cx-detail{display:none}.cx.has-selection .cx-list{display:none}
.cx-list{position:static;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;padding:0;background:none;border:0}
.cx-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:6px 6px 14px}.cx-item.sel{background:#fff;border-color:var(--line)}
.cx-item-main{padding:10px 10px 4px}.cx-item-side{display:none}.cx-num{width:44px;height:44px;font-size:14px}.cx-item-text b{font-size:15px;white-space:normal}
.cx-card-extra{display:flex;flex-direction:column;gap:11px;padding:0 10px}
.cx-card-extra>small{margin:-6px 0 0 55px}
.cx-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.cx-stats small{display:block;color:var(--muted);font-size:11.5px}.cx-stats b{font-size:15px}.cx-stats b.amber{color:#9a6510}.cx-stats b.none{color:#b4b6b9;font-weight:400}
.cx-card-actions{display:flex;gap:6px}.cx-card-actions .button{flex:1;justify-content:center}.cx-card-actions .ibtn{width:38px;height:38px}
.cx-add{display:grid;justify-items:center;align-content:center;gap:4px;min-height:140px;margin:0;border:1px dashed #cfdacf;background:none;text-align:center}.cx-add small{display:block;color:var(--muted)}
.cx-back{display:inline-flex;align-items:center;gap:6px;margin:14px 18px 0;color:#426b50;font-size:13px;text-decoration:none}.cx-back .ic{transform:rotate(90deg);width:16px;height:16px}
.cx-dhead{padding:14px 18px 12px}.cx-actions{padding:0 18px 14px}.cx-tabs{padding:0 18px}.cx-proj-row,.cx-inv{padding:12px 18px;gap:10px}
.cx-proj-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-template-areas:"ic text acts" ". open open";align-items:center;row-gap:4px}
.cx-proj-ic{grid-area:ic}.cx-proj-text{grid-area:text}.cx-proj-acts{grid-area:acts}.cx-proj-open{grid-area:open}.cx-proj-open.none{display:none}
.cx-proj-acts .ibtn{width:34px;height:34px}.cx.has-selection~*,.cx-toolbar:has(+.cx.has-selection){display:none}
.cx-proj-edit{padding:4px 16px 18px}.cx-data{padding:16px 18px 20px}
}
@media(max-width:520px){.cx-dhead{flex-wrap:wrap}.cx-dstate{width:100%;justify-content:flex-end;margin-top:-6px}.cx-actions .button{flex:1 1 calc(50% - 8px);justify-content:center}.cx-actions .button.primary{flex-basis:100%}.cx-head-actions .button{padding:0 10px}.cx-inv{flex-wrap:nowrap}.cx-inv .badge{display:none}}

/* Abrechnen: Kunden nur mit Pauschalen eingeklappt */
.billing-collapse>summary{list-style:none;cursor:pointer}.billing-collapse>summary::-webkit-details-marker{display:none}
.billing-group.flat-only .sectionhead{margin-bottom:0}.billing-collapse[open]>summary .sectionhead{margin-bottom:14px}
.collapse-hint{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12.5px}.collapse-hint .ic{width:15px;height:15px}
.collapse-chev{transition:transform .15s}.billing-collapse[open] .collapse-chev{transform:rotate(180deg)}
.billing-group.flat-only:not(:has(details[open])){padding-top:14px;padding-bottom:14px}

/* Rechnungsliste: Pillen-Knopf für den nächsten Schritt + ⋯-Menü */
.pill-act{position:relative;display:inline-flex;align-items:center;gap:4px;height:42px;padding:0 5px 0 5px;border:1px solid var(--line);border-radius:999px;background:#fff;white-space:nowrap;box-shadow:0 1px 2px rgba(20,30,25,.05)}
.pill-act>form{display:flex;margin:0}
.pill-main{display:inline-flex;align-items:center;gap:10px;height:34px;padding:0 10px 0 0;border:0;background:none;font:inherit;font-size:13.5px;font-weight:600;color:var(--text);cursor:pointer;border-radius:999px}
.pill-ic{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#fff;transition:transform .12s}.pill-ic .ic{width:16px;height:16px}
.pill-act.send .pill-ic{background:#3f63b0}.pill-act.paid .pill-ic{background:#426b50}
.pill-act:hover{border-color:#cfd8d1;background:#fbfcfa}.pill-main:hover .pill-ic{transform:scale(1.06)}
.pill-main:focus-visible,.pill-chip:focus-visible{outline:2px solid #426b50;outline-offset:2px}
.pill-chip{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px;border:0;border-radius:999px;background:#f1f4f0;color:#555;font:inherit;font-size:12px;cursor:pointer}
.pill-chip .ic{width:14px;height:14px}.pill-chip:hover,.pill-chip[aria-expanded="true"]{background:#e4ebe5;color:#315c43}
.more-menu{position:relative}
.menu-title{font-size:11.5px;color:var(--muted);margin:0 2px 8px}
.split-reset{margin:8px 0 0}.menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 9px;border:0;border-radius:8px;background:none;font:inherit;font-size:13px;color:var(--text);cursor:pointer;text-align:left}
.menu-item .ic{width:15px;height:15px}.menu-item:hover{background:#f4f6f3}.menu-item.danger{color:#b4423a}.menu-item.danger:hover{background:#fbefee}
.split-date+.split-reset{padding-top:0}.split-reset+.split-date{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.menu-empty{margin:0;color:var(--muted);font-size:12.5px}
.row-actions .done-note{margin-right:4px}
@media(max-width:760px){.inv2 .more-menu .split-menu{left:auto;right:0}}

/* Rechnungsliste: einheitliche Schrift in der Zeile (Verlauf bewusst kleiner) */
.inv2 td{font-size:13px}
.inv2 .c-no b{font-size:13px;font-weight:600}
.inv2 .c-no .cell-sub{font-size:12px}
.inv2 .c-client{font-size:13px;font-weight:400}
.inv2 .c-amt{font-size:13px;font-weight:600}
.inv2 .pill-main{font-size:13px;font-weight:600}
.inv2 .pill-chip{font-size:12px}
.inv2 .done-note{font-size:13px}
.inv2 th{font-size:11px}
@media(max-width:760px){.inv2 .c-amt{font-size:15px}}

/* Markieren-Knöpfe: kleiner, gleich breit, bündig */
.inv2 .pill-act{width:244px;height:34px;padding:0 4px 0 3px;gap:2px;justify-content:space-between}
.inv2 .pill-main{height:28px;gap:7px;padding:0 6px 0 0;font-size:12.5px}
.inv2 .pill-ic{width:26px;height:26px}.inv2 .pill-ic .ic{width:14px;height:14px}
.inv2 .pill-chip{height:24px;padding:0 8px;font-size:11.5px;gap:4px}.inv2 .pill-chip .ic{width:12px;height:12px}
.inv2 .done-note{width:244px;justify-content:center}
.inv2 .row-actions .ibtn{width:34px;height:34px}
@media(max-width:760px){.inv2 .done-note{width:auto}}

/* ================= Handy-Remake (≤650px) ================= */
.m-only,.mtabs,.tsheet,.tsheet-dim,.msheet-dim{display:none}
.menu-title b{display:block;font-size:13px;color:var(--text)}.menu-title span{font-size:11.5px}
@media(max-width:650px){
.d-only{display:none!important}.m-only{display:block}
body{background:#f6f7f4}
.sidebar{display:none}.topline{display:none}
.content{padding:calc(10px + env(safe-area-inset-top)) 14px calc(110px + env(safe-area-inset-bottom))}
/* Große Titel */
.pagehead{margin:4px 2px 14px;gap:10px}.pagehead h1{font-size:30px;letter-spacing:-.7px;line-height:1.1}.pagehead .h1-ic{display:none}.pagehead p{margin-top:2px;font-size:13px}
.page-actions .button,.pagehead>.button,.pagehead>a.button{display:none}
.notice{margin:0 0 12px;border-radius:14px}
/* Tab-Leiste */
.mtabs{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 6px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);border-top:1px solid #e3e7e1;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.mtab{display:flex;flex-direction:column;align-items:center;gap:3px;padding:2px 0;color:#8a8e88;font-size:10.5px;text-decoration:none;background:none;border:0;font-family:inherit}
.mtab .ic{width:23px;height:23px}.mtab.on{color:#315c43;font-weight:600}
.mfab{position:relative;justify-content:flex-end;cursor:pointer}.mfab-b{position:absolute;top:-26px;display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:#426b50;color:#fff;box-shadow:0 8px 20px rgba(66,107,80,.45)}.mfab-b .ic{width:28px;height:28px}
body.sheet-open{overflow:hidden}
/* Sheets */
.tsheet-dim,.msheet-dim{display:block;position:fixed;inset:0;z-index:50;background:rgba(16,20,17,.4);opacity:0;pointer-events:none;transition:opacity .2s}
.tsheet-dim.in,.msheet-dim.in{opacity:1;pointer-events:auto}.tsheet-dim[hidden]{display:none}
.tsheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;max-height:92vh;overflow:auto;background:#fff;border-radius:26px 26px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.18);transform:translateY(100%);transition:transform .22s ease}
.tsheet.in{transform:none}.tsheet[hidden]{display:none}
.grab{width:42px;height:5px;border-radius:3px;background:#d6dad4;margin:0 auto 12px;cursor:pointer}
.ts-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ts-head h2{margin:0;font-size:21px}
.ts-date{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:36px;border-radius:12px;background:#f1f4f0;color:#4c5a51}.ts-date input{border:0;background:none;height:34px;padding:0;font:inherit;font-size:14px;width:132px;color:inherit}
.ts-lbl{font-size:12.5px;color:#7b7f79;margin:14px 2px 7px;font-weight:500}
.ts-chips{display:flex;gap:7px;flex-wrap:wrap}
.tchip{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:13px;background:#fff;border:1px solid #e1e5df;font:inherit;font-size:13.5px;color:var(--text);cursor:pointer}
.tchip.on{background:#edf3ed;border-color:#b9d1bf;color:#264d36;font-weight:600}.tchip .dot{width:9px;height:9px;border-radius:50%}
.ts-select{margin-top:8px;width:100%;height:42px;border-radius:13px}
.ts-dur{display:flex;align-items:center;justify-content:space-between;background:#f4f6f2;border-radius:18px;padding:10px 12px;text-align:center}
.ts-dur b{display:block;font-size:42px;letter-spacing:-1.4px;line-height:1.1}.ts-dur small{color:#7b7f79;font-size:12px}
.ts-step{width:48px;height:48px;border-radius:50%;border:1px solid #e1e5df;background:#fff;font-size:24px;color:#4c5a51;cursor:pointer}
.ts-presets{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:9px}.ts-presets .tchip{justify-content:center;padding:9px 0}
.tsheet textarea{width:100%;min-height:52px;border-radius:14px;font-size:16px;padding:11px 13px}
.ts-toggle{display:flex;align-items:center;justify-content:space-between;margin:12px 2px 14px;font-size:14px}.ts-toggle input{position:absolute;opacity:0}
.ts-toggle i{position:relative;width:48px;height:29px;border-radius:15px;background:#cfd5ce;transition:background .15s}.ts-toggle i::after{content:"";position:absolute;left:3px;top:3px;width:23px;height:23px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.ts-toggle input:checked+i{background:#426b50}.ts-toggle input:checked+i::after{transform:translateX(19px)}.ts-toggle input:focus-visible+i{outline:2px solid #426b50;outline-offset:2px}
.ts-save{width:100%;height:52px;border-radius:16px;font-size:16px;justify-content:center}
/* Heute */
.m-title{display:flex;justify-content:space-between;align-items:center;margin:4px 2px 14px}.m-title small{color:#7b7f79;font-size:13px}.m-title h1{margin:2px 0 0;font-size:30px;letter-spacing:-.7px}
.m-circ{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid #e3e7e1;color:#4c5a51}
.m-hero{background:#24372b;color:#fff;border-radius:22px;padding:16px}.m-hero-top{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;opacity:.85}
.m-hero-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.14)}.m-hero-pill .ic{width:13px;height:13px}
.m-hero-amt{font-size:34px;font-weight:700;letter-spacing:-1px;margin:4px 0 12px}
.m-hero-acts{display:flex;gap:8px}.m-hbtn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;height:44px;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;font-weight:600;font-size:14px;text-decoration:none}.m-hbtn.light{background:#fff;color:#24372b}.m-hbtn .ic{width:18px;height:18px}
.m-lbl{font-size:12.5px;color:#7b7f79;margin:18px 4px 8px;font-weight:500}.m-lbl-row{display:flex;justify-content:space-between}.m-lbl-row a{color:#426b50;font-weight:600;text-decoration:none}
.m-card{background:#fff;border:1px solid #e6e9e4;border-radius:20px;padding:2px 14px}
.m-li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eef0ec;color:inherit;text-decoration:none}.m-li:first-child{border-top:0}.m-li form{margin:0}
.m-li-t{flex:1;min-width:0;display:flex;flex-direction:column}.m-li-t b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-li-t small{color:#7b7f79;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-sq{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex:none}.m-sq .ic{width:19px;height:19px}.m-sq.send{background:#eaf0fb;color:#3f63b0}.m-sq.due{background:#fff3dc;color:#9a6510}.m-sq.flat{background:#f6f0e4;color:#8a5a1c}
.m-chipbtn{height:34px;padding:0 13px;border-radius:11px;border:1px solid #e1e5df;background:#fff;font:inherit;font-size:13px;font-weight:600;color:var(--text);cursor:pointer}
.m-go{transform:rotate(-90deg);color:#9a9e98;width:18px;height:18px}
.m-dot{width:10px;height:10px;border-radius:50%;flex:none}.m-h{font-size:14px;white-space:nowrap}
.m-empty{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:20px 0;border:0;background:none;font:inherit;color:#7b7f79;cursor:pointer}.m-empty b{color:#426b50;font-size:14px}.m-empty .ic{width:24px;height:24px}
/* Rechnungen: Karten */
.page-invoices .invoice-overview{margin-bottom:10px}
.inv2 tr{background:#fff;border:1px solid #e6e9e4!important;border-radius:20px;padding:14px!important;margin-bottom:10px;grid-template-areas:"no amt" "trk trk" "doc act"!important;gap:10px!important}
.inv2 .c-client{display:none}
.inv2 .c-no b{font-size:15px}.inv2 .c-no .cell-sub{font-size:12px}
.inv2 .c-no::after{content:attr(data-client);display:block;color:#7b7f79;font-size:12.5px;margin-top:1px}
.inv2 .c-amt{font-size:16px!important;align-self:start}
.inv2 .doc-tools .ibtn{width:40px;height:40px;border-radius:50%}
.inv2 .doc-tools a[href*="action=pdf&id"],.inv2 .doc-tools a[href*="xrechnung"]{display:none}
.inv2 .c-act{justify-self:end}.inv2 .row-actions{gap:6px}
.inv2 .row-actions>.delete-action,.inv2 .row-actions>.ibtn.ghost{display:none}
.inv2 .pill-act{width:auto!important;height:42px!important;padding:0 14px 0 4px!important;border:0;border-radius:14px;color:#fff}
.inv2 .pill-act.send{background:#3f63b0}.inv2 .pill-act.paid{background:#426b50}
.inv2 .pill-main{color:#fff;font-size:14px!important;height:42px!important;padding:0!important;gap:6px!important}
.inv2 .pill-ic{background:none!important;width:30px!important;height:30px!important}
.inv2 .pill-chip{display:none}
.inv2 .more-menu{order:-1}.inv2 .more-menu>.ibtn{width:40px;height:40px;border-radius:50%}
.inv2 .done-note{width:auto!important}
/* Menüs als Sheet von unten */
[data-split] .split-menu{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;z-index:70;width:auto!important;max-height:88vh;overflow:auto;border-radius:26px 26px 0 0;padding:18px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.2);border:0}
[data-split] .split-menu::before{content:"";display:block;width:42px;height:5px;border-radius:3px;background:#d6dad4;margin:-8px auto 14px}
.msheet-dim{z-index:65}
.split-menu .menu-title{margin:0 2px 12px}.split-menu .menu-title b{font-size:19px}.split-menu .menu-title span{font-size:13px}
.split-date label{font-size:13px}.split-date input{height:46px;font-size:16px}.split-date .button{height:48px;border-radius:14px;font-size:15px}
.menu-item{padding:14px 4px;font-size:15.5px;border-radius:0;border-top:1px solid #f0f2ee}.menu-item .ic{width:21px;height:21px}
.m-sheet-items{margin-top:10px}
/* Abrechnen */
.page-billing .billing-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}.page-billing .billing-summary>a{display:none}
.billing-group{border-radius:20px;padding:14px}
.billing-table thead tr{display:flex}.billing-table thead th{display:none}.billing-table thead th.select-col{display:block;padding:0 0 8px}
.billing-table tbody tr{display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"cb main amt" "cb sub dur";gap:1px 10px;padding:11px 0;border-top:1px solid #eef0ec}
.billing-table td{display:block;padding:0!important;border:0!important;white-space:normal!important;min-width:0!important}
.billing-table td:nth-child(1){grid-area:cb;align-self:center}.billing-table td:nth-child(2){grid-area:sub;font-size:12px;color:#7b7f79}
.billing-table td:nth-child(3),.billing-table td:nth-child(5),.billing-table td:nth-child(7){display:none}
.billing-table td:nth-child(4){grid-area:main}.billing-table td:nth-child(4) b{font-size:14px}.billing-table td:nth-child(4) small{display:block;font-size:12px;color:#7b7f79}
.billing-table td:nth-child(6){grid-area:dur;font-size:11.5px;color:#7b7f79;text-align:right}.billing-table td:nth-child(8){grid-area:amt;font-weight:600;font-size:14px}
.billing-table .billing-entry{width:22px;height:22px;accent-color:#426b50}
.billing-actions{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));z-index:20;display:none!important;margin:10px -4px 0;padding:12px 12px 12px 16px;background:#202124;color:#fff;border-radius:18px;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.billing-form.has-sel .billing-actions{display:flex!important}
.billing-actions .muted{color:rgba(255,255,255,.75)}.billing-actions .muted b{display:block;color:#fff;font-size:18px}.billing-actions small{display:none}
.billing-actions .button{height:44px;border-radius:13px;white-space:nowrap}
/* Kunden: kompakte Liste */
.page-clients .cx-head-actions .button:first-child{display:none}.page-clients .cx-head-actions .button.primary{width:42px;height:42px;padding:0;border-radius:50%;justify-content:center;font-size:0}.page-clients .cx-head-actions .button.primary .ic{width:22px;height:22px;margin:0}
.cx-toolbar{flex-direction:column-reverse;align-items:stretch;gap:10px}.cx-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.cx-chip{white-space:nowrap}
.cx-search input{border-radius:13px;background:#eceee9;border-color:transparent;height:42px;font-size:15px}
.cx-list{display:block!important;background:#fff!important;border:1px solid #e6e9e4!important;border-radius:20px!important;padding:2px 14px!important}
.cx-item{background:none!important;border:0!important;border-top:1px solid #eef0ec!important;border-radius:0!important;padding:0!important}.cx-item:first-child{border-top:0!important}
.cx-item-main{padding:12px 0!important}.cx-num{width:40px!important;height:40px!important}
.cx-item-side{display:flex!important}.cx-item-main::after{content:"";width:8px;height:8px;border-right:1.8px solid #9a9e98;border-top:1.8px solid #9a9e98;transform:rotate(45deg);margin-left:4px;flex:none}
.cx-card-extra{display:none!important}
.cx-add{display:flex!important;min-height:0!important;border:0!important;border-top:1px solid #eef0ec!important;border-radius:0!important;padding:12px 0!important;justify-items:start!important}.cx-add small{display:none!important}
.cx-detail{border-radius:20px}
/* Formulare und Karten allgemein */
.card{border-radius:20px}
input,select,textarea{font-size:16px}
}
/* Darstellung (Verwaltung) */
.theme-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 14px}
.theme-opt{position:relative;display:flex;flex-direction:column;gap:9px;padding:10px;border:1.5px solid var(--line);border-radius:14px;cursor:pointer}
.theme-opt input{position:absolute;opacity:0}.theme-opt:has(input:checked){border-color:#426b50;box-shadow:0 0 0 3px rgba(66,107,80,.15)}.theme-opt:has(input:focus-visible){outline:2px solid #426b50;outline-offset:2px}
.theme-prev{display:grid;grid-template-columns:28% 1fr;grid-template-rows:1fr 1fr;gap:5px;height:62px;padding:6px;border-radius:9px;background:#f7f8f5;border:1px solid #e3e7e1}
.theme-prev i{border-radius:4px;background:#fff;border:1px solid #e3e7e1}.theme-prev i:first-child{grid-row:span 2;background:#eef3ee}
.theme-prev-dark{background:#141815;border-color:#2a312c}.theme-prev-dark i{background:#1f2621;border-color:#2e3631}.theme-prev-dark i:first-child{background:#1a201c}
.theme-prev-auto{background:linear-gradient(135deg,#f7f8f5 50%,#141815 50%)}.theme-prev-auto i{background:rgba(255,255,255,.6);border-color:rgba(128,128,128,.3)}
.theme-txt{display:grid;grid-template-columns:auto 1fr;column-gap:7px;align-items:center}.theme-txt .ic{grid-row:span 2;width:18px;height:18px;color:#4c6a55}.theme-txt b{font-size:13.5px}.theme-txt small{color:var(--muted);font-size:11.5px}
@media(max-width:650px){.theme-opts{grid-template-columns:1fr}.theme-opt{flex-direction:row;align-items:center}.theme-prev{width:86px;height:56px;flex:none}}
@media(max-width:650px){
.inv2 tr{grid-template-columns:minmax(0,1fr) auto!important}
.inv2 .doc-tools .einv-badge.ok{display:none}
.inv2 .doc-tools{gap:6px}
.inv2 .pill-act{padding:0 12px 0 2px!important}
.inv2 .pill-main{gap:4px!important;font-size:13.5px!important}
.tchip{max-width:100%;text-align:left}
.ts-chips .tchip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}
.ts-chips .tchip .dot{display:inline-block;margin-right:7px;vertical-align:1px}
.ts-date input{width:auto}
}
@media(max-width:650px){.cx-toolbar{min-width:0}.cx-chips{max-width:100%;min-width:0}}
.m-inline{display:none}
@media(max-width:650px){
.d-inline{display:none}.m-inline{display:inline}
.billing-actions{flex-direction:row!important;text-align:left}.billing-actions>.muted{font-size:12px;line-height:1.25}.billing-actions .button{flex:none;width:auto!important;padding:0 14px}
.inv2 .c-no{min-width:0}.inv2 .c-no::after{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2 .doc-tools>*{flex:none}
}
@media(max-width:650px){
.inv2 tr{display:flex!important;flex-wrap:wrap;align-items:center}
.inv2 .c-no{flex:1 1 0;order:1}.inv2 .c-amt{order:2;flex:none}
.inv2 .c-trk{order:3;flex:0 0 100%}
.inv2 .c-doc{order:4;flex:1 1 auto}.inv2 .c-act{order:5;flex:none;margin-left:auto}
}
@media(max-width:650px){
.inv2 tr{column-gap:6px!important}
.inv2 .doc-tools .ibtn,.inv2 .more-menu>.ibtn{width:38px!important;height:38px!important}
.inv2 .doc-tools{gap:6px}.inv2 .row-actions{gap:6px!important}
.inv2 .pill-act{height:40px!important;padding:0 12px 0 2px!important}.inv2 .pill-main{height:40px!important;font-size:13.5px!important}
.inv2 .c-doc{flex:0 1 auto}.inv2 .c-act{flex:1 1 auto}.inv2 .c-act .row-actions{justify-content:flex-end}
}
@media(max-width:360px){.inv2 .doc-tools .mail-action{display:none}}
@media(max-width:650px){.page-invoices .card:has(.inv2){background:none;border:0;padding:0;box-shadow:none}.page-invoices .card:has(.inv2) .invoice-overview{background:#fff;border:1px solid #e6e9e4;border-radius:20px;padding:14px}}

/* Mail */
.mail-tabs{display:flex;gap:6px;margin:0 0 14px;flex-wrap:wrap}
.mail-tab{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#444;font-size:13px;text-decoration:none}
.mail-tab .ic{width:15px;height:15px}.mail-tab.on{background:#24262b;border-color:#24262b;color:#fff}
.mail-list{padding:4px 0;overflow:hidden}.ml-sum{padding:8px 18px 6px;font-size:12px}
.ml-row{display:flex;gap:12px;align-items:flex-start;padding:12px 18px;border-top:1px solid var(--line);color:inherit;text-decoration:none}.ml-row:hover{background:#f7f9f6}
.ml-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;flex:none;background:transparent}.ml-row.unread .ml-dot{background:#3f63b0}.ml-row.unread b{font-weight:700}
.ml-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ml-top{display:flex;align-items:center;gap:8px}.ml-top b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-top small{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.ml-subj{display:flex;align-items:center;gap:6px;color:#555;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-att{width:14px;height:14px;color:#888;flex:none}
.ml-state{display:grid;place-items:center;flex:none;margin-top:1px}.ml-state .ic{width:17px;height:17px}.ml-state.ok{color:#1f9d55}.ml-state.warn{color:#c98a1c}.ml-state.bad{color:#b4423a}
.ml-fail{color:#b4423a;font-style:normal}
.mail-view{padding:20px 22px}.mail-view header{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}.mail-view h2{margin:0 0 8px;font-size:19px}
.mv-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mv-from small{color:var(--muted)}.mv-meta>small{margin-left:auto}
.mv-text{font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;max-width:78ch}
.mv-atts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.mail-back{display:none}
.mail-err{display:flex;gap:8px;align-items:center;padding:10px 12px;border-radius:10px;background:#fbefee;color:#9b2f28;font-size:13px}
.mail-compose{padding:20px 22px;max-width:860px}.mc-head h2{margin:0 0 12px;font-size:18px}
.mc-row{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}.mc-row label{color:var(--muted);font-size:13px}
.mc-row input{border:0;box-shadow:none;background:transparent;height:36px;padding:0 4px;font-size:14px}.mc-row input:focus{outline:2px solid rgba(66,107,80,.35);border-radius:8px}
.mc-static{font-size:14px;color:#444}
.mc-body{width:100%;min-height:260px;margin-top:12px;border-radius:12px;font-size:14px;line-height:1.55;resize:vertical}
.mc-attach{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.mc-file{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa;color:inherit;text-decoration:none;cursor:pointer}
.mc-file input{width:18px;height:18px;accent-color:#426b50}.mc-file-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#f6f0e4;color:#8a5a1c;flex:none}.mc-file-ic .ic{width:17px;height:17px}
.mc-file-t{flex:1;min-width:0;display:flex;flex-direction:column}.mc-file-t b{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-file-t small{color:var(--muted);font-size:12px}
.mc-opts{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:13px}.mc-opts .check{display:inline-flex;align-items:center;gap:7px}
.mc-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.notice-error{border-color:#f0c9c5}
.m-title-acts{display:flex;gap:8px}
@media(max-width:650px){
.mail-tabs{flex-wrap:nowrap;overflow-x:auto}.mail-tab{white-space:nowrap}
.mail-list{border-radius:20px}.ml-row{padding:12px 14px}
.mail-view{padding:14px 16px;border-radius:20px}.mail-back{display:inline-flex;margin:0 0 10px}.mv-meta>small{margin-left:0}
.mail-compose{padding:14px 14px 16px;border-radius:20px}.mc-row{grid-template-columns:56px 1fr}.mc-body{min-height:220px;font-size:16px}
.mc-actions{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));background:inherit;padding:10px 0 0}.mc-actions .button{flex:1;justify-content:center;height:46px;border-radius:14px}
.pagehead>.button.primary[href*="new=1"]{display:inline-flex;width:42px;height:42px;padding:0;border-radius:50%;justify-content:center;font-size:0}.pagehead>.button.primary[href*="new=1"] .ic{width:20px;height:20px;margin:0}
}

/* Kundendetail: Kopf rechts (Status, Stammdaten, Aktivieren) einheitlich */
.cx-dstate{align-self:flex-start;gap:6px}
.cx-dstate .cx-state-badge,.cx-headbtn,.cx-dstate .cx-headicon{height:32px;border-radius:9px;box-sizing:border-box}
.cx-dstate .cx-state-badge{display:inline-flex;align-items:center;padding:0 11px;font-size:12.5px}
.cx-headbtn{display:inline-flex;align-items:center;gap:6px;padding:0 11px;border:1px solid var(--line);background:#fff;color:#33413a;font-size:12.5px;font-weight:500;text-decoration:none;white-space:nowrap}
.cx-headbtn .ic{width:15px;height:15px}.cx-headbtn:hover{background:#f3f6f2;border-color:#d4ddd5}
.cx-headbtn.on{background:#edf3ed;border-color:#cfe0d3;color:#315c43}
.cx-dstate .cx-headicon{width:32px}
@media(max-width:520px){.cx-dstate{justify-content:flex-start;margin-top:0}}

/* Formulare: Felder nicht strecken, wenn das Nachbarfeld einen Hinweis hat */
.formgrid>label{align-self:start}

/* Navigation: Gruppen mit Trennlinien */
.sidebar nav .navsep{border:0;border-top:1px solid var(--line);margin:8px 10px}
.sidebar nav{margin-top:10px}
@media(max-width:650px){.sidebar nav .navsep{display:none}}

/* Auswahlfelder: eigener, schlanker Pfeil statt des Systempfeils */
select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:38px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626b65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;cursor:pointer}
select:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315c43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}
select[multiple],select[size]:not([size="1"]){background-image:none;padding-right:12px!important}
select::-ms-expand{display:none}
