:root{--pk-bg:#f5f7fb;--pk-card:#fff;--pk-text:#172033;--pk-muted:#697386;--pk-border:#e4e8ef;--pk-accent:#d9236d;--pk-dark:#241432;--pk-success:#169b62;--pk-warning:#c98510;--pk-danger:#c73b43;--pk-radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--pk-text);background:var(--pk-bg)}button,input,select,textarea{font:inherit}.pkcrm-app{min-height:100vh;display:grid;grid-template-columns:270px 1fr}.pkcrm-sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--pk-border);display:flex;flex-direction:column;padding:20px 14px}.pkcrm-brand{display:flex;gap:12px;align-items:center;padding:4px 10px 20px}.pkcrm-brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#d9236d,#7e235d);color:#fff;font-weight:900}.pkcrm-brand strong{display:block;font-size:15px}.pkcrm-brand small,.pkcrm-user small{display:block;color:var(--pk-muted);margin-top:2px}.pkcrm-nav{overflow:auto;padding-right:3px}.pkcrm-nav-label{display:block;color:#9aa2b0;font-size:10px;font-weight:800;letter-spacing:.12em;padding:18px 10px 7px}.pkcrm-nav button{width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:10px;display:flex;align-items:center;gap:10px;color:#3a4457;cursor:pointer;font-weight:650}.pkcrm-nav button:hover,.pkcrm-nav button.is-active{background:#fff0f6;color:#a51954}.pkcrm-nav-icon{width:25px;height:25px;border:1px solid var(--pk-border);border-radius:8px;display:grid;place-items:center;font-size:10px;background:#fff}.pkcrm-user{margin-top:auto;border-top:1px solid var(--pk-border);padding:16px 8px 0;display:grid;grid-template-columns:38px 1fr auto;gap:9px;align-items:center;font-size:12px}.pkcrm-user a{color:var(--pk-muted);text-decoration:none}.pkcrm-avatar{width:38px;height:38px;border-radius:50%;background:#f0e5ef;display:grid;place-items:center;font-weight:800}.pkcrm-main{min-width:0}.pkcrm-topbar{height:82px;background:#fff;border-bottom:1px solid var(--pk-border);display:flex;justify-content:space-between;align-items:center;padding:0 30px;position:sticky;top:0;z-index:10}.pkcrm-topbar h1{font-size:22px;margin:2px 0}.pkcrm-kicker{font-size:11px;color:var(--pk-accent);font-weight:800;text-transform:uppercase;letter-spacing:.09em}.pkcrm-online{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--pk-muted)}.pkcrm-online i{width:8px;height:8px;border-radius:50%;background:var(--pk-success)}.pkcrm-content{padding:28px;max-width:none;width:100%}.pkcrm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pkcrm-card{background:#fff;border:1px solid var(--pk-border);border-radius:var(--pk-radius);padding:20px;box-shadow:0 5px 20px rgba(26,35,52,.03)}.pkcrm-stat span{color:var(--pk-muted);font-size:12px}.pkcrm-stat strong{display:block;font-size:28px;margin-top:8px}.pkcrm-section{margin-top:18px}.pkcrm-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}.pkcrm-section-head h2{font-size:18px;margin:0}.pkcrm-actions{display:flex;gap:8px;flex-wrap:wrap}.pkcrm-btn{border:1px solid var(--pk-border);background:#fff;border-radius:9px;padding:9px 13px;font-weight:700;cursor:pointer}.pkcrm-btn.primary{background:var(--pk-accent);border-color:var(--pk-accent);color:#fff}.pkcrm-btn.danger{color:var(--pk-danger)}.pkcrm-table-wrap{overflow:auto;background:#fff;border:1px solid var(--pk-border);border-radius:14px}.pkcrm-table{width:100%;border-collapse:collapse;font-size:13px}.pkcrm-table th,.pkcrm-table td{padding:12px 14px;border-bottom:1px solid #edf0f5;text-align:left;white-space:nowrap}.pkcrm-table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#778195;background:#fafbfc}.pkcrm-table tr:last-child td{border-bottom:0}.pkcrm-muted{color:var(--pk-muted)}.pkcrm-badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750;background:#eef2f6;color:#4b5565}.pkcrm-badge.high{background:#e7f7ef;color:#12734a}.pkcrm-badge.medium{background:#fff5d9;color:#8c6500}.pkcrm-badge.low,.pkcrm-badge.last{background:#fff0e7;color:#a45116}.pkcrm-badge.unavailable{background:#f5e9ea;color:#9c3339}.pkcrm-form{display:grid;gap:14px}.pkcrm-form.two{grid-template-columns:repeat(2,minmax(0,1fr))}.pkcrm-field label{display:block;font-size:12px;font-weight:750;margin-bottom:6px}.pkcrm-field input,.pkcrm-field select,.pkcrm-field textarea{width:100%;border:1px solid #dce1e8;border-radius:9px;padding:10px 11px;background:#fff}.pkcrm-field small{display:block;color:var(--pk-muted);margin-top:5px}.pkcrm-alert{padding:12px 14px;border-radius:10px;background:#eef6ff;color:#24567f;margin:12px 0}.pkcrm-alert.error{background:#fff0f0;color:#9f3139}.pkcrm-alert.success{background:#eaf8f1;color:#126d47}.pkcrm-loading{padding:50px;text-align:center;color:var(--pk-muted)}.pkcrm-placeholder{padding:45px;text-align:center}.pkcrm-placeholder h2{margin-top:0}.pkcrm-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pkcrm-package{background:#f7f8fa;border-radius:12px;padding:14px}.pkcrm-package b{display:block;font-size:18px;margin-top:4px}.pkcrm-login{background:#f5f0f4}.pkcrm-login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.pkcrm-login-brand{background:linear-gradient(145deg,#2a1831,#6b1f58 55%,#b31f67);color:#fff;padding:70px;display:flex;flex-direction:column;justify-content:space-between}.pkcrm-login-brand h1{font-size:48px;margin:20px 0 8px}.pkcrm-login-brand p{font-size:20px;color:#f4dbe9}.pkcrm-login-side{display:grid;place-items:center;padding:30px}.pkcrm-login-card{width:min(420px,100%);background:#fff;border:1px solid var(--pk-border);border-radius:22px;padding:34px;box-shadow:0 20px 60px rgba(51,24,48,.1)}.pkcrm-login-card h2{font-size:30px;margin:8px 0 24px}.pkcrm-login-card label:not(.pkcrm-check){display:block;font-size:12px;font-weight:750;margin:14px 0}.pkcrm-login-card input[type=text],.pkcrm-login-card input[type=password],.pkcrm-login-card input:not([type]){display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--pk-border);border-radius:10px}.pkcrm-login-card button{width:100%;padding:13px;border:0;border-radius:11px;background:var(--pk-accent);color:#fff;font-weight:800;margin-top:20px}.pkcrm-eyebrow{font-size:11px;color:var(--pk-accent);font-weight:850;text-transform:uppercase;letter-spacing:.1em}.pkcrm-check{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--pk-muted)}@media(max-width:1100px){.pkcrm-grid{grid-template-columns:repeat(2,1fr)}.pkcrm-app{grid-template-columns:220px 1fr}.pkcrm-sidebar{padding-left:8px;padding-right:8px}}@media(max-width:760px){.pkcrm-app{display:block}.pkcrm-sidebar{position:relative;height:auto}.pkcrm-nav{max-height:320px}.pkcrm-main{min-height:100vh}.pkcrm-content{padding:16px}.pkcrm-topbar{padding:0 16px}.pkcrm-grid,.pkcrm-form.two,.pkcrm-package-grid{grid-template-columns:1fr}.pkcrm-login-shell{grid-template-columns:1fr}.pkcrm-login-brand{display:none}}

/* Pan Kwiatek CRM 0.2 - compact navigation, collapsible groups, settings and employees */
.pkcrm-app{grid-template-columns:238px 1fr}
.pkcrm-sidebar{padding:14px 10px 10px}
.pkcrm-brand{gap:10px;padding:2px 7px 12px}
.pkcrm-brand-mark{width:34px;height:34px;border-radius:10px;font-size:12px}
.pkcrm-brand strong{font-size:13px}
.pkcrm-brand small{font-size:10px;margin-top:1px}
.pkcrm-nav{padding-right:2px;scrollbar-width:thin;overscroll-behavior:contain}
.pkcrm-nav>.pkcrm-nav-item{margin-bottom:5px}
.pkcrm-nav-group{display:block;margin-top:4px}
.pkcrm-nav-group-toggle{width:100%;border:0;background:transparent!important;color:#929cab!important;padding:9px 8px 5px!important;border-radius:7px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;font-size:9px!important;font-weight:850!important;letter-spacing:.13em!important;cursor:pointer;text-align:left}
.pkcrm-nav-group-toggle:hover{color:#687286!important;background:#f7f8fa!important}
.pkcrm-nav-group-toggle .pkcrm-icon{width:14px;height:14px;transition:transform .18s ease}
.pkcrm-nav-group.is-collapsed .pkcrm-nav-group-toggle .pkcrm-icon{transform:rotate(-90deg)}
.pkcrm-nav-group.is-collapsed .pkcrm-nav-group-items{display:none}
.pkcrm-nav-item{width:100%;border:0;background:transparent;text-align:left;padding:7px 8px!important;border-radius:9px!important;display:flex!important;align-items:center;gap:9px!important;color:#3a4457;cursor:pointer;font-size:13.5px;font-weight:650!important;line-height:1.2;min-height:34px}
.pkcrm-nav-item:hover,.pkcrm-nav-item.is-active{background:#fff0f6!important;color:#a51954!important}
.pkcrm-nav-item .pkcrm-icon{width:18px;height:18px;flex:0 0 18px;color:#758095}
.pkcrm-nav-item:hover .pkcrm-icon,.pkcrm-nav-item.is-active .pkcrm-icon{color:currentColor}
.pkcrm-icon{display:block;width:18px;height:18px}
.pkcrm-nav-icon{display:none!important}
.pkcrm-user-wrap{position:relative;margin-top:auto;border-top:1px solid var(--pk-border);padding-top:10px}
.pkcrm-user{margin-top:0;border-top:0;padding:2px 4px;display:grid;grid-template-columns:34px minmax(0,1fr) 30px;gap:8px;align-items:center;font-size:11px}
.pkcrm-avatar{width:34px;height:34px;font-size:11px}
.pkcrm-user-copy{min-width:0}
.pkcrm-user-copy strong,.pkcrm-user-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pkcrm-user-menu-toggle{width:30px;height:30px;padding:0;border:0;background:transparent;color:#6d7687;border-radius:8px;display:grid;place-items:center;cursor:pointer}
.pkcrm-user-menu-toggle:hover,.pkcrm-user-menu-toggle[aria-expanded="true"]{background:#f4f5f7;color:#a51954}
.pkcrm-user-menu-toggle .pkcrm-icon{width:17px;height:17px}
.pkcrm-user-menu{display:none;position:absolute;left:6px;right:6px;bottom:48px;background:#fff;border:1px solid var(--pk-border);border-radius:11px;padding:5px;box-shadow:0 14px 36px rgba(27,33,45,.13);z-index:50}
.pkcrm-user-menu.is-open{display:block}
.pkcrm-user-menu button,.pkcrm-user-menu a{width:100%;border:0;background:#fff;color:#3a4457;text-decoration:none;border-radius:8px;padding:8px 9px;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;cursor:pointer;text-align:left}
.pkcrm-user-menu button:hover,.pkcrm-user-menu a:hover{background:#f7f8fa;color:#a51954}
.pkcrm-user-menu .pkcrm-icon{width:16px;height:16px}
.pkcrm-topbar{height:72px;padding:0 26px}
.pkcrm-topbar h1{font-size:20px}
.pkcrm-content{padding:22px 24px}
.pkcrm-placeholder{padding:32px;text-align:left}
.pkcrm-placeholder p{margin:8px 0 0}

.pkcrm-settings-shell{display:grid;gap:14px}
.pkcrm-settings-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#fff;border:1px solid var(--pk-border);border-radius:12px;padding:6px}
.pkcrm-settings-tabs button{border:0;background:transparent;color:#667085;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:750;cursor:pointer}
.pkcrm-settings-tabs button:hover{background:#f7f8fa;color:#344054}
.pkcrm-settings-tabs button.is-active{background:#fff0f6;color:#a51954}
.pkcrm-actions-spaced{margin-top:18px;padding-top:18px;border-top:1px solid var(--pk-border)}
.pkcrm-form-actions{display:flex;align-items:center;gap:8px;grid-column:1/-1}
.pkcrm-no-margin{margin:3px 0 0}
.pkcrm-employee-editor{margin-top:18px}
.pkcrm-access-groups{display:grid;gap:10px}
.pkcrm-access-group{border:1px solid var(--pk-border);border-radius:12px;overflow:hidden;background:#fff}
.pkcrm-access-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fafbfc;border-bottom:1px solid var(--pk-border);font-size:12px}
.pkcrm-link-btn{border:0;background:transparent;color:#a51954;font-size:11px;font-weight:750;cursor:pointer;padding:3px}
.pkcrm-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#edf0f5}
.pkcrm-access-item{display:flex;align-items:center;gap:8px;background:#fff;padding:10px 12px;font-size:12px;cursor:pointer}
.pkcrm-access-item:hover{background:#fff9fc}
.pkcrm-access-item input{accent-color:var(--pk-accent)}

@media(max-width:1100px){.pkcrm-app{grid-template-columns:218px 1fr}.pkcrm-sidebar{padding-left:7px;padding-right:7px}.pkcrm-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.pkcrm-app{display:block}.pkcrm-sidebar{position:relative;height:auto}.pkcrm-nav{max-height:none}.pkcrm-user-menu{bottom:48px}.pkcrm-access-grid{grid-template-columns:1fr}.pkcrm-settings-tabs{position:sticky;top:72px;z-index:8}}

/* Pan Kwiatek CRM 0.3 - larger navigation groups, cleaner user menu, dashboard widgets and notifications. */
.pkcrm-nav-group{margin-top:7px}
.pkcrm-nav-group-toggle{min-height:38px!important;padding:8px!important;border-radius:10px!important;color:#3a4457!important;font-size:13.5px!important;font-weight:760!important;letter-spacing:0!important;text-transform:none!important}
.pkcrm-nav-group-toggle:hover{background:#f7f8fa!important;color:#a51954!important}
.pkcrm-nav-group-title{display:flex;align-items:center;gap:9px;min-width:0}
.pkcrm-nav-group-title>.pkcrm-icon{width:18px!important;height:18px!important;flex:0 0 18px;color:#758095;transform:none!important}
.pkcrm-nav-group-toggle:hover .pkcrm-nav-group-title>.pkcrm-icon{color:currentColor}
.pkcrm-nav-group-toggle>.pkcrm-icon{width:15px!important;height:15px!important;flex:0 0 15px;transition:transform .18s ease;color:#8a93a3}
.pkcrm-nav-group.is-collapsed .pkcrm-nav-group-toggle>.pkcrm-icon{transform:rotate(-90deg)}
.pkcrm-nav-group.is-collapsed .pkcrm-nav-group-title>.pkcrm-icon{transform:none!important}
.pkcrm-nav-group-items{padding-left:4px}

.pkcrm-user-menu-toggle{width:34px;height:34px;border:1px solid #e6e9ef;background:#fff;color:#596579;border-radius:10px;box-shadow:0 1px 2px rgba(20,28,43,.03)}
.pkcrm-user-menu-toggle:hover,.pkcrm-user-menu-toggle[aria-expanded="true"]{background:#fff0f6;border-color:#f0c8d9;color:#a51954}
.pkcrm-user-menu-toggle .pkcrm-icon{width:18px;height:18px;stroke-width:2}
.pkcrm-user-menu{left:4px;right:4px;bottom:52px;border-radius:13px;padding:6px;box-shadow:0 18px 48px rgba(27,33,45,.16)}
.pkcrm-user-menu button,.pkcrm-user-menu a{min-height:38px;border-radius:9px;padding:9px 10px}

.pkcrm-topbar-actions{display:flex;align-items:center;gap:12px}
.pkcrm-notification-bell{position:relative;width:40px;height:40px;border:1px solid var(--pk-border);border-radius:12px;background:#fff;color:#667085;display:grid;place-items:center;cursor:pointer;transition:.15s ease}
.pkcrm-notification-bell:hover,.pkcrm-notification-bell.has-unread{background:#fff4f8;border-color:#efc8d8;color:#a51954}
.pkcrm-notification-bell .pkcrm-icon{width:19px;height:19px}
.pkcrm-notification-bell>b{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--pk-accent);border:2px solid #fff;color:#fff;font-size:10px;line-height:16px;display:grid;place-items:center}
@keyframes pkcrmBellRing{0%,72%,100%{transform:rotate(0)}76%{transform:rotate(8deg)}80%{transform:rotate(-7deg)}84%{transform:rotate(5deg)}88%{transform:rotate(-3deg)}92%{transform:rotate(0)}}
.pkcrm-notification-bell.is-ringing .pkcrm-icon{transform-origin:50% 10%;animation:pkcrmBellRing 3.4s ease-in-out infinite}

.pkcrm-drawer-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.32);backdrop-filter:blur(2px);z-index:80;opacity:0;visibility:hidden;transition:.2s ease}
.pkcrm-drawer-backdrop.is-open{opacity:1;visibility:visible}
.pkcrm-notification-drawer{position:fixed;top:0;right:0;bottom:0;width:min(430px,100vw);background:#fff;z-index:90;box-shadow:-20px 0 70px rgba(9,22,43,.22);transform:translateX(102%);transition:.25s ease;display:flex;flex-direction:column}
.pkcrm-notification-drawer.is-open{transform:none}
.pkcrm-notification-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px;border-bottom:1px solid var(--pk-border)}
.pkcrm-notification-drawer h2{margin:5px 0 0;font-size:24px;letter-spacing:-.03em}
.pkcrm-drawer-close{width:34px;height:34px;border:1px solid var(--pk-border);border-radius:10px;background:#fff;color:#667085;font-size:24px;line-height:1;cursor:pointer}
.pkcrm-drawer-close:hover{background:#f7f8fa;color:#a51954}
.pkcrm-notification-actions{padding:11px 18px;border-bottom:1px solid var(--pk-border);display:flex;justify-content:flex-end}
.pkcrm-notification-list{flex:1 1 auto;min-height:0;overflow:auto;padding:12px 12px 90px;display:flex;flex-direction:column;gap:10px;align-content:flex-start}
.pkcrm-notification-group{height:auto;flex:0 0 auto;border:1px solid var(--pk-border);border-radius:15px;background:#fff;overflow:hidden}
.pkcrm-notification-group-toggle{width:100%;border:0;background:#f7f9fc;color:var(--pk-text);padding:11px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;text-align:left;cursor:pointer}
.pkcrm-notification-group-toggle span{font-size:12px;font-weight:850}.pkcrm-notification-group-toggle b{min-width:25px;height:25px;border-radius:999px;background:#e8eef8;color:#52647e;display:grid;place-items:center;font-size:11px}.pkcrm-notification-group-toggle i{font-size:17px;font-style:normal;color:#7e8ca1;transition:transform .16s ease}
.pkcrm-notification-group.is-open .pkcrm-notification-group-toggle{background:#fff0f6;color:#a51954}.pkcrm-notification-group.is-open .pkcrm-notification-group-toggle i{transform:rotate(180deg)}
.pkcrm-notification-group-body{display:grid;gap:5px;padding:6px}.pkcrm-notification-group-body[hidden]{display:none!important}
.pkcrm-notification-item{width:100%;border:1px solid transparent;background:#fff;border-radius:11px;padding:11px;display:grid;grid-template-columns:36px minmax(0,1fr) 8px;gap:10px;text-align:left;color:var(--pk-text);cursor:pointer}
.pkcrm-notification-item:hover{background:#f7f9fc;border-color:var(--pk-border)}
.pkcrm-notification-item.is-unread{background:#fff5f9;border-color:#f1cfdd}
.pkcrm-notification-item>i{width:36px;height:36px;border-radius:11px;background:#f8e7ef;color:#a51954;display:grid;place-items:center;font-style:normal;font-weight:900}
.pkcrm-notification-item>span{display:grid;gap:3px;min-width:0}.pkcrm-notification-item strong{font-size:13px}.pkcrm-notification-item small{color:var(--pk-muted);font-size:12px;line-height:1.4}.pkcrm-notification-item time{color:#9aa5b5;font-size:10px}.pkcrm-notification-item>b{width:7px;height:7px;border-radius:50%;background:var(--pk-accent);margin-top:7px}
.pkcrm-notification-empty{padding:48px 20px;text-align:center;color:var(--pk-muted)}
.pkcrm-notification-drawer>footer{position:absolute;left:0;right:0;bottom:0;padding:12px 14px;border-top:1px solid var(--pk-border);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.pkcrm-notification-drawer>footer .pkcrm-btn{min-height:40px}

.pkcrm-dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.pkcrm-dashboard-toolbar p{margin:3px 0 0;font-size:12px}
.pkcrm-dashboard-config{margin-bottom:16px;border-color:#efcfdb;box-shadow:0 10px 32px rgba(125,31,87,.06)}
.pkcrm-dashboard-config h2{margin:4px 0 0;font-size:19px}
.pkcrm-dashboard-widget-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0 16px}
.pkcrm-dashboard-widget-groups>div{border:1px solid var(--pk-border);border-radius:12px;padding:13px}
.pkcrm-dashboard-widget-groups>div>strong{font-size:12px}
.pkcrm-dashboard-widget-list{display:grid;gap:6px;margin-top:10px}
.pkcrm-dashboard-widget-list label{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:9px;background:#fafbfc;font-size:12px;cursor:pointer}
.pkcrm-dashboard-widget-list label:hover{background:#fff3f8}.pkcrm-dashboard-widget-list input{accent-color:var(--pk-accent)}

@media(max-width:760px){
  .pkcrm-topbar-actions{gap:7px}.pkcrm-online{display:none}.pkcrm-notification-bell{width:38px;height:38px}
  .pkcrm-notification-drawer{top:auto;height:min(88dvh,760px);width:100%;border-radius:22px 22px 0 0}
  .pkcrm-dashboard-toolbar{align-items:flex-start;flex-direction:column}.pkcrm-dashboard-widget-groups{grid-template-columns:1fr}
}

/* Pan Kwiatek CRM 0.3.3 - grouped Woo integrations and protected credentials */
.pkcrm-integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pkcrm-integration-channel{border:1px solid var(--pk-border);border-radius:14px;padding:18px;background:#fbfcfe}
.pkcrm-integration-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.pkcrm-integration-head h3{margin:3px 0 3px;font-size:19px}.pkcrm-integration-head p{margin:0;color:var(--pk-muted);font-size:12px}
.pkcrm-channel-pill{display:inline-flex;align-items:center;border:1px solid #e8d9e2;background:#fff3f8;color:#9f1d57;font-size:10px;font-weight:850;letter-spacing:.1em;padding:6px 9px;border-radius:999px}
.pkcrm-span-two{grid-column:1/-1}.pkcrm-credentials-box{margin-top:15px;padding:14px;border:1px solid #e5e8ee;border-radius:12px;background:#fff}
.pkcrm-credentials-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pkcrm-credentials-title strong{display:block;font-size:13px}.pkcrm-credentials-title small{display:block;color:var(--pk-muted);font-size:11px;margin-top:3px}
.pkcrm-secret-row{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;gap:6px}.pkcrm-secret-row input{min-width:0}
.pkcrm-icon-btn{border:1px solid #dce1e8;background:#fff;border-radius:9px;cursor:pointer;color:#667085;font-weight:800;display:grid;place-items:center;padding:0}.pkcrm-icon-btn:hover{background:#f7f8fa;color:#253044}
.pkcrm-credential-notice{margin-top:10px;padding:10px 12px;border-radius:9px;background:#fff8e8;color:#76540a;font-size:12px}.pkcrm-credential-notice strong{display:block;margin-bottom:2px}
.pkcrm-integration-actions{display:flex;align-items:center;gap:10px;margin-top:14px;min-height:38px}.pkcrm-test-status{font-size:12px;min-width:0}.pkcrm-test-error{display:block;color:#a53139;line-height:1.4}
@media(max-width:1100px){.pkcrm-integration-grid{grid-template-columns:1fr}}
.pkcrm-product-cell{display:flex;align-items:center;gap:12px;min-width:290px}.pkcrm-product-thumb{width:48px;height:48px;min-width:48px;border-radius:10px;overflow:hidden;border:1px solid var(--pk-border);background:#fff;display:grid;place-items:center}.pkcrm-product-thumb img{width:100%;height:100%;object-fit:cover;display:block}.pkcrm-product-thumb.is-empty{background:#f7f8fa;color:#a5adba}.pkcrm-product-thumb.is-empty svg{width:22px;height:22px;fill:currentColor}.pkcrm-product-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.pkcrm-product-copy strong{white-space:normal;line-height:1.25}.pkcrm-product-copy .pkcrm-muted{font-size:11px}

/* Synchronizacja - wspólny pasek postępu Agawa / Allegro */
.pkcrm-sync-progress{margin-top:18px;padding:16px;border:1px solid #e4e9f0;border-radius:14px;background:#fbfcfe}.pkcrm-sync-progress[hidden]{display:none}.pkcrm-sync-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.pkcrm-sync-progress-head strong{display:block;margin-top:4px;font-size:14px;color:#273449}.pkcrm-sync-percent{font-weight:800;font-size:14px;color:#c51f62;background:#fff0f6;border:1px solid #f6cee0;border-radius:999px;padding:5px 9px;white-space:nowrap}.pkcrm-progress-track{height:10px;background:#e9edf3;border-radius:999px;overflow:hidden}.pkcrm-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#d9206a,#ec4d8b);border-radius:inherit;transition:width .35s ease}.pkcrm-progress-bar.is-indeterminate{animation:pkcrm-progress-indeterminate 1.1s ease-in-out infinite}.pkcrm-sync-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:14px}.pkcrm-sync-stats span{padding:10px 12px;border:1px solid #edf0f4;border-radius:10px;background:#fff}.pkcrm-sync-stats b{display:block;font-size:15px;color:#263248}.pkcrm-sync-stats small{display:block;margin-top:3px;color:#7c8899;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.pkcrm-sync-note{margin:10px 0 0}.pkcrm-sync-progress.is-complete .pkcrm-progress-bar{background:#17a66a}.pkcrm-sync-progress.is-complete .pkcrm-sync-percent{color:#08794a;background:#e9f9f1;border-color:#c5eedb}.pkcrm-sync-progress.is-failed .pkcrm-progress-bar{background:#c93d4e}.pkcrm-sync-progress.is-failed .pkcrm-sync-percent{color:#a62233;background:#fff0f1;border-color:#f3c8cd}@keyframes pkcrm-progress-indeterminate{0%{transform:translateX(-110%)}50%{transform:translateX(95%)}100%{transform:translateX(260%)}}@media(max-width:760px){.pkcrm-sync-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Pan Kwiatek CRM 0.4 - akcje produktów, edycja kanałowa i kategorie */
.pkcrm-products-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;padding:14px 16px;border:1px solid var(--pk-border);border-radius:14px;background:#fff}.pkcrm-products-toolbar p{margin:4px 0 0;max-width:760px;font-size:12px}.pkcrm-row-actions{display:flex;align-items:center;gap:7px}.pkcrm-action-dropdown{position:relative;display:inline-block}.pkcrm-action-dropdown>summary{list-style:none;display:flex;align-items:center;gap:7px;white-space:nowrap}.pkcrm-action-dropdown>summary::-webkit-details-marker{display:none}.pkcrm-action-dropdown[open]>summary{border-color:#e8bfd1;background:#fff5f9;color:#a51954}.pkcrm-action-dropdown-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:35;min-width:210px;background:#fff;border:1px solid var(--pk-border);border-radius:11px;padding:5px;box-shadow:0 16px 40px rgba(31,42,59,.14)}.pkcrm-action-dropdown-menu button{display:block;width:100%;border:0;background:transparent;border-radius:8px;padding:9px 10px;text-align:left;font-size:12px;font-weight:700;color:#344054;cursor:pointer}.pkcrm-action-dropdown-menu button:hover{background:#fff1f6;color:#a51954}.pkcrm-action-dropdown-menu button:disabled{opacity:.5;cursor:not-allowed}.pkcrm-product-editor{margin:0 0 16px;border-color:#efd1de;box-shadow:0 12px 34px rgba(121,31,79,.07)}.pkcrm-product-editor h2{margin:4px 0 3px}.pkcrm-product-editor p{margin:3px 0}.pkcrm-readonly-box{min-height:41px;border:1px solid #e0e5ec;border-radius:9px;padding:10px 11px;background:#f8fafc;color:#536174;font-size:12px}.pkcrm-category-list{max-height:280px;overflow:auto;border:1px solid #dde3eb;border-radius:10px;background:#fff;padding:6px}.pkcrm-category-option{display:flex;align-items:center;gap:8px;padding:7px 8px 7px calc(8px + var(--depth,0)*16px);border-radius:8px;font-size:12px;cursor:pointer}.pkcrm-category-option:hover{background:#f8f9fb}.pkcrm-category-option input{accent-color:var(--pk-accent)}.pkcrm-source-categories{display:flex;flex-wrap:wrap;gap:6px;min-height:42px;align-content:flex-start;padding:8px;border:1px solid #e2e6ed;border-radius:10px;background:#fafbfc}.pkcrm-source-categories>span:not(.pkcrm-muted){display:inline-flex;padding:5px 8px;border-radius:999px;background:#f0f3f7;color:#4f5e72;font-size:11px;font-weight:700}.pkcrm-form-actions{display:flex;gap:8px;align-items:center}.pkcrm-table td:last-child{overflow:visible}.pkcrm-table-wrap{overflow:visible}.pkcrm-table{position:relative}.pkcrm-table-wrap{overflow-x:auto;overflow-y:visible}
@media(max-width:900px){.pkcrm-products-toolbar{flex-direction:column}.pkcrm-products-toolbar .pkcrm-actions{width:100%}.pkcrm-row-actions{flex-wrap:wrap}.pkcrm-action-dropdown-menu{left:0;right:auto}.pkcrm-product-editor .pkcrm-form.two{grid-template-columns:1fr}}
.pkcrm-input-action{display:flex;gap:8px;align-items:center}.pkcrm-input-action input{flex:1}.pkcrm-inline-actions{display:flex;gap:8px;margin-top:7px}.pkcrm-source-data{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;padding:14px;border:1px solid #e3e7ed;border-radius:12px;background:#fafbfc}.pkcrm-source-data strong{display:block;margin-top:4px}.pkcrm-source-description{max-height:160px;overflow:auto;padding:11px 12px;border:1px solid #e4e8ee;border-radius:9px;background:#fff;font-size:12px;line-height:1.55;color:#48566a}.pkcrm-source-description p:first-child{margin-top:0}.pkcrm-source-description p:last-child{margin-bottom:0}.pkcrm-product-pricing{padding:15px;border:1px solid #ead3dd;border-radius:13px;background:#fff9fb}.pkcrm-product-pricing h3{margin:3px 0 4px;font-size:16px}.pkcrm-product-pricing .pkcrm-table-wrap{margin-top:12px;background:#fff;border-radius:10px}.pkcrm-price-preview small{color:#7c8798}.pkcrm-no-margin{margin:0!important}
@media(max-width:900px){.pkcrm-input-action{align-items:stretch;flex-direction:column}.pkcrm-source-data{grid-template-columns:1fr}.pkcrm-product-pricing .pkcrm-table{min-width:680px}}

/* 0.4.2 - ceny i marże */
.pkcrm-price-manager{display:grid;gap:16px}
.pkcrm-price-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:12px;margin:16px 0 12px}
.pkcrm-price-bulk{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;padding:14px;border:1px solid #ead3dd;border-radius:13px;background:#fff9fb;margin:12px 0}
.pkcrm-price-action-field{align-self:end}
.pkcrm-price-action-field .pkcrm-btn{width:100%;min-height:42px}
.pkcrm-price-manager .pkcrm-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.pkcrm-price-manager input[type="checkbox"]{width:17px;height:17px;accent-color:var(--pk-accent)}
.pkcrm-product-pricing{margin-top:4px}
.pkcrm-product-pricing .pkcrm-table th,.pkcrm-product-pricing .pkcrm-table td{white-space:normal}
@media(max-width:980px){.pkcrm-price-bulk{grid-template-columns:repeat(2,minmax(0,1fr))}.pkcrm-price-filters{grid-template-columns:1fr}}
@media(max-width:620px){.pkcrm-price-bulk{grid-template-columns:1fr}}


/* 0.4.3 - pasek akcji produktów w jednym rzędzie */
.pkcrm-products-toolbar{align-items:center}
.pkcrm-products-toolbar>div:first-child{flex:1 1 auto;min-width:0}
.pkcrm-products-toolbar>.pkcrm-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;max-width:100%;overflow-x:auto;overflow-y:visible;padding:2px 1px 6px;scrollbar-width:thin}
.pkcrm-products-toolbar>.pkcrm-actions>.pkcrm-btn,.pkcrm-products-toolbar>.pkcrm-actions>.pkcrm-action-dropdown{flex:0 0 auto}
.pkcrm-products-toolbar>.pkcrm-actions .pkcrm-btn{padding:8px 11px}
@media(max-width:1180px){.pkcrm-products-toolbar{display:block}.pkcrm-products-toolbar>.pkcrm-actions{width:100%;margin-top:12px}}

/* 0.5.0 - moduły operacyjne sklepu i hurtowni */
.pkcrm-module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.pkcrm-module-head h2{font-size:24px;margin:4px 0}.pkcrm-module-head p{margin:0;max-width:860px}.pkcrm-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.pkcrm-mini-select{min-width:135px;border:1px solid #dce1e8;border-radius:9px;padding:8px 10px;background:#fff;color:#344054;font-weight:650}.pkcrm-banner-cell{display:flex;align-items:center;gap:12px;min-width:300px}.pkcrm-banner-cell img,.pkcrm-banner-placeholder{width:92px;height:54px;flex:0 0 92px;border:1px solid var(--pk-border);border-radius:9px;background:#f7f8fa;object-fit:cover;display:grid;place-items:center;color:#8c96a5;font-size:10px}.pkcrm-banner-cell>div{display:flex;flex-direction:column;gap:4px;min-width:0}.pkcrm-module-head+.pkcrm-grid{margin-bottom:18px}.pkcrm-card+.pkcrm-section,.pkcrm-grid+.pkcrm-section{margin-top:18px}.pkcrm-two-cols>.pkcrm-section{margin-top:18px;min-width:0}.pkcrm-two-cols .pkcrm-table-wrap{height:100%}.pkcrm-table td{vertical-align:middle}
@media(max-width:1050px){.pkcrm-two-cols{grid-template-columns:1fr}.pkcrm-module-head{display:block}}

/* Kreator sekcji sklepu 0.5.1 */
.pkcrm-section-intro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.pkcrm-section-intro-grid .pkcrm-card{padding:18px}.pkcrm-section-intro-grid strong{display:block;font-size:16px;margin:5px 0 7px}.pkcrm-section-intro-grid p{margin:0}.pkcrm-shortcode{display:flex;align-items:center;gap:8px;min-width:240px}.pkcrm-shortcode code{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f7f8fa;border:1px solid var(--pk-border);padding:7px 9px;border-radius:8px;font-size:11px}.pkcrm-icon-btn{width:32px;height:32px;border:1px solid var(--pk-border);background:#fff;border-radius:8px;cursor:pointer;color:#667085}.pkcrm-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}.pkcrm-btn.danger.subtle{color:#b42318;background:#fff;border-color:#f2c7c4}.pkcrm-btn.danger.subtle:hover{background:#fff1f0}.pkcrm-section-builder-overlay{position:fixed;inset:0;z-index:150;background:rgba(15,23,42,.46);backdrop-filter:blur(3px);display:grid;place-items:center;padding:24px}.pkcrm-section-builder{width:min(1280px,calc(100vw - 40px));max-height:calc(100dvh - 40px);background:#f4f7fb;border:1px solid #dce3ec;border-radius:20px;box-shadow:0 30px 90px rgba(15,23,42,.28);overflow:hidden;display:flex;flex-direction:column}.pkcrm-section-builder-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;background:#fff;border-bottom:1px solid var(--pk-border)}.pkcrm-section-builder-head h2{margin:4px 0;font-size:25px}.pkcrm-section-builder-head p{margin:0;max-width:800px}.pkcrm-builder-close{width:38px;height:38px;border:1px solid var(--pk-border);background:#fff;border-radius:11px;font-size:26px;line-height:1;color:#667085;cursor:pointer}.pkcrm-builder-close:hover{background:#f8fafc;color:#b4235f}.pkcrm-section-builder>form{overflow:auto;display:flex;flex-direction:column;min-height:0}.pkcrm-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;padding:18px 22px 90px}.pkcrm-builder-main{display:grid;gap:15px;min-width:0}.pkcrm-builder-side{display:grid;gap:15px;align-content:start;position:sticky;top:0;align-self:start}.pkcrm-builder-card{padding:18px}.pkcrm-card-kicker{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:800;color:#a81955;margin-bottom:10px}.pkcrm-form.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pkcrm-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pkcrm-section-head.compact{margin-bottom:10px;align-items:center}.pkcrm-section-head.compact h3{margin:0;font-size:15px}.pkcrm-small-search{width:min(320px,45%);border:1px solid var(--pk-border);border-radius:9px;padding:8px 10px;background:#fff}.pkcrm-resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:360px;overflow:auto;padding:2px}.pkcrm-resource-card{position:relative;border:1px solid #dfe4eb;border-radius:12px;background:#fff;padding:10px;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;cursor:pointer;min-width:0}.pkcrm-resource-card:hover{border-color:#d09ab2;background:#fffafd}.pkcrm-resource-card:has(input:checked){border-color:#d7286b;box-shadow:0 0 0 1px #d7286b;background:#fff5f9}.pkcrm-resource-card input{position:absolute;right:8px;top:8px}.pkcrm-resource-card>span{grid-row:1/3}.pkcrm-resource-card .pkcrm-product-thumb{width:42px;height:42px}.pkcrm-resource-card b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:18px}.pkcrm-resource-card small{font-size:10px;color:#8791a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pkcrm-builder-info{padding:15px;border:1px dashed #ccd4df;border-radius:12px;background:#f9fafb;color:#667085}.pkcrm-toggle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.pkcrm-toggle-grid label{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid var(--pk-border);border-radius:10px;background:#fff;font-weight:650;font-size:12px}.pkcrm-builder-link-row{margin-top:14px}.pkcrm-builder-preview{padding:16px}.pkcrm-mini-section-preview{border:1px solid #e1e6ed;background:#fff;border-radius:13px;padding:13px;margin-top:8px}.pkcrm-mini-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-bottom:12px}.pkcrm-mini-section-head>div{min-width:0}.pkcrm-mini-section-head strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pkcrm-mini-section-head small{display:block;color:#8b95a5;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pkcrm-mini-section-head>span{font-size:9px;color:#a81955;white-space:nowrap}.pkcrm-mini-products{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.pkcrm-mini-products article{min-width:0}.pkcrm-mini-products i{display:block;aspect-ratio:1;background:linear-gradient(135deg,#f5f5f7,#eceff3);border-radius:7px}.pkcrm-mini-products b,.pkcrm-mini-products small{display:block;margin-top:5px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pkcrm-mini-products small{font-weight:800;font-size:9px;color:#171e2c}.pkcrm-mini-products button{border:0;border-radius:6px;background:#1f2937;color:#fff;font-size:7px;padding:5px;margin-top:5px;width:100%}.pkcrm-builder-help{padding:16px}.pkcrm-builder-help>strong{display:block;margin:6px 0}.pkcrm-builder-help code{display:block;background:#f7f8fa;border:1px solid var(--pk-border);padding:10px;border-radius:8px;font-size:11px;overflow-wrap:anywhere}.pkcrm-section-builder-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 22px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid var(--pk-border);z-index:4}.pkcrm-section-builder-footer>div{display:flex;gap:8px}.pkcrm-error-text{color:#b42318;font-weight:650}.pkcrm-section-style-dialog{width:min(720px,calc(100vw - 36px));background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(15,23,42,.3);overflow:hidden}.pkcrm-section-style-dialog>form{padding:20px}.pkcrm-section-style-dialog .pkcrm-form-actions{display:flex;justify-content:flex-end;gap:8px}.pkcrm-field textarea{width:100%;border:1px solid var(--pk-border);border-radius:10px;padding:10px 12px;background:#fff;color:#1f2937;font:inherit;resize:vertical}
@media(max-width:1180px){.pkcrm-resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pkcrm-builder-grid{grid-template-columns:minmax(0,1fr) 285px}.pkcrm-section-intro-grid{grid-template-columns:1fr}}
@media(max-width:900px){.pkcrm-section-builder-overlay{padding:0}.pkcrm-section-builder{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.pkcrm-builder-grid{grid-template-columns:1fr;padding:14px 14px 90px}.pkcrm-builder-side{position:static}.pkcrm-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pkcrm-form.three,.pkcrm-toggle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.5.2 - spójne przyciski i masowe przypisywanie kategorii */
.pkcrm-actions>.pkcrm-btn,.pkcrm-actions>.pkcrm-action-dropdown>summary{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.pkcrm-products-actions>.pkcrm-toolbar-action,.pkcrm-products-actions>.pkcrm-toolbar-dropdown{width:190px;flex:0 0 190px}
.pkcrm-products-actions>.pkcrm-toolbar-dropdown>summary{width:100%;height:42px;justify-content:center}
.pkcrm-products-actions>.pkcrm-btn.pkcrm-toolbar-action{width:190px;height:42px;padding:0 14px;justify-content:center}
.pkcrm-products-actions>.pkcrm-product-tools{width:42px;flex:0 0 42px}
.pkcrm-toolbar-icon-btn{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:10px}
.pkcrm-toolbar-icon-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.pkcrm-action-menu-separator{height:1px;background:var(--pk-border);margin:5px 4px}
.pkcrm-product-selection-bar{display:flex;align-items:center;gap:12px;margin:-2px 0 10px;padding:0 2px;color:var(--pk-muted);font-size:11px}.pkcrm-product-selection-bar>span{font-weight:800;color:#465266}.pkcrm-product-selection-bar small{font-size:11px}
.pkcrm-select-cell{width:44px;text-align:center!important}.pkcrm-select-cell input{width:16px;height:16px;accent-color:var(--pk-accent);cursor:pointer}
.pkcrm-row-actions>.pkcrm-btn,.pkcrm-row-actions>.pkcrm-action-dropdown{width:132px;flex:0 0 132px}.pkcrm-row-actions>.pkcrm-action-dropdown>summary,.pkcrm-row-actions>.pkcrm-btn{width:100%;height:38px;padding:0 11px;display:inline-flex;align-items:center;justify-content:center}
.pkcrm-bulk-category-dialog{width:min(760px,calc(100vw - 36px));max-height:calc(100dvh - 40px);background:#fff;border:1px solid #dce3ec;border-radius:18px;box-shadow:0 30px 90px rgba(15,23,42,.28);overflow:hidden;display:flex;flex-direction:column}.pkcrm-bulk-category-dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.pkcrm-bulk-category-body{padding:20px;overflow:auto}.pkcrm-bulk-category-list{max-height:440px}.pkcrm-dialog-action{width:165px;height:42px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:760px){.pkcrm-product-selection-bar small{display:none}.pkcrm-bulk-category-dialog{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.pkcrm-products-actions>.pkcrm-toolbar-action,.pkcrm-products-actions>.pkcrm-toolbar-dropdown{width:180px;flex-basis:180px}}

/* Pan Kwiatek CRM 0.5.3 - owner role and granular functional permissions */
.pkcrm-permission-section{margin-top:20px;padding-top:18px;border-top:1px solid var(--pk-border)}
.pkcrm-permission-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.pkcrm-permission-title h3{margin:3px 0 2px;font-size:16px}
.pkcrm-permission-title p{margin:0;font-size:12px}
.pkcrm-function-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#edf0f5}
.pkcrm-function-item{display:flex;align-items:flex-start;gap:10px;background:#fff;padding:12px;cursor:pointer;min-height:72px}
.pkcrm-function-item:hover{background:#fff9fc}
.pkcrm-function-item input{margin-top:3px;accent-color:var(--pk-accent);flex:0 0 auto}
.pkcrm-function-item span{display:grid;gap:3px;min-width:0}
.pkcrm-function-item strong{font-size:12px;line-height:1.35}
.pkcrm-function-item small{color:var(--pk-muted);font-size:10.5px;line-height:1.4}
.pkcrm-role-preset-field .pkcrm-btn{width:100%;min-height:40px}
@media(max-width:900px){.pkcrm-function-list{grid-template-columns:1fr}}


/* 0.5.4 - dropdowny toolbaru poza obszarem przewijania */
.pkcrm-products-toolbar{overflow:visible}
.pkcrm-products-toolbar>.pkcrm-actions{overflow:visible;padding:2px 1px}
.pkcrm-products-actions>.pkcrm-toolbar-action,.pkcrm-products-actions>.pkcrm-toolbar-dropdown{width:178px;flex:0 0 178px}
.pkcrm-action-dropdown-menu.pkcrm-floating-menu{position:fixed!important;right:auto!important;top:auto;z-index:10050;margin:0;max-width:min(320px,calc(100vw - 16px))}
@media(max-width:1450px){.pkcrm-products-toolbar{display:block}.pkcrm-products-toolbar>.pkcrm-actions{width:100%;margin-top:12px}}
@media(max-width:900px){.pkcrm-products-toolbar>.pkcrm-actions{overflow-x:auto;overflow-y:hidden;padding-bottom:7px;scrollbar-width:thin}.pkcrm-products-actions>.pkcrm-toolbar-action,.pkcrm-products-actions>.pkcrm-toolbar-dropdown{width:178px;flex-basis:178px}}
.pkcrm-employee-welcome-note{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;padding:13px 15px;border:1px solid #efd0de;border-radius:12px;background:#fff5f9;color:#5f2c45}.pkcrm-employee-welcome-note strong{white-space:nowrap}.pkcrm-employee-welcome-note span{color:#6d5362;font-size:12px;line-height:1.5}.pkcrm-password-change-logout{display:block;text-align:center;margin-top:13px;color:#6b7280;text-decoration:none;font-size:12px;font-weight:700}.pkcrm-password-change-logout:hover{color:#a51954}.pkcrm-login-card .pkcrm-muted{line-height:1.55}.pkcrm-row-actions [data-reset-employee]{width:auto;min-width:150px;flex:0 0 auto}


/* Pan Kwiatek CRM 0.5.6 - wyszukiwarki, paginacja i uporządkowany toolbar */
.pkcrm-dropdown-chevron{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.pkcrm-products-actions>.pkcrm-toolbar-action,
.pkcrm-products-actions>.pkcrm-toolbar-dropdown{width:205px;flex:0 0 205px}
.pkcrm-products-actions>.pkcrm-toolbar-dropdown>summary,
.pkcrm-products-actions>.pkcrm-btn.pkcrm-toolbar-action{width:100%;height:42px;min-height:42px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:13px;line-height:1}
.pkcrm-products-actions>.pkcrm-toolbar-dropdown>summary>span{display:block;line-height:1.1;white-space:nowrap}
.pkcrm-products-actions>.pkcrm-product-tools{width:42px;flex:0 0 42px}
.pkcrm-row-actions>.pkcrm-action-dropdown>summary{gap:6px}
.pkcrm-list-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:12px 14px;border:1px solid var(--pk-border);border-radius:13px;background:#fff}
.pkcrm-list-search{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}
.pkcrm-list-search input{width:min(430px,100%);min-width:220px;height:40px;border:1px solid #dce1e8;border-radius:9px;padding:0 12px;background:#fff;color:var(--pk-text)}
.pkcrm-list-search .pkcrm-btn,.pkcrm-pagination .pkcrm-btn{height:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.pkcrm-pagination{display:flex;align-items:center;gap:8px;white-space:nowrap}
.pkcrm-pagination>span{min-width:82px;text-align:center;color:var(--pk-muted);font-size:12px}
.pkcrm-btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:1800px){
  .pkcrm-products-toolbar{display:block}
  .pkcrm-products-toolbar>.pkcrm-actions{width:100%;margin-top:12px}
}
@media(max-width:1100px){
  .pkcrm-products-toolbar>.pkcrm-actions{overflow-x:auto;overflow-y:hidden;padding-bottom:7px;scrollbar-width:thin}
  .pkcrm-list-tools{align-items:stretch;flex-direction:column}
  .pkcrm-pagination{justify-content:flex-end}
}
@media(max-width:640px){
  .pkcrm-list-search{flex-wrap:wrap}
  .pkcrm-list-search input{width:100%;min-width:0;flex-basis:100%}
  .pkcrm-pagination{justify-content:space-between}
  .pkcrm-pagination .pkcrm-btn{min-width:105px}
}
\n\n/* Pan Kwiatek CRM 0.5.7 - stabilny toolbar Produktów */
.pkcrm-products-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.pkcrm-products-actions > .pkcrm-btn.pkcrm-toolbar-action,
.pkcrm-products-actions > .pkcrm-toolbar-dropdown{
  width:205px;
  min-width:205px;
  max-width:205px;
  flex:0 0 205px;
}
.pkcrm-products-actions > .pkcrm-btn.pkcrm-toolbar-action{
  height:42px;
  min-height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.1;
}
.pkcrm-products-actions > .pkcrm-toolbar-dropdown > summary{
  width:205px;
  min-width:205px;
  max-width:205px;
  height:42px;
  min-height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  line-height:1.1;
}
.pkcrm-products-actions > .pkcrm-toolbar-dropdown > summary > span{
  display:inline-flex;
  align-items:center;
  line-height:1.1;
  white-space:nowrap;
}
.pkcrm-products-actions .pkcrm-dropdown-chevron{
  width:15px;
  height:15px;
  flex:0 0 15px;
  align-self:center;
  transform:none;
}
.pkcrm-products-actions > .pkcrm-product-tools{
  width:42px;
  min-width:42px;
  max-width:42px;
  flex:0 0 42px;
}
.pkcrm-products-actions > .pkcrm-product-tools > summary{
  width:42px;
  min-width:42px;
  max-width:42px;
  height:42px;
  min-height:42px;
  padding:0;
}
@media(max-width:1100px){
  .pkcrm-products-toolbar > .pkcrm-actions{
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:7px;
    scrollbar-width:thin;
  }
}


/* 0.5.9 - lepsze wykorzystanie szerokości i czytelniejszy magazyn */
.pkcrm-content{
  max-width:none;
}
.pkcrm-stock-view{
  width:100%;
}
.pkcrm-stock-view .pkcrm-list-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.pkcrm-stock-view .pkcrm-list-search{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 520px;
  min-width:280px;
}
.pkcrm-stock-view .pkcrm-list-search input[type="search"]{
  flex:1 1 auto;
  min-width:220px;
  border:1px solid #dce1e8;
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}
.pkcrm-stock-view .pkcrm-pagination{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  white-space:nowrap;
}
.pkcrm-stock-view .pkcrm-table-wrap{
  overflow-x:visible;
  overflow-y:visible;
}
.pkcrm-stock-view .pkcrm-table{
  width:100%;
  table-layout:fixed;
}
.pkcrm-stock-view .pkcrm-table th,
.pkcrm-stock-view .pkcrm-table td{
  white-space:normal;
  word-break:break-word;
  vertical-align:top;
}
.pkcrm-stock-view .pkcrm-table th:nth-child(1),
.pkcrm-stock-view .pkcrm-table td:nth-child(1){width:34%;}
.pkcrm-stock-view .pkcrm-table th:nth-child(2),
.pkcrm-stock-view .pkcrm-table td:nth-child(2){width:18%;}
.pkcrm-stock-view .pkcrm-table th:nth-child(3),
.pkcrm-stock-view .pkcrm-table td:nth-child(3){width:12%;}
.pkcrm-stock-view .pkcrm-table th:nth-child(4),
.pkcrm-stock-view .pkcrm-table td:nth-child(4){width:14%;}
.pkcrm-stock-view .pkcrm-table th:nth-child(5),
.pkcrm-stock-view .pkcrm-table td:nth-child(5){width:10%;}
.pkcrm-stock-view .pkcrm-table th:nth-child(6),
.pkcrm-stock-view .pkcrm-table td:nth-child(6){width:12%;}
.pkcrm-stock-view .pkcrm-table td strong{
  display:block;
  margin-bottom:4px;
}
.pkcrm-stock-view .pkcrm-table .pkcrm-badge{
  margin-top:6px;
}
@media(max-width:1200px){
  .pkcrm-stock-view .pkcrm-table-wrap{overflow-x:auto;}
  .pkcrm-stock-view .pkcrm-table{min-width:980px;table-layout:auto;}
}
@media(max-width:760px){
  .pkcrm-stock-view .pkcrm-list-tools{align-items:stretch;}
  .pkcrm-stock-view .pkcrm-list-search,
  .pkcrm-stock-view .pkcrm-pagination{width:100%;}
  .pkcrm-stock-view .pkcrm-pagination{justify-content:space-between;}
}

/* 0.6.0 - moduł Allegro */
.pkcrm-product-cell{display:flex;align-items:center;gap:10px;min-width:260px}.pkcrm-product-cell>div{min-width:0}.pkcrm-product-cell strong{display:block;white-space:normal;line-height:1.25}.pkcrm-product-cell small{display:block;margin-top:3px;color:var(--pk-muted);font-size:11px}.pkcrm-allegro-row-actions{flex-wrap:nowrap}.pkcrm-allegro-filters{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}.pkcrm-allegro-filters .pkcrm-list-search{flex:1 1 460px;display:flex;gap:8px}.pkcrm-allegro-filters .pkcrm-list-search input{flex:1;border:1px solid #dce1e8;border-radius:9px;padding:10px 11px;background:#fff}.pkcrm-dialog-overlay{position:fixed;inset:0;z-index:1000;background:rgba(15,23,42,.4);display:grid;place-items:center;padding:24px}.pkcrm-allegro-link-dialog{width:min(760px,100%);max-height:86vh;overflow:auto}.pkcrm-allegro-link-results{display:grid;gap:7px;margin-top:12px}.pkcrm-allegro-link-choice{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--pk-border);background:#fff;border-radius:10px;padding:9px;text-align:left;cursor:pointer;color:var(--pk-text)}.pkcrm-allegro-link-choice:hover{border-color:#e6b2c9;background:#fff7fa}.pkcrm-allegro-link-choice span:last-child{display:flex;flex-direction:column;gap:2px}.pkcrm-allegro-link-choice small{color:var(--pk-muted)}.pkcrm-allegro-order-detail{margin-bottom:14px}.pkcrm-allegro-order-detail pre{margin:0;max-height:460px;overflow:auto;background:#f8fafc;border:1px solid var(--pk-border);border-radius:10px;padding:14px;font-size:11px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.pkcrm-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.pkcrm-two-cols{align-items:start}.pkcrm-two-cols .pkcrm-table-wrap{overflow-x:auto}.pkcrm-two-cols .pkcrm-table{min-width:620px}
@media(max-width:900px){.pkcrm-allegro-row-actions{flex-wrap:wrap}.pkcrm-dialog-overlay{padding:10px}.pkcrm-allegro-filters{align-items:stretch}.pkcrm-allegro-filters .pkcrm-list-search{flex-basis:100%}}


/* 0.6.3 - responsywne Produkty + kompaktowe Allegro */
.pkcrm-products-table .pkcrm-table-wrap{overflow-x:visible;overflow-y:visible}
.pkcrm-products-table .pkcrm-table{width:100%;table-layout:fixed}
.pkcrm-products-table .pkcrm-table th,.pkcrm-products-table .pkcrm-table td{white-space:normal;overflow-wrap:anywhere;padding:10px 10px;vertical-align:middle}
.pkcrm-products-table .pkcrm-select-cell{width:42px}
.pkcrm-products-table .pkcrm-product-cell{min-width:0;gap:9px}
.pkcrm-products-table .pkcrm-product-copy strong{font-size:12px;line-height:1.22}
.pkcrm-products-table .pkcrm-product-copy .pkcrm-muted{font-size:10px;overflow-wrap:anywhere}
.pkcrm-products-table .pkcrm-product-thumb{width:44px;height:44px;min-width:44px}
.pkcrm-products-table .pkcrm-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.pkcrm-products-table .pkcrm-row-actions>.pkcrm-action-dropdown,.pkcrm-products-table .pkcrm-row-actions>.pkcrm-btn{flex:1 1 82px;min-width:0}
.pkcrm-products-table .pkcrm-row-actions summary.pkcrm-btn,.pkcrm-products-table .pkcrm-row-actions>button.pkcrm-btn{width:100%;min-height:36px;padding:7px 8px;font-size:11px;justify-content:center;white-space:nowrap}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(1),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(1){width:42px}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(2),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(2){width:26%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(3),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(3){width:12%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(4),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(4){width:7%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(5),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(5){width:8%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(6),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(6){width:10%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(7),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(7){width:8%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(8),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(8){width:10%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(9),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(9){width:10%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(10),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(10){width:190px}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(1),.pkcrm-products-table--retail .pkcrm-table td:nth-child(1){width:42px}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(2),.pkcrm-products-table--retail .pkcrm-table td:nth-child(2){width:34%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(3),.pkcrm-products-table--retail .pkcrm-table td:nth-child(3){width:16%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(4),.pkcrm-products-table--retail .pkcrm-table td:nth-child(4){width:8%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(5),.pkcrm-products-table--retail .pkcrm-table td:nth-child(5){width:10%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(6),.pkcrm-products-table--retail .pkcrm-table td:nth-child(6){width:12%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(7),.pkcrm-products-table--retail .pkcrm-table td:nth-child(7){width:10%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(8),.pkcrm-products-table--retail .pkcrm-table td:nth-child(8){width:190px}
@media(max-width:1450px){
  .pkcrm-products-table--wholesale .pkcrm-table th:nth-child(4),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(4),.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(5),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(5),.pkcrm-products-table--retail .pkcrm-table th:nth-child(4),.pkcrm-products-table--retail .pkcrm-table td:nth-child(4),.pkcrm-products-table--retail .pkcrm-table th:nth-child(5),.pkcrm-products-table--retail .pkcrm-table td:nth-child(5){display:none}
  .pkcrm-products-table--wholesale .pkcrm-table th:nth-child(2),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(2){width:30%}
  .pkcrm-products-table--retail .pkcrm-table th:nth-child(2),.pkcrm-products-table--retail .pkcrm-table td:nth-child(2){width:38%}
}
@media(max-width:1180px){
  .pkcrm-products-table--wholesale .pkcrm-table th:nth-child(7),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(7){display:none}
  .pkcrm-products-table .pkcrm-table th,.pkcrm-products-table .pkcrm-table td{padding:9px 8px;font-size:11px}
  .pkcrm-products-table .pkcrm-row-actions{display:grid;grid-template-columns:1fr;gap:5px}
  .pkcrm-products-table--wholesale .pkcrm-table th:nth-child(10),.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(10),.pkcrm-products-table--retail .pkcrm-table th:nth-child(8),.pkcrm-products-table--retail .pkcrm-table td:nth-child(8){width:118px}
}
@media(max-width:900px){.pkcrm-products-table .pkcrm-table-wrap{overflow-x:auto}.pkcrm-products-table .pkcrm-table{min-width:850px;table-layout:auto}}
.pkcrm-allegro-status-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pkcrm-allegro-status-grid .pkcrm-card{padding:14px 16px;min-height:96px}
.pkcrm-allegro-status-grid .pkcrm-stat span{font-size:11px}
.pkcrm-allegro-status-grid .pkcrm-stat strong{font-size:18px;line-height:1.25;margin-top:7px;overflow-wrap:anywhere}
.pkcrm-allegro-dashboard-grid .pkcrm-card{padding:15px 16px}
.pkcrm-allegro-dashboard-grid .pkcrm-stat strong{font-size:23px;line-height:1.15}
.pkcrm-equal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pkcrm-equal-actions>.pkcrm-btn{height:42px;min-height:42px;min-width:180px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media(max-width:1100px){.pkcrm-allegro-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pkcrm-equal-actions>.pkcrm-btn{min-width:160px}}
@media(max-width:650px){.pkcrm-allegro-status-grid{grid-template-columns:1fr}.pkcrm-equal-actions{width:100%}.pkcrm-equal-actions>.pkcrm-btn{flex:1 1 100%;width:100%}}

/* 0.6.5 */
.pkcrm-allegro-dashboard-grid{grid-template-columns:repeat(6,minmax(0,1fr));}
@media(max-width:1500px){.pkcrm-allegro-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:900px){.pkcrm-allegro-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* 0.6.6 - czytelny postęp synchronizacji */
.pkcrm-sync-progress{position:relative;overflow:hidden}
.pkcrm-sync-progress.is-preparing{background:linear-gradient(180deg,#fff 0%,#fffafd 100%);border-color:#f0d8e3}
.pkcrm-sync-percent.is-preparing{min-width:64px;text-align:center;color:#a91b55;background:#fff7fa;border-color:#f2cfdf;letter-spacing:.04em}
.pkcrm-sync-progress.is-preparing .pkcrm-sync-stats span:not(:nth-child(2)){background:#fbfcfe;color:#9aa3b2}
.pkcrm-sync-progress.is-preparing .pkcrm-sync-stats span:not(:nth-child(2)) b{color:#a5adba}
.pkcrm-progress-bar.is-indeterminate{width:28%!important;animation:pkcrm-progress-sweep 1.25s cubic-bezier(.45,0,.55,1) infinite}
@keyframes pkcrm-progress-sweep{0%{transform:translateX(-140%)}50%{transform:translateX(135%)}100%{transform:translateX(390%)}}


/* 0.6.7 - stan przygotowania nie wygląda jak przycisk */
.pkcrm-sync-percent.is-preparing{
  min-width:auto;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.06em;
  font-weight:800;
  background:#fff5f9;
  border:1px solid #f2c9da;
  color:#a51954;
  cursor:default;
}


/* 0.6.8 - kreator promocji */
.pkcrm-module-primary-action{min-width:160px;height:42px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.pkcrm-promotion-builder .pkcrm-builder-grid{grid-template-columns:minmax(0,1fr) 340px}
.pkcrm-promo-resource-grid{max-height:310px}
.pkcrm-promo-item-config{border:1px solid var(--pk-border);border-radius:13px;background:#fff;padding:12px;margin-top:10px}
.pkcrm-promo-item-product{display:flex;align-items:center;gap:10px;margin-bottom:11px;min-width:0}
.pkcrm-promo-item-product .pkcrm-product-thumb{width:46px;height:46px;flex:0 0 46px}
.pkcrm-promo-item-product>div{min-width:0}.pkcrm-promo-item-product strong,.pkcrm-promo-item-product small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pkcrm-promo-item-product small{color:var(--pk-muted);font-size:11px;margin-top:3px}
.pkcrm-promo-item-fields{display:grid;grid-template-columns:85px 90px minmax(140px,1fr) 110px 135px 110px;gap:8px;align-items:end}
.pkcrm-promo-item-fields>label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#697386;text-transform:uppercase;letter-spacing:.03em}
.pkcrm-promo-item-fields input,.pkcrm-promo-item-fields select{width:100%;border:1px solid #dce1e8;border-radius:8px;padding:8px;background:#fff;color:#172033;text-transform:none;letter-spacing:0}
.pkcrm-promo-item-fields input[type="radio"],.pkcrm-promo-item-fields input[type="checkbox"]{width:auto;justify-self:start;accent-color:var(--pk-accent)}
.pkcrm-promo-item-fields strong[data-promo-final]{display:flex;align-items:center;min-height:36px;border:1px solid #e3e7ed;border-radius:8px;padding:8px;background:#f8fafc;color:#172033;font-size:12px;text-transform:none;letter-spacing:0}
.pkcrm-promo-item-fields .pkcrm-check{align-self:center;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-bottom:7px}
.pkcrm-span-two{grid-column:1/-1}
@media(max-width:1180px){.pkcrm-promotion-builder .pkcrm-builder-grid{grid-template-columns:1fr}.pkcrm-promo-item-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.pkcrm-promo-item-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pkcrm-promo-resource-grid{grid-template-columns:1fr}}


/* 0.6.9 - Produkty: checkbox w nagłówku, więcej miejsca na akcje, szybszy UX */
.pkcrm-products-table .pkcrm-select-cell{
  width:38px!important;
  text-align:center;
  padding-left:8px!important;
  padding-right:6px!important;
}
.pkcrm-products-table [data-product-select-all],
.pkcrm-products-table [data-product-select]{
  width:16px;
  height:16px;
  margin:0;
  vertical-align:middle;
  accent-color:#d91f69;
  cursor:pointer;
}
.pkcrm-products-table .pkcrm-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
}
.pkcrm-products-table .pkcrm-row-actions>.pkcrm-action-dropdown{
  flex:0 0 88px;
  width:88px;
}
.pkcrm-products-table .pkcrm-row-actions>button.pkcrm-btn{
  flex:1 1 126px;
  min-width:118px;
}
.pkcrm-products-table .pkcrm-row-actions summary.pkcrm-btn,
.pkcrm-products-table .pkcrm-row-actions>button.pkcrm-btn{
  min-height:34px;
  padding:6px 9px;
  font-size:11px;
}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(7),
.pkcrm-products-table--retail .pkcrm-table td:nth-child(7){width:7%}
.pkcrm-products-table--retail .pkcrm-table th:nth-child(8),
.pkcrm-products-table--retail .pkcrm-table td:nth-child(8){width:225px}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(9),
.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(9){width:7%}
.pkcrm-products-table--wholesale .pkcrm-table th:nth-child(10),
.pkcrm-products-table--wholesale .pkcrm-table td:nth-child(10){width:225px}
.pkcrm-products-table .pkcrm-badge{white-space:nowrap}
@media(max-width:1280px){
  .pkcrm-products-table--retail .pkcrm-table th:nth-child(8),
  .pkcrm-products-table--retail .pkcrm-table td:nth-child(8),
  .pkcrm-products-table--wholesale .pkcrm-table th:nth-child(10),
  .pkcrm-products-table--wholesale .pkcrm-table td:nth-child(10){width:205px}
  .pkcrm-products-table .pkcrm-row-actions{gap:5px}
  .pkcrm-products-table .pkcrm-row-actions>.pkcrm-action-dropdown{flex-basis:78px;width:78px}
  .pkcrm-products-table .pkcrm-row-actions>button.pkcrm-btn{min-width:108px}
}
@media(max-width:1180px){
  .pkcrm-products-table .pkcrm-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px}
  .pkcrm-products-table .pkcrm-row-actions>.pkcrm-action-dropdown,
  .pkcrm-products-table .pkcrm-row-actions>button.pkcrm-btn{width:100%;min-width:0;flex:0 0 auto}
  .pkcrm-products-table--retail .pkcrm-table th:nth-child(8),
  .pkcrm-products-table--retail .pkcrm-table td:nth-child(8),
  .pkcrm-products-table--wholesale .pkcrm-table th:nth-child(10),
  .pkcrm-products-table--wholesale .pkcrm-table td:nth-child(10){width:124px}
}


/* 0.7.0 - widoczność kategorii produktów i filtr produktów bez kategorii */
.pkcrm-product-category-filter{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-2px 0 12px;padding:10px 12px;border:1px solid var(--pk-border);border-radius:12px;background:#fff}
.pkcrm-product-category-filter label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:750;color:#344054}
.pkcrm-product-category-filter select{min-width:210px;height:38px;border:1px solid #dce1e8;border-radius:9px;background:#fff;padding:0 34px 0 10px;color:#253044}
.pkcrm-product-category-filter small{color:var(--pk-muted);font-size:11px}
.pkcrm-product-category-chips{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:2px}
.pkcrm-product-category-chip,.pkcrm-product-category-more,.pkcrm-category-state{display:inline-flex;align-items:center;max-width:150px;min-height:20px;padding:2px 7px;border-radius:999px;font-size:9px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pkcrm-product-category-chip{background:#eef4e9;color:#456137;border:1px solid #dce9d4}
.pkcrm-product-category-more{background:#f2f4f7;color:#667085;border:1px solid #e4e7ec}
.pkcrm-category-state.is-empty{margin-top:2px;background:#fff7e7;color:#936315;border:1px solid #f4e1b4}
@media(max-width:760px){.pkcrm-product-category-filter{align-items:stretch;flex-direction:column}.pkcrm-product-category-filter label{justify-content:space-between}.pkcrm-product-category-filter select{min-width:0;flex:1}.pkcrm-product-category-filter small{display:none}}

/* 0.7.7 - kreator sekcji: poprawne ukrywanie filtrowanych kart i paginacja produktów. */
.pkcrm-section-builder [hidden]{display:none!important}
.pkcrm-resource-loadbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;min-height:36px;color:var(--pk-muted);font-size:11px}
.pkcrm-resource-loadbar .pkcrm-btn{padding:7px 11px;font-size:11px}
.pkcrm-resource-loadbar .pkcrm-btn[hidden]{display:none!important}


/* 0.7.8 - pewny feedback po kliknięciu akcji w module Sekcje. */
.pkcrm-section-loading-overlay{z-index:190!important}
.pkcrm-section-action-loader{width:min(460px,calc(100vw - 40px));padding:28px;border:1px solid var(--pk-border);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(23,32,51,.2);text-align:center}
.pkcrm-section-action-loader strong{display:block;margin:6px 0 8px;font-size:20px}
.pkcrm-section-action-loader p{margin:0;color:var(--pk-muted)}
.pkcrm-section-action-loader.is-error{text-align:left}
.pkcrm-section-action-loader.is-error .pkcrm-eyebrow{color:var(--pk-danger)}
.pkcrm-section-action-loader .pkcrm-form-actions{justify-content:flex-end;margin-top:18px}
