/* Basprint portal design system. One typeface (Inter); hierarchy comes from weight and size.
   Elements the panel shows and hides are never given a forced display value. */
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-ext.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --ui-brand:#0b7bff;--ui-brand-2:#17b5f5;--ui-brand-dark:#075fd0;--ui-brand-soft:#e8f3ff;
  --ui-ink:#0c1729;--ui-text:#17233a;--ui-muted:#5c6b82;--ui-faint:#8a97ab;
  --ui-bg:#f2f6fb;--ui-surface:#fff;--ui-subtle:#f7f9fc;--ui-line:#e3e9f1;--ui-line-strong:#cdd6e2;
  --ui-green:#0f9d63;--ui-red:#e0434b;--ui-red-soft:#fdeeef;--ui-amber-soft:#fdf4e3;
  --ui-grad:linear-gradient(120deg,var(--ui-brand),var(--ui-brand-2));
  --ui-r:14px;--ui-r-sm:10px;--ui-shadow:0 1px 2px rgba(12,23,41,.05),0 1px 1px rgba(12,23,41,.03);--ui-shadow-md:0 8px 24px rgba(12,23,41,.09);--ui-shadow-lg:0 24px 60px rgba(12,23,41,.24);
  --ui-font:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--ui-side:252px;
}
/* Anything the panel has hidden stays hidden, whatever a layout rule below asks for. */
body.bp-portal-auth:not(#_) .main [style*="display: none"],body.bp-portal-auth:not(#_) .main [style*="display:none"]{display:none!important}
/* Document scroll only: browsers with a bottom address bar collapse it while the page scrolls. */
html:has(body.bp-portal-auth),html:has(body.login-page){overflow-x:clip!important;overflow-y:visible!important;height:auto!important;-webkit-text-size-adjust:100%}
html body.bp-portal-auth,html body.login-page{overflow-x:clip!important;overflow-y:visible!important;height:auto!important;min-height:100dvh;margin:0!important;background:var(--ui-bg)!important;color:var(--ui-text);font-family:var(--ui-font)!important;font-size:14px;line-height:1.5;letter-spacing:-.003em;-webkit-font-smoothing:antialiased}
html body.bp-portal-auth *,html body.login-page *{font-family:inherit!important}
html body.bp-portal-auth .main .woocommerce-Price-amount,html body.bp-portal-auth .fin-amount,html body.bp-portal-auth .stat-big,html body.bp-portal-auth .main td,html body.bp-portal-auth .bp-money{font-variant-numeric:tabular-nums}
.pui-inline-ico{display:inline-flex;vertical-align:-3px}

/* ---------- Shell ---------- */
html body.bp-portal-auth .dash{display:block!important;height:auto!important;min-height:100dvh;overflow:visible!important}
html body.bp-portal-auth .sidebar{position:fixed!important;top:0;bottom:0;left:0;height:100dvh!important;width:var(--ui-side)!important;padding:0 12px 14px!important;background:linear-gradient(180deg,#0c1729,#10223c)!important;border:0!important;box-shadow:none!important;color:#c3cfdf!important;display:flex!important;flex-direction:column;overflow-y:auto;z-index:2000}
html body.bp-portal-auth .sidebar .pui-brand{padding:20px 6px 14px!important;margin:0 0 8px!important;border-bottom:1px solid rgba(255,255,255,.08);color:#fff!important}
.pui-brand-row{display:flex;align-items:center;gap:11px}
.pui-brand-mark{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#fff;overflow:hidden;display:block;position:relative}
.pui-brand-mark img{position:absolute;left:0;top:2px;width:42px;height:auto;transform:scale(1.3);transform-origin:50% 0}
.pui-brand-name{font-size:15px;font-weight:700;color:#fff;line-height:1.2}
.pui-brand-user{font-size:12px;font-weight:450;color:#8fa1b9;margin-top:2px;word-break:break-all}
html body.bp-portal-auth .zoom-controls{display:flex!important;gap:4px;margin-top:12px!important}
html body.bp-portal-auth .zoom-btn{flex:1;height:28px!important;padding:0!important;background:rgba(255,255,255,.06)!important;border:0!important;border-radius:7px!important;color:#b6c4d6!important;font-size:12px!important;font-weight:550!important;cursor:pointer}
html body.bp-portal-auth .zoom-btn:hover{background:rgba(255,255,255,.14)!important;color:#fff!important}
html body.bp-portal-auth .nav-item{display:flex!important;align-items:center;gap:11px;min-height:42px;margin:2px 0!important;padding:0 12px!important;border:0!important;border-radius:var(--ui-r-sm)!important;background:none!important;color:#b6c4d6!important;font-size:14px!important;font-weight:520!important;text-decoration:none!important;cursor:pointer;transition:background .15s,color .15s,transform .15s}
html body.bp-portal-auth .nav-item:hover{background:rgba(255,255,255,.07)!important;color:#fff!important;transform:translateX(2px)}
html body.bp-portal-auth .nav-item.active{background:var(--ui-grad)!important;color:#fff!important;font-weight:620!important;box-shadow:0 6px 18px rgba(11,123,255,.38)!important}
html body.bp-portal-auth .nav-item .pui-ico{flex:0 0 18px;width:18px;height:18px}
html body.bp-portal-auth .sidebar .pui-side-extra{margin-top:auto!important;padding:10px 0 0!important;border-top:1px solid rgba(255,255,255,.08)!important}
html body.bp-portal-auth .nav-item.pui-danger{color:#ff9ba1!important}
html body.bp-portal-auth .nav-item.pui-danger:hover{background:rgba(224,67,75,.16)!important}
html body.bp-portal-auth .sidebar .pui-close{display:none!important}
html body.bp-portal-auth .main{display:block!important;margin:0 0 0 var(--ui-side)!important;width:auto!important;max-width:none!important;min-height:100dvh;padding:26px 30px 56px!important;background:none!important;border:0!important;overflow:visible!important;box-sizing:border-box}
html body.bp-portal-auth .tab-content{max-width:1360px;margin:0 auto}
html body.bp-portal-auth .main h1{margin:0 0 18px!important;font-size:26px!important;font-weight:750!important;letter-spacing:-.022em;line-height:1.2;text-align:left!important;color:var(--ui-ink)!important}
html body.bp-portal-auth .main h2{margin:22px 0 12px!important;font-size:18px!important;font-weight:680!important;letter-spacing:-.012em;color:var(--ui-ink)!important}
html body.bp-portal-auth .main h3,html body.bp-portal-auth .main h4{font-weight:660!important;letter-spacing:-.01em;color:var(--ui-ink)!important;margin-top:0}
html body.bp-portal-auth .main h3{font-size:16px!important}

/* ---------- Surfaces ---------- */
html body.bp-portal-auth .card{padding:20px!important;margin:0 0 16px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-r)!important;box-shadow:var(--ui-shadow)!important}
html body.bp-portal-auth .data-card,html body.bp-portal-auth .bp-inv-card,html body.bp-portal-auth .cust-card,html body.bp-portal-auth .bp-action-card{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-r)!important;box-shadow:var(--ui-shadow)!important;transition:box-shadow .18s,transform .18s,border-color .18s}
html body.bp-portal-auth .data-card:hover,html body.bp-portal-auth .bp-inv-card:hover,html body.bp-portal-auth .cust-card:hover{box-shadow:var(--ui-shadow-md)!important;transform:translateY(-1px);border-color:var(--ui-line-strong)!important}
html body.bp-portal-auth .bp-search-group-header{border-radius:var(--ui-r-sm)!important;background:var(--ui-subtle)!important;border:1px solid var(--ui-line)!important;color:var(--ui-muted)!important;font-weight:620!important;font-size:13px!important;padding:9px 14px!important;box-shadow:none!important}
html body.bp-portal-auth .bp-search-group-old-incomplete>.bp-search-group-header,html body.bp-portal-auth .bp-search-group-old-unpaid>.bp-search-group-header{background:var(--ui-amber-soft)!important;border-color:#f3dfb4!important;color:#94600a!important}

/* ---------- Controls ---------- */
html body.bp-portal-auth .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;height:auto!important;min-height:40px;padding:0 16px!important;border-radius:var(--ui-r-sm)!important;font-size:14px!important;font-weight:600!important;line-height:1.2;box-shadow:none;cursor:pointer;transition:background .15s,box-shadow .15s,transform .1s,border-color .15s}
html body.bp-portal-auth .btn:active{transform:scale(.98)}
html body.bp-portal-auth .btn-blue{background:var(--ui-grad)!important;color:#fff!important;border:0!important;box-shadow:0 4px 14px rgba(11,123,255,.28)!important}
html body.bp-portal-auth .btn-blue:hover{box-shadow:0 7px 20px rgba(11,123,255,.4)!important}
html body.bp-portal-auth .btn-gray{background:var(--ui-surface)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line-strong)!important}
html body.bp-portal-auth .btn-gray:hover{background:var(--ui-subtle)!important;border-color:var(--ui-faint)!important}
html body.bp-portal-auth .btn-red{background:var(--ui-red-soft)!important;color:var(--ui-red)!important;border:1px solid #f7cdd0!important}
html body.bp-portal-auth .btn-red:hover{background:var(--ui-red)!important;color:#fff!important}
html body.bp-portal-auth .btn-tiny{min-height:34px;padding:0 11px!important;font-size:13px!important}
html body.bp-portal-auth .btn:disabled,html body.bp-portal-auth .btn-disabled{background:var(--ui-subtle)!important;border:1px solid var(--ui-line)!important;color:var(--ui-faint)!important;box-shadow:none!important;cursor:not-allowed}
html body.bp-portal-auth .btn:focus-visible,html body.bp-portal-auth .nav-item:focus-visible{outline:2px solid var(--ui-brand);outline-offset:2px}
html body.bp-portal-auth .inp,html body.bp-portal-auth .main select,html body.bp-portal-auth .main input[type=text],html body.bp-portal-auth .main input[type=number],html body.bp-portal-auth .main input[type=date],html body.bp-portal-auth .main input[type=email],html body.bp-portal-auth .main input[type=tel],html body.bp-portal-auth .main input[type=search],html body.bp-portal-auth .main textarea{min-height:40px;border:1px solid var(--ui-line-strong)!important;border-radius:var(--ui-r-sm)!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;font-size:14px!important;box-shadow:none!important;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
html body.bp-portal-auth .inp,html body.bp-portal-auth .main input[type=text],html body.bp-portal-auth .main input[type=number],html body.bp-portal-auth .main input[type=date],html body.bp-portal-auth .main input[type=email],html body.bp-portal-auth .main input[type=tel],html body.bp-portal-auth .main input[type=search]{padding:0 12px!important}
html body.bp-portal-auth .main select{padding:0 30px 0 12px!important}
html body.bp-portal-auth .main textarea{padding:10px 12px!important;min-height:80px}
html body.bp-portal-auth .inp:focus,html body.bp-portal-auth .main select:focus,html body.bp-portal-auth .main input:focus,html body.bp-portal-auth .main textarea:focus{outline:0!important;border-color:var(--ui-brand)!important;box-shadow:0 0 0 3px rgba(11,123,255,.16)!important}
html body.bp-portal-auth input[type=checkbox]{accent-color:var(--ui-brand);width:18px;height:18px;cursor:pointer}
html body.bp-portal-auth .main label{font-weight:560;color:var(--ui-text)}
html body.bp-portal-auth .filter-form{gap:8px!important;align-items:center}
html body.bp-portal-auth .filter-form>span{color:var(--ui-faint)!important;font-size:12.5px!important;font-weight:450!important}

/* ---------- Tables ---------- */
html body.bp-portal-auth .main table{width:100%;border-collapse:collapse;font-size:13.5px}
html body.bp-portal-auth .main th{padding:10px 12px;background:var(--ui-subtle);border-bottom:1px solid var(--ui-line);color:var(--ui-muted);font-size:12px;font-weight:640;text-align:left}
html body.bp-portal-auth .main td{padding:10px 12px;border-bottom:1px solid var(--ui-line)}

/* ---------- Statistics: blocks stay wide enough for their content ---------- */
.pui-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.pui-head h1{margin:0!important}
html body.bp-portal-auth .pui-head .card{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important}
html body.bp-portal-auth .pui-head .card>div{justify-content:flex-end!important;margin:0!important}
html body.bp-portal-auth #stats .stat-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin-bottom:16px!important}
html body.bp-portal-auth #stats .stat-grid .card{position:relative;display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:20px 22px!important;overflow:hidden;background:var(--ui-surface)!important}
body.bp-portal-auth:not(#_) #stats .stat-grid .card,body.bp-portal-auth:not(#_) #stats .stat-grid .card *{text-align:left!important}
html body.bp-portal-auth #stats .stat-grid .card::after{content:"";position:absolute;right:-34px;top:-34px;width:110px;height:110px;border-radius:50%;background:var(--ui-grad);opacity:.09}
html body.bp-portal-auth #stats .stat-grid .card:first-child{background:var(--ui-grad)!important;border:0!important;box-shadow:0 12px 28px rgba(11,123,255,.3)!important}
html body.bp-portal-auth #stats .stat-grid .card:first-child *{color:#fff!important}
html body.bp-portal-auth #stats .stat-grid .card:first-child::after{background:#fff;opacity:.14}
html body.bp-portal-auth .stat-mini{color:var(--ui-muted)!important;font-size:12px!important;font-weight:640!important;letter-spacing:.05em;text-transform:uppercase}
html body.bp-portal-auth .stat-big{margin:6px 0 2px;color:var(--ui-ink)!important;font-size:30px!important;font-weight:760!important;letter-spacing:-.025em;line-height:1.15}
html body.bp-portal-auth .fin-col-3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
html body.bp-portal-auth .fin-col-card{min-width:0;background:var(--ui-subtle)!important;border:1px solid var(--ui-line)!important;border-top:3px solid var(--ui-green)!important;border-radius:var(--ui-r-sm)!important;box-shadow:none!important;padding:16px!important;min-height:0!important;height:auto!important;width:auto!important;margin:0!important;text-align:left!important;box-sizing:border-box}
html body.bp-portal-auth .fin-col-card:nth-child(2){border-top-color:var(--ui-red)!important}
html body.bp-portal-auth .fin-col-card:nth-child(3){border-top-color:var(--ui-brand)!important}
html body.bp-portal-auth .bp-stats-disclosures{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;align-items:start}
html body.bp-portal-auth .bp-stat-disclosure{position:static!important;min-width:0;width:auto!important;margin:0!important;padding:0!important}
html body.bp-portal-auth .bp-stat-disclosure[open]{grid-column:1/-1;order:9}
html body.bp-portal-auth .bp-stat-disclosure summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:12px 16px;font-size:13.5px!important;font-weight:640!important;text-align:left;line-height:1.3;cursor:pointer;list-style:none}
html body.bp-portal-auth .bp-stat-expanded{position:static!important;width:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:4px 16px 16px!important;box-shadow:none!important;overflow:visible!important}
html body.bp-portal-auth .bp-stat-list{min-width:0;max-width:100%}
html body.bp-portal-auth .bp-stat-row{position:static!important;min-width:0;max-width:100%}
html body.bp-portal-auth .bp-stat-name{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
html body.bp-portal-auth .bp-cashflow{clear:both}
html body.bp-portal-auth .bp-stats-compact{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px;align-items:start;margin:0 0 16px}
html body.bp-portal-auth .bp-stats-compact>.card{min-width:0;margin:0!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-r)!important;box-shadow:var(--ui-shadow)!important}
html body.bp-portal-auth .bp-stats-compact .bp-shirt-price-wrap,html body.bp-portal-auth .bp-stats-compact .pss-stock-wrap,html body.bp-portal-auth .bp-stats-compact .bp-order-stat-panels{max-height:none!important;overflow:visible!important}
html body.bp-portal-auth .bp-shirt-price-wrap{overflow-x:auto!important}
html body.bp-portal-auth .bp-order-stat-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:10px!important}
html body.bp-portal-auth .bp-order-stat-grid>*{min-width:0;width:auto!important;overflow-wrap:anywhere}
html body.bp-portal-auth .bp-yoy-summary{flex-wrap:wrap;max-width:100%;min-width:0}
html body.bp-portal-auth .bp-yoy-svg{max-width:100%;height:auto}
html body.bp-portal-auth .pss-stock-wrap{margin-top:14px}
html body.bp-portal-auth .pss-dash{border:1px solid var(--ui-line)!important;border-radius:var(--ui-r-sm)!important}
html body.bp-portal-auth .pss-tab.active{color:var(--ui-brand)!important}

/* ---------- Orders ---------- */
html body.bp-portal-auth .pui-counters{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin:0 0 16px!important}
html body.bp-portal-auth .bp-order-counter{width:auto!important;min-width:0;margin:0!important;border-radius:var(--ui-r)!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;cursor:pointer;transition:transform .15s,box-shadow .15s}
html body.bp-portal-auth .bp-order-counter:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow-md)!important}
html body.bp-portal-auth .bp-order-counter.bp-active-filter{border-color:var(--ui-brand)!important;outline:2px solid var(--ui-brand)!important;outline-offset:-1px}
html body.bp-portal-auth #bp-orders-linear-list .data-card:not([style*="display: none"]),html body.bp-portal-auth #nabavka .data-card:not([style*="display: none"]){display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;padding:16px 18px!important;margin:0 0 12px!important}
html body.bp-portal-auth .data-card-left,html body.bp-portal-auth .data-card-right{min-width:0;width:auto!important;border:0!important;padding:0!important}
html body.bp-portal-auth .data-card-right{padding-left:18px!important;border-left:1px solid var(--ui-line)!important;flex-direction:column;justify-content:space-between;gap:10px}
html body.bp-portal-auth:not(#_) #orders .data-card-right{display:flex!important;height:auto!important;min-height:0!important}
html body.bp-portal-auth:not(#_) #orders .bp-order-checks{display:block!important;flex:0 0 auto!important;height:auto!important;overflow:visible!important}
html body.bp-portal-auth:not(#_) #orders .bp-order-actions{position:static!important;margin-top:auto!important}
html body.bp-portal-auth .bp-order-id{font-weight:720!important;color:var(--ui-brand)!important}
html body.bp-portal-auth .bp-order-row-num{background:var(--ui-brand-soft)!important;color:var(--ui-brand-dark)!important;border:0!important;font-weight:680!important}
html body.bp-portal-auth .bp-order-date{color:var(--ui-faint)!important;font-weight:500!important}
html body.bp-portal-auth .bp-order-status{padding:3px 10px!important;border-radius:999px!important;border:0!important;background:var(--ui-amber-soft)!important;color:#94600a!important;font-size:12px!important;font-weight:640!important}
html body.bp-portal-auth .bp-customer-name{font-size:16px!important;font-weight:690!important;color:var(--ui-ink)!important}
html body.bp-portal-auth .bp-order-customer-box{padding:8px 0!important;background:none!important;border:0!important}
html body.bp-portal-auth .bp-order-items-box{border:1px solid var(--ui-line)!important;border-radius:var(--ui-r-sm)!important;background:var(--ui-subtle)!important;padding:12px 14px!important;box-shadow:none!important}
html body.bp-portal-auth .bp-order-item-row{border-color:var(--ui-line)!important}
html body.bp-portal-auth .bp-order-item-price-pill{border-radius:999px!important;background:var(--ui-brand-soft)!important;color:var(--ui-brand-dark)!important;border:0!important;font-weight:640!important}
html body.bp-portal-auth .bp-order-card-summary{font-weight:640}
html body.bp-portal-auth .bp-order-pay-method{border-radius:999px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;color:var(--ui-muted)!important;font-weight:560!important}
html body.bp-portal-auth .bp-order-check-row{display:flex;align-items:center;justify-content:space-between!important;min-height:32px;gap:8px;text-align:left!important;width:100%}
html body.bp-portal-auth .bp-check-text{font-size:13.5px!important;font-weight:560!important;text-align:left!important}
html body.bp-portal-auth #orders .data-card-right input[type=checkbox]{order:2;margin:0 0 0 8px!important}
html body.bp-portal-auth .bp-order-check-sep{border-color:var(--ui-line)!important}
html body.bp-portal-auth .bp-order-actions{justify-content:flex-end!important;gap:6px}
html body.bp-portal-auth .bp-create-top-grid{gap:14px}
html body.bp-portal-auth .bp-create-order-card>.card{background:var(--ui-subtle)!important;box-shadow:none!important}
html body.bp-portal-auth [id^=cat_browser_]{scroll-margin-top:72px}
html body.bp-portal-auth .bp-cat-grid{gap:12px!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important}
html body.bp-portal-auth .bp-cat-grid>div{border:0!important;border-radius:var(--ui-r)!important;box-shadow:var(--ui-shadow-md)!important;transition:transform .18s,box-shadow .18s}
html body.bp-portal-auth .bp-cat-grid>div:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(12,23,41,.18)!important}
html body.bp-portal-auth .bp-cat-grid>div[style*="url('')"]{background:linear-gradient(135deg,#17335c,var(--ui-brand))!important}
html body.bp-portal-auth .bp-cat-grid>div>div:first-child{background:linear-gradient(180deg,rgba(12,23,41,0) 45%,rgba(12,23,41,.78))!important}
html body.bp-portal-auth .bp-cat-grid>div>div:nth-child(2){align-items:flex-end!important;justify-content:flex-start!important;text-align:left!important;font-size:14px!important;font-weight:640!important;text-shadow:none!important}

/* ---------- Finance ---------- */
@media(min-width:1101px){
  html body.bp-portal-auth #finance.active{display:grid!important;grid-template-columns:minmax(300px,370px) minmax(0,1fr);column-gap:18px;align-items:start}
  html body.bp-portal-auth #finance.active>h1,html body.bp-portal-auth #finance.active>.fin-header,html body.bp-portal-auth #finance.active>.bp-fin-filter-wrap{grid-column:1/-1}
  html body.bp-portal-auth #finance.active>#financeNewEntryForm{grid-column:1;position:sticky;top:20px}
  html body.bp-portal-auth #finance.active>.fin-view{grid-column:2;grid-row:4/span 40;min-width:0}
}
html body.bp-portal-auth .fin-header{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
html body.bp-portal-auth #finance .fin-header .fin-tab{position:relative;background:var(--ui-surface)!important;background-image:none!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-r)!important;box-shadow:var(--ui-shadow)!important;padding:16px 20px!important;text-align:left!important;cursor:pointer;color:var(--ui-muted)!important;font-weight:600!important}
html body.bp-portal-auth #finance .fin-header .fin-tab>div{font-size:28px!important;font-weight:760!important;letter-spacing:-.022em;color:var(--ui-ink)!important;text-align:left!important;font-variant-numeric:tabular-nums}
html body.bp-portal-auth #finance .fin-header .fin-tab.active{background:var(--ui-grad)!important;background-image:var(--ui-grad)!important;border:0!important;color:rgba(255,255,255,.9)!important;box-shadow:0 12px 28px rgba(11,123,255,.3)!important}
html body.bp-portal-auth #finance .fin-header .fin-tab.active *{color:#fff!important}
html body.bp-portal-auth #finance .bp-fin-filter-wrap{justify-content:flex-start!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 14px!important}
html body.bp-portal-auth .bp-fin-form{gap:10px!important}
html body.bp-portal-auth .bp-fin-save{width:100%}
html body.bp-portal-auth .fin-card:not([style*="display: none"]){display:flex;align-items:center;gap:12px}
html body.bp-portal-auth .fin-card{padding:11px 14px!important;margin:0 0 7px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-left:3px solid var(--ui-line-strong)!important;border-radius:var(--ui-r-sm)!important;box-shadow:none!important}
html body.bp-portal-auth .fin-card.in{border-left-color:var(--ui-green)!important}
html body.bp-portal-auth .fin-card.out{border-left-color:var(--ui-red)!important}
html body.bp-portal-auth .fin-info{flex:1;min-width:0}
html body.bp-portal-auth .fin-amount{font-size:15px!important;font-weight:700!important;white-space:nowrap}
html body.bp-portal-auth .fin-card.in .fin-amount{color:var(--ui-green)!important}
html body.bp-portal-auth .fin-card.out .fin-amount{color:var(--ui-red)!important}
html body.bp-portal-auth .fin-actions{display:flex;gap:5px}

/* ---------- Invoices ---------- */
html body.bp-portal-auth .bp-invoices-topbar{align-items:center!important;gap:12px;margin-bottom:14px}
html body.bp-portal-auth .bp-inv-pill{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-left:3px solid var(--ui-red)!important;border-radius:var(--ui-r-sm)!important;box-shadow:var(--ui-shadow)!important}
html body.bp-portal-auth .bp-inv-card:not([style*="display: none"]){display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:14px!important;margin:0 0 12px!important}
html body.bp-portal-auth .bp-inv-thumb{height:190px!important;width:150px!important;min-height:0!important;border-radius:var(--ui-r-sm)!important;overflow:hidden;background:var(--ui-subtle)!important;border:1px solid var(--ui-line)!important}
html body.bp-portal-auth .bp-inv-thumb img{width:100%;height:100%;object-fit:cover}
html body.bp-portal-auth .bp-inv-body{min-width:0;padding:0!important}
html body.bp-portal-auth .bp-inv-tag{border-radius:999px!important;border:0!important;font-weight:620!important}
html body.bp-portal-auth .bp-rate-list{display:grid;gap:6px}
html body.bp-portal-auth .bp-rate-list>*{border-radius:var(--ui-r-sm)!important;border:1px solid var(--ui-line)!important;background:var(--ui-subtle)!important;box-shadow:none!important;flex-wrap:wrap;gap:6px 10px!important;padding:8px 12px!important}

/* ---------- Ordering, customers, service ---------- */
@media(min-width:1101px){
  html body.bp-portal-auth form[name=nabavka_form]{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
  html body.bp-portal-auth form[name=nabavka_form]>.card{margin:0!important}
  html body.bp-portal-auth form[name=nabavka_form]>.card:nth-child(n+2){position:sticky;top:20px}
}
html body.bp-portal-auth .bp-nabavka-select-all-wrap{border-radius:var(--ui-r-sm)!important;background:var(--ui-subtle)!important;border:1px solid var(--ui-line)!important}
html body.bp-portal-auth .cust-card{padding:14px 16px!important;margin-bottom:10px}
html body.bp-portal-auth .cust-card-head{border:0!important;padding-bottom:6px!important}
html body.bp-portal-auth .cust-chip{border-radius:999px!important;background:var(--ui-brand-soft)!important;color:var(--ui-brand-dark)!important;border:0!important;font-weight:620!important}
html body.bp-portal-auth .cust-meta-grid{gap:10px 16px!important}
html body.bp-portal-auth .bp-admin-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:5px!important;margin-bottom:16px!important;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px;width:fit-content;max-width:100%}
html body.bp-portal-auth .bp-admin-tab-btn{min-height:36px;padding:0 14px!important;background:none!important;border:0!important;border-radius:8px!important;box-shadow:none!important;color:var(--ui-muted)!important;font-size:13.5px!important;font-weight:580!important;cursor:pointer}
html body.bp-portal-auth .bp-admin-tab-btn:hover{background:var(--ui-subtle)!important;color:var(--ui-ink)!important}
html body.bp-portal-auth .bp-admin-tab-btn.active{background:var(--ui-grad)!important;color:#fff!important}
html body.bp-portal-auth .bp-action-card{padding:12px 14px!important;margin-bottom:8px}

/* ---------- Modals, feedback ---------- */
html body.bp-portal-auth .modal-content,html body.bp-portal-auth .bp-modal-card{border:0!important;border-radius:18px!important;box-shadow:var(--ui-shadow-lg)!important;background:var(--ui-surface)!important}
html body.bp-portal-auth .bp-modal-title{font-size:19px!important;font-weight:720!important;letter-spacing:-.015em}
html body.bp-portal-auth .bp-modal-subtitle{color:var(--ui-muted)!important}
html body.bp-portal-auth .bp-modal-header{background:none!important;border-bottom:1px solid var(--ui-line)!important}
.pui-progress{position:fixed;left:0;top:0;height:3px;width:0;z-index:2200;background:var(--ui-grad);opacity:0;transition:width .3s ease-out,opacity .2s}
.pui-progress.on{opacity:1;width:82%;transition:width 4s cubic-bezier(.1,.7,.2,1)}
.pui-toasts{position:fixed;right:18px;top:18px;z-index:2300;display:grid;gap:8px;max-width:min(380px,calc(100vw - 32px))}
.pui-toast{padding:12px 16px;border-radius:12px;background:var(--ui-ink);color:#fff;font-size:14px;font-weight:540;box-shadow:var(--ui-shadow-lg);animation:pui-toast .22s ease-out}
.pui-toast.err{background:var(--ui-red)}
@keyframes pui-toast{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* ---------- Motion: transform and opacity only, on a handful of top-level blocks ---------- */
@media(prefers-reduced-motion:no-preference){
  html body.bp-portal-auth .modal-content{animation:pui-pop .2s ease-out}
}
@keyframes pui-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pui-pop{from{opacity:0;transform:scale(.97) translateY(6px)}to{opacity:1;transform:none}}

/* ---------- Fields and dropdowns ---------- */
.pui-bottom{display:none}
.pui-f{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0 0 10px}
.pui-f-name{color:var(--ui-muted);font-size:12.5px;font-weight:600;line-height:1.2}
.pui-f>input,.pui-f>textarea{width:100%!important;margin:0!important}
html body.bp-portal-auth .main input.inp::placeholder,html body.bp-portal-auth .main textarea::placeholder{color:var(--ui-faint)}
html body.bp-portal-auth .main select{-webkit-appearance:none;appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235c6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 11px center!important;font-weight:550;cursor:pointer}
html body.bp-portal-auth .main select:hover{border-color:var(--ui-brand)!important}
html body.bp-portal-auth .main select.pui-open{border-color:var(--ui-brand)!important;box-shadow:0 0 0 3px rgba(11,123,255,.16)!important}
.pui-menu-layer{position:fixed;inset:0;z-index:2600}
.pui-menu{position:fixed;display:flex;flex-direction:column;max-width:min(380px,calc(100vw - 24px));max-height:min(340px,60vh);padding:6px;background:#fff;border:1px solid var(--ui-line);border-radius:12px;box-shadow:var(--ui-shadow-lg);animation:pui-pop .14s ease-out;box-sizing:border-box}
.pui-menu-list{overflow-y:auto;-webkit-overflow-scrolling:touch;min-height:0}
.pui-menu-list button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:38px;padding:7px 11px;border:0;border-radius:8px;background:none;color:var(--ui-text);font:500 14px var(--ui-font);text-align:left;cursor:pointer}
.pui-menu-list button[hidden]{display:none}
.pui-menu-list button:hover{background:var(--ui-brand-soft);color:var(--ui-brand-dark)}
.pui-menu-list button.on{background:var(--ui-grad);color:#fff;font-weight:620}
.pui-menu-list button.on::after{content:"";flex:0 0 6px;width:6px;height:11px;margin-right:3px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.pui-menu-list button:disabled{color:var(--ui-faint);cursor:default;background:none}
.pui-menu-filter{flex:0 0 auto;margin:0 0 6px;min-height:38px;padding:0 11px;border:1px solid var(--ui-line-strong);border-radius:8px;font:500 14px var(--ui-font);outline:0;box-sizing:border-box}
.pui-menu-filter:focus{border-color:var(--ui-brand)}
.pui-menu-layer.sheet{background:rgba(12,23,41,.48)}
.pui-menu-layer.sheet .pui-menu{left:0;right:0;bottom:0;width:100%;max-width:none;max-height:70dvh;padding:10px 12px calc(14px + env(safe-area-inset-bottom));border:0;border-radius:20px 20px 0 0;animation:pui-sheet .2s cubic-bezier(.2,.8,.2,1)}
.pui-menu-head{padding:6px 6px 12px;color:var(--ui-ink);font-size:16px;font-weight:700}
.pui-menu-layer.sheet .pui-menu-list button{min-height:48px;font-size:15px}
.pui-menu-layer.sheet .pui-menu-filter{min-height:44px;font-size:16px}
@keyframes pui-sheet{from{transform:translateY(40%);opacity:.4}to{transform:none;opacity:1}}

/* ---------- New order: clear sections ---------- */
html body.bp-portal-auth #bp-create-order-form>.card{margin:0 0 14px!important}
html body.bp-portal-auth #bp-create-order-form h3{padding-bottom:10px;margin-bottom:12px!important;border-bottom:1px solid var(--ui-line)}
html body.bp-portal-auth #bp-create-order-btn{width:100%;min-height:50px;font-size:16px!important}
@media(min-width:1101px){
  html body.bp-portal-auth #bp-create-order-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:14px;align-items:start}
  html body.bp-portal-auth #bp-create-order-form>input,html body.bp-portal-auth #bp-create-order-form>.top-order-grid,html body.bp-portal-auth #bp-create-order-form>.card:not(.bp-create-payment-card):not(:has(textarea[name=order_note])),html body.bp-portal-auth #bp-create-order-btn{grid-column:1/-1}
  html body.bp-portal-auth #bp-create-order-form>.card:has(textarea[name=order_note]){grid-column:1}
  html body.bp-portal-auth #bp-create-order-form>.bp-create-payment-card{grid-column:2}
  html body.bp-portal-auth .bp-create-top-grid{display:grid!important;grid-template-columns:minmax(0,2.4fr) minmax(0,1fr)!important;gap:14px!important;align-items:start}
  html body.bp-portal-auth .bp-create-top-grid>.card{margin:0 0 14px!important}
  html body.bp-portal-auth .bp-create-customer-card{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
  html body.bp-portal-auth .bp-create-customer-card>h3,html body.bp-portal-auth .bp-create-customer-card>div:nth-of-type(1){grid-column:1/-1}
}
html body.bp-portal-auth #customers .card>div:first-child{flex-wrap:wrap;gap:8px}

/* ---------- Statistics: ranking switches ---------- */
.pui-rank-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 12px;background:#e6edf6;border-radius:14px}
.pui-rank-tabs button{min-height:46px;padding:8px 12px;border:0;border-radius:11px;background:none;color:var(--ui-muted);font:600 13px/1.25 var(--ui-font);text-align:center;cursor:pointer;transition:background .15s,color .15s}
.pui-rank-tabs button:hover{color:var(--ui-ink)}
.pui-rank-tabs button.active{background:#fff;color:var(--ui-brand-dark);box-shadow:0 1px 3px rgba(12,23,41,.14)}
html body.bp-portal-auth .bp-stats-disclosures{display:block!important;margin-bottom:16px}
html body.bp-portal-auth .bp-stat-disclosure:not([open]){display:none!important}
html body.bp-portal-auth .bp-stat-disclosure>summary{display:none!important}
html body.bp-portal-auth .bp-stat-disclosure[open]{display:block!important}
html body.bp-portal-auth .bp-stat-expanded{padding:6px 18px 14px!important}
html body.bp-portal-auth .bp-stat-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important;column-gap:28px!important;row-gap:0!important;counter-reset:pui-rank}
html body.bp-portal-auth .bp-stat-row{display:flex!important;align-items:center;gap:12px;min-height:50px;padding:8px 0!important;margin:0!important;background:none!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0!important;box-shadow:none!important;counter-increment:pui-rank}
html body.bp-portal-auth .bp-stat-row::before{content:counter(pui-rank);flex:0 0 26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--ui-brand-soft);color:var(--ui-brand-dark);font-size:12px;font-weight:700}
html body.bp-portal-auth .bp-stat-row:nth-child(-n+3)::before{background:var(--ui-brand);color:#fff}
html body.bp-portal-auth .bp-stat-name{font-weight:600!important;color:var(--ui-ink)!important}
html body.bp-portal-auth .bp-stat-sub{display:block;color:var(--ui-muted)!important;font-weight:450!important}
html body.bp-portal-auth .bp-money{white-space:nowrap;font-weight:700!important;color:var(--ui-ink)!important}
.pui-dup-title{display:none!important}

/* ---------- Cards: titled sections instead of floating shadows ---------- */
html body.bp-portal-auth .card{box-shadow:none!important;border-radius:16px!important}
html body.bp-portal-auth .card>h3:first-child{margin:-20px -20px 16px!important;padding:13px 20px;background:var(--ui-subtle);border-bottom:1px solid var(--ui-line);border-radius:15px 15px 0 0}
html body.bp-portal-auth .fin-col-card{background:#fff!important;border-top-width:1px!important;border-radius:14px!important}
html body.bp-portal-auth .fin-col-card:nth-child(1){background:#f1fbf6!important;border-color:#cdeedd!important}
html body.bp-portal-auth .fin-col-card:nth-child(2){background:#fef5f5!important;border-color:#f9d9db!important}
html body.bp-portal-auth .fin-col-card:nth-child(3){background:#f2f8ff!important;border-color:#d3e6fb!important}
html body.bp-portal-auth .bp-order-counter{box-shadow:none!important;text-align:left!important;padding:12px 14px!important}
html body.bp-portal-auth .bp-order-counter *{text-align:left!important}

/* Order: a header across the card, details on the left, status switches on the right. */
html body.bp-portal-auth #bp-orders-linear-list .data-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr) 270px;gap:0;padding:0!important;overflow:hidden;box-shadow:none!important;transform:none!important}
html body.bp-portal-auth #bp-orders-linear-list .data-card-left{display:contents}
html body.bp-portal-auth #bp-orders-linear-list .bp-order-head-wrap{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:10px 16px!important;margin:0!important;background:var(--ui-subtle);border-bottom:1px solid var(--ui-line)}
html body.bp-portal-auth #bp-orders-linear-list .bp-order-customer-box{grid-column:1;padding:14px 16px 6px!important}
html body.bp-portal-auth #bp-orders-linear-list .bp-order-items-box{grid-column:1;margin:6px 16px 16px!important}
html body.bp-portal-auth #bp-orders-linear-list .data-card-right{grid-column:2;grid-row:2/span 2;padding:14px!important;border-left:1px solid var(--ui-line)!important;background:#fbfcfe}
html body.bp-portal-auth #bp-orders-linear-list .bp-order-check-row{min-height:40px;margin:0 0 6px!important;padding:0 11px;background:#fff;border:1px solid var(--ui-line);border-radius:10px;box-sizing:border-box;cursor:pointer;transition:background .15s,border-color .15s}
html body.bp-portal-auth #bp-orders-linear-list .bp-order-check-row:has(input:checked){background:#e7f8f0;border-color:#a9e3c8}
html body.bp-portal-auth #bp-orders-linear-list .bp-order-check-sep{margin:8px 0 0!important;padding:8px 0 0!important;border:0!important;border-top:1px dashed var(--ui-line-strong)!important;background:none!important}
html body.bp-portal-auth #bp-orders-linear-list .data-card-right .bp-order-check-row:not(:has(input))+*{margin-top:0}

/* Fields: the name sits inside a filled box. */
.pui-f{gap:1px;padding:6px 12px 5px;margin:0 0 8px;background:#f1f5fa;border:1px solid transparent;border-radius:12px;box-sizing:border-box;transition:background .15s,border-color .15s,box-shadow .15s}
.pui-f:hover{background:#ebf1f8}
.pui-f:focus-within{background:#fff;border-color:var(--ui-brand);box-shadow:0 0 0 3px rgba(11,123,255,.14)}
.pui-f-name{font-size:11.5px;font-weight:600;color:var(--ui-muted)}
html body.bp-portal-auth .pui-f>input,html body.bp-portal-auth .pui-f>textarea{min-height:24px!important;height:24px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-weight:550;color:var(--ui-ink)!important}
html body.bp-portal-auth .pui-f>input::placeholder{color:transparent!important}
html body.bp-portal-auth .main select,html body.bp-portal-auth .main textarea,html body.bp-portal-auth .main input.inp:not(.pui-f>input){background-color:#f1f5fa!important;border-color:transparent!important;border-radius:12px!important}
html body.bp-portal-auth .main select:focus,html body.bp-portal-auth .main textarea:focus,html body.bp-portal-auth .main input.inp:not(.pui-f>input):focus{background-color:#fff!important;border-color:var(--ui-brand)!important}
@media(max-width:900px){
  .pui-rank-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.bp-portal-auth .bp-stat-list{grid-template-columns:minmax(0,1fr)!important}
  html body.bp-portal-auth .bp-stat-expanded{padding:4px 12px 10px!important}
  html body.bp-portal-auth .card>h3:first-child{margin:-14px -14px 12px!important;padding:11px 14px}
  html body.bp-portal-auth #bp-orders-linear-list .data-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr);padding:0!important}
  html body.bp-portal-auth #bp-orders-linear-list .data-card-right{grid-column:1;grid-row:auto;border-left:0!important;border-top:1px solid var(--ui-line)!important}
  html body.bp-portal-auth #bp-orders-linear-list .bp-order-head-wrap{padding:10px 12px!important}
  html body.bp-portal-auth #bp-orders-linear-list .bp-order-customer-box{padding:12px 12px 4px!important}
  html body.bp-portal-auth #bp-orders-linear-list .bp-order-items-box{margin:6px 12px 12px!important}
  html body.bp-portal-auth .pui-f>input{height:26px;font-size:16px!important}
}

/* Field box wins over the general input styles. */
html body.bp-portal-auth:not(#_) .pui-f>input,html body.bp-portal-auth:not(#_) .pui-f>textarea{min-height:24px!important;height:24px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;background-color:transparent!important;box-shadow:none!important;outline:0!important}
html body.bp-portal-auth:not(#_) #orders .bp-order-customer-box,html body.bp-portal-auth:not(#_) #orders .bp-order-customer-box *{margin-left:0!important;text-indent:0}
html body.bp-portal-auth:not(#_) #orders .bp-order-customer-lines,html body.bp-portal-auth:not(#_) #orders .bp-customer-name,html body.bp-portal-auth:not(#_) #orders .bp-customer-line{padding-left:0!important}
@media(max-width:900px){html body.bp-portal-auth:not(#_) .pui-f>input{height:26px;font-size:16px!important}}

/* Balance cards always grow with their content. */
body.bp-portal-auth:not(#_) .fin-col-3{display:grid!important;height:auto!important;max-height:none!important;overflow:visible!important}
body.bp-portal-auth:not(#_) .fin-col-3>.fin-col-card{display:block!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body.bp-portal-auth:not(#_) .fin-col-card *{max-height:none}
@media(max-width:900px){body.bp-portal-auth:not(#_) .fin-col-3{grid-template-columns:minmax(0,1fr)!important}}
html body.bp-portal-auth .bp-ico:empty{display:none!important}
/* Order card: edge-to-edge header on every screen size. */
html body.bp-portal-auth:not(#_) #bp-orders-linear-list .data-card:not([style*="display: none"]){padding:0!important;gap:0!important}
@media(max-width:900px){
  html body.bp-portal-auth:not(#_) #bp-orders-linear-list .data-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr)!important}
  html body.bp-portal-auth:not(#_) #bp-orders-linear-list .data-card-right{grid-column:1;grid-row:auto;padding:12px!important;border-left:0!important;border-top:1px solid var(--ui-line)!important}
}

/* The panel's own page styles load after this file, so these rules carry two ids. */
html body.bp-portal-auth:not(#_) #stats .fin-col-3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;height:auto!important}
html body.bp-portal-auth:not(#_) #stats .fin-col-3>.fin-col-card{display:block!important;grid-column:auto!important;flex:none!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
@media(max-width:900px){html body.bp-portal-auth:not(#_) #stats .fin-col-3{grid-template-columns:minmax(0,1fr)!important}}

html body.bp-portal-auth #stats .stat-grid .card:not(:first-child){box-shadow:var(--ui-shadow)!important}

/* Produced items: categories that open into their products. */
html body.bp-portal-auth .bp-parent-sale{min-width:0;border-bottom:1px solid var(--ui-line)}
html body.bp-portal-auth .bp-parent-sale>summary{display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 0;cursor:pointer;list-style:none}
html body.bp-portal-auth .bp-parent-sale>summary::-webkit-details-marker{display:none}
html body.bp-portal-auth .bp-parent-sale .bp-qty{white-space:nowrap;font-weight:700;color:var(--ui-ink)}
html body.bp-portal-auth .bp-parent-sale[open]{grid-column:1/-1}
html body.bp-portal-auth .bp-parent-vars{padding:0 0 10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));column-gap:24px}
html body.bp-portal-auth .bp-parent-var-row{display:flex;justify-content:space-between;gap:12px;padding:6px 10px;background:var(--ui-subtle);border-bottom:1px solid #fff;font-size:13px}

/* The whole logo is shown, never cropped. */
.pui-brand-mark{flex:0 0 52px;width:52px;height:52px;padding:3px;box-sizing:border-box}
.pui-brand-mark img{position:static;display:block;width:100%;height:100%;object-fit:contain;transform:none}
.pui-top-mark{flex:0 0 42px!important;width:42px!important;height:42px!important;padding:1px;box-sizing:border-box}
.pui-top-mark img{position:static!important;display:block;width:100%!important;height:100%!important;object-fit:contain;transform:none!important}

/* Filters: a single compact row across the full width. */
html body.bp-portal-auth .pui-head .card{flex:0 1 auto}
@media(max-width:900px){
  .pui-head{display:block;margin-bottom:12px}
  html body.bp-portal-auth .pui-head .card{width:100%!important;display:block!important}
  html body.bp-portal-auth .pui-head .card>div{display:block!important;width:100%!important}
  html body.bp-portal-auth .pui-head .card>div>:not(form){display:none!important}
  html body.bp-portal-auth .bp-fin-filter-wrap>span{display:none!important}
  html body.bp-portal-auth:not(#_) .filter-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;margin:0!important;align-items:center}
  html body.bp-portal-auth:not(#_) .filter-form select{width:100%!important;min-width:0!important}
  html body.bp-portal-auth:not(#_) .filter-form .btn{grid-column:auto!important;width:auto!important;min-width:84px;min-height:42px;margin:0!important}
  html body.bp-portal-auth:not(#_) .filter-form>label{grid-column:1/-1!important;margin:0!important}
  html body.bp-portal-auth:not(#_) #stats .filter-form>label{display:none!important}
  html body.bp-portal-auth:not(#_) .filter-form>span{display:none!important}
}

/* Orders: compact cards that are quick to scan. */
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr) 340px;margin:0 0 10px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-head-wrap{gap:3px 12px;padding:7px 12px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-head-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-row-num{min-width:0!important;width:auto!important;height:auto!important;padding:1px 7px!important;border-radius:999px!important;font-size:12px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-id{font-size:15px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-date{font-size:12px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-status{padding:2px 8px!important;font-size:11.5px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-deadline-line{margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-deadline-badge{display:inline-block;padding:2px 8px!important;font-size:11.5px!important;line-height:1.35}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-box{grid-column:1;padding:8px 12px 2px!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-lines{display:flex!important;flex-wrap:wrap;gap:1px 12px;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line{display:inline-flex!important;align-items:center;gap:0!important;min-height:0!important;margin:0!important;font-size:12.5px!important;line-height:1.4;color:var(--ui-muted)}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line .bp-ico{display:none!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-name{flex:0 0 100%;font-size:14.5px!important;color:var(--ui-ink)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-note{grid-column:1;display:flex;gap:8px;align-items:baseline;margin:6px 12px 0;padding:5px 9px;border-left:3px solid #f0b429;border-radius:0 8px 8px 0;background:#fff9e8;color:#7a4b06;font-size:12.5px;line-height:1.4;cursor:pointer}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-note b{flex:none;font-size:11px;font-weight:700;letter-spacing:.02em}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-note span{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-note.is-open span{display:block;overflow:visible}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-items-box{grid-column:1;margin:6px 12px 8px!important;padding:0!important;border:0!important;background:none!important;font-size:13px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row{align-items:baseline!important;gap:1px 12px!important;margin:0!important;padding:4px 0!important;border-bottom:1px solid var(--ui-line)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row a{font-size:13px;line-height:1.35}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-price-pill{padding:0!important;border-radius:0!important;background:none!important;color:var(--ui-muted)!important;font-size:12px!important;font-weight:560!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary{flex-direction:row!important;flex-wrap:wrap;align-items:baseline!important;justify-content:flex-start!important;gap:2px 10px!important;margin:0!important;padding:6px 0 0!important;border:0!important;text-align:left!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary>span:first-child,html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary .bp-order-pay-method{display:inline!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;color:var(--ui-muted)!important;font-size:12px!important;font-weight:560!important;white-space:normal!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary>span:last-child{flex:1 1 100%;text-align:right;color:var(--ui-ink)!important;font-size:15px!important;font-weight:700!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card-right{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch!important;align-content:start;grid-row:2/span 3;margin:0!important;padding:10px 12px!important;text-align:left!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-checks,html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-check-sep{display:contents!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card-right .bp-order-check-row{justify-content:flex-start!important;gap:7px;width:auto!important;min-height:36px;margin:0!important;padding:0 8px;text-align:left!important;border-radius:9px}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card-right .bp-order-check-row input[type=checkbox]{order:-1!important;flex:none;width:18px!important;height:18px!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card-right .bp-check-text{min-width:0;font-size:12.5px!important;line-height:1.2}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-actions{grid-column:-2/-1;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important;width:auto!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-actions .btn{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important}
@media(min-width:901px){
  html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row{flex-wrap:nowrap!important}
}
@media(max-width:900px){
  html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr)}
  html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .data-card-right{grid-column:1;grid-row:auto;width:auto!important;min-width:0!important}
  html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row{flex-wrap:wrap!important}
  html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row>div:first-child{flex:1 1 100%!important}
}

html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-lines{flex-direction:row!important;align-items:baseline!important;width:100%!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line{flex:0 1 auto!important;width:auto!important;font-weight:500!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line.bp-customer-name{flex:0 0 100%!important;font-weight:700!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line a{font-weight:560}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-deadline-badge{width:fit-content!important;max-width:100%}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary>span:last-child{text-align:right!important}

html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary>span:last-child{display:block!important;flex:1 1 100%!important;width:100%!important;margin:0!important;align-self:auto!important;text-align:right!important}

html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-card-summary{width:100%!important;max-width:none!important}

/* Top bar on every screen: plain logo, page name in the middle, menu behind a button. */
html body.bp-portal-auth:not(#_):not(#__) .mobile-title{position:sticky;top:0;z-index:1400;display:flex!important;align-items:center;justify-content:space-between;gap:10px;height:56px!important;padding:0 16px!important;background:#fff!important;border-bottom:1px solid var(--ui-line)!important;box-shadow:none!important;color:var(--ui-ink)!important;font-size:16px!important;font-weight:700!important;box-sizing:border-box}
html body.bp-portal-auth:not(#_):not(#__) .pui-top-mark{flex:0 0 auto!important;display:block;width:auto!important;height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;overflow:visible!important}
html body.bp-portal-auth:not(#_):not(#__) .pui-top-mark img{position:static!important;display:block;width:auto!important;height:44px!important;object-fit:contain;transform:none!important}
html body.bp-portal-auth:not(#_):not(#__) .pui-top-title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 160px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}
html body.bp-portal-auth:not(#_):not(#__) .menu-toggle{display:flex!important;align-items:center;justify-content:center;width:42px;height:42px;margin:0 0 0 auto!important;padding:0!important;border:0!important;border-radius:10px;background:none!important;box-shadow:none!important;color:var(--ui-ink)!important;cursor:pointer}
html body.bp-portal-auth:not(#_):not(#__) .menu-toggle:hover{background:var(--ui-subtle)!important}
html body.bp-portal-auth:not(#_):not(#__) .menu-toggle .pui-ico{width:24px;height:24px}
@media(max-width:900px){
  html body.bp-portal-auth:not(#_):not(#__) .menu-toggle{display:none!important}
}

/* The page list slides in from the right edge on every screen. */
html body.bp-portal-auth:not(#_):not(#__) .sidebar{left:auto!important;right:0!important;top:0!important;bottom:0!important;width:min(82vw,290px)!important;height:100dvh!important;transform:translateX(102%);transition:transform .24s cubic-bezier(.2,.8,.2,1);box-shadow:none!important}
html body.bp-portal-auth:not(#_):not(#__) .sidebar.open{transform:none;box-shadow:-18px 0 50px rgba(12,23,41,.4)!important}
html body.bp-portal-auth:not(#_):not(#__) .sidebar .pui-brand{padding-right:40px!important}
html body.bp-portal-auth:not(#_):not(#__) .sidebar .pui-close{display:flex!important;align-items:center;justify-content:center;position:absolute!important;top:14px;right:8px;width:36px;height:36px;margin:0;z-index:1;border:0;color:#b6c4d6!important;background:none!important;font-size:18px;cursor:pointer}
html body.bp-portal-auth:not(#_):not(#__) .nav-item:hover{transform:none}
html body.bp-portal-auth:not(#_):not(#__) .main{margin-left:0!important}
.pui-brand-mark{flex:0 0 auto;width:60px;height:47px;padding:0;border-radius:0;background:none;overflow:visible}

/* The page name is in the top bar only. */
html body.bp-portal-auth:not(#_):not(#__) .tab-content h1{display:none!important}
html body.bp-portal-auth:not(#_):not(#__) .tab-content .view-form h1{display:block!important}
html body.bp-portal-auth:not(#_):not(#__) .pui-head{justify-content:flex-end}
@media(min-width:1101px){html body.bp-portal-auth:not(#_):not(#__) form[name=nabavka_form]>.card:nth-child(n+2){top:72px}}

/* Back to top in the look of the other buttons. */
html body.bp-portal-auth:not(#_):not(#__) #bp-scroll-top{display:none!important}
.pui-top-btn{position:fixed;right:18px;bottom:22px;z-index:1300;display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid var(--ui-line);border-radius:12px;background:#fff;color:var(--ui-brand);box-shadow:var(--ui-shadow-md);cursor:pointer;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .18s,transform .18s,background .15s,color .15s}
.pui-top-btn.on{opacity:1;pointer-events:auto;transform:none}
.pui-top-btn:hover{background:var(--ui-brand);color:#fff}
@media(max-width:900px){.pui-top-btn{right:12px;bottom:calc(72px + env(safe-area-inset-bottom))}}

/* Finance: wallets, then the new entry, then the filtered list. */
html body.bp-portal-auth:not(#_):not(#__) #finance.active{display:flex!important;flex-direction:column;align-items:stretch}
html body.bp-portal-auth:not(#_):not(#__) #finance>.fin-header{order:1;margin:0 0 12px!important}
html body.bp-portal-auth:not(#_):not(#__) #finance>#financeNewEntryForm{order:2}
html body.bp-portal-auth:not(#_):not(#__) #finance>.bp-fin-filter-wrap{order:3;justify-content:flex-end!important;margin:0 0 10px!important}
html body.bp-portal-auth:not(#_):not(#__) #finance>#bp-invoice-empty{order:4}
html body.bp-portal-auth:not(#_):not(#__) #finance>.fin-view{order:5;min-width:0}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab{overflow:hidden;min-height:0!important;padding:14px 18px!important;border-radius:var(--ui-r)!important;font-size:13px}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab::after{content:"";position:absolute;right:-26px;top:-34px;width:112px;height:112px;border-radius:50%;background:var(--ui-brand-soft);pointer-events:none}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab.active::after{background:rgba(255,255,255,.14)}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab>div{position:relative;z-index:1;margin-top:3px!important;font-size:24px!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab>div::after{content:" rsd";font-size:13px;font-weight:600;letter-spacing:0}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm{position:static!important;display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.4fr) auto;gap:8px!important;align-items:stretch;width:auto!important;max-width:none!important;margin:0 0 12px!important;padding:12px 14px!important;background:#fff!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-r)!important;box-shadow:var(--ui-shadow)!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm>h3{grid-column:1/-1;margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:13.5px!important;color:var(--ui-ink)!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-desc-row,html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-type-row,html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-note-row{grid-column:auto!important;width:auto!important;min-width:0;margin:0!important;padding:0!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-date-amount-row{display:contents!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .pui-f{height:100%;margin:0!important;padding:4px 10px 3px}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-desc-row>div,html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-note-row>div{height:100%;width:100%!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-type-row select.inp{width:100%!important;height:100%!important;min-height:44px!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-salary-payout-box{grid-column:1/-1;order:9;margin:0!important;padding:7px 12px!important;font-weight:600!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-save{width:auto!important;min-height:44px;margin:0!important;padding:0 16px!important;white-space:nowrap}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-view.active{padding:0;background:#fff;border:1px solid var(--ui-line);border-radius:var(--ui-r);overflow:hidden}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-card:not([style*="display: none"]){display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px 16px;margin:0!important;padding:9px 14px!important;background:none!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-card:hover{background:var(--ui-subtle)!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-info>div:first-child{font-size:14px!important;font-weight:640!important;color:var(--ui-ink);line-height:1.3}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-info>div:first-child>span:first-child:not(:only-child){min-width:0!important;height:auto!important;margin-right:6px!important;padding:0 6px;background:var(--ui-subtle)!important;color:var(--ui-muted)!important;font-size:11.5px!important;font-weight:600!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-info>div:last-child{margin-top:2px;color:var(--ui-muted)!important;font-size:12px!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-info>div:last-child>span{margin-left:6px!important;padding:1px 7px!important;border-radius:999px!important;background:var(--ui-brand-soft)!important;color:var(--ui-brand-dark)!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-amount{font-size:15px!important;text-align:right;white-space:nowrap}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-card.in .fin-amount::before{content:"+ "}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-card.out .fin-amount::before{content:"− "}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-actions .btn{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #finance .fin-view>div:last-child:not(.fin-card){margin:0!important;padding:10px 14px;background:var(--ui-subtle);text-align:right!important}
@media(max-width:1100px){
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-desc-row{grid-column:1/-1!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .bp-fin-save{grid-column:1/-1;width:100%!important}
}
@media(max-width:900px){
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab{padding:11px 13px!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab>div{font-size:18px!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-header .fin-tab>div::after{font-size:11px}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm>h3{display:flex;align-items:center;justify-content:space-between;min-height:30px;cursor:pointer}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm>h3::after{content:"";width:8px;height:8px;margin:0 4px 3px 0;border:solid var(--ui-muted);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm.pui-open>h3::after{margin-bottom:-3px;transform:rotate(-135deg)}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm:not(.pui-open)>:not(h3){display:none!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm:not(.pui-open) .bp-fin-date-amount-row{display:none!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance>.bp-fin-filter-wrap{display:block!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr) auto;padding:9px 12px!important}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-info{grid-column:1;grid-row:1/span 2}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-amount{grid-column:2;grid-row:1}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-actions{grid-column:2;grid-row:2;justify-content:flex-end}
  html body.bp-portal-auth:not(#_):not(#__) #finance .fin-view>div:last-child:not(.fin-card){text-align:center!important}
}

/* Customers: tools on top, then a list of rows. */
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card{padding:0!important;overflow:visible}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child{position:sticky;top:56px;z-index:5;margin:0!important;padding:10px 14px!important;background:#fff;border-bottom:1px solid var(--ui-line);border-radius:var(--ui-r) var(--ui-r) 0 0}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child>div{flex:1 1 100%;display:flex!important;flex-wrap:wrap;align-items:stretch;gap:8px!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .pui-f{order:-1;flex:1 1 260px;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .pui-f>input{width:100%!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .btn{min-height:44px;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .btn-blue{order:-1}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .btn-red{background:#fff!important;border:1px solid var(--ui-line-strong)!important;color:var(--ui-red)!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-list-head,html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card:not([style*="display: none"]){display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.75fr) minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,.8fr) 76px;column-gap:14px;align-items:center}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-list-head{padding:7px 14px;background:var(--ui-subtle);border-bottom:1px solid var(--ui-line);color:var(--ui-muted);font-size:11.5px;font-weight:640}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-grid{display:block!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card{margin:0!important;padding:8px 14px!important;background:none!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0!important;box-shadow:none!important;transform:none!important;font-size:13px;overflow:visible}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card:hover{background:var(--ui-subtle)!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card::before{display:none!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card-head,html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid{display:contents!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card-head>div:first-child{grid-column:1;grid-row:1;min-width:0}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card-head>div:first-child>div:first-child{gap:6px!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card-head>div:first-child b{font-size:14px!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card-head>div:first-child>div:not(:first-child){margin-top:1px!important;font-size:12px!important;font-weight:500!important;color:var(--ui-muted)!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card .cust-chip{padding:0 6px!important;background:var(--ui-subtle)!important;color:var(--ui-muted)!important;font-size:11px!important;font-weight:600!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-actions{grid-column:6;grid-row:1;flex-wrap:nowrap!important;justify-content:flex-end;gap:4px!important;width:auto!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-actions .btn{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div{min-width:0;grid-row:1;line-height:1.35}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid .cust-kv{display:none}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div>div{font-weight:500!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(1){grid-column:3;overflow-wrap:anywhere}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(2){grid-column:2}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(3){grid-column:4}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(3) br{display:none}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(3) b{font-weight:600}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(3) span::before{content:", "}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4){grid-column:5}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4)>div{display:flex;flex-wrap:wrap;align-items:center;gap:1px 6px;font-weight:680!important;color:var(--ui-ink)!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4) br{display:none}
@media(max-width:900px){
  html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child{top:54px;padding:10px 12px!important}
  html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .pui-f{flex:1 1 100%}
  html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child .btn{flex:1 1 auto;padding:0 10px!important;font-size:13px!important}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-list-head{display:none!important}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:9px 12px!important}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-card-head>div:first-child{grid-column:1;grid-row:1}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-actions{grid-column:2;grid-row:1}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(2){grid-column:1;grid-row:2;font-weight:560}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4){grid-column:2;grid-row:2;text-align:right}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4)>div{justify-content:flex-end}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(3){grid-column:1/-1;grid-row:3;color:var(--ui-muted);font-size:12.5px}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(1){grid-column:1/-1;grid-row:4;font-size:12.5px}
  html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(1):not(:has(a)){display:none}
}

/* Order: the customer stands apart from the items below. */
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-box{margin:8px 12px 0!important;padding:8px 11px!important;background:var(--ui-brand-soft)!important;border-radius:10px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line{color:#33507a}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line a{color:var(--ui-brand-dark)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-note{margin-top:6px}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-items-box{margin-top:10px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-items-box::before{content:"Artikli";display:block;margin-bottom:3px;color:var(--ui-faint);font-size:11px;font-weight:680;letter-spacing:.03em;text-transform:uppercase}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:start!important;column-gap:10px!important;padding:6px 0!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row>div:first-child{grid-column:2;grid-row:1;min-width:0;flex:none!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row a{display:block;font-weight:600!important;color:var(--ui-ink)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-row a:hover{color:var(--ui-brand)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-sku{display:block;margin-top:1px;color:var(--ui-faint)!important;font-size:11.5px!important;font-weight:500}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-item-price-pill{display:contents!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-item-qty{grid-column:1;grid-row:1;min-width:34px;padding:2px 7px;border-radius:7px;background:var(--ui-brand-soft);color:var(--ui-brand-dark);font-size:12px;font-weight:700;text-align:center;white-space:nowrap;box-sizing:border-box}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-item-price{grid-column:3;grid-row:1;padding-top:2px;color:var(--ui-muted);font-size:12px;font-weight:560;text-align:right;white-space:nowrap}

html body.bp-portal-auth:not(#_):not(#__) .pui-top-mark,html body.bp-portal-auth:not(#_):not(#__) .pui-top-mark img{height:40px!important}
.pui-brand-mark{display:none}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm{grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.4fr) auto!important}
html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .pui-f>input{height:22px!important;min-height:22px!important;padding:0!important;margin:0!important;line-height:22px}
@media(max-width:1100px){html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){html body.bp-portal-auth:not(#_):not(#__) #finance #financeNewEntryForm .pui-f>input{height:24px!important;min-height:24px!important}}
html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card{overflow:visible!important}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4)>div{display:block}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4)>div:last-child{display:flex}
html body.bp-portal-auth:not(#_):not(#__) #customers .cust-meta-grid>div:nth-child(4) .cust-kv{display:none!important}

html body.bp-portal-auth:not(#_):not(#__) #customers .bp-customers-main-card>div:first-child{position:static}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-box{width:auto!important;min-width:0;max-width:none!important;box-sizing:border-box}

/* Order: customer details stacked in clear rows. */
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-box{padding:10px 12px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-lines{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line{display:flex!important;align-items:flex-start;gap:7px!important;min-width:0;font-size:13px!important;font-weight:520!important;line-height:1.35;color:var(--ui-text)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line>*:last-child{min-width:0;overflow-wrap:anywhere}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line.bp-customer-name{grid-column:1/-1;margin-bottom:2px!important;font-size:16px!important;font-weight:740!important;color:var(--ui-ink)!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-name .bp-ico{display:none!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line .bp-ico{display:block!important;flex:0 0 15px;width:15px;height:15px;margin-top:2px!important;background:center/contain no-repeat}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-ico-company{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5h10v16M14 10h6v11M3 21h18M8 9h2M8 13h2M8 17h2'/%3E%3C/svg%3E")!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-ico-address{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 005 9.5C5 14.8 12 21 12 21zm0-9a2.5 2.5 0 100-5 2.5 2.5 0 000 5z'/%3E%3C/svg%3E")!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-ico-phone{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a1 1 0 01-1 1A15 15 0 014 5a1 1 0 011-1z'/%3E%3C/svg%3E")!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-ico-mail{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3V6zm0 1l9 6 9-6'/%3E%3C/svg%3E")!important}
html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-ico-pib{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10v18l-2.5-1.5L12 21l-2.5-1.5L7 21V3zm3 5h4m-4 4h4'/%3E%3C/svg%3E")!important}
@media(max-width:900px){html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-order-customer-lines{grid-template-columns:minmax(0,1fr)}}

/* Adding items: sizes with + and -. */
html body.bp-portal-auth:not(#_):not(#__) .bp-size-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));column-gap:20px;min-width:0}
.bp-size-hint{grid-column:1/-1;padding:12px 0;color:var(--ui-muted);font-size:13px}
.bp-size-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px;border-bottom:1px solid var(--ui-line);border-radius:8px}
.bp-size-row.is-on{background:var(--ui-brand-soft)}
.bp-size-row.is-empty{opacity:.5}
.bp-size-text{min-width:0}
.bp-size-text b{display:block;color:var(--ui-ink);font-size:14px;font-weight:700}
.bp-size-text small{display:block;margin-top:1px;color:var(--ui-muted);font-size:11.5px;line-height:1.3;overflow-wrap:anywhere}
.bp-size-step{flex:none;display:flex;align-items:center;gap:4px}
html body.bp-portal-auth:not(#_):not(#__) .bp-size-btn{width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--ui-line-strong);border-radius:9px;background:#fff;color:var(--ui-brand-dark);font-size:18px;font-weight:600;line-height:1;cursor:pointer;touch-action:manipulation}
html body.bp-portal-auth:not(#_):not(#__) .bp-size-btn:hover:not(:disabled){border-color:var(--ui-brand);background:var(--ui-brand-soft)}
html body.bp-portal-auth:not(#_):not(#__) .bp-size-btn:disabled{cursor:default}
html body.bp-portal-auth:not(#_):not(#__) .main input.bp-size-qty,html body.bp-portal-auth:not(#_):not(#__) .bp-size-qty{width:46px!important;min-width:46px;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:#fff!important;text-align:center;font-weight:680;-moz-appearance:textfield}
.bp-size-qty::-webkit-outer-spin-button,.bp-size-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
html body.bp-portal-auth:not(#_):not(#__) .bp-cat-add-btn-wrap .btn{min-height:46px}

html body.bp-portal-auth:not(#_):not(#__) #bp-orders-linear-list .bp-customer-line.bp-customer-name .bp-ico{display:none!important}

html body.bp-portal-auth:not(#_):not(#__) .bp-size-lager{display:inline-flex;align-items:center;gap:6px;margin:5px 0 0;color:#a15c00;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer}
html body.bp-portal-auth:not(#_):not(#__) .bp-size-lager input[type=checkbox]{flex:none;width:17px!important;height:17px!important;min-height:0!important;margin:0!important}
html body.bp-portal-auth:not(#_):not(#__) .bp-size-row.is-on.is-lager{background:#fff6e0}
html body.bp-portal-auth:not(#_):not(#__) .bp-size-row{padding-top:8px;padding-bottom:8px}

/* ---------- Login ---------- */
html body.login-page{padding:0!important;display:block!important;background:#0c1729!important}
html body.login-page .login-wrap{position:relative;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;overflow:hidden;background:radial-gradient(900px 600px at 12% 10%,rgba(11,123,255,.5),transparent 62%),radial-gradient(800px 600px at 92% 92%,rgba(23,181,245,.34),transparent 60%),#0c1729!important}
html body.login-page .login-wrap::before,html body.login-page .login-wrap::after{content:"";position:absolute;border-radius:50%;pointer-events:none;will-change:transform}
html body.login-page .login-wrap::before{width:340px;height:340px;left:-90px;bottom:-70px;border:44px solid rgba(255,255,255,.05);animation:pui-float 11s ease-in-out infinite}
html body.login-page .login-wrap::after{width:190px;height:190px;right:9%;top:9%;background:linear-gradient(135deg,rgba(23,181,245,.34),rgba(11,123,255,.06));animation:pui-float 8s ease-in-out infinite reverse}
@keyframes pui-float{50%{transform:translateY(-22px)}}
html body.login-page .login-box{position:relative;z-index:1;width:100%;max-width:400px;padding:34px 32px 30px!important;border:1px solid rgba(255,255,255,.65)!important;border-radius:22px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 30px 80px rgba(0,0,0,.42)!important;animation:pui-rise .4s ease-out both;box-sizing:border-box}
html body.login-page .login-box::before{content:"";display:block;height:92px;margin:0 auto 14px;background:url(/assets/logo.webp) center/contain no-repeat}
html body.login-page .login-box h2{margin:0 0 4px!important;color:var(--ui-ink)!important;font-size:23px!important;font-weight:760!important;letter-spacing:-.022em;text-align:center}
html body.login-page .login-box form::before{content:"Prijavite se na svoj nalog";display:block;margin:0 0 22px;color:var(--ui-muted);font-size:14px;text-align:center}
html body.login-page .inp{width:100%;min-height:48px;padding:0 14px!important;margin:0 0 12px!important;border:1px solid var(--ui-line-strong)!important;border-radius:12px!important;background:#fff!important;font-size:16px!important;box-shadow:none!important;box-sizing:border-box}
html body.login-page .inp:focus{outline:0!important;border-color:var(--ui-brand)!important;box-shadow:0 0 0 4px rgba(11,123,255,.16)!important}
html body.login-page .btn-blue{width:100%!important;min-height:50px;border:0!important;border-radius:12px!important;background:var(--ui-grad)!important;color:#fff!important;font-size:16px!important;font-weight:660!important;box-shadow:0 10px 24px rgba(11,123,255,.4)!important;cursor:pointer}
html body.login-page input[type=checkbox]{accent-color:var(--ui-brand)}
html body.login-page .login-error{border-radius:10px!important;background:var(--ui-red-soft)!important;color:var(--ui-red)!important;border:0!important;font-weight:550}

/* ---------- Tablets and phones ---------- */
@media(max-width:1100px){
  html body.bp-portal-auth .bp-stats-disclosures{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.bp-portal-auth .pui-counters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  html body.bp-portal-auth .main{margin-left:0!important;min-height:0;padding:14px 12px 24px!important}
  html body.bp-portal-auth .main h1{font-size:21px!important;margin-bottom:12px!important}
  html body.bp-portal-auth{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  html body.bp-portal-auth .mobile-title{position:sticky;top:0;z-index:1400;display:flex!important;align-items:center;gap:10px;justify-content:flex-start;height:54px!important;padding:0 14px!important;background:#fff!important;border-bottom:1px solid var(--ui-line)!important;box-shadow:none!important;color:var(--ui-ink)!important;font-size:16px!important;font-weight:700!important;box-sizing:border-box}
  .pui-top-mark{flex:0 0 32px;width:32px;height:32px;border-radius:9px;overflow:hidden;background:#fff;border:1px solid var(--ui-line);position:relative}
  .pui-top-mark img{position:absolute;left:0;top:2px;width:32px;height:auto;transform:scale(1.3);transform-origin:50% 0}
  html body.bp-portal-auth .menu-toggle{display:none!important}
  /* "Jos" slides the page list in from the right edge. */
  html body.bp-portal-auth .sidebar{left:auto!important;right:0!important;top:0!important;bottom:0!important;width:min(82vw,290px)!important;height:100dvh!important;transform:translateX(102%);transition:transform .24s cubic-bezier(.2,.8,.2,1);box-shadow:none!important;padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}
  html body.bp-portal-auth .sidebar.open{transform:none;box-shadow:-18px 0 50px rgba(12,23,41,.4)!important}
  html body.bp-portal-auth .sidebar .pui-brand{padding-right:40px!important}
  html body.bp-portal-auth .sidebar .pui-close{display:flex!important;align-items:center;justify-content:center;position:absolute!important;top:14px;right:8px;width:36px;height:36px;margin:0;z-index:1;color:#b6c4d6!important;background:none!important;font-size:18px;cursor:pointer}
  html body.bp-portal-auth .nav-item:hover{transform:none}
  /* The page name lives in the top bar, so it is not repeated below it. */
  html body.bp-portal-auth .tab-content h1{display:none!important}
  html body.bp-portal-auth .tab-content .view-form h1{display:block!important}
  html body.bp-portal-auth #bp-scroll-top{bottom:calc(76px + env(safe-area-inset-bottom))!important}
  /* Fixed to the layout bottom: it rides above a bottom address bar and follows it as the bar collapses on scroll. */
  .pui-bottom{position:fixed;left:0;right:0;bottom:0;z-index:1300;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--ui-line);touch-action:manipulation}
  .pui-bottom button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:60px;padding:0 2px;border:0;background:none;color:var(--ui-muted);font:600 11px var(--ui-font);-webkit-tap-highlight-color:transparent;touch-action:manipulation;cursor:pointer}
  .pui-bottom button.active{color:var(--ui-brand)}
  .pui-bottom button.active::before{content:"";position:absolute;top:0;width:30px;height:3px;border-radius:0 0 3px 3px;background:var(--ui-grad)}
  .pui-bottom .pui-ico{width:22px;height:22px}
  html body.bp-portal-auth .filter-form{display:flex!important;flex-wrap:wrap}
  html body.bp-portal-auth .filter-form select{flex:1 1 120px;min-width:112px}
  html body.bp-portal-auth .card{padding:14px!important;margin-bottom:12px!important}
  html body.bp-portal-auth .inp,html body.bp-portal-auth .main select,html body.bp-portal-auth .main input[type=text],html body.bp-portal-auth .main input[type=number],html body.bp-portal-auth .main input[type=date],html body.bp-portal-auth .main input[type=email],html body.bp-portal-auth .main input[type=tel],html body.bp-portal-auth .main textarea{min-height:44px;font-size:16px!important}
  html body.bp-portal-auth .btn{min-height:44px}
  html body.bp-portal-auth .btn-tiny{min-height:38px}
  html body.bp-portal-auth #stats .stat-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
  html body.bp-portal-auth #stats .stat-grid .card:first-child{grid-column:1/-1}
  html body.bp-portal-auth #stats .stat-grid .card{padding:14px 16px!important}
  html body.bp-portal-auth .stat-big{font-size:22px!important}
  html body.bp-portal-auth .fin-col-3{grid-template-columns:minmax(0,1fr)}
  html body.bp-portal-auth .bp-stats-disclosures{grid-template-columns:minmax(0,1fr)}
  html body.bp-portal-auth .pui-counters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.bp-portal-auth .pui-counters>.bp-order-counter:first-child{grid-column:1/-1}
  html body.bp-portal-auth #finance .fin-header .fin-tab{padding:12px 14px!important}
  html body.bp-portal-auth #finance .fin-header .fin-tab>div{font-size:20px!important}
  html body.bp-portal-auth #bp-orders-linear-list .data-card:not([style*="display: none"]),html body.bp-portal-auth #nabavka .data-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr);gap:10px;padding:12px!important}
  html body.bp-portal-auth .data-card-right{padding:10px 0 0!important;border-left:0!important;border-top:1px solid var(--ui-line)!important}
  html body.bp-portal-auth .bp-inv-card:not([style*="display: none"]){grid-template-columns:minmax(0,1fr);gap:10px}
  html body.bp-portal-auth .bp-inv-thumb{width:100%!important;height:130px!important}
  html body.bp-portal-auth .bp-admin-tabs{width:auto;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  html body.bp-portal-auth .bp-admin-tab-btn{flex:0 0 auto}
  html body.bp-portal-auth .main table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  html body.bp-portal-auth .modal-content,html body.bp-portal-auth .bp-modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto;box-sizing:border-box}
  .pui-toasts{top:64px;right:12px}
}
@media print{.pui-progress,.pui-toasts,#pui-loader{display:none!important}}
