:root{--bg:#f6f8fb;--ink:#142236;--muted:#718095;--line:#e6ebf2;--blue:#1477e8;--blue2:#edf5ff;--green:#10836b;--card:#fff;--shadow:0 4px 24px rgba(31,52,80,.045)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;font-size:14px;line-height:1.5}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3.2vw,38px);font-weight:780;letter-spacing:-.045em;line-height:1.15;margin-bottom:10px}h2{font-size:19px;font-weight:750;letter-spacing:-.025em;margin-bottom:17px}h3{font-size:15px}p{color:#64748b}small{font-size:12px;color:var(--muted)}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;border:1px solid #dce4ee;border-radius:10px;background:#fff;color:var(--ink);min-height:43px;padding:10px 12px;outline:none}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#66a2f3;box-shadow:0 0 0 3px rgba(20,119,232,.09)}.topbar{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.topinner{max-width:1220px;min-height:73px;padding:0 24px;margin:auto;display:flex;align-items:center;gap:46px}.brand{font-size:23px;font-weight:800;letter-spacing:-.06em;display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-symbol{background:#e8f2ff;border-radius:11px;color:#1680f4;font-size:21px;letter-spacing:0;padding:1px 10px;line-height:36px}.brand-accent{color:var(--blue)}nav{display:flex;gap:28px;height:73px;align-items:center}nav a{height:100%;display:flex;align-items:center;border-bottom:2px solid transparent;color:#6c7c90;font-weight:600}nav a.active{border-color:var(--blue);color:var(--blue)}.right-tools{margin-left:auto;display:flex;align-items:center;gap:22px}.logout{border:0;background:none;color:#78869a;font-weight:600;padding:8px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:10px;border:1px solid #dee6f0;background:#fff;color:#3b5068;font-weight:680;padding:10px 16px;white-space:nowrap;transition:background .15s}.button:hover{background:#f1f5fb;color:var(--ink)}.button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.button.primary:hover{background:#0966d4;color:#fff}.button.small{padding:7px 13px;min-height:36px}.button.full{width:100%}.container{max-width:1220px;margin:0 auto;padding:36px 24px 78px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.page-heading p{font-size:14px;margin:0}.eyebrow{color:#5c90c6;font-size:11px;font-weight:800;letter-spacing:.12em;display:block;margin-bottom:12px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:28px}.stat{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:15px;padding:20px 22px;min-height:135px}.stat>span{display:block;font-size:12px;color:#7d8b9e;font-weight:700}.stat strong{font-size:32px;line-height:1.6;font-weight:790;display:block;letter-spacing:-.04em}.stat small{display:block}.stat a{color:var(--blue)}.upload-panel{background:#eff6ff;border:1px solid #d7e8ff;border-radius:17px;padding:24px;display:grid;grid-template-columns:70px minmax(270px,1fr) auto;gap:22px;align-items:center;margin-bottom:35px}.upload-panel.compact{margin-top:12px}.upload-graphic{height:66px;width:66px;border-radius:15px;background:#fff;display:grid;place-items:center;font-size:29px;box-shadow:0 3px 12px rgba(19,78,140,.05)}.upload-copy h2{margin:0 0 5px}.upload-copy p{margin:0 0 5px;max-width:530px;color:#607992}.upload-copy small{color:#5285b7}.upload-form{display:flex;flex-direction:column;gap:9px;align-items:stretch;min-width:220px}.upload-choose{display:flex;align-items:center;gap:10px;min-height:43px;max-width:300px;border:1px dashed #a0c5ee;background:#fff;border-radius:10px;padding:10px 13px;color:#3a6d9c;font-weight:600;cursor:pointer}.upload-choose input{font-size:11px;padding:0;border:0;min-height:auto;background:none;max-width:200px}.section-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 16px}.section-header h2{margin-bottom:1px}.section-header a{font-weight:600;color:var(--blue)}.section-header.after{margin-top:37px}.muted{color:var(--muted)}.filters{display:flex;gap:12px;margin-bottom:20px}.filters .search-field{position:relative;display:flex;align-items:center;flex:1}.search-field span{position:absolute;left:14px;font-size:22px;color:#8ca0b6}.search-field input{padding-left:40px}.filters select{max-width:230px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card{border-radius:16px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;transition:transform .15s,box-shadow .15s}.product-card:hover{box-shadow:0 8px 26px rgba(31,52,80,.08);transform:translateY(-2px)}.product-thumb{display:grid;place-items:center;height:170px;background:linear-gradient(130deg,#f4f8fc,#edf2f8);overflow:hidden}.product-icon{font-size:58px;filter:drop-shadow(0 8px 8px rgba(50,60,80,.04))}.product-photo{width:100%;height:100%;object-fit:contain}.product-content{padding:17px 18px 14px}.category-label{font-size:11px;text-transform:uppercase;color:#8c9aab;font-weight:780;letter-spacing:.055em}.product-name{font-weight:750;font-size:16px;display:block;margin:4px 0 14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-line{display:flex;align-items:baseline;gap:7px}.stock-line strong{font-size:26px;line-height:1.2;letter-spacing:-.03em}.stock-line strong.zero{color:#c35b5b}.stock-line span{font-size:12px;color:#8290a1}.stock-bottom{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;align-items:center;gap:8px}.stock-bottom small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-controls{display:flex;gap:7px;flex-shrink:0}.stock-controls button{width:34px;height:34px;border-radius:9px;font-size:22px;display:grid;place-items:center;line-height:1;font-weight:500}.stock-controls .minus{border:1px solid #e5eaf0;background:#f7f9fb;color:#6b7f95}.stock-controls .plus{border:1px solid #d3e8ff;background:var(--blue2);color:#1477e8}.stock-controls button:hover{filter:brightness(.96)}.stock-controls.large button{height:46px;width:46px;font-size:25px}.doc-list{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}.doc-row{padding:17px 20px;display:flex;gap:14px;align-items:center;border-bottom:1px solid var(--line)}.doc-row:last-child{border-bottom:0}.doc-row:hover{background:#fafcff}.doc-icon{background:#f2f6fb;border-radius:10px;display:grid;place-items:center;font-size:24px;width:44px;height:44px}.doc-main{flex:1;min-width:0}.doc-main strong{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-main small{display:block}.doc-meta{font-size:12px;color:#6e849b;white-space:nowrap}.doc-arrow{font-size:20px;color:#91a2b5}.footer{text-align:center;color:#a2adba;font-size:12px;padding:10px 20px 30px}.back{display:inline-block;color:#5d85ad;font-weight:650;margin-bottom:14px}.panel{background:#fff;border-radius:16px;border:1px solid var(--line);padding:25px;box-shadow:var(--shadow)}.edit-panel{max-width:820px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}.form-grid label,.auth label{display:flex;flex-direction:column;gap:7px;color:#63748a;font-size:12px;font-weight:730}.form-grid label small{font-weight:400}.span2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.empty-state{padding:52px 24px;text-align:center;background:#fff;border:1px dashed #d4dde8;border-radius:16px;color:#718096}.empty-state>span{font-size:48px;display:block;margin-bottom:8px}.empty-state h3{font-size:18px;margin-bottom:6px}.empty-state p{margin-bottom:24px}.alert{padding:13px 17px;border-radius:10px;margin-bottom:18px;background:#e6f7f0;color:#19624c;border:1px solid #c5ebdc;font-weight:600}.alert.error{background:#fff0f0;color:#983b3b;border-color:#ffd0d0}.alert.warning{background:#fff7e8;color:#8c6024;border-color:#f5e0b8}.auth-layout{min-height:72vh;display:grid;place-items:center}.auth{max-width:420px;width:100%;padding:36px}.auth h1{font-size:27px;margin-bottom:7px}.auth p{margin-bottom:25px}.auth form{display:grid;gap:16px}.auth form button{margin-top:6px}.auth-mark{display:grid;place-items:center;font-size:30px;width:55px;height:55px;border-radius:13px;background:#edf5ff;color:#1477e8;margin-bottom:18px}.product-detail-head{display:flex;gap:25px;align-items:center;margin:12px 0 28px}.detail-photo{height:176px;width:196px;flex:0 0 196px;display:grid;place-items:center;border:1px solid var(--line);border-radius:16px;background:linear-gradient(130deg,#f4f8fc,#eaf2fc);overflow:hidden}.detail-photo .big{font-size:76px}.detail-stock{display:flex;align-items:center;gap:12px;margin-top:15px}.detail-stock>strong{font-size:39px;letter-spacing:-.045em}.detail-stock>span{color:#7e8ba0}.detail-stock .stock-controls{margin-left:20px}.two-col{display:grid;grid-template-columns:1.2fr 1fr;gap:19px}.event-list{border-top:1px solid var(--line)}.event-row{display:flex;gap:16px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}.event-sign{font-weight:800;font-size:15px;min-width:61px}.event-sign.in{color:#18816e}.event-sign.out{color:#b06854}.event-row strong{font-size:13px;display:block}.event-row small{display:block}.event-row a{color:var(--blue)}.recognition-info{background:#ebf5ff;border:1px solid #d7eaff;border-radius:11px;display:flex;gap:12px;align-items:center;color:#44749e;padding:12px 17px;margin-bottom:20px}.recognition-info strong{white-space:nowrap;color:#2169a4}.recognition-info span{font-size:12px}.doc-detail{grid-template-columns:1.3fr .9fr;align-items:start}.review-items{margin:16px 0}.review-item{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:11px;background:#fafcff}.check-review{display:flex;align-items:center;gap:7px;font-weight:700;margin-bottom:11px}.check-review input{width:17px;height:17px;min-height:0}.review-fields{display:grid;grid-template-columns:2fr .8fr 1.25fr;gap:9px;margin-bottom:7px}.review-fields label{font-size:11px;font-weight:700;color:#7e8ba0}.review-fields input,.review-fields select{min-height:37px;padding:6px 9px;margin-top:5px;font-size:12px}.imported-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;justify-content:space-between}.imported-row span{font-size:12px;color:#2e7465}.link-button{border:none;background:none;color:#a35b4c;font-size:12px;font-weight:700}.receipt-image{width:100%;object-fit:contain;max-height:550px;border-radius:9px;border:1px solid #e6ebf2}.pdf-preview{height:220px;background:#f5f7fb;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:65px}.pdf-preview span{font-size:14px;margin-top:9px;color:var(--blue);font-weight:700}.raw-text{margin-top:17px}.raw-text summary{font-weight:720;cursor:pointer}.raw-text pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;margin-top:20px;max-height:500px;overflow:auto}.section-header.after{margin-bottom:15px}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.upload-panel{grid-template-columns:66px 1fr}.upload-form{grid-column:2;max-width:370px;flex-direction:row;align-items:end}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.topinner{gap:22px}}@media(max-width:700px){.container{padding:24px 15px 50px}.topinner{padding:9px 15px;min-height:auto;gap:12px;flex-wrap:wrap}.brand{font-size:20px}.brand-symbol{font-size:17px;line-height:32px}nav{order:3;width:100%;height:40px;gap:22px}nav a{height:40px;font-size:12px}.right-tools{gap:12px}.right-tools .button{font-size:12px;padding:7px 9px}.logout{font-size:12px}.page-heading{align-items:start}.page-heading .button{display:none}.page-heading h1{font-size:27px}.stats{gap:9px;margin-bottom:18px}.stat{padding:13px 15px;min-height:112px}.stat strong{font-size:27px}.upload-panel,.upload-panel.compact{grid-template-columns:1fr;padding:16px;gap:10px}.upload-graphic{height:42px;width:42px;font-size:20px}.upload-form{grid-column:1;max-width:none;display:flex;flex-wrap:wrap}.upload-form .upload-choose{flex:1}.upload-form .button{flex:1}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-thumb{height:125px}.product-icon{font-size:44px}.product-content{padding:12px}.product-name{font-size:13px;min-height:40px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:9px}.stock-line strong{font-size:22px}.stock-line span{font-size:10px}.stock-bottom{flex-wrap:wrap}.stock-bottom small{width:100%}.stock-controls button{height:32px;width:32px}.filters{flex-wrap:wrap;gap:8px}.filters .search-field{flex:1 1 100%}.filters select{flex:1;max-width:none}.filters button{flex:0 0 auto}.two-col,.doc-detail{grid-template-columns:1fr}.product-detail-head{gap:13px}.detail-photo{width:112px;height:120px;flex-basis:112px}.detail-photo .big{font-size:52px}.detail-stock{gap:7px;flex-wrap:wrap}.detail-stock>strong{font-size:29px}.detail-stock .stock-controls{margin-left:0}.panel{padding:17px}.review-fields{grid-template-columns:1fr 1fr}.review-fields label:first-child{grid-column:span 2}.doc-row{padding:14px 12px}.doc-meta{font-size:10px}.recognition-info{align-items:start;flex-direction:column;gap:4px}.form-grid{gap:12px}.auth{padding:24px}}@media(max-width:390px){.product-grid{grid-template-columns:1fr 1fr}.product-thumb{height:110px}.stock-line{flex-wrap:wrap}.right-tools{gap:4px}.right-tools .button{display:none}}

.stock-controls .adjust-amount{width:85px;min-height:45px;padding:5px 7px;text-align:center} @media(max-width:700px){.stock-controls .adjust-amount{width:65px}}

/* v0.2: kleine quadratische Inventar-Kacheln statt großer Produktbilder. */
.product-grid.compact-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:13px}
.compact-tiles .product-card{display:flex;flex-direction:column;border-radius:17px;min-width:0;overflow:hidden;box-shadow:0 2px 10px rgba(24,48,78,.035)}
.compact-tiles .product-thumb{height:95px;margin:12px 12px 0;border-radius:12px;flex:none;background:#f2f6fb;overflow:hidden}
.compact-tiles .product-photo{height:100%;width:100%;object-fit:contain;padding:5px}
.compact-tiles .product-icon{font-size:43px;display:grid;place-items:center;width:66px;height:66px;border-radius:15px;background:#fff;border:1px solid #eaf0f7;filter:none}
.compact-tiles .product-content{padding:11px 13px 12px;display:flex;flex:1;flex-direction:column}
.compact-tiles .category-label{font-size:9.5px;letter-spacing:.07em}
.compact-tiles .product-name{font-size:13px;font-weight:760;white-space:normal;line-height:1.38;min-height:37px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 9px}
.compact-tiles .stock-line strong{font-size:25px;font-weight:810}
.compact-tiles .stock-line span{font-size:11px}
.compact-tiles .stock-bottom{margin-top:auto;padding-top:11px;display:flex;justify-content:space-between;gap:5px;align-items:center;flex-wrap:nowrap}
.compact-tiles .stock-bottom small{font-size:10px;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-tiles .stock-controls{display:flex;gap:5px}
.compact-tiles .stock-controls button{width:30px;height:30px;border-radius:8px;font-size:20px}
.ocr-status{grid-column:1/-1;padding:9px 12px;border-radius:9px;background:#e8f4ff;color:#235b89;font-size:12px;line-height:1.45}
.ocr-status.ocr-error{color:#a15b27;background:#fff4e6}
.ocr-payload[hidden]{display:none!important}
.upload-form button:disabled{cursor:wait;opacity:.75}
@media(max-width:700px){.product-grid.compact-tiles{grid-template-columns:repeat(auto-fill,minmax(134px,1fr));gap:9px}.compact-tiles .product-thumb{height:85px;margin:9px 9px 0}.compact-tiles .product-content{padding:9px}.compact-tiles .product-name{font-size:12px}.compact-tiles .stock-line strong{font-size:24px}.compact-tiles .product-icon{font-size:38px;width:60px;height:60px}.compact-tiles .stock-bottom small{font-size:9px}.compact-tiles .stock-controls button{width:28px;height:29px}}

/* v0.2.2: nachvollziehbare Mengen-Korrektur in bestehenden Belegen */
.receipt-reparse{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:-6px 0 18px}.receipt-reparse span{color:var(--muted);font-size:12px}
.imported-row.imported-edit{display:block;padding:13px 0}.imported-title{font-size:13px;font-weight:720;color:#277d65;margin-bottom:10px}
.imported-edit-form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(90px,.6fr) auto;gap:9px;align-items:end}.imported-edit-form label{display:grid;gap:4px;color:#738298;font-size:11px;font-weight:700}.imported-edit-form input{min-height:36px;font-size:12px;padding:7px 9px}.imported-edit-form button{min-height:36px}.undo-import{text-align:right;margin-top:4px}
@media(max-width:560px){.imported-edit-form{grid-template-columns:minmax(0,1fr) 100px}.imported-edit-form button{grid-column:1/-1}}
/* MyLager 0.3 – System- und Backup-Verwaltung (WESTKERN) */
.catalog-note{font-size:12px;color:#72859b;margin:-9px 0 17px}
.version-pill{font-size:13px;font-weight:800;color:#1779df;background:#ebf4ff;border:1px solid #d6e8fb;border-radius:999px;padding:8px 15px;white-space:nowrap}
.system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.system-card{min-width:0}.system-card-title{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}.system-card-title h2{margin:0 0 5px}.system-card-title p{margin:0;font-size:13px}.system-emoji{display:grid;place-items:center;flex:none;border-radius:12px;background:#eef5ff;width:47px;height:47px;font-size:23px}
.system-version{background:#f4f8fd;border:1px solid #e6eff9;border-radius:12px;padding:15px;margin:10px 0 18px}.system-version span{display:block;color:#73849b;font-size:12px}.system-version strong{font-size:23px;display:block}.system-version small{display:block}
.system-form{display:grid;gap:12px;margin:13px 0 8px}.system-form>label{font-size:12px;font-weight:730;color:#5f7088;display:grid;gap:7px}.system-form button{justify-self:start}.system-help{font-size:12px;color:#70829b;line-height:1.55;margin:13px 0 0}
.system-card h3{margin:23px 0 10px}.backup-list{max-height:240px;overflow:auto}.backup-entry{border-top:1px solid #e7edf4;padding:11px 0;display:flex;align-items:center;gap:10px;justify-content:space-between}.backup-entry>div{min-width:0}.backup-entry strong{font-size:12px;display:block}.backup-entry small{font-size:10px;display:block;word-break:break-word}.backup-entry .button{flex:none}.system-details{border-top:1px solid #e6edf4;margin-top:16px;padding-top:13px}.system-details summary{font-size:13px;font-weight:750;cursor:pointer}.system-details p{font-size:12px;margin:10px 0}.button.danger{background:#fff0ee;border-color:#f4cfca;color:#ab4537}.button.danger:hover{background:#ffe3df}.button:disabled{opacity:.45;cursor:not-allowed}.system-footer{color:#798aa0;padding:19px 0;font-size:12px;text-align:center}
@media(max-width:850px){.system-grid{grid-template-columns:1fr}.system-card{padding:19px}}
@media(max-width:700px){.topinner nav{gap:15px}.topinner nav a{font-size:11px}.version-pill{font-size:11px;padding:6px 9px}.system-card-title h2{font-size:17px}}
/* WESTKERN MyLager v0.4 · Artikelakte und Preishistorie */
.price-panel{margin:23px 0 20px;background:linear-gradient(180deg,#fff,#fcfdff)}
.price-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.price-heading h2{margin:0 0 4px}.price-heading p{margin-bottom:0}
.price-title-icon{font-size:26px;color:#108cff;background:#edf6ff;width:48px;height:48px;display:grid;place-items:center;border-radius:13px}
.price-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 12px}
.price-stats>div{background:#f7f9fc;border:1px solid #edf0f6;border-radius:12px;padding:12px 14px;min-width:0}.price-stats small{display:block;line-height:1.4}.price-stats strong{display:block;font-size:21px;letter-spacing:-.02em;margin-top:5px}.price-down{color:#167c68}.price-up{color:#b05a3d}
.price-chart{width:100%;height:auto;max-height:275px;display:block;margin:10px 0 6px;overflow:visible}.price-panel .system-help{margin-top:6px}
.purchase-layout{display:grid;grid-template-columns:.92fr 1.08fr;gap:18px;align-items:start;margin:20px 0 26px}.purchase-layout>.panel{min-width:0}
.purchase-layout .purchase-form .button{margin-top:16px}.purchase-form .form-grid{gap:12px}.purchase-history{display:grid;gap:8px;max-height:680px;overflow-y:auto;padding-right:2px}
.purchase-entry{border:1px solid #e4ebf4;border-radius:11px;background:#fcfdff;overflow:hidden}.purchase-entry[open]{background:#fff;border-color:#cdddf1}.purchase-entry>summary{display:grid;grid-template-columns:1.15fr .9fr 1fr;align-items:center;gap:8px;padding:12px 11px;cursor:pointer;list-style:none}.purchase-entry>summary::-webkit-details-marker{display:none}.purchase-entry>summary:hover{background:#f4f8ff}.purchase-entry>summary::after{content:'⌄';color:#8094aa;position:absolute;right:2px;display:none}.purchase-entry summary span{font-size:13px;font-weight:720;min-width:0}.purchase-entry summary small{display:block;font-size:11px;font-weight:400;overflow-wrap:anywhere}.purchase-price{text-align:right}.offer-tag{color:#0b8066;font-weight:750!important}.purchase-entry-body{border-top:1px solid #e7edf4;padding:15px;background:#fff}.purchase-edit-form .form-grid{gap:10px}.purchase-edit-form .button{margin-top:12px}.purchase-edit-form label{font-size:11px}.purchase-entry-body .back{margin-bottom:5px}.purchase-layout .panel>p.muted{margin-bottom:13px}
@media(max-width:850px){.purchase-layout{grid-template-columns:1fr}.price-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.price-stats strong{font-size:17px}.price-stats>div{padding:10px}.purchase-entry>summary{grid-template-columns:1fr .68fr .78fr;gap:5px;padding:10px 8px}.purchase-entry summary span{font-size:12px}.purchase-entry summary small{font-size:10px}.price-panel{padding:16px}}
.review-fields{grid-template-columns:1.7fr .7fr 1.05fr 1fr}.review-fields label{min-width:0}.review-fields label:first-child{grid-column:span 2}.review-fields label:last-child{grid-column:span 2}.review-fields label:nth-child(4){grid-column:span 1}
@media(max-width:700px){.review-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.review-fields label:first-child,.review-fields label:last-child{grid-column:span 2}}

/* WESTKERN Branding + Backup-Löschen + deaktivierte Rechnungspositionen */
.brand-westkern{gap:12px}.brand-logo{width:40px;height:40px;object-fit:contain;display:block}.brand-copy{display:flex;flex-direction:column;line-height:1.02}.brand-copy strong{font-size:23px;font-weight:800;letter-spacing:-.06em}.brand-copy small{font-size:10px;font-weight:700;color:#62758a;letter-spacing:.08em;text-transform:uppercase;margin-top:4px}
.footer-westkern{padding-top:16px}.footer-westkern-inner,.system-footer-brand{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.footer-westkern img,.system-footer-brand img{width:34px;height:34px;object-fit:contain;display:block}.system-footer-brand{margin-bottom:8px}
.backup-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.inline-form{display:inline}
.review-item-muted{background:#fffaf5;border-color:#f1dfc4}.review-flag{font-style:normal;font-size:11px;color:#93612c;background:#fff1dd;border:1px solid #f2d6aa;padding:3px 7px;border-radius:999px;margin-left:8px}
@media(max-width:700px){.brand-copy strong{font-size:20px}.brand-copy small{font-size:9px}.brand-logo{width:34px;height:34px}.backup-actions{width:100%;justify-content:flex-start}.footer-westkern img,.system-footer-brand img{width:28px;height:28px}}

/* MyLager 0.4.2 – schmaler Kopfbereich, klare Belegbearbeitung */
.topinner{gap:22px;justify-content:space-between}.topinner .brand-westkern{flex:none;max-width:220px;min-width:0;gap:9px}.brand-copy{min-width:0}.brand-copy strong{font-size:21px}.brand-copy small{font-size:9px;letter-spacing:.035em}.topinner nav{gap:18px;margin-left:auto}.right-tools{margin-left:0;gap:12px;flex:none}
.merchant-on-upload{font-size:11px;font-weight:700;color:#58738d;display:grid;gap:4px}.merchant-on-upload input{min-height:38px;font-size:12px;max-width:240px}
.document-meta{margin-bottom:15px}.document-meta h2{margin-bottom:10px}.document-meta-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.document-meta-form label{font-size:12px;font-weight:700;color:#586d87;min-width:180px;flex:1;display:grid;gap:6px}.document-meta-form button{flex:none}
.doc-tabs{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}.doc-tabs a.active{background:#e9f3ff;border-color:#bfdcfb;color:#116ac8}
.document-toolbar{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:16px}.document-toolbar summary{cursor:pointer;list-style:none}.document-toolbar details{position:relative}.delete-document-form{border:1px solid #eed4d0;padding:14px;border-radius:12px;background:#fff9f7;margin-top:8px;max-width:380px}.delete-document-form label{font-size:12px;display:grid;gap:7px}.delete-document-form p{font-size:12px}.delete-document-form button{margin-top:9px}
.recognition-warning{border:1px solid #f0d7b0;padding:12px;background:#fff9f0;border-radius:12px;margin-bottom:12px}.recognition-warning strong{font-size:13px;color:#77522c}.recognition-warning p{font-size:12px;margin:5px 0 0}
.raw-text textarea{margin:10px 0 8px;font-size:12px;font-family:ui-monospace,Consolas,monospace}.raw-text label{display:block;margin-top:14px;font-weight:600}.license-notes{max-width:650px;margin:4px auto}.license-notes summary{cursor:pointer}.license-notes p{font-size:12px;color:#718096}
@media(max-width:900px){.topinner{gap:12px}.topinner nav{gap:11px}.topinner nav a{font-size:12px}.brand-copy strong{font-size:20px}.right-tools{gap:8px}}
@media(max-width:700px){.topinner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:9px 15px 0}.topinner .brand-westkern{grid-column:1;grid-row:1;max-width:none}.topinner .right-tools{grid-column:2;grid-row:1;justify-self:end}.topinner nav{grid-column:1/-1;grid-row:2;order:initial;margin:0;width:100%;display:flex;gap:22px;overflow-x:auto;white-space:nowrap;height:42px;scrollbar-width:thin}.topinner nav a{height:42px;flex:none}.brand-copy strong{font-size:20px}.brand-copy small{font-size:9px}.topinner .right-tools .logout{font-size:11px}.topinner .right-tools .button{display:none}.merchant-on-upload{flex:1 1 100%;width:100%}.merchant-on-upload input{max-width:none}.document-meta-form label{flex:1 1 100%}.document-toolbar{gap:7px}}

/* MyLager v0.4.4: Linke Navigation und schmale Arbeitsleiste */
.app-shell{--wk-nav-width:252px;min-width:0}
.app-shell .wk-sidebar{width:var(--wk-nav-width);position:fixed;z-index:33;inset:0 auto 0 0;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e6ebf3;padding:24px 14px 14px;overflow-y:auto;transition:width .22s ease,transform .22s ease;box-shadow:3px 0 18px rgba(26,49,76,.025)}
.wk-side-head{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:2px 5px 23px}
.wk-side-brand{display:flex;align-items:center;gap:10px;min-width:0;overflow:hidden;white-space:nowrap}
.wk-side-brand img{width:36px;height:36px;flex:none;object-fit:contain}
.wk-side-brandtext{display:flex;flex-direction:column;gap:2px;min-width:0}
.wk-side-brandtext strong{font-size:22px;line-height:1.05;font-weight:800;letter-spacing:-.055em}
.wk-side-brandtext strong span{color:#108cff}
.wk-side-brandtext small{font-size:9px;font-weight:700;letter-spacing:.02em;color:#718399}
.wk-sidebar-collapse{width:27px;height:28px;flex:none;background:#f4f7fb;color:#6f829a;border:1px solid #e6edf6;border-radius:8px;font-size:19px;line-height:1;display:grid;place-items:center;padding:0}
.wk-side-caption{font-size:10px;color:#9aa9bc;font-weight:800;letter-spacing:.12em;margin:12px 13px 8px}
.wk-system-caption{margin-top:30px}
.wk-side-nav{display:grid;gap:4px}
.wk-side-nav a{display:flex;align-items:center;min-height:43px;padding:7px 12px;gap:12px;font-size:13px;font-weight:690;color:#63758e;border-radius:10px;white-space:nowrap;transition:background .15s,color .15s}
.wk-side-nav a:hover{background:#f5f8fd;color:#2d628f}
.wk-side-nav a.active{background:#edf5ff;color:#0872df}
.wk-nav-icon{font-size:21px;font-weight:500;flex:0 0 25px;text-align:center;line-height:1}
.wk-side-bottom{margin-top:auto;display:flex;gap:6px;align-items:center;justify-content:space-between;padding:18px 12px 3px;color:#99a7b7;font-size:10px}
.wk-side-version{font-weight:700;background:#f2f6fb;border-radius:6px;padding:3px 6px;color:#627f9d}
.app-shell .topbar{margin-left:var(--wk-nav-width);transition:margin-left .22s ease;z-index:20}
.app-shell .container{margin:0 auto 0 var(--wk-nav-width);max-width:none;width:calc(100% - var(--wk-nav-width));transition:margin-left .22s ease,width .22s ease;padding-left:clamp(18px,3vw,44px);padding-right:clamp(18px,3vw,44px)}
.app-shell .footer{margin-left:var(--wk-nav-width);transition:margin-left .22s ease}
.wk-topinner{max-width:none!important;display:flex!important;align-items:center!important;gap:18px!important;min-height:74px!important;height:auto!important;padding:11px clamp(18px,3vw,44px)!important;flex-wrap:nowrap!important}
.wk-top-title{display:flex;flex-direction:column;gap:1px;flex:none;min-width:145px}
.wk-top-title strong{font-size:16px;line-height:1.2;letter-spacing:-.02em;font-weight:760}
.wk-top-title small{font-size:11px;color:#9aa8b6}
.wk-top-search{flex:1 1 240px;max-width:380px;margin-left:auto;min-width:0}
.wk-top-search label{display:flex;align-items:center;background:#f7f9fc;border:1px solid #e6edf5;border-radius:11px;position:relative;overflow:hidden}
.wk-top-search label span{position:absolute;left:13px;font-size:21px;color:#8ba0b8}
.wk-top-search input{width:100%;border:none;background:transparent;padding:9px 12px 9px 38px;min-height:39px;font-size:12px;box-shadow:none}
.wk-top-search input:focus{box-shadow:none}
.wk-top-actions{display:flex;align-items:center;gap:8px;flex:none}
.wk-top-actions .button{min-height:38px;white-space:nowrap}
.wk-top-actions .logout{margin-left:7px;font-size:12px}
.wk-menu-toggle{display:none;border:1px solid #e6edf5;background:#f8fafd;color:#355875;padding:0;width:36px;height:36px;border-radius:10px;flex:none;font-size:18px}
.wk-sidebar-backdrop{display:none}
.sidebar-collapsed{--wk-nav-width:76px}
.sidebar-collapsed .wk-sidebar{padding-left:12px;padding-right:12px}
.sidebar-collapsed .wk-side-brandtext,.sidebar-collapsed .wk-side-caption,.sidebar-collapsed .wk-nav-label,.sidebar-collapsed .wk-side-bottom{display:none}
.sidebar-collapsed .wk-side-head{flex-direction:column;gap:12px;align-items:center;padding:4px 0 22px}
.sidebar-collapsed .wk-sidebar-collapse{transform:rotate(180deg)}
.sidebar-collapsed .wk-side-nav a{justify-content:center;padding:10px 2px;margin:3px 0}
.sidebar-collapsed .wk-nav-icon{flex-basis:auto}
.date-origin{margin:11px 0 0;color:#76879e;font-size:12px;line-height:1.65}
.date-origin-tag{border:1px solid #dce9f3;border-radius:6px;background:#f3f8fc;padding:3px 7px;font-weight:700;white-space:nowrap;color:#6381a1}
.date-origin-upload{border-color:#f2dfbb;background:#fff8ea;color:#966d34}
@media(max-width:1160px){.wk-top-title small{display:none}.wk-top-search{max-width:290px}.wk-topinner{gap:11px!important}}
@media(max-width:940px){.app-shell{--wk-nav-width:0px}.app-shell .wk-sidebar{width:245px;transform:translateX(-104%);box-shadow:12px 0 35px rgba(29,46,68,.14)}.app-shell .topbar,.app-shell .footer{margin-left:0}.app-shell .container{width:100%;margin-left:0}.wk-menu-toggle{display:grid;place-items:center}.wk-sidebar-collapse{display:none}.sidebar-open .wk-sidebar{transform:translateX(0)}.sidebar-open .wk-sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(10,22,39,.36);z-index:32}.wk-topinner{padding:10px 18px!important}.wk-top-search{max-width:360px}}
@media(max-width:670px){.wk-topinner{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;gap:9px!important;padding:10px 13px!important}.wk-menu-toggle{grid-column:1;grid-row:1}.wk-top-title{grid-column:2;grid-row:1;min-width:0}.wk-top-title strong{font-size:15px}.wk-top-actions{grid-column:3;grid-row:1;gap:5px}.wk-top-actions .logout,.wk-top-actions .wk-top-upload{display:none}.wk-top-actions .button{padding:6px 8px!important;font-size:11px}.wk-top-search{grid-column:1/-1;grid-row:2;max-width:none;margin:0}.wk-top-search input{min-height:36px}.app-shell .container{padding:21px 14px 56px}}
@media(prefers-reduced-motion:reduce){.app-shell .wk-sidebar,.app-shell .container,.app-shell .topbar,.app-shell .footer{transition:none}}


/* MyLager v0.4.5: Sidebar-Layout bereinigt + Footer mit WESTKERN-Link */
.wk-side-head{gap:10px}
.wk-side-nav{display:flex;flex-direction:column;gap:5px}
.wk-side-nav a{display:flex;align-items:center;min-height:46px;padding:9px 12px;gap:12px;font-size:13px;font-weight:690;color:#63758e;border-radius:10px;white-space:nowrap;line-height:1.25;overflow:hidden;transition:background .15s,color .15s}
.wk-nav-label{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.wk-nav-icon{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;font-size:18px;font-weight:700;text-align:center;line-height:1}
.wk-side-bottom{padding-top:20px}
.footer-westkern{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px 20px 24px;color:#8c99aa;font-size:12px;line-height:1.45}
.footer-westkern .footer-main{font-weight:700;color:#67788e}
.footer-westkern .footer-main a{color:#108cff;font-weight:800;text-decoration:none}
.footer-westkern .footer-main a:hover{text-decoration:underline}
.footer-westkern .footer-sub{font-size:11px;color:#9aa7b7}
.sidebar-collapsed .wk-side-brandtext,.sidebar-collapsed .wk-side-caption,.sidebar-collapsed .wk-nav-label,.sidebar-collapsed .wk-side-bottom{display:none}
.sidebar-collapsed .wk-side-head{flex-direction:column;gap:12px;align-items:center;padding:4px 0 22px}
.sidebar-collapsed .wk-side-nav a{justify-content:center;padding:10px 2px;margin:3px 0}
.sidebar-collapsed .wk-nav-icon{width:25px;flex:0 0 25px}
@media(max-width:940px){
  .sidebar-collapsed .wk-sidebar{padding:24px 14px 14px}
  .sidebar-collapsed .wk-side-head{flex-direction:row;align-items:center;justify-content:space-between;padding:2px 5px 23px}
  .sidebar-collapsed .wk-side-brandtext,.sidebar-collapsed .wk-side-caption,.sidebar-collapsed .wk-nav-label,.sidebar-collapsed .wk-side-bottom{display:initial}
  .sidebar-collapsed .wk-side-brandtext{display:flex}
  .sidebar-collapsed .wk-side-caption{display:block}
  .sidebar-collapsed .wk-side-bottom{display:flex}
  .sidebar-collapsed .wk-side-nav a{justify-content:flex-start;padding:9px 12px;margin:0}
}
@media(max-width:670px){
  .footer-westkern{padding:12px 14px 20px}
  .footer-westkern .footer-main,.footer-westkern .footer-sub{text-align:center}
}


/* MyLager v0.4.6: WESTKERN-Wortmarke korrekt einfärben */
.wk-wordmark{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap}
.wk-wordmark-west{color:#111827}
.wk-wordmark-kern{color:#108cff}
.wk-side-brandtext small .wk-wordmark{font-size:inherit;font-weight:800;letter-spacing:.02em}
.footer-westkern .wk-footer-wordmark{font-weight:800;text-decoration:none}
.footer-westkern .wk-footer-wordmark:hover{text-decoration:underline}


/* v0.4.7 – Seitenleiste: feste Menühöhe aus globalem nav/nav a überschreiben.
   Bewusst höher spezifiziert als die alten Regeln. */
body.app-shell .wk-sidebar{width:var(--wk-nav-width);align-items:stretch}
body.app-shell .wk-sidebar .wk-side-caption{flex:0 0 auto;height:auto;margin:20px 12px 8px}
body.app-shell .wk-sidebar .wk-system-caption{margin-top:25px}
body.app-shell .wk-sidebar nav.wk-side-nav{
  display:flex;flex-direction:column;flex:0 0 auto;align-items:stretch;
  justify-content:flex-start;height:auto!important;min-height:0;max-height:none;
  width:100%;gap:5px;margin:0;padding:0;overflow:visible;order:0;
}
body.app-shell .wk-sidebar nav.wk-side-nav a{
  display:flex;align-items:center;justify-content:flex-start;
  width:100%;height:auto!important;min-height:45px;max-height:none;flex:0 0 auto;
  padding:10px 12px;gap:11px;margin:0;border:0;
  border-radius:10px;line-height:1.25;white-space:nowrap;
}
body.app-shell .wk-sidebar nav.wk-side-nav a.active{box-shadow:inset 3px 0 #108cff}
body.app-shell .wk-sidebar .wk-nav-icon{width:24px;flex:0 0 24px;display:grid;place-items:center;font-size:19px}
body.app-shell .wk-sidebar .wk-nav-label{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
/* MyLager bewusst neutral; allein die WESTKERN-Wortmarke nutzt Markenblau. */
body.app-shell .wk-side-brandtext small{white-space:nowrap}
body.app-shell .wk-side-brandtext .wk-wordmark-west{color:#19283b}
body.app-shell .wk-side-brandtext .wk-wordmark-kern{color:#108cff}
body.app-shell .wk-side-bottom{
  margin-top:auto;flex:0 0 auto;display:flex;flex-direction:column;
  align-items:flex-start;justify-content:flex-start;gap:5px;
  padding:18px 12px 13px;border-top:1px solid #e9edf2;
}
body.app-shell .wk-side-version{font-size:11px;font-weight:500;color:#68788e;background:none;padding:0}
body.app-shell .wk-side-version strong{font-weight:750;color:#283a50}
body.app-shell .wk-side-maker{font-size:11px;color:#78889c;white-space:nowrap}
body.app-shell .wk-side-maker a{font-weight:800;text-decoration:none;white-space:nowrap}
body.app-shell .wk-side-maker a:hover{text-decoration:underline}
body.app-shell .wk-side-maker .wk-wordmark-west{color:#19283b}
body.app-shell .wk-side-maker .wk-wordmark-kern{color:#108cff}
body.app-shell .footer-westkern{padding:13px 15px 20px}
body.sidebar-collapsed .wk-sidebar .wk-side-bottom{display:none}
body.sidebar-collapsed .wk-sidebar .wk-side-caption{display:none}
body.sidebar-collapsed .wk-sidebar nav.wk-side-nav a{justify-content:center;padding:10px 0}
body.sidebar-collapsed .wk-sidebar .wk-nav-label{display:none}
@media (max-width:940px){
  body.app-shell .wk-sidebar{width:245px}
  body.sidebar-collapsed .wk-sidebar .wk-side-caption{display:block}
  body.sidebar-collapsed .wk-sidebar .wk-side-bottom{display:flex}
  body.sidebar-collapsed .wk-sidebar nav.wk-side-nav a{justify-content:flex-start;padding:10px 12px}
  body.sidebar-collapsed .wk-sidebar .wk-nav-label{display:block}
}

/* MyLager 0.5.0 – Technische Fehlermeldungen */
.wk-log-panel{margin:20px 0 26px;min-width:0}.wk-log-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:15px}.wk-log-header h2{margin:0 0 4px}.wk-log-header p{margin:0;font-size:13px}.wk-log-count{padding:5px 10px;background:#eff4fb;border-radius:8px;color:#627b96;font-size:12px;white-space:nowrap}.wk-log-list{max-height:420px;overflow-y:auto;border-top:1px solid #e6ebf2}.wk-log-row{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #edf1f6;align-items:flex-start}.wk-log-status{min-width:72px;max-width:115px;text-align:center;background:#eff4fa;color:#526987;border-radius:8px;font-size:11px;font-weight:800;padding:5px 8px}.wk-log-status.error,.wk-log-status.critical{background:#fff0ec;color:#a24d43}.wk-log-status.warning{background:#fff8e5;color:#906b29}.wk-log-content{min-width:0;word-break:break-word}.wk-log-content strong{font-size:13px;font-weight:700;display:block}.wk-log-content small{display:block;line-height:1.5;margin-top:3px}.wk-log-tools{margin-top:15px;padding-top:13px;border-top:1px solid #ecf0f4}.wk-log-tools summary{font-size:12px;color:#7d8899;cursor:pointer;font-weight:650}.wk-log-tools form{display:flex;align-items:flex-end;gap:9px;margin-top:12px;flex-wrap:wrap}.wk-log-tools label{display:grid;gap:5px;font-size:12px;color:#63758e;min-width:200px}.wk-log-tools input{min-height:38px}.wk-log-tools button{min-height:38px}@media(max-width:670px){.wk-log-header{flex-direction:column;gap:9px}.wk-log-status{min-width:60px}.wk-log-row{gap:8px}}

/* OCR-Verbesserung v0.5.1 */
.receipt-ocr-retry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 15px}.receipt-ocr-retry .ocr-retry-status{font-size:12px;color:#718096}.receipt-ocr-retry button:disabled{opacity:.5;cursor:wait}

/* WESTKERN MyLager v0.6.0 – Sofortupload, Live-Katalog und Kategorieverwaltung */
.wk-quick-upload{display:block;flex:none;margin:0}
.wk-quick-upload .wk-top-upload{display:inline-flex!important;align-items:center;gap:7px;background:#eef6ff;border-color:#d2e8ff;color:#1766b8;font-weight:750}
.wk-quick-upload .wk-top-upload:hover{background:#e2f0ff}
.wk-quick-upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;clip-path:inset(50%)}
.wk-hidden-submit{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;opacity:0;pointer-events:none;overflow:hidden;clip-path:inset(50%)}
.wk-quick-ocr-status{position:fixed;top:78px;right:18px;z-index:90;max-width:min(380px,90vw);background:#fff;border:1px solid #cbddee;box-shadow:0 12px 32px #1c426033;border-radius:12px;padding:14px 17px;color:#24476c;font-size:13px;font-weight:650}
.wk-quick-ocr-status.ocr-error{background:#fff7f3;border-color:#efc9b9}
.catalog-live-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(130px,1fr));gap:9px;margin:0 0 8px}
.catalog-live-filters select{max-width:none;min-width:0;height:43px;padding:9px}
.catalog-live-filters.loading{opacity:.65}
.catalog-result-summary{font-size:12px;color:#73849d;margin:0 0 16px}
.catalog-more-wrap{display:flex;justify-content:center;margin:22px 0}
.catalog-empty{background:white;border:1px dashed #d5e2ed;border-radius:14px;text-align:center;padding:35px 16px;color:#72849a;font-weight:600}
.catalog-empty[hidden],.catalog-more-wrap[hidden]{display:none!important}
.compact-tiles .subcat-caption{display:block;font-size:10px;color:#8191a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-tiles .category-label{display:block}
.receipt-review-toolbar{position:sticky;top:77px;z-index:9;background:rgba(246,250,255,.98);border:1px solid #d8e8fa;border-radius:12px;box-shadow:0 7px 24px rgba(28,58,94,.1);padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0 12px}
.receipt-review-toolbar strong{font-size:12px;display:block}
.receipt-review-toolbar .button{flex:none;min-height:38px;font-size:12px}
.receipt-review-selection{font-size:11px;display:flex;align-items:center;gap:5px}
.receipt-review-selection .link-button{font-size:11px;color:#1878d7}
.receipt-review-bottom{display:flex;justify-content:flex-end;margin-top:14px}
.category-admin-grid{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:16px;margin-bottom:18px}
.category-admin-grid .system-form{margin-top:9px}
.category-manager .category-group{border:1px solid #e1e9f4;border-radius:13px;margin:12px 0;overflow:hidden;background:#fff}
.category-group>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:14px 16px;list-style:none}
.category-group>summary::-webkit-details-marker{display:none}
.category-group[open]>summary{background:#f3f8ff}
.category-group-icon{display:grid;place-items:center;background:#f1f5fa;border-radius:10px;width:42px;height:42px;flex:none;font-size:23px}
.category-group-title{display:flex;flex-direction:column;gap:3px;flex:1}
.category-group-title strong{font-size:14px}
.category-group-title small{font-size:11px}
.category-group-edit{font-size:12px;color:#5782ac;font-weight:650}
.category-group-body{padding:14px 16px 18px;border-top:1px solid #e5edf5}
.category-edit-form{display:grid;grid-template-columns:minmax(130px,1.2fr) 90px 90px minmax(175px,2fr) auto;align-items:end;gap:10px}
.category-edit-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;color:#65778e;min-width:0}
.category-edit-form input,.category-edit-form textarea{font-size:12px;min-width:0;width:100%}
.category-edit-form textarea{min-height:43px;max-height:120px}
.category-edit-form .button{min-height:42px}
.category-children{margin:20px 0;border-top:1px solid #e5edf5;padding-top:16px}
.category-children h3{margin-bottom:11px}
.category-child{margin-bottom:10px;padding:11px;border:1px solid #e6edf6;background:#fbfcff;border-radius:11px}
.category-delete-form{text-align:right;margin:4px 0 0}
@media(max-width:1150px){.catalog-live-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-live-filters .search-field{grid-column:1/-1}.category-edit-form{grid-template-columns:1fr 75px 85px}.category-edit-form .category-keywords{grid-column:1/-1}.category-edit-form .button{justify-self:start}}
@media(max-width:940px){.receipt-review-toolbar{top:73px}}
@media(max-width:760px){.category-admin-grid{grid-template-columns:1fr}.catalog-live-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-live-filters select{font-size:12px}.receipt-review-toolbar{top:116px;padding:8px}.receipt-review-toolbar .button{padding:8px 10px;font-size:11px}.category-group-body{padding:13px}.category-edit-form{grid-template-columns:minmax(0,1fr) 74px}.category-edit-form .category-keywords{grid-column:1/-1}.category-edit-form label:nth-child(3){grid-column:1/-1}.category-edit-form .button{grid-column:1/-1}}
@media(max-width:670px){.wk-quick-upload{display:block!important}.wk-top-actions .wk-quick-upload .wk-top-upload{display:inline-flex!important;min-height:36px;padding:6px 9px;font-size:12px}.wk-quick-ocr-status{top:133px;right:12px}.wk-top-actions{gap:6px}.wk-top-new{min-height:36px}.receipt-review-toolbar{top:130px}}
@media(max-width:440px){.wk-quick-upload .wk-top-upload span{display:none}.wk-quick-upload .wk-top-upload{padding:7px 10px}.wk-top-actions .wk-top-new span{display:inline}.catalog-live-filters{grid-template-columns:1fr}.catalog-live-filters .search-field{grid-column:auto}.catalog-live-filters select{width:100%}}

/* MyLager 0.7.0 · visuelle Kategorien statt langer Formularlisten */
.cat-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.cat-hero h1{margin:0 0 9px}.cat-hero p{margin:0;color:#6c7d90;max-width:660px}
.cat-top-controls{display:flex;align-items:center;gap:20px;justify-content:space-between;margin:0 0 18px}
.cat-search{position:relative;max-width:540px;flex:1}.cat-search span{position:absolute;top:9px;left:15px;font-size:24px;color:#8496a9}
.cat-search input{width:100%;padding-left:42px;border-radius:12px;background:#fff;min-height:48px}
.cat-count{font-size:12px;color:#7b8ca3;white-space:nowrap}
.cat-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.cat-card{background:#fff;border:1px solid #e0e8f1;border-radius:16px;padding:18px;box-shadow:0 3px 16px #162c4510;min-width:0;align-self:start}
.cat-card[hidden],.cat-no-results[hidden],.cat-card-tree[hidden]{display:none!important}
.cat-card-heading{display:flex;align-items:center;gap:12px;min-width:0}.cat-card-emoji{width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:#f2f6fb;display:grid;place-items:center;font-size:25px}
.cat-card-heading h2{margin:0 0 2px;font-size:17px;letter-spacing:-.035em}.cat-card-heading small{display:block;font-size:11px}
.cat-card-preview{display:flex;gap:5px;flex-wrap:wrap;margin:16px 0 11px;min-height:25px}
.cat-card-preview span{padding:3px 8px;border-radius:7px;background:#f5f7fa;color:#697e94;font-size:11px;white-space:nowrap}
.cat-card-actions{display:flex;align-items:center;gap:7px;padding-top:10px;border-top:1px solid #ebf0f5}
.cat-text-button{display:inline-flex;align-items:center;gap:6px;background:none;border:0;color:#126fc5;font-size:12px;font-weight:750;padding:7px 5px;margin-right:auto}
.cat-mini-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #e1e8f1;border-radius:9px;color:#506d88;background:white;font-size:19px;line-height:1;flex:none}
.cat-mini-button:hover,.cat-text-button:hover{background:#eef6ff;color:#006cca}
.cat-card-tree{margin-top:13px;padding-top:8px;border-top:1px solid #edf1f6}
.cat-tree-node{margin-left:calc(var(--cat-depth) * 9px)}.cat-tree-row{display:flex;align-items:center;gap:8px;min-height:39px;border-bottom:1px solid #f0f3f7;padding:3px 0}
.cat-tree-symbol{font-size:18px;flex:0 0 24px;text-align:center}.cat-tree-label{font-size:12px;font-weight:600;color:#506378;flex:1;min-width:0;overflow-wrap:anywhere}
.cat-tree-tools{display:flex;gap:3px}.cat-tree-tools .cat-mini-button{width:28px;height:28px;font-size:16px;border:0}
.cat-tree-add{width:100%;text-align:left;font-size:12px;color:#1378d2;background:#f5f9ff;border:1px dashed #c9def4;border-radius:9px;padding:9px 12px;margin-top:12px;font-weight:750}
.cat-no-results{text-align:center;border:1px dashed #cbd7e3;background:#fff;padding:25px;border-radius:12px;color:#64748b}
.cat-auto-info{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;background:#edf5ff;border-radius:16px;margin-top:23px;border:1px solid #dce9f8}
.cat-auto-info h2{font-size:16px;margin:0 0 6px}.cat-auto-info p{font-size:12px;max-width:620px;margin:0}.cat-auto-info form{flex:none}
.cat-dialog{border:1px solid #e1e7ef;border-radius:18px;background:#fff;padding:0;box-shadow:0 25px 80px rgba(16,31,48,.24);width:min(510px,calc(100vw - 24px));max-height:90vh;color:#18293d;overflow:auto}
.cat-dialog::backdrop{background:rgba(19,34,51,.43);backdrop-filter:blur(2px)}
.cat-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:24px 26px 12px}.cat-dialog-head h2{margin:0;font-size:23px}.cat-dialog-head .eyebrow{margin-bottom:5px}
.cat-close{width:34px;height:34px;border:0;border-radius:9px;background:#f3f6fa;font-size:17px;color:#65758a;flex:none}
.cat-dialog-body{padding:15px 26px 20px;display:grid;gap:17px}
.cat-field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:750;color:#56697e}.cat-field input,.cat-field select,.cat-field textarea{font-size:14px}
.cat-field small{font-weight:450;color:#8794a5}.cat-icon-line{display:flex;align-items:center;gap:13px}.cat-icon-line span{font-size:12px;color:#76899d;line-height:1.45}
.cat-icon-current{height:64px;width:64px;border:1px solid #cfe0f4;background:#f1f7ff;border-radius:14px;font-size:32px;flex:none}
.cat-advanced{border-top:1px solid #e9eef4;padding-top:14px}.cat-advanced summary{cursor:pointer;font-size:12px;color:#49789e;font-weight:700}.cat-advanced[open] .cat-field{margin-top:14px}
.cat-dialog-footer{position:sticky;bottom:0;background:#fff;padding:17px 26px;border-top:1px solid #e8edf4;display:flex;justify-content:flex-end;gap:10px}
.cat-delete-zone{padding:0 26px 17px;text-align:right}.cat-delete-zone[hidden]{display:none}.cat-delete-btn{background:none;border:0;font-size:12px;color:#aa5550;text-decoration:underline;min-height:auto}
.cat-icon-dialog{width:min(710px,calc(100vw - 22px))}.cat-icon-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 0 12px;max-width:100%}
.cat-icon-tabs button{border:1px solid #e2e9f3;background:#f7f9fc;border-radius:8px;padding:8px 11px;white-space:nowrap;color:#5d7084;font-size:11px;font-weight:650;flex:none}
.cat-icon-tabs button.active{background:#e6f2ff;border-color:#a9cffa;color:#126cb7}
.cat-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:7px;max-height:43vh;overflow:auto;padding:4px 2px 15px}
.cat-icon-grid button{height:46px;background:#f9fbfd;border:1px solid #e9edf3;border-radius:10px;font-size:24px;line-height:1}
.cat-icon-grid button:hover{background:#eaf4ff;border-color:#83baf0;transform:translateY(-1px)}.cat-icon-grid button[hidden]{display:none}
@media(max-width:760px){.cat-hero{align-items:stretch;flex-direction:column}.cat-hero .button{align-self:flex-start}.cat-card-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}.cat-auto-info{flex-direction:column;align-items:stretch}.cat-auto-info form{align-self:flex-start}}
@media(max-width:490px){.cat-card-grid{grid-template-columns:1fr}.cat-top-controls{gap:8px}.cat-count{display:none}.cat-dialog-head{padding:18px 18px 7px}.cat-dialog-body{padding:14px 18px 16px}.cat-dialog-footer{padding:14px 18px}.cat-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.cat-icon-grid button{height:43px;font-size:22px}}

/* MyLager 0.7.0 · Geschäfte und Geräte-/Garantieakte */
.merchant-intro{margin:0 0 24px}.merchant-intro h1{margin-bottom:9px}.merchant-intro p{max-width:670px}
.merchant-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}.merchant-cards .panel h2{margin-bottom:13px}
.merchant-add-form{display:grid;gap:12px}.merchant-add-form label{display:grid;gap:6px;font-size:12px;color:#66798f;font-weight:700}.merchant-add-form button{justify-self:start}
.merchant-section{margin:18px 0}.merchant-section h2 small{font-size:12px;color:#8595a6}.merchant-own-list{display:grid;gap:8px}
.merchant-own-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #edf1f5}.merchant-own-item strong{display:block;font-size:13px}.merchant-own-item small{display:block;color:#8191a4}
.merchant-list-header{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:15px}.merchant-list-header h2{margin-bottom:3px}.merchant-list-header p{margin:0;font-size:12px}
.merchant-filter{position:relative;min-width:180px;max-width:280px;flex:1}.merchant-filter span{position:absolute;left:13px;top:5px;font-size:22px;color:#8b9aac}
.merchant-filter input{padding-left:38px}
.merchant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.merchant-list-item{border:1px solid #e8edf4;background:#fbfcfe;border-radius:10px;min-width:0}.merchant-list-item[hidden]{display:none}
.merchant-list-item summary{display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:pointer;padding:11px 13px;list-style:none}.merchant-list-item summary::-webkit-details-marker{display:none}
.merchant-list-item summary strong{font-size:12px;overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}.merchant-list-item summary span{font-size:10px;color:#8192a6;white-space:nowrap}
.merchant-list-item>div{padding:0 13px 12px;color:#70819a;line-height:1.6;font-size:11px}
.warranty-panel{margin:24px 0}.warranty-head{display:flex;align-items:start;justify-content:space-between;gap:15px}.warranty-head h2{margin:0 0 6px}.warranty-head p{font-size:12px;max-width:650px}.warranty-head-icon{font-size:30px;background:#f1f7ff;padding:10px;border-radius:12px}
.warranty-empty{background:#f7faff;border:1px solid #e0eaf5;border-radius:10px;padding:13px;font-size:12px}
.warranty-unit{margin:12px 0;border:1px solid #dfe8f4;border-radius:12px;overflow:hidden}.warranty-unit>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:14px 16px}.warranty-unit summary::-webkit-details-marker{display:none}
.warranty-unit[open]>summary{background:#f6faff}.warranty-unit-emoji{font-size:22px;flex:none}.warranty-unit-title{display:grid;gap:3px;flex:1}.warranty-unit-title strong{font-size:13px}.warranty-unit-title small{color:#7b8fa6}
.warranty-unit-body{padding:17px;border-top:1px solid #e5edf6}.warranty-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.warranty-info-grid>div{border:1px solid #e7edf5;border-radius:9px;background:#fbfcfe;padding:12px;min-width:0}.warranty-info-grid small{display:block;font-size:10px}.warranty-info-grid strong{display:block;font-size:13px;margin-top:4px;overflow-wrap:anywhere}
.warranty-proof{margin:14px 0 0;font-size:12px}.warranty-proof a{color:#126ec3;font-weight:700}
.warranty-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.warranty-edit label{display:grid;gap:6px;color:#6c7e92;font-size:11px;font-weight:700}.warranty-edit .warranty-span{grid-column:1/-1}.warranty-edit button{justify-self:start}
.warranty-attachments{border-top:1px solid #e7eef6;padding-top:15px}.warranty-attachments h3{margin:0 0 10px}.warranty-attachments p{font-size:12px}
.warranty-file{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}.warranty-file a{font-size:12px;color:#1c79c8;overflow-wrap:anywhere}.warranty-file button{font-size:11px}
.warranty-upload{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;align-items:center}.warranty-upload input{flex:1;min-width:170px;max-width:400px;font-size:12px}
.warranty-manual{padding:15px 0;border-top:1px solid #e6edf5;margin-top:15px}.warranty-manual summary{font-size:12px;font-weight:700;color:#166ab7;cursor:pointer}
@media(max-width:900px){.merchant-cards{grid-template-columns:1fr}.warranty-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.merchant-list-header{flex-direction:column}.merchant-filter{width:100%;max-width:none}.merchant-list{grid-template-columns:1fr}.warranty-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warranty-edit{grid-template-columns:1fr}.warranty-head-icon{display:none}}


/* v0.8.0 · WESTKERN Kategorienbaum und einfaches Auswählen in Artikelmasken */
.cat-tree-node{margin:0;min-width:0}
.cat-tree-row{display:flex;align-items:center;gap:8px;min-height:46px;padding:5px 1px;border-bottom:1px solid #eef2f7}
.cat-tree-children{padding-left:14px;margin-left:10px;border-left:2px solid #e7eef7}
.cat-tree-children[hidden]{display:none!important}
.cat-branch-toggle,.cat-branch-spacer{flex:0 0 23px;width:23px;min-height:26px;height:26px;display:grid;place-items:center;border:0;background:none;color:#7187a2;font-size:16px;padding:0;border-radius:7px}
.cat-branch-toggle:hover{background:#edf5ff;color:#0877d9}
.cat-tree-label{font-size:12px;font-weight:680;color:#3c5269}
.cat-tree-tools{flex-shrink:0;display:flex;gap:4px;align-items:center}
.cat-new-child{background:#f0f7ff;border:1px solid #d8e8fa;color:#146fba;border-radius:8px;padding:5px 8px;min-height:30px;font-size:11px;font-weight:740;white-space:nowrap}
.cat-new-child:hover{background:#dcefff}
.cat-card-actions{flex-wrap:wrap}
.cat-card-actions .cat-new-child{margin-left:auto}
.cat-card-actions .cat-mini-button{flex:0 0 32px}
.cat-tree-add{margin:12px 0 0}
.cat-dialog .cat-field small{font-size:11px;line-height:1.4}
.product-cat-native{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-cat-native-enhanced{display:none!important}
.product-cat-entry{display:flex;flex-direction:column;gap:8px;margin:3px 0 8px}
.product-cat-entry-label{font-size:12px;font-weight:770;color:#63748a}
.product-cat-select-button{display:flex;align-items:center;justify-content:space-between;gap:13px;min-height:58px;width:100%;text-align:left;border:1px solid #dce4ee;background:#f9fbff;border-radius:12px;padding:10px 14px;color:#24435c}
.product-cat-select-button:hover{background:#f1f7ff;border-color:#91bff0}
.product-cat-selection{font-size:13px;font-weight:730;line-height:1.4;overflow-wrap:anywhere}
.product-cat-change{font-size:11px;color:#137cd6;font-weight:780;white-space:nowrap}
.product-cat-entry small{font-size:11px;color:#8a9aae;font-weight:450}
.product-cat-dialog{border:1px solid #dde8f3;border-radius:18px;max-width:min(620px,calc(100vw - 24px));width:620px;max-height:90vh;overflow:hidden;box-shadow:0 18px 80px #182c4a35;padding:0;color:#172b40;background:#fff}
.product-cat-dialog::backdrop{background:#0e203570;backdrop-filter:blur(2px)}
.product-cat-dialog-head{display:flex;align-items:start;justify-content:space-between;padding:22px 24px 13px;gap:10px}
.product-cat-dialog-head h2{margin:0 0 5px;font-size:21px}
.product-cat-dialog-head p{margin:0;font-size:12px;line-height:1.5}
.product-cat-close{background:#f1f5f9;border:0;border-radius:9px;width:34px;height:34px;padding:0;min-height:34px;flex:none}
.product-cat-dialog-body{padding:0 24px;overflow-y:auto;max-height:60vh;min-height:180px}
.product-cat-search{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #dce6f2;background:#fff;border-radius:10px;margin:7px 0 13px;font-size:19px;color:#7186a1}
.product-cat-search input{border:0;box-shadow:none;outline:0;min-height:30px;padding:3px 4px;flex:1;font-size:13px}
.product-cat-tree{display:flex;flex-direction:column;gap:2px;padding-bottom:20px}
.product-cat-node[hidden],.product-cat-nested[hidden]{display:none!important}
.product-cat-node-row{display:flex;align-items:center;border-bottom:1px solid #eef3f8;min-height:39px;gap:5px}
.product-cat-choose{border:0;border-radius:8px;background:transparent;color:#3b5872;flex:1;min-width:0;display:flex;text-align:left;align-items:center;gap:8px;padding:8px 10px;min-height:37px;font-size:13px;line-height:1.35}
.product-cat-choose:hover{background:#eaf4ff;color:#0873cd}
.product-cat-choose span{flex:1}
.product-cat-toggle,.product-cat-toggle-empty{width:24px;min-width:24px;height:28px;min-height:28px;border:0;background:transparent;padding:0;display:grid;place-items:center;color:#7f94a9;font-size:16px}
.product-cat-toggle:hover{background:#edf5ff}
.product-cat-nested{border-left:2px solid #e8eff8;margin-left:16px;padding-left:10px}
.product-cat-empty{font-size:12px;color:#78889d;padding:16px}
.product-cat-dialog-footer{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding:13px 24px 20px;border-top:1px solid #e9eff6;background:#fff}
.product-cat-dialog-footer .button{min-height:36px;padding:7px 11px;font-size:11px}
@media(max-width:600px){
  .product-cat-native{grid-template-columns:1fr}
  .cat-tree-children{margin-left:4px;padding-left:6px}
  .cat-new-child{padding:4px 6px;font-size:10px}
  .cat-tree-label{font-size:11px}
  .cat-tree-tools .cat-mini-button{width:26px}
  .product-cat-dialog-head{padding:17px 16px 10px}
  .product-cat-dialog-body{padding:0 14px;max-height:66vh}
  .product-cat-dialog-footer{padding:12px 14px}
  .product-cat-nested{margin-left:10px;padding-left:7px}
}

/* Durchsuchbarer Kategorienfilter oberhalb der Artikelkacheln */
.catalog-live-filters .catalog-cat-native{display:flex;flex:1 1 300px;grid-column:auto;gap:10px;min-width:0}
.catalog-live-filters .catalog-cat-native select{min-width:145px;flex:1}
.catalog-live-filters .catalog-cat-native.product-cat-native-enhanced{display:none!important}
.catalog-live-filters .catalog-cat-filter{flex:1 1 260px;min-width:200px;margin:0;gap:0}
.catalog-live-filters .catalog-cat-filter .product-cat-select-button{min-height:43px;padding:7px 11px}
.catalog-live-filters .catalog-cat-filter .product-cat-selection{font-size:12px}
.catalog-live-filters select[name="sort"]{flex:1 1 190px;min-width:165px}
@media(max-width:700px){.catalog-live-filters .catalog-cat-filter{flex:1 1 100%}}

/* v0.9.0: Produkterkennung auf Wunsch und bewusste Lernfunktion */
.enrichment-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.enrichment-head h2{margin:0}
.enrichment-inline{display:inline-flex;align-items:center;padding:4px 0;margin-top:7px;border:0;background:none;color:#0d74c9;font-size:12px;font-weight:750;cursor:pointer;text-align:left;min-height:28px}
.enrichment-inline:hover{text-decoration:underline}
.enrichment-selected{display:block!important;font-size:11px;color:#166c5e;margin-top:5px;line-height:1.4}
.enrichment-learn{display:flex!important;align-items:flex-start;gap:8px;font-size:12px!important;font-weight:500!important;color:#65748b;margin:12px 0;line-height:1.35}
.enrichment-learn input{width:17px;height:17px;min-height:0;flex:0 0 17px}
.enrichment-dialog{width:min(620px,calc(100vw - 28px));max-height:min(85vh,830px);border:1px solid #e1e9f2;border-radius:18px;background:#fff;box-shadow:0 30px 90px rgba(18,36,61,.25);padding:24px;color:#142236;overflow-y:auto}
.enrichment-dialog::backdrop{background:rgba(13,27,46,.58)}
.enrichment-dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.enrichment-dialog-top h2{margin:0 0 4px}
.enrichment-dialog-top p{font-size:13px;color:#66758c;margin:0 0 18px}
.enrichment-close{width:36px;height:36px;min-height:36px;padding:0;border:1px solid #dae3ef;border-radius:10px;background:#fff;font-size:24px;color:#64748b}
.enrichment-query label{font-size:12px;font-weight:750;color:#62748c;display:grid;gap:6px}
.enrichment-query input{margin-top:6px;width:100%}
.enrichment-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.enrichment-status{font-size:12px;color:#64758c;margin:13px 0;min-height:18px}
.enrichment-results{display:grid;gap:8px}
.enrichment-result{display:flex;align-items:center;gap:12px;border:1px solid #e6edf5;border-radius:13px;padding:12px;background:#fafcff}
.enrichment-result-icon{width:45px;height:45px;flex:none;display:grid;place-items:center;border-radius:11px;background:#eff5fc;font-size:23px}
.enrichment-result-text{min-width:0;flex:1}
.enrichment-result-text strong,.enrichment-result-text small{display:block;overflow-wrap:anywhere}
.enrichment-result-text strong{font-size:13px}
.enrichment-result-text small{font-size:11px;line-height:1.45;margin-top:2px}
.enrichment-source{font-size:11px;color:#1174ce;display:inline-block;margin-top:4px}
.enrichment-result button{flex:none}
.enrichment-disclaimer{font-size:11px;color:#8190a3;line-height:1.5;margin:15px 0 0}
.enrichment-empty{font-size:13px;color:#73859b;padding:16px;background:#f6f9fc;border-radius:11px}
@media(max-width:550px){.enrichment-dialog{padding:16px}.enrichment-result{flex-wrap:wrap}.enrichment-result button{margin-left:auto}}
.enrichment-quick{display:block;text-align:left;background:#f0f9f6;border:1px solid #cce9dc;color:#166f58;font-size:11px;font-weight:750;padding:7px 9px;border-radius:9px;margin-top:5px;cursor:pointer;line-height:1.35}
.enrichment-quick:hover{background:#e1f3eb}

.enrichment-tools a{font-size:12px;text-decoration:none}

/* MyLager v0.9.2 – Bon-Vollständigkeitsprüfung */
.receipt-audit{background:#fffaf2;border:1px solid #f0dfc7;border-radius:13px;padding:13px 16px;margin:12px 0 20px;color:#65533e;font-size:12px}
.receipt-audit-ok{background:#f2fbf7;border-color:#cce9da;color:#28634d}
.receipt-audit-heading,.receipt-audit-details,.receipt-audit-totals{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 15px}
.receipt-audit-heading{margin-bottom:8px}.receipt-audit-heading strong{font-size:14px}.receipt-audit-heading span{font-weight:700}
.receipt-audit-details{justify-content:flex-start;opacity:.84}.receipt-audit-alert{font-weight:700;color:#ac572a}
.receipt-audit-totals{border-top:1px solid #e9dac8;margin-top:10px;padding-top:10px}.receipt-audit-ok .receipt-audit-totals{border-color:#cce9da}
.receipt-audit p{color:inherit;font-size:12px;margin:9px 0 0;line-height:1.5}

/* WESTKERN MyLager v0.9.3 – kompakter Belegvergleich und zurückhaltende Navigation */
.wk-sidebar-collapse{width:36px!important;height:36px!important;min-height:36px!important;display:grid!important;place-items:center!important;border:1px solid #e3ebf5!important;border-radius:11px!important;color:#617d99!important;background:#f7f9fd!important;transition:background .18s,transform .18s!important;transform:none!important;cursor:pointer}
.wk-sidebar-collapse:hover{background:#eaf3ff!important;color:#1077d5!important}
.wk-sidebar-collapse svg{width:19px;height:19px;display:block}
.sidebar-collapsed .wk-sidebar-collapse{transform:none!important}
.sidebar-collapsed .wk-sidebar-collapse svg{transform:scaleX(-1)}
.wk-receipt-compare.doc-detail{grid-template-columns:minmax(0,1.05fr) minmax(290px,.95fr);align-items:stretch;gap:18px}
.wk-items-column,.wk-original-column{min-width:0}
.wk-items-column>section+section{margin-top:18px}
.wk-compact-panel{padding:18px 20px}
.wk-compact-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:16px}
.wk-compact-head h2{margin:0 0 4px;font-size:18px}
.wk-compact-head p{font-size:12px;line-height:1.45;margin:0;color:#7a8ba0}
.wk-compact-head>span{font-size:11px;color:#577a9c;background:#eef5fc;border-radius:20px;padding:5px 9px;white-space:nowrap;font-weight:740}
.wk-compact-list{border:1px solid #e5ebf2;border-radius:12px;overflow:hidden}
.wk-compact-line{display:grid;grid-template-columns:23px minmax(0,1fr) 80px 75px;align-items:center;gap:8px;padding:10px 11px;border-bottom:1px solid #e9eff5;background:#fff;min-height:64px}
.wk-compact-line:last-child{border-bottom:0}
.wk-compact-line:nth-child(2n){background:#fcfdff}
.wk-compact-line:hover{background:#f4f9ff}
.wk-compact-line.wk-compact-service{background:#fffaf3}
.wk-compact-check input{display:block;width:17px;height:17px;min-height:0;accent-color:#108cff;cursor:pointer}
.wk-compact-imported{display:grid;place-items:center;color:#1b8e6e;font-weight:800}
.wk-compact-name{text-align:left;background:none;border:0;min-height:0!important;padding:0;min-width:0;color:#203348;cursor:pointer}
.wk-compact-name strong{display:block;font-size:12.5px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.wk-compact-name:hover strong{color:#1279d4}
.wk-compact-name small{display:block;color:#8a9aab;font-size:10px;line-height:1.3;margin-top:3px}
.wk-compact-qty{text-align:right;font-weight:750;font-size:12px;color:#526782;white-space:nowrap;font-variant-numeric:tabular-nums}
.wk-compact-qty small{font-weight:500;font-size:10px;color:#9aaa}
.wk-compact-price{text-align:right;font-size:12.5px;color:#14253c;white-space:nowrap;font-variant-numeric:tabular-nums}
.wk-compact-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #e9eff6;margin-top:16px;padding-top:14px;font-size:12px;color:#74869b}
.wk-compact-footer .button{min-height:40px}
.wk-detail-edit-panel h2{margin-bottom:12px}
.wk-review-drawer{border:1px solid #e4edf7;background:#f9fbfe;border-radius:12px;overflow:visible}
.wk-review-drawer>summary{display:flex;align-items:center;gap:8px;padding:15px 16px;cursor:pointer;font-weight:770;color:#236da7;font-size:13px;list-style:none}
.wk-review-drawer>summary::-webkit-details-marker{display:none}
.wk-review-drawer>summary::after{content:'▾';font-size:16px;margin-left:auto;color:#7f99b6}
.wk-review-drawer[open]>summary::after{content:'▴'}
.wk-review-drawer>p,.wk-review-drawer>form{margin:10px 12px 14px}
.wk-review-highlight{outline:2px solid #108cff;box-shadow:0 0 0 5px rgba(16,140,255,.11)!important;scroll-margin-top:155px}
.wk-original-column{align-self:stretch}
.wk-original-sticky{position:sticky;top:93px;max-height:calc(100vh - 113px);overflow:auto;scrollbar-width:thin;border-radius:16px}
.wk-original-sticky .panel{padding:16px}
.wk-original-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}
.wk-original-head h2{margin:0;font-size:17px}
.wk-original-head .button{min-height:32px;font-size:11px}
.wk-original-sticky .receipt-image{display:block;max-height:none;width:100%;height:auto;object-fit:contain;cursor:zoom-in}
.wk-original-sticky .pdf-preview{height:min(60vh,420px)}
.wk-compare-mobile-tabs{display:none}
@media(max-width:1200px){.wk-receipt-compare.doc-detail{grid-template-columns:minmax(0,1.03fr) minmax(260px,.97fr)}.wk-compact-line{grid-template-columns:22px minmax(0,1fr) 65px 70px;gap:6px;padding:9px 8px}}
@media(max-width:900px){
  .wk-compare-mobile-tabs{display:flex;position:sticky;top:71px;z-index:10;gap:6px;background:#f5f8fc;border:1px solid #e5eef8;border-radius:12px;padding:5px;margin-bottom:12px}
  .wk-compare-mobile-tabs button{flex:1;border:0;border-radius:9px;padding:10px 8px;min-height:40px;font-weight:730;color:#6e8399;background:none}
  .wk-compare-mobile-tabs button.active{color:#0d71cb;background:#fff;box-shadow:0 2px 6px #173c6714}
  .wk-receipt-compare.doc-detail{display:block}
  .wk-receipt-compare[data-mobile-view="list"] .wk-original-column{display:none}
  .wk-receipt-compare[data-mobile-view="original"] .wk-items-column{display:none}
  .wk-original-sticky{position:static;max-height:calc(100vh - 245px);min-height:200px}
}
@media(max-width:570px){
 .wk-compact-panel{padding:14px 10px}
 .wk-compact-line{grid-template-columns:20px minmax(0,1fr) 58px 65px;gap:4px;padding:9px 7px}
 .wk-compact-name strong{font-size:12px}
 .wk-compact-name small{font-size:9px}
 .wk-compact-qty,.wk-compact-price{font-size:11px}
 .wk-compact-head{padding:0 4px}
 .wk-compact-footer{padding-left:4px;padding-right:4px}
 .wk-review-drawer>p,.wk-review-drawer>form{margin:8px}
}

/* WESTKERN MyLager v0.9.4 – verlässliche Produkt-Zuordnung */
.identity-match{margin:11px 0 13px;padding:12px 13px;border:1px solid #d8e7f5;background:#f5f9ff;border-radius:12px}
.identity-match label{display:block;font-size:12px;font-weight:750;color:#314c6b}
.identity-match select{display:block;width:100%;margin-top:8px;min-height:38px;border-radius:8px;font-size:12px}
.identity-match small{display:block;font-size:11px;color:#627994;line-height:1.45;margin-top:7px}
.receipt-audit-residual{border-top:1px solid #f0e6c8;margin:10px 0 0;padding-top:10px;font-size:12px}

.identity-history summary{cursor:pointer;font-size:15px;font-weight:750}
.identity-history-list{margin-top:12px;border-top:1px solid #e5ebf2}
.identity-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e7edf4}
.identity-history-row strong{display:block;font-size:13px;overflow-wrap:anywhere}
.identity-history-row small{display:block;font-size:11px;margin-top:4px;line-height:1.4;overflow-wrap:anywhere}
.identity-history-row small a{color:#1477e8}
.identity-history-row .button{min-height:32px}


/* MyLager 0.9.5: OCR-Protokoll und markierbare Positionen im Original */
.wk-ocr-raw{margin-top:16px!important;padding:16px!important;border:1px solid #dce7f5;background:#fff}
.wk-ocr-raw summary{font-weight:780;color:#20669e;font-size:14px;cursor:pointer}
.wk-ocr-raw textarea{width:100%;min-height:240px;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}
.wk-compact-head [data-show-ocr]{margin:6px 0 0;align-self:flex-start}
.wk-compact-line{grid-template-columns:22px minmax(0,1fr) 67px 73px 32px!important;align-items:center}
.wk-line-number{font-size:10px;color:#1779d4;background:#e6f3ff;border-radius:5px;padding:2px 5px;margin-right:3px}
.wk-region-assign{width:30px;height:32px;min-height:32px;padding:0;border-radius:7px;background:#fff;color:#4382b0;border:1px solid #d6e6f4;font-size:15px}
.wk-region-assign:hover{background:#eaf5ff;color:#075d9b}
.wk-compact-line.wk-region-selected{background:#eef7ff;box-shadow:inset 3px 0 #108cff}
.wk-compact-line.wk-region-marked .wk-region-assign{background:#e7f8f1;color:#146b50;border-color:#bfe9db}
.wk-receipt-stage-wrap{position:relative;max-width:100%;overflow:hidden}
.wk-receipt-stage{position:relative;width:100%;line-height:0;display:block;min-width:0}
.wk-receipt-stage>img{width:100%;height:auto;display:block;object-fit:contain;max-height:none;border-radius:7px}
.wk-region-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.wk-region-box{box-sizing:border-box;position:absolute;border:2px solid #147be1;background:rgba(16,140,255,.10);border-radius:3px;pointer-events:none;min-width:6px;min-height:6px}
.wk-region-box.is-active{border-color:#e88200;background:rgba(255,169,37,.17);z-index:2}
.wk-region-number{position:absolute;top:-17px;left:-2px;display:inline-flex;justify-content:center;align-items:center;min-width:21px;height:18px;padding:1px 4px;border-radius:5px 5px 0 0;background:#147be1;color:#fff;font-weight:800;font-size:11px;line-height:1}
.wk-region-box.is-active .wk-region-number{background:#bd6600}
.wk-region-help{font-size:11px;margin:8px 0 0;color:#8294a5}
.wk-region-handle{position:absolute;bottom:-5px;right:-5px;width:14px;height:14px;border-radius:3px;background:#fff;border:2px solid #147be1;cursor:nwse-resize}
.wk-receipt-modal{position:fixed;inset:2.5vh 2vw;margin:auto;max-width:96vw;width:1050px;max-height:95vh;height:94vh;border-radius:16px;border:1px solid #e0e9f2;padding:0;box-shadow:0 22px 90px #091b3670;overflow:hidden;background:#fff;color:#172c45}
.wk-receipt-modal::backdrop{background:rgba(5,18,38,.78)}
.wk-receipt-modal[open]{display:flex;flex-direction:column}
.wk-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e5ecf3;padding:12px 16px;flex:0 0 auto}
.wk-modal-head>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.wk-modal-head strong{font-size:15px}
.wk-modal-head span:not([data-zoom-level]){font-size:11px;color:#6b7e93}
.wk-modal-head span[data-error='1']{color:#a64130}
.wk-modal-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.wk-modal-tools .button{min-height:34px;padding:4px 10px}
.wk-modal-tools [data-zoom-level]{min-width:46px;text-align:center;font-size:12px;color:#60758c}
.wk-modal-content{flex:1 1 auto;min-height:0;overflow:auto;padding:18px;background:#eef1f7;scrollbar-width:thin;text-align:center}
.wk-modal-content .wk-receipt-stage{width:100%;max-width:none;margin:0 auto;box-shadow:0 5px 19px #29456824;text-align:left}
.wk-modal-content .wk-receipt-stage>img{border-radius:0}
.wk-modal-stage .wk-region-layer{pointer-events:none}
.wk-modal-stage{touch-action:pan-y;cursor:default;user-select:none}
.wk-modal-stage.is-drawing{touch-action:none;cursor:crosshair}
.wk-modal-stage .wk-region-box{pointer-events:auto;touch-action:none;cursor:move}
.wk-modal-stage .wk-region-handle{pointer-events:auto}
.wk-modal-foot{flex:0 0 auto;padding:10px 16px;border-top:1px solid #e5ecf3;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#627b91}
.wk-modal-foot>div{display:flex;gap:8px}
.wk-pdf-pages{width:100%;display:flex;flex-direction:column;gap:14px;align-items:center}
.wk-pdf-page{width:100%;height:auto;display:block;background:white;box-shadow:0 6px 20px #24385626}
.wk-pdf-open{width:100%;border:0;cursor:zoom-in}
@media(max-width:1000px){.wk-compact-line{grid-template-columns:19px minmax(0,1fr) 50px 60px 30px!important;gap:3px!important}.wk-compact-qty,.wk-compact-price{font-size:11px}}
@media(max-width:640px){.wk-receipt-modal{height:98vh;max-height:98vh;inset:1vh 1vw;max-width:98vw;width:98vw}.wk-modal-content{padding:8px}.wk-modal-head{padding:9px}.wk-modal-foot{padding:8px;flex-wrap:wrap}.wk-compact-line{grid-template-columns:20px minmax(0,1fr) 43px 54px 26px!important;padding:8px 4px!important}.wk-region-assign{width:26px;font-size:13px}}

.wk-receipt-stage[data-receipt-preview]{cursor:zoom-in}.wk-receipt-stage[data-receipt-preview]:focus-visible{outline:3px solid #108cff;outline-offset:3px}


/* WESTKERN MyLager v0.9.6 – Kategorienbaum in der Belegprüfung und Summenzeile */
.wk-receipt-category{grid-column:1/-1;display:grid;gap:7px;padding:10px 12px;background:#f3f8ff;border:1px solid #d8e7f8;border-radius:11px;min-width:0}
.wk-receipt-category .product-cat-entry-label{font-size:12px;font-weight:750;color:#3f607f}
.wk-receipt-category .product-cat-select-button{text-align:left;width:100%;white-space:normal;min-height:43px;border-color:#bcd8f5;background:#fff}
.wk-receipt-category .product-cat-selection{overflow-wrap:anywhere;min-width:0}
.wk-receipt-category .product-cat-change{white-space:nowrap;flex:none}
.wk-receipt-category>small{font-size:11px;color:#758da8}
.wk-receipt-category .receipt-cat-native label{font-size:11px;font-weight:750;display:block}
.wk-receipt-category .receipt-cat-native select{margin-top:5px}
.wk-compact-totals{padding:13px 14px;background:#f3f8ff;border:1px solid #dce9f9;border-radius:10px;margin-top:12px;display:grid;gap:9px}
.wk-compact-totals>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#526d87}
.wk-compact-totals strong{font-size:15px;color:#1d3652;white-space:nowrap}
.wk-compact-totals>div:nth-child(2){border-top:1px solid #dce9f9;padding-top:9px}
.wk-compact-totals>small{color:#748ba3;font-size:10px;line-height:1.5}
.review-item[id^="wk-receipt-position-"],.imported-row[id^="wk-receipt-position-"]{scroll-margin-top:115px}
@media(max-width:570px){.wk-compact-totals{padding:12px 10px}.wk-receipt-category{padding:9px}.wk-compact-totals strong{font-size:13px}}

/* MyLager v0.9.8: Markierungsstatus direkt am Originalbeleg */
.wk-region-help{border:1px solid #dce7f3;border-radius:9px;background:#f7faff;padding:10px 12px;margin-top:12px;line-height:1.6;font-size:12px;color:#506782}
.wk-region-help strong{color:#255b91}
.wk-region-help [hidden]{display:none!important}


/* MyLager v0.9.9 – Markierungen direkt anwählbar, Status oberhalb des Bonfotos */
.wk-marker-head-status{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin-top:6px;color:#5c7590;font-size:11px;line-height:1.45}
.wk-marker-head-status strong{display:inline-flex;border-radius:6px;background:#eaf4ff;padding:4px 7px;color:#145f9b;font-size:11px;white-space:nowrap}
.wk-region-assign{font-weight:800;flex-shrink:0}
.wk-region-assign:focus-visible{outline:2px solid #108cff;outline-offset:2px}
.wk-modal-foot [hidden]{display:none!important}
.wk-modal-stage.is-drawing::after{content:"";position:absolute;inset:0;border:2px dashed rgba(16,140,255,.45);pointer-events:none}
.wk-modal-stage.is-drawing .wk-region-box{pointer-events:none}
.wk-modal-stage.is-drawing{touch-action:none;cursor:crosshair}
.wk-original-head>div{min-width:0}
@media(max-width:640px){.wk-marker-head-status span{font-size:10px}.wk-marker-head-status strong{font-size:10px}.wk-modal-foot [data-marking-hint]{flex-basis:100%;line-height:1.35}}

/* Auf Smartphones kann der lange Bon trotz aktivem Tipp-Markiermodus gescrollt werden. */
@media(pointer:coarse){.wk-modal-stage.is-drawing{touch-action:pan-y}}


/* MyLager v0.9.10 – alle zuverlässig erkannten Bonpositionen anzeigen */
.wk-marker-head-status [data-auto-region-status]{flex:1 1 100%;font-size:11px;line-height:1.45;color:#617c97}
.wk-marker-head-status .wk-auto-regions{min-height:31px;padding:5px 10px;font-size:11px;font-weight:700;border-color:#d5e5f8;color:#1269ae;background:#f3f8ff;max-width:100%}
.wk-marker-head-status .wk-auto-regions:hover{background:#eaf4ff}
.wk-marker-head-status .wk-auto-regions:disabled{opacity:.62;cursor:progress}
.wk-region-box{box-shadow:0 0 0 1px rgba(255,255,255,.8) inset}
.wk-region-box.is-active{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(222,130,0,.38)}
@media(max-width:640px){.wk-marker-head-status .wk-auto-regions{width:100%;justify-content:center}}

/* MyLager v0.9.11: Belegmarkierung direkt in den Korrekturfeldern */
.wk-review-row-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.wk-review-region-btn{white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.imported-title .wk-review-region-btn{margin-left:12px}
@media(max-width:650px){.wk-review-region-btn{white-space:normal}.wk-review-row-actions{align-items:flex-start}}

/* WESTKERN MyLager v0.9.12 – markierte Ausschnitte erneut lesen */
.wk-region-recheck{margin-top:14px;padding:15px;background:#f8fbff;border:1px solid #dbe8f5;border-radius:13px;color:#213e60}
.wk-region-recheck[hidden]{display:none!important}
.wk-region-recheck-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px}
.wk-region-recheck-heading [data-region-ocr-progress]{font-size:12px;color:#557492}
.wk-region-recheck-note{font-size:12px;line-height:1.55;color:#617c99;margin:9px 0 13px}
.wk-region-ocr-results{display:grid;gap:10px}
.wk-region-ocr-result{background:white;border:1px solid #dbe6f2;border-radius:10px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px}
.wk-region-ocr-result h4{margin:0 0 5px;font-size:13px;color:#183953}
.wk-region-ocr-result label{display:block;font-size:11px;color:#58738d;margin-top:6px}
.wk-region-ocr-result input{width:100%;margin-top:3px;border:1px solid #d4e0ee;border-radius:7px;padding:7px;min-height:34px;font-size:13px;background:#fff;color:#17324a}
.wk-region-ocr-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.wk-region-ocr-result pre{font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fb;border-radius:7px;padding:8px;color:#596d80;max-height:130px;overflow:auto;margin:6px 0}
.wk-region-ocr-result .wk-ocr-preview{display:block;width:100%;max-height:150px;object-fit:contain;border:1px solid #e4eaf3;border-radius:7px;background:#f5f8fc}
.wk-region-ocr-result .button{margin-top:7px}
.wk-region-ocr-result small{display:block;color:#70879f;margin-top:4px}
.wk-modal-foot>div{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:600px){.wk-region-ocr-result{grid-template-columns:minmax(0,1fr)}.wk-region-ocr-result .wk-ocr-preview{max-height:110px;width:auto;max-width:100%}.wk-region-ocr-fields{grid-template-columns:1fr 1fr}.wk-modal-foot{align-items:flex-start}.wk-modal-foot>div{justify-content:flex-start}}

/* 0.9.15: zweite OCR ist eine bewusste Browser-Option; kein externer Bild-Upload */
.ocr-engine-choice{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:#465b78;margin:8px 0}
.ocr-engine-choice input{flex:0 0 auto;accent-color:#108cff;width:16px;height:16px}
.ocr-engine-choice small{display:block;width:100%;font-size:11px;color:#71849a;margin-left:23px}
.receipt-ocr-retry .ocr-engine-choice{display:inline-flex;margin-right:10px}
@media(max-width:640px){.receipt-ocr-retry .ocr-engine-choice{display:flex;max-width:100%}}

/* WESTKERN MyLager v0.9.16 – klare Upload-/Belegansicht und Systemwörterbuch */
.wk-intel-panel{margin:0 0 20px;padding:24px}
.wk-intel-heading,.wk-intel-subheading{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:15px}
.wk-intel-heading h2{font-size:22px;line-height:1.25;margin:4px 0 7px}
.wk-intel-heading p,.wk-intel-subheading p{font-size:13px;line-height:1.5;color:#74869b;margin:0}
.wk-intel-heading .eyebrow{font-size:10px;letter-spacing:.11em;color:#4887ca;font-weight:800}
.wk-intel-update{font-size:11px;font-weight:700;color:#54738f;background:#edf5fe;padding:7px 12px;border-radius:20px;white-space:nowrap}
.wk-intel-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.wk-intel-stat{background:#f6f9fd;border:1px solid #e2eaf2;border-radius:13px;padding:15px;min-width:0;display:flex;flex-direction:column;gap:5px}
.wk-intel-stat small{font-size:11px;color:#617990;font-weight:700}.wk-intel-stat strong{font-size:23px;color:#142840;font-variant-numeric:tabular-nums}.wk-intel-stat span{font-size:10px;color:#8c9aad;line-height:1.4}
.wk-intel-subheading{align-items:end;margin-top:6px}.wk-intel-subheading h3{font-size:17px;margin:0 0 6px}
.wk-intel-links{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.wk-intel-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,230px) auto;gap:9px;margin-bottom:12px;align-items:center}
.wk-intel-search input,.wk-intel-search select{min-width:0;height:42px;margin:0;padding:8px 12px;border:1px solid #dce5ef;border-radius:9px;background:#fff;color:#274059;font-size:13px}
.wk-intel-search .button{height:42px}.wk-intel-dict{overflow:auto;max-height:350px;border:1px solid #e0e8f1;border-radius:11px}
.wk-intel-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.wk-intel-table th{position:sticky;top:0;background:#f3f7fc;color:#50677f;font-weight:750;z-index:1}
.wk-intel-table td,.wk-intel-table th{padding:9px 12px;border-bottom:1px solid #edf1f6;vertical-align:top}.wk-intel-table td:nth-child(2){color:#5d748c}.wk-intel-source{font-size:10px;color:#6f849a;background:#f3f6f9;border-radius:5px;padding:3px 6px;white-space:nowrap}
.wk-intel-foot{display:block;margin-top:10px;color:#899bad;line-height:1.5;font-size:10px}
.wk-ocr-diagnosis{display:block!important;border:1px solid #e4eaf2;background:#f7faff;border-radius:11px;padding:11px 14px!important}
.wk-ocr-notice{display:flex;align-items:start;gap:12px;font-size:12px;line-height:1.55}
.wk-ocr-notice strong{white-space:nowrap;color:#245584}.wk-ocr-notice span{color:#58718e}
.wk-ocr-tech{margin-top:9px;border-top:1px solid #e5ebf3;padding-top:8px;font-size:11px}
.wk-ocr-tech summary{cursor:pointer;color:#2074c9;font-weight:700}.wk-ocr-tech div{white-space:pre-wrap;overflow-wrap:anywhere;color:#657c91;line-height:1.6;padding-top:7px}
@media(min-width:1001px){.upload-panel:not(.compact):not(.upload-panel-modern){grid-template-columns:54px minmax(240px,1fr) minmax(360px,460px)!important;gap:18px!important;align-items:center!important;padding:20px 24px!important}.upload-panel:not(.compact):not(.upload-panel-modern) .upload-graphic{grid-column:1;grid-row:1}.upload-panel:not(.compact):not(.upload-panel-modern) .upload-copy{grid-column:2;grid-row:1}.upload-panel:not(.compact):not(.upload-panel-modern) .upload-form{grid-column:3;grid-row:1;width:100%;max-width:none}}
.upload-panel:not(.compact):not(.upload-panel-modern) .upload-form{gap:10px}.upload-panel .upload-choose{padding:10px!important;min-height:52px;border:1px dashed #95b7e8;border-radius:10px;background:#fff}
.upload-form .ocr-engine-choice{font-size:12px;color:#425c74}.upload-form .ocr-engine-choice small{font-size:10px;color:#7b91a7;line-height:1.4}
@media(max-width:1100px){.wk-intel-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.wk-intel-heading,.wk-intel-subheading{flex-wrap:wrap}}
@media(max-width:650px){.wk-intel-panel{padding:14px}.wk-intel-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.wk-intel-stat{padding:11px}.wk-intel-stat strong{font-size:19px}.wk-intel-search{grid-template-columns:1fr}.wk-intel-search .button{width:100%}.wk-intel-links{justify-content:flex-start}.wk-intel-table{font-size:11px}.wk-intel-table td,.wk-intel-table th{padding:9px 7px}.wk-intel-source{white-space:normal}.wk-ocr-notice{flex-direction:column;gap:3px}}

/* v0.9.17 upload panel refresh */
.upload-panel-modern{background:linear-gradient(180deg,#eff6ff 0%,#edf5ff 100%);border:1px solid #d9e9fb;border-radius:18px;padding:20px 22px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:18px;align-items:stretch}.upload-panel-modern.compact{margin-top:12px}.upload-panel-modern .upload-hero{display:flex;align-items:center;gap:16px;min-width:0}.upload-panel-modern .upload-graphic{height:62px;width:62px;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(34,82,138,.08)}.upload-panel-modern .upload-copy h2{margin:0 0 6px}.upload-panel-modern .upload-copy p{margin:0 0 10px;max-width:none;color:#5e7791}.upload-highlights{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}.upload-highlights span{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid #d9e8f8;color:#4a6a8a;font-size:11px;font-weight:700}.upload-form-card{background:#fff;border:1px solid #dce6f2;border-radius:16px;padding:15px;box-shadow:0 10px 28px rgba(33,59,89,.06);display:flex;flex-direction:column;gap:10px}.upload-form-grid{display:grid;grid-template-columns:1fr;gap:10px}.upload-form-card .merchant-on-upload{display:grid;gap:5px;font-size:11px;font-weight:700;color:#5b748d}.upload-form-card .merchant-on-upload input{max-width:none;min-height:44px;padding:11px 12px;border-radius:12px}.upload-choose.modern{position:relative;max-width:none;min-height:64px;padding:0 14px;display:flex;align-items:center;gap:12px;border:1px dashed #9fc0ea;border-radius:14px;background:#fbfdff;color:#264d73;overflow:hidden}.upload-choose.modern input{position:absolute;inset:0;opacity:0;cursor:pointer;max-width:none;min-height:0}.upload-choose-badge{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#edf5ff;display:grid;place-items:center;font-size:18px;color:#1477e8}.upload-choose-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.upload-choose-copy strong{font-size:13px;color:#254361}.upload-choose-copy small{font-size:11px;color:#75879b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.upload-form-card .ocr-engine-choice{margin:0;padding:8px 10px;border-radius:12px;background:#f7fbff;border:1px solid #e2edf7}.upload-form-card .ocr-engine-choice small{margin-left:23px}.upload-form-card .button.primary{width:100%;min-height:46px;border-radius:12px}.upload-inline-note{font-size:11px;line-height:1.45;color:#72859a}.upload-panel-modern .ocr-status{grid-column:1 / -1;margin-top:2px}.upload-panel-modern .ocr-status:not([hidden]){padding:11px 14px;border:1px solid #d8e4f0;border-radius:12px;background:#fff;color:#4a6480}.upload-panel-modern .ocr-status.ocr-error{background:#fff4f4;border-color:#ffd2d2;color:#9a4747}@media(min-width:860px){.upload-form-grid{grid-template-columns:1fr 1fr}}@media(max-width:1000px){.upload-panel-modern{grid-template-columns:1fr}.upload-panel-modern .upload-hero{align-items:flex-start}}@media(max-width:700px){.upload-panel-modern,.upload-panel-modern.compact{padding:16px;gap:12px}.upload-panel-modern .upload-hero{flex-direction:column;align-items:flex-start;gap:12px}.upload-panel-modern .upload-graphic{height:48px;width:48px;font-size:22px}.upload-highlights{gap:6px}.upload-highlights span{font-size:10px;padding:5px 8px}.upload-form-card{padding:13px}.upload-choose.modern{min-height:58px;padding:0 12px}.upload-form-card .button.primary{min-height:44px}}


/* WESTKERN MyLager v0.9.19 – Uploadlayout ohne Alt-CSS-Konflikte */
.upload-panel.upload-panel-modern {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 22px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: 22px;
  overflow: hidden;
}
.upload-panel.upload-panel-modern > .upload-hero {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.upload-panel.upload-panel-modern .upload-hero > .upload-graphic {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0;
}
.upload-panel.upload-panel-modern .upload-hero > .upload-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.upload-panel.upload-panel-modern .upload-copy h2 {
  font-size: 18px;
  line-height: 1.28;
  margin: 0 0 6px;
}
.upload-panel.upload-panel-modern .upload-copy p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.upload-panel.upload-panel-modern .upload-copy small {
  font-size: 11px;
  line-height: 1.45;
}
.upload-panel.upload-panel-modern > form.upload-form-card {
  box-sizing: border-box;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.upload-panel.upload-panel-modern .upload-form-grid {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.upload-panel.upload-panel-modern .upload-form-card .merchant-on-upload,
.upload-panel.upload-panel-modern .upload-form-card .upload-choose.modern {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.upload-panel.upload-panel-modern .upload-form-card .merchant-on-upload input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.upload-panel.upload-panel-modern .upload-form-card .upload-choose.modern {
  padding: 0 12px !important;
  border: 1px dashed #9fc0ea;
  background: #fbfdff;
}
.upload-panel.upload-panel-modern .upload-form-card .upload-choose.modern:focus-within {
  outline: 2px solid #108cff;
  outline-offset: 2px;
}
.upload-panel.upload-panel-modern .upload-form-card .upload-choose-copy {
  flex: 1 1 0;
  min-width: 0;
}
.upload-panel.upload-panel-modern .upload-form-card .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.upload-panel.upload-panel-modern .upload-form-card .ocr-engine-choice { width: 100%; box-sizing: border-box; }
.upload-panel.upload-panel-modern .ocr-status { min-width: 0; }
@media (min-width: 1181px) {
  .upload-panel.upload-panel-modern .upload-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .upload-panel.upload-panel-modern {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }
  .upload-panel.upload-panel-modern > .upload-hero,
  .upload-panel.upload-panel-modern > form.upload-form-card {
    grid-column: 1;
    grid-row: auto;
  }
  .upload-panel.upload-panel-modern > .upload-hero { align-items: flex-start; }
  .upload-panel.upload-panel-modern .upload-form-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 700px) {
  .upload-panel.upload-panel-modern { padding: 14px; gap: 13px; }
  .upload-panel.upload-panel-modern > .upload-hero { flex-direction: row; gap: 12px; }
  .upload-panel.upload-panel-modern .upload-hero > .upload-graphic { flex-basis: 44px; width: 44px; height: 44px; }
  .upload-panel.upload-panel-modern .upload-copy h2 { font-size: 16px; }
  .upload-panel.upload-panel-modern .upload-form-grid { grid-template-columns: minmax(0,1fr); }
  .upload-panel.upload-panel-modern .upload-highlights span { padding: 4px 7px; }
  .upload-panel.upload-panel-modern > form.upload-form-card { padding: 12px; }
}

/* OCR-Option: Eingabefeld, Bezeichnung und Hilfetext auf einer sauberen Linie */
.upload-panel.upload-panel-modern .upload-form-card label.ocr-engine-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 3px;
  align-items: start;
  font-size: 12px;
  line-height: 1.5;
}
.upload-panel.upload-panel-modern .upload-form-card label.ocr-engine-choice input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  margin: 1px 0 0;
}
.upload-panel.upload-panel-modern .upload-form-card label.ocr-engine-choice small {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  width: auto;
}

/* 0.9.24 – Sicherheitsübersicht, Buchungsgründe und mobile Prüfliste */
.wk-login-stats{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 20px}
.wk-login-stats>span{border:1px solid #dce5f2;border-radius:12px;background:#f8fafc;padding:11px 15px;flex:1;min-width:160px;color:#42556b}
.wk-login-stats strong{font-size:23px;color:#152338;margin-right:6px}
.wk-login-table{width:100%;margin-top:12px;overflow:hidden;border:1px solid #e2e8f0;border-radius:12px}
.wk-login-head,.wk-login-tr{display:grid;grid-template-columns:minmax(155px,1fr) minmax(180px,1.2fr) minmax(115px,1fr);gap:10px;padding:11px 14px;align-items:center}
.wk-login-head{background:#f1f5f9;font-weight:650;color:#42556b}
.wk-login-tr{border-top:1px solid #edf1f6;overflow-wrap:anywhere}
.wk-login-ok{color:#167b52;font-weight:650}.wk-login-warning{color:#b45309;font-weight:650}
.wk-event-note,.wk-event-balance{display:block;margin-top:4px}.wk-event-balance strong{font-weight:700;color:#243b53}
.stock-controls.large{flex-wrap:wrap;align-items:end}.stock-controls.large .wk-adjust-label{display:flex;flex-direction:column;gap:4px;min-width:110px;font-size:12px;color:#566579}.stock-controls.large .wk-adjust-note{flex:1 1 170px}
.stock-controls.large .wk-adjust-note input{width:100%;min-height:40px}
.wk-compact-needs-review{box-shadow:inset 3px 0 #d69a25}.wk-compact-needs-review .wk-compact-price{color:#9a6011}
@media(max-width:700px){
 .wk-login-head{display:none}.wk-login-tr{grid-template-columns:1fr;gap:4px;padding:12px 14px}
 .wk-login-stats>span{min-width:135px}.wk-compact-line{grid-template-columns:32px minmax(0,1fr) auto !important;gap:7px 9px;padding:12px 8px}
 .wk-compact-line .wk-compact-price{grid-column:2/3;text-align:left}.wk-compact-line .wk-compact-qty{grid-column:3/4;grid-row:1/3;text-align:right}
 .wk-compact-line .wk-region-assign{grid-column:1/2;grid-row:2/3;min-width:36px;min-height:38px}
 .stock-controls.large .wk-adjust-note{flex-basis:100%}.wk-compact-name{min-width:0;overflow-wrap:anywhere}
}
/* WESTKERN 0.9.27 – Frischeprüfung, mobile Lagerorte */
.fresh-panel{margin:20px 0}.fresh-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:16px}.fresh-header h2{margin:0 0 6px}.fresh-header p{margin:0;color:var(--muted,#657083);line-height:1.5}.fresh-list{display:grid;gap:10px}.fresh-item{border:1px solid #d9e0ea;border-radius:13px;padding:13px;background:var(--panel,#fff)}.fresh-due{border-left:4px solid #e6a036}.fresh-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.fresh-main strong a{text-decoration:none;color:inherit}.fresh-main small{display:block;color:var(--muted,#677183);margin-top:5px}.fresh-meta{text-align:right;display:flex;flex-direction:column;gap:4px}.fresh-meta b{font-size:.82rem}.fresh-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.fresh-actions form{margin:0}.fresh-pill{display:inline-flex;border-radius:99px;padding:4px 9px;background:#fff3d4;color:#805300;font-size:.75rem;font-weight:700;align-self:flex-end}.fresh-note{display:block;color:var(--muted,#667080);margin-top:15px;line-height:1.5}.fresh-edit{margin-top:12px;font-size:.88rem}.fresh-edit summary{cursor:pointer}.fresh-form,.fresh-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:12px 0}.fresh-form label,.fresh-filters label{display:grid;gap:5px;font-size:.83rem;flex:1 1 155px}.fresh-form input,.fresh-form select,.fresh-filters input,.fresh-filters select{width:100%;min-width:0}.fresh-locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}.fresh-location{border:1px solid #dbe2ec;border-radius:10px;padding:10px;text-decoration:none;color:inherit}.fresh-location small{display:block;margin-top:5px;color:var(--muted,#677183)}
@media(max-width:620px){.fresh-meta{text-align:left}.fresh-actions{display:grid;grid-template-columns:1fr 1fr}.fresh-actions form .button{width:100%;height:auto;min-height:42px;white-space:normal}.fresh-actions form:last-child:nth-child(odd){grid-column:1/-1}.fresh-form label,.fresh-filters label{flex:1 1 100%}.fresh-header .button{width:100%;text-align:center}}

/* 0.9.27: WESTKERN-Wortmarke in schmaler Seitenleiste vollständig zeigen. */
.app-shell .wk-side-head{gap:4px;padding-left:2px;padding-right:2px}
.app-shell .wk-side-brand{overflow:visible;flex:1 1 auto;gap:7px;min-width:0}
.app-shell .wk-side-brandtext{flex:1 1 auto;min-width:0}
.app-shell .wk-side-brandtext small{letter-spacing:0;font-size:9px;line-height:1.3;white-space:normal}
.app-shell .wk-side-brandtext small .wk-wordmark{white-space:nowrap;letter-spacing:0}
.app-shell .wk-sidebar-collapse{flex:0 0 27px}
.fresh-panel{margin-bottom:18px}.fresh-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.fresh-header p{margin:6px 0 0;font-size:13px;color:#60748a}
.fresh-list{display:grid;gap:10px;margin-top:15px}.fresh-item{border:1px solid #dce6f1;background:#fff;border-radius:12px;padding:13px;min-width:0}.fresh-item.fresh-due{border-color:#e4cba4;background:#fffdf9}.fresh-main{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.fresh-main>div{min-width:0}.fresh-main small,.fresh-meta small{display:block;font-size:11px;color:#60748a;margin-top:4px}.fresh-meta{text-align:right;flex:0 0 auto}.fresh-meta b{font-size:12px}.fresh-pill{display:inline-block;font-size:11px;color:#98602a;background:#fff0d9;border:1px solid #edd4ae;padding:4px 8px;border-radius:30px;margin-top:6px}.fresh-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}.fresh-edit{margin-top:10px}.fresh-edit summary{cursor:pointer;font-weight:650;font-size:12px;color:#315d8e}.fresh-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px;margin-top:10px}.fresh-form label,.fresh-filters label{display:grid;gap:5px;font-size:12px;font-weight:650}.fresh-form label input,.fresh-form select,.fresh-filters input,.fresh-filters select{width:100%;min-width:0}.fresh-form button{width:max-content}.fresh-note{display:block;font-size:12px;color:#63738a;line-height:1.65;margin-top:15px}.fresh-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}.fresh-filters label{flex:1 1 190px}.fresh-location{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e3eaf3;border-radius:11px;padding:10px 13px}.fresh-location small{color:#728097;font-size:11px}.fresh-locations{display:grid;gap:7px;margin-top:12px}
.fresh-catalog-tools{display:grid;grid-template-columns:minmax(220px,2fr) minmax(200px,1fr);gap:12px;margin:18px 0 8px}.fresh-catalog-tools label{display:grid;gap:6px;font-weight:700;font-size:12px}.fresh-catalog-tools input,.fresh-catalog-tools select{width:100%;min-width:0}.fresh-catalog-result{font-size:12px;color:#6b788b;margin-bottom:8px}.fresh-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:start}.fresh-catalog-item{border:1px solid #e3eaf3;border-radius:11px;min-width:0;background:#fff;overflow:hidden}.fresh-catalog-item[hidden]{display:none!important}.fresh-catalog-item[open]{border-color:#bed9f3}.fresh-catalog-item summary{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) 15px;gap:8px;align-items:center;list-style:none;cursor:pointer;padding:11px 12px}.fresh-catalog-item summary::-webkit-details-marker{display:none}.fresh-catalog-item summary:hover{background:#f5f9ff}.fresh-catalog-item small{display:block;font-size:11px;color:#6d8298;margin-top:3px}.fresh-catalog-name,.fresh-catalog-summary{min-width:0;overflow-wrap:anywhere}.fresh-catalog-name strong{font-size:12px}.fresh-catalog-summary{font-size:12px;color:#334b65;text-align:right}.fresh-catalog-chevron{color:#9bafc4;font-size:19px}.fresh-catalog-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-top:1px solid #e8eef6;background:#fbfdff;padding:12px}.fresh-catalog-edit label{display:grid;gap:5px;font-size:11px;font-weight:650}.fresh-catalog-edit label input{width:100%;min-width:0}.fresh-catalog-edit label:nth-of-type(3),.fresh-catalog-checkbox,.fresh-catalog-buttons{grid-column:1/-1}.fresh-catalog-checkbox{display:flex!important;flex-direction:row;align-items:center;gap:7px!important;font-weight:500!important;line-height:1.5}.fresh-catalog-checkbox input{width:auto!important;flex:none}.fresh-catalog-buttons{display:flex;flex-wrap:wrap;gap:7px}
@media(max-width:930px){.fresh-catalog-grid{grid-template-columns:1fr}}
@media(max-width:600px){.fresh-main{display:block}.fresh-meta{text-align:left;margin-top:7px}.fresh-form,.fresh-catalog-edit,.fresh-catalog-tools{grid-template-columns:1fr}.fresh-catalog-item summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 14px}.fresh-locations{gap:9px}.fresh-location{display:block}.fresh-location small{display:block;margin-top:3px}}

.fresh-catalog-new{background:#f6faff;border:1px dashed #bdd7f4;border-radius:10px;padding:12px 14px;margin:13px 0}.fresh-catalog-new>summary{font-size:13px;font-weight:700;color:#196dbe;cursor:pointer}.fresh-catalog-add{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;align-items:end}.fresh-catalog-add label{display:grid;gap:5px;font-size:11px;font-weight:700}.fresh-catalog-add input,.fresh-catalog-add select{min-width:0;width:100%}.fresh-catalog-add-note{grid-column:1/-1}
@media(max-width:600px){.fresh-catalog-add{grid-template-columns:1fr}}

.fresh-actions form{display:flex;align-items:end;gap:5px;flex-wrap:wrap}.fresh-qty-label{display:grid;gap:3px;color:#657a8e;font-size:10px;font-weight:700}.fresh-qty-label input{min-height:31px;height:31px;width:80px;min-width:0;padding:4px 7px;font-size:12px}

/* 0.9.28: transparente Frische-Chargen, Datum und Verlauf */
.fresh-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:15px}
.fresh-stats>div{border:1px solid #dce6f1;background:#fff;border-radius:12px;padding:14px;display:grid;gap:3px}
.fresh-stats strong{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;color:#112b45}
.fresh-stats small{font-size:11px;color:#617892}
.fresh-history-panel{margin-top:18px}.fresh-history-detail{border-top:1px solid #e3eaf2;padding:12px 0}
.fresh-history-detail summary{cursor:pointer;font-weight:700;color:#285b8e}
.fresh-history-list{display:grid;gap:6px;margin:12px 0}.fresh-history-row{border:1px solid #e4ebf3;border-radius:9px;padding:10px 12px;display:flex;justify-content:space-between;gap:12px}
.fresh-history-row strong{font-size:12px}.fresh-history-row small{display:block;font-size:11px;color:#6c7f92;margin-top:3px}
.fresh-history-row>span{text-align:right;font-size:12px;white-space:nowrap}
@media(max-width:700px){.fresh-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fresh-history-row{flex-wrap:wrap}.fresh-history-row>span{text-align:left}}
/* v0.9.30: Fruehwarnungen & Produkt-Jahresstatistiken */
.fresh-item.fresh-upcoming{border-left:4px solid #3783ce;background:#f7fbff}
.fresh-pill.fresh-pill-soon{background:#e7f3ff;border-color:#b9dbfa;color:#165b9c}
.fresh-warning-settings{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:#f5f9fe;border:1px solid #dceafa;border-radius:10px;padding:12px;margin:12px 0 16px}
.fresh-warning-settings label{display:grid;gap:5px;font-size:12px;font-weight:650}
.fresh-warning-settings select{min-width:120px}
.fresh-warning-settings small{font-size:11px;color:#6a7889;flex:1 1 240px}
.fresh-statistics,.fresh-stat-brief{margin:20px 0}
.fresh-stat-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:14px 0}
.fresh-stat-filters label{display:grid;gap:5px;flex:1 1 165px;font-size:12px;font-weight:650}
.fresh-stat-filters label:nth-child(3){flex:2 1 260px}
.fresh-stat-filters input,.fresh-stat-filters select{width:100%;min-width:0}
.fresh-stat-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.fresh-stat-metrics>div{border:1px solid #dce7f1;background:#f8fbff;border-radius:11px;padding:12px;min-width:0}
.fresh-stat-metrics strong{font-size:23px;font-weight:750;color:#17304c;display:block;font-variant-numeric:tabular-nums}
.fresh-stat-metrics small{font-size:11px;color:#61738a;display:block;margin-top:4px}
.fresh-stat-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #e1e9f1;border-radius:12px;margin-top:16px}
.fresh-stat-table{border-collapse:collapse;width:100%;min-width:610px;font-variant-numeric:tabular-nums}
.fresh-stat-table thead{background:#f1f6fb}
.fresh-stat-table th,.fresh-stat-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #e7edf4;font-size:12px}
.fresh-stat-table th:first-child{min-width:175px}
.fresh-stat-table td:nth-child(n+2){text-align:right}
.fresh-stat-table th:not(:first-child){text-align:right}
.fresh-stat-table tbody tr:last-child th,.fresh-stat-table tbody tr:last-child td{border-bottom:0}
.fresh-stat-table tbody tr:hover{background:#f8fbff}
.fresh-stat-table th a{text-decoration:none;color:#175c99}
.fresh-stat-table th small{display:block;font-size:10px;color:#7a8999;margin-top:4px;font-weight:400}
.fresh-stat-link{color:#1164a8;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.fresh-stat-months{margin-top:22px;padding-top:17px;border-top:1px solid #e0e9f2}
.fresh-stat-months h3{font-size:17px;margin:0}
.fresh-stat-month-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #e0e9f2;border-radius:10px;overflow:hidden;margin-top:12px;font-size:12px}
.fresh-stat-month-grid>div{padding:8px 12px;border-bottom:1px solid #edf1f6;min-width:0}
.fresh-stat-month-grid>div:not(:nth-child(5n+1)){text-align:right}
.fresh-stat-month-grid>div:nth-last-child(-n+5){border-bottom:0}
.fresh-stat-month-head{background:#f3f8fc;font-weight:700;color:#34516f}
@media(max-width:650px){.fresh-stat-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fresh-stat-table th,.fresh-stat-table td{padding:9px 8px}.fresh-warning-settings label{flex:1 1 100%}.fresh-stat-month-grid>div{padding:8px 7px}}

.fresh-stat-brief .fresh-stat-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:700px){.fresh-stat-brief .fresh-stat-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* MyLager 0.9.31: automatic removal is visibly unconfirmed and reversible. */
.fresh-auto-notice { padding: 13px 16px; border: 1px solid var(--line, #d4dde8); border-radius: 12px; margin: 14px 0; background: var(--surface, #f8fafc); }
.fresh-auto-notice a { font-weight: 700; text-decoration: underline; }
.fresh-auto-archive-entry .fresh-meta { white-space: normal; }
.fresh-auto-archive .fresh-pill { background: #fff3dd; color: #805500; }
.fresh-catalog-edit label small { display: block; font-size: .78rem; opacity: .75; margin-top: 5px; font-weight: normal; line-height: 1.5; }

.fresh-stat-table-wrap {overflow-x:auto;}
.fresh-stat-table {min-width:960px;}
.fresh-stat-month-grid {overflow-x:auto; grid-template-columns:repeat(7,minmax(75px,1fr)) !important;}

/* v0.9.32: focused pages instead of one giant scroll */
.fresh-workspace-nav{display:flex;gap:7px;overflow-x:auto;padding:3px 0 13px;scrollbar-width:thin;margin-bottom:7px}
.fresh-workspace-nav a{border:1px solid #d8e2ec;border-radius:10px;padding:10px 13px;white-space:nowrap;font-size:12px;font-weight:650;text-decoration:none;color:#36536b;background:#fff}
.fresh-workspace-nav a:hover,.fresh-workspace-nav a.active{background:#eef6ff;border-color:#b3d7ff;color:#14589d}
.fresh-stats-simple{grid-template-columns:repeat(3,minmax(0,1fr))}
.fresh-storage-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:14px;margin-top:20px}
.fresh-storage-group{min-width:0;border:1px solid #e0e9f2;border-radius:12px;padding:14px;background:#fbfdff}
.fresh-storage-group h2{font-size:15px;margin:0 0 12px;display:flex;justify-content:space-between;gap:9px;align-items:center}
.fresh-storage-group h2 small{font-size:11px;font-weight:400;color:#71869a}
.fresh-storage-items{display:flex;flex-direction:column;gap:6px}
.fresh-storage-items a{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #e9eff6;border-radius:8px;padding:10px;text-decoration:none;color:inherit}
.fresh-storage-items a strong{font-size:12px}.fresh-storage-items a span{font-size:11px;color:#617b92;text-align:right}
.fresh-location-correction{background:#edf6ff;border:1px solid #c9dff4;border-radius:10px;margin:14px 0;padding:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fresh-location-correction p{margin:0;flex:1;min-width:210px;font-size:12px}
.fresh-pagination{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:17px 5px}
.fresh-pagination a,.fresh-pagination span{border:1px solid #d9e4ef;border-radius:8px;padding:7px 12px;text-decoration:none;color:#2c5576;font-size:12px}
.fresh-pagination a.active{background:#e5f2ff;border-color:#83bbf1;font-weight:700}
.fresh-catalog-intro{margin-bottom:15px}.fresh-catalog-intro p{color:#607890;font-size:12px;margin:6px 0 0}
#fresh-catalog-results[aria-busy=true]{opacity:.66}
@media(max-width:650px){.fresh-stats-simple{grid-template-columns:repeat(2,minmax(0,1fr))}.fresh-workspace-nav a{padding:9px 10px;font-size:12px}.fresh-storage-items a{align-items:flex-start;flex-direction:column}.fresh-storage-items a span{text-align:left}}

/* 0.9.32: Aktionen bewusst eingeklappt, damit die Frischekarten kompakt bleiben. */
.fresh-action-toggle{margin-top:12px;border-top:1px solid #e8edf4;padding-top:9px}
.fresh-action-toggle>summary{display:inline-flex;align-items:center;cursor:pointer;border:1px solid #d5e2f2;background:#f5f9ff;border-radius:8px;color:#2263a1;font-size:12px;font-weight:700;padding:8px 11px}
.fresh-action-toggle[open]>summary{background:#eaf4ff}
.fresh-action-toggle .fresh-actions{padding-top:9px;margin-top:0}
.fresh-stats-simple{grid-template-columns:repeat(3,minmax(0,1fr));max-width:800px}
@media(max-width:620px){.fresh-action-toggle .fresh-actions{grid-template-columns:1fr 1fr}.fresh-stats-simple{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* WESTKERN MyLager 0.9.33 — Inventarkarten: lesbare Lagerorte und klare Bestandssteuerung.
   Die Ortsbezeichnung erhält eine vollständige eigene Zeile statt Ellipse neben den Tasten. */
.product-grid.compact-tiles {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 15px;
    margin-bottom: 24px;
}
.compact-tiles .product-card {
    min-width: 0;
    min-height: 0;
}
.compact-tiles .product-thumb {
    height: 106px;
}
.compact-tiles .product-content {
    padding: 12px 14px 14px;
    min-width: 0;
}
.compact-tiles .product-name {
    font-size: 13.5px;
    line-height: 1.4;
    min-height: 3.95em;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
    margin: 5px 0 10px;
}
.compact-tiles .stock-line {
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 1px;
}
.compact-tiles .stock-line span {
    line-height: 1.35;
}
.compact-tiles .stock-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "location location" "caption actions";
    align-items: center;
    column-gap: 6px;
    row-gap: 9px;
    margin-top: auto;
    padding-top: 10px;
}
.compact-tiles .stock-location {
    grid-area: location;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.4;
    color: #5d7187;
}
.compact-tiles .stock-location-marker {
    color: #2f83d6;
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1.15;
}
.compact-tiles .stock-location-value {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.compact-tiles .stock-actions-caption {
    grid-area: caption;
    min-width: 0;
    color: #8091a5;
    font-size: 10px;
    line-height: 1.3;
}
.compact-tiles .stock-bottom .stock-controls {
    grid-area: actions;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
    justify-self: end;
    align-items: center;
}
.compact-tiles .stock-bottom .stock-controls button {
    width: 33px;
    height: 33px;
    min-width: 33px;
    padding: 0;
}
@media (max-width: 700px) {
    .product-grid.compact-tiles {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 154px), 1fr));
        gap: 11px;
        margin-bottom: 20px;
    }
    .compact-tiles .product-thumb { height: 92px; }
    .compact-tiles .product-content { padding: 10px 11px 12px; }
    .compact-tiles .product-name { font-size: 12.5px; min-height: 4.2em; }
    .compact-tiles .stock-location { font-size: 10.5px; }
    .compact-tiles .stock-actions-caption { font-size: 9px; }
    .compact-tiles .stock-bottom .stock-controls button { width: 31px; min-width: 31px; height: 32px; }
}
@media (max-width: 365px) {
    .compact-tiles .stock-actions-caption { font-size: 9px; }
}
