/* KBH_STAGE_112_PROJECT_TILE_EDIT_FILES_OFFER_PRINT_V1 */
/* KBH_STAGE_111_EMPTY_PROJECT_MODAL_V1 */
/* KBH_STAGE_100_PRICING_REQUEST_SEND_SNAPSHOT_V1 */
/* KBH_STAGE_99_PRICING_REQUEST_DRAFTS_V1 */
/* KBH_STAGE_98_PROJECT_WORKFLOW_SINGLE_ROW_OFFER_MODAL_SMART_SCROLL_V1 */
/* KBH_STAGE_97_PROJECT_FILE_ACTOR_BADGES_V1 */
/* KBH_STAGE_96_PROJECT_OFFERS_V1 */
/* KBH_STAGE_95_PROJECT_INFORMATION_HISTORY_V1 */
/* KBH_STAGE_94_PROJECT_FILES_NAVIGATION_STYLES_V1 */
/* KBH_STAGE_90_PROJECT_WORKFLOW_LINKS_AND_STAGE89_FIX_V1 */
/* KBH_STAGE_89_PROJECT_DOCUMENT_FOLDERS_SNAPSHOTS_V1 */
/* KBH_STAGE_88_PROJECT_INFORMATION_SETS_V1 */
/* KBH_STAGE_87_PROJECT_WORKFLOW_LINKS_OVERLAY_V1 */
/* KBH_STAGE_86_PROJECT_WORKFLOW_UX_DETAILS_V1 */
/* KBH_STAGE_85_PROJECT_WORKFLOW_CENTER_V1 */
.project-workflow-root{max-width:100%;min-width:0}.pw-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:0 0 18px}.pw-head h2{margin:3px 0 5px;font-size:clamp(24px,2.5vw,38px);letter-spacing:-.035em}.pw-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;opacity:.58}.pw-lead{margin:0;max-width:820px;opacity:.68;line-height:1.5}.pw-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.pw-action-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;margin-left:6px;border-radius:999px;background:rgba(255,255,255,.14);font-size:11px}
.pw-list-card{padding:0!important;overflow:hidden}.pw-list-tools{display:grid;grid-template-columns:minmax(280px,1.3fr) minmax(520px,2fr) auto;gap:16px;align-items:end;padding:16px 18px;border-bottom:1px solid var(--line,rgba(127,127,127,.22))}.pw-search,.pw-filter{display:grid;gap:6px;font-size:11px;font-weight:750;opacity:.92}.pw-search input,.pw-filter select{width:100%;min-height:40px}.pw-filters{display:grid;grid-template-columns:repeat(3,minmax(135px,1fr)) auto;gap:9px;align-items:end}.pw-clear-filters{min-height:40px}.pw-count{font-size:12px;opacity:.62;padding-bottom:11px;white-space:nowrap}.pw-table-wrap{overflow:auto}.pw-table{width:100%;border-collapse:collapse;min-width:820px}.pw-table th,.pw-table td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line,rgba(127,127,127,.18));vertical-align:middle}.pw-table th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;opacity:.58}.pw-project-row{cursor:pointer;transition:background .16s ease,box-shadow .16s ease}.pw-project-row:hover,.pw-project-row:focus{background:rgba(94,160,255,.055);outline:none;box-shadow:inset 3px 0 rgba(94,160,255,.55)}.pw-project-cell{display:grid;gap:3px;min-width:0}.pw-project-cell strong{font-size:16px;letter-spacing:-.01em}.pw-project-cell span{font-size:12px;opacity:.63;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}.pw-company-name{font-weight:650}.pw-stage-badge,.pw-node-status{display:inline-flex;align-items:center;border:1px solid rgba(94,160,255,.30);background:rgba(94,160,255,.10);border-radius:999px;padding:5px 9px;font-size:11px}.pw-empty{padding:30px!important;text-align:center;opacity:.58}
.pw-back{border:0!important;background:none!important;box-shadow:none!important;color:inherit!important;padding:0!important;margin:0 0 12px!important;cursor:pointer;font-weight:700;opacity:.66}.pw-back:hover{opacity:1}.pw-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;opacity:.68}.pw-flow-shell{position:relative;overflow-x:auto;overflow-y:hidden;padding:4px 2px 22px}.pw-flow{position:relative;display:grid;grid-template-columns:repeat(10,minmax(242px,1fr));gap:18px;min-width:2600px;align-items:start}.pw-stage{position:relative;z-index:2;min-height:360px;border:1px solid var(--line,rgba(127,127,127,.19));background:var(--card,#171a21);border-radius:16px;box-shadow:0 8px 28px rgba(0,0,0,.08);overflow:hidden}.pw-stage-header{display:flex!important;gap:11px!important;align-items:center!important;min-height:66px!important;padding:13px 14px!important;border-bottom:1px solid var(--line,rgba(127,127,127,.18))!important;background:linear-gradient(180deg,rgba(94,160,255,.10),rgba(127,127,127,.025))!important;visibility:visible!important;opacity:1!important}.pw-stage-index{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;border-radius:9px;border:1px solid rgba(94,160,255,.34);background:rgba(94,160,255,.07);font-size:10px;font-weight:850}.pw-stage-caption{display:block!important;min-width:0}.pw-stage-caption h3{display:block!important;margin:0!important;font-size:14px!important;line-height:1.2!important;font-weight:800!important;color:inherit!important;visibility:visible!important}.pw-stage-caption span{display:block!important;margin-top:3px!important;font-size:10px!important;opacity:.58!important}.pw-stage-body{padding:10px;display:grid;gap:9px}.pw-stage-empty{padding:25px 12px;text-align:center;font-size:12px;opacity:.45;line-height:1.45}.pw-node{position:relative;z-index:3;border:1px solid var(--line,rgba(127,127,127,.2));border-radius:12px;background:rgba(127,127,127,.045);overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.pw-node:hover{transform:translateY(-1px);border-color:rgba(94,160,255,.42);box-shadow:0 8px 24px rgba(0,0,0,.08)}.pw-node-main{width:100%;display:grid;gap:5px;text-align:left;background:none!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:11px 11px 9px!important;cursor:pointer}.pw-node-title{font-weight:780;font-size:12px;line-height:1.3}.pw-node-date{font-size:10px;opacity:.54}.pw-node-status{justify-self:start;max-width:100%;white-space:normal;line-height:1.25}.pw-node-hint{font-size:9px;opacity:.38;margin-top:2px}.pw-files-mini{width:100%;border:0!important;border-top:1px solid var(--line,rgba(127,127,127,.14))!important;border-radius:0!important;box-shadow:none!important;background:rgba(127,127,127,.035)!important;color:inherit!important;padding:8px 10px!important;font-size:10px!important;font-weight:750!important;text-align:left!important;cursor:pointer;opacity:.72}.pw-files-mini:hover{opacity:1;background:rgba(94,160,255,.06)!important}.pw-links{position:absolute;inset:0;width:100%;height:100%;z-index:20;overflow:visible;pointer-events:none}.pw-links path{fill:none;stroke:rgba(94,160,255,.72);stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(0 1px 2px rgba(0,0,0,.14))}.pw-links marker path{fill:rgba(94,160,255,.72);stroke:none;stroke-width:0;filter:none}
.pw-modal-backdrop{position:fixed;inset:0;z-index:100000;background:rgba(5,8,14,.66);backdrop-filter:blur(7px);display:grid;place-items:center;padding:24px}.pw-modal{width:min(980px,94vw);max-height:min(760px,88vh);display:flex;flex-direction:column;background:var(--card,#171a21);color:var(--fg,#fff);border:1px solid var(--line,rgba(255,255,255,.13));border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.42);overflow:hidden}.pw-modal-head{display:flex;justify-content:space-between;align-items:center;padding:17px 19px;border-bottom:1px solid var(--line,rgba(127,127,127,.18))}.pw-modal-head h3{margin:2px 0 0}.pw-modal-close{width:38px!important;height:38px!important;border:0!important;border-radius:10px!important;background:rgba(127,127,127,.1)!important;color:inherit!important;font-size:24px!important;cursor:pointer;box-shadow:none!important}.pw-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:14px 18px;border-top:1px solid var(--line,rgba(127,127,127,.16));background:rgba(127,127,127,.025)}
.pw-file-list{padding:8px 12px 14px;overflow:auto}.pw-file-row{display:grid;grid-template-columns:46px minmax(280px,1fr) 160px auto;gap:12px;align-items:center;padding:11px 8px;border-bottom:1px solid var(--line,rgba(127,127,127,.14))}.pw-file-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:rgba(94,160,255,.10);border:1px solid rgba(94,160,255,.23);font-size:10px;font-weight:850;letter-spacing:.05em}.pw-file-main{display:grid;gap:4px;min-width:0}.pw-file-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.pw-file-kind{font-size:10px;opacity:.55}.pw-file-assignment{display:inline-flex!important;width:max-content;max-width:100%;padding:4px 7px;border-radius:7px;background:rgba(94,160,255,.10);border:1px solid rgba(94,160,255,.20);font-size:10px!important;font-weight:700;opacity:.88!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pw-file-row time,.pw-file-no-link{font-size:10px;opacity:.58}.pw-file-open{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:7px 13px!important;border:1px solid rgba(94,160,255,.34)!important;border-radius:9px!important;background:rgba(94,160,255,.08)!important;color:inherit!important;box-shadow:none!important;text-decoration:none!important;white-space:nowrap;font-size:11px!important;font-weight:750!important;line-height:1!important;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}.pw-file-open:hover{background:rgba(94,160,255,.16)!important;border-color:rgba(94,160,255,.55)!important;transform:translateY(-1px)}.pw-files-actions{border-top:1px solid var(--line,rgba(127,127,127,.14));padding:12px 18px!important}.pw-files-back{min-width:100px}
.pw-detail-content{padding:18px;overflow:auto}.pw-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pw-detail-grid-single{grid-template-columns:1fr}.pw-detail-section{border:1px solid var(--line,rgba(127,127,127,.18));border-radius:14px;overflow:hidden;background:rgba(127,127,127,.025)}.pw-detail-section-title{padding:11px 13px;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;background:rgba(94,160,255,.07);border-bottom:1px solid var(--line,rgba(127,127,127,.14))}.pw-detail-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(160px,1.4fr);gap:14px;padding:10px 13px;border-bottom:1px solid var(--line,rgba(127,127,127,.11));align-items:start}.pw-detail-row:last-child{border-bottom:0}.pw-detail-row span{font-size:11px;opacity:.58}.pw-detail-row strong{font-size:12px;font-weight:700;overflow-wrap:anywhere}.pw-loading,.pw-error{padding:28px!important;display:flex;align-items:center;gap:12px}.pw-spinner{width:18px;height:18px;border-radius:50%;border:2px solid rgba(127,127,127,.25);border-top-color:currentColor;animation:pwSpin .7s linear infinite}@keyframes pwSpin{to{transform:rotate(360deg)}}
body[data-theme="light_premium"] .pw-stage,body[data-theme="light_premium"] .pw-modal{background:#fff}.sidebar-collapsed .pw-flow-shell{max-width:calc(100vw - 92px)}
@media(max-width:1200px){.pw-list-tools{grid-template-columns:1fr}.pw-filters{grid-template-columns:repeat(3,1fr) auto}.pw-count{padding:0}.pw-project-cell span{max-width:320px}}
@media(max-width:900px){.pw-head{align-items:flex-start;flex-direction:column}.pw-head-actions{justify-content:flex-start}.pw-filters{grid-template-columns:1fr 1fr}.pw-clear-filters{grid-column:1/-1}.pw-file-row{grid-template-columns:42px 1fr auto}.pw-file-row time{display:none}.pw-flow{grid-template-columns:repeat(10,minmax(225px,1fr));min-width:2460px}.pw-detail-grid{grid-template-columns:1fr}}

.pw-stage-add{margin-left:auto!important;flex:0 0 auto!important;border:1px solid rgba(94,160,255,.30)!important;background:rgba(94,160,255,.09)!important;color:inherit!important;border-radius:9px!important;padding:7px 9px!important;font-size:10px!important;font-weight:800!important;box-shadow:none!important;cursor:pointer}.pw-stage-add:hover{background:rgba(94,160,255,.16)!important}.pw-node-info-meta{font-size:9px;opacity:.48;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-info-form{display:grid;gap:16px}.pw-info-form label{display:grid;gap:7px}.pw-info-form label>span{font-size:11px;font-weight:800;letter-spacing:.04em}.pw-info-form input[type="text"],.pw-info-form select,.pw-info-form textarea{width:100%;min-height:42px}.pw-info-form textarea{resize:vertical}.pw-info-form small{font-size:10px;opacity:.56;line-height:1.4}

.pw-file-folder{border:1px solid var(--line,rgba(127,127,127,.16));border-radius:12px;overflow:hidden;margin:8px 0;background:rgba(127,127,127,.02)}.pw-file-folder-head{width:100%;display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;text-align:left!important;border:0!important;border-radius:0!important;background:rgba(94,160,255,.06)!important;color:inherit!important;box-shadow:none!important;padding:10px 12px!important;cursor:pointer}.pw-file-folder-head strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pw-file-folder-head>span:last-child{font-size:10px;opacity:.55}.pw-file-folder-icon{transition:transform .15s ease;opacity:.62}.pw-file-folder-head[aria-expanded="true"] .pw-file-folder-icon{transform:rotate(90deg)}.pw-file-folder-body[hidden]{display:none}.pw-file-folder-body .pw-file-row:last-child{border-bottom:0}

.pw-info-history{display:grid;gap:0}.pw-info-history-item{padding:12px 13px;border-bottom:1px solid var(--line,rgba(127,127,127,.14));background:rgba(127,127,127,.018)}.pw-info-history-item:last-child{border-bottom:0}.pw-info-history-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:6px;font-size:10px}.pw-info-history-meta strong{font-size:11px}.pw-info-history-meta time{opacity:.55}.pw-info-history-meta span{display:inline-flex;padding:3px 6px;border-radius:999px;background:rgba(94,160,255,.09);border:1px solid rgba(94,160,255,.18);font-size:9px;font-weight:700;opacity:.82}.pw-info-history-note{font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.pw-detail-section>.pw-info-history{border-top:1px solid var(--line,rgba(127,127,127,.14))}

.pw-file-origin{display:inline-flex;width:max-content;align-items:center;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:850;line-height:1;border:1px solid rgba(94,160,255,.24);background:rgba(94,160,255,.08)}.pw-file-origin.is-vendor{border-color:rgba(234,179,8,.34);background:rgba(234,179,8,.10)}.pw-file-origin.is-sales{border-color:rgba(59,130,246,.30);background:rgba(59,130,246,.09)}
/* Stage 98: formularz Oferty + nawigacja pozioma workflow */
.pw-stage-header{cursor:pointer}
.pw-stage-header:has(.pw-stage-add){cursor:default}
.pw-form-modal{width:min(860px,94vw);max-height:min(820px,90vh)}
.pw-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:18px;overflow:auto;min-height:0}
.pw-form-grid label{display:grid;gap:7px;align-content:start;min-width:0}
.pw-form-grid label>span{font-size:11px;font-weight:800;letter-spacing:.025em;opacity:.76}
.pw-form-grid input[type="text"],.pw-form-grid input[type="email"],.pw-form-grid input[type="date"],.pw-form-grid input[type="datetime-local"],.pw-form-grid select,.pw-form-grid textarea,.pw-form-grid input[type="file"]{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line,rgba(127,127,127,.22));border-radius:10px;background:rgba(127,127,127,.035);color:inherit;padding:10px 11px;box-shadow:none}
.pw-form-grid input[type="text"],.pw-form-grid input[type="email"],.pw-form-grid input[type="date"],.pw-form-grid input[type="datetime-local"],.pw-form-grid select{min-height:42px}
.pw-date-picker{cursor:pointer;color-scheme:light dark;-webkit-appearance:auto;appearance:auto;padding-right:42px!important}.pw-date-picker::-webkit-calendar-picker-indicator{cursor:pointer;opacity:1!important;display:block!important}.pw-date-input-wrap{position:relative;width:100%}.pw-date-input-wrap .pw-date-picker{width:100%}.pw-date-picker-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;min-width:30px;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:15px;line-height:1;z-index:2}.pw-date-picker-btn:hover{background:rgba(127,127,127,.12)!important}
.pw-form-grid textarea{resize:vertical;min-height:112px;line-height:1.45}
.pw-form-grid input[type="file"]{min-height:46px;padding:7px 9px}
.pw-form-grid small{font-size:10px;line-height:1.4;opacity:.55}
.pw-form-wide{grid-column:1/-1}
.pw-form-modal .pw-modal-actions{flex:0 0 auto}
@media(max-width:760px){.pw-form-grid{grid-template-columns:1fr}.pw-form-wide{grid-column:auto}.pw-form-modal{width:min(96vw,860px)}}



/* Stage 99 */
.pw-check-list{display:grid;gap:8px}.pw-check-list>span{font-weight:700}.pw-check-list label{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fbff}.pw-check-list input{width:auto}.pw-linked-info{padding:8px 10px;margin-top:6px;border-radius:10px;background:#f5f8fc;border:1px solid #e0e6ee}

/* Stage 111 — pusty projekt */
.pw-empty-project-modal{width:min(900px,96vw)}
.pw-empty-project-body{overflow:auto;min-height:0}
.pw-empty-project-mode{display:flex;gap:8px;padding:16px 18px 0;flex-wrap:wrap}
.pw-empty-project-mode button{min-width:190px}
.pw-empty-project-grid{padding-top:14px}
.pw-empty-project-client-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;padding:12px 14px;border:1px solid var(--line,rgba(127,127,127,.18));border-radius:10px;background:rgba(127,127,127,.03);font-size:11px;line-height:1.45}
.pw-empty-project-client-preview strong{grid-column:1/-1;font-size:13px}
.pw-empty-project-section{padding-top:4px;font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;opacity:.62;border-top:1px solid var(--line,rgba(127,127,127,.16));padding-top:14px}
.pw-empty-project-note{padding:11px 13px;border-radius:10px;background:rgba(94,160,255,.07);border:1px solid rgba(94,160,255,.18);font-size:11px;line-height:1.45;opacity:.82}
@media(max-width:760px){.pw-empty-project-mode button{flex:1 1 100%;min-width:0}.pw-empty-project-client-preview{grid-template-columns:1fr}}

/* Stage 112: jednolita stopka kafelka Edytuj + Pliki */
.pw-node-footer{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line,rgba(127,127,127,.14))}
.pw-node-footer .pw-files-mini,.pw-node-edit{width:100%;min-height:32px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:rgba(127,127,127,.035)!important;color:inherit!important;padding:8px 9px!important;font-size:10px!important;font-weight:800!important;text-align:center!important;cursor:pointer;opacity:.78}
.pw-node-footer .pw-files-mini{border-top:0!important;border-left:1px solid var(--line,rgba(127,127,127,.14))!important}
.pw-node-edit:hover,.pw-node-footer .pw-files-mini:hover{opacity:1;background:rgba(94,160,255,.09)!important}
.pw-node-footer .pw-files-mini:only-child{grid-column:1/-1;border-left:0!important}

/* KBH_STAGE_113_PROJECT_CONFIGURATOR_WINDOWS_V1 */
.pw-config-state{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.pw-config-state>span{font-size:10px;line-height:1;padding:5px 7px;border:1px solid #d7dee8;border-radius:999px;background:#f7f9fc;color:#687385;font-weight:700}.pw-config-state>span.is-done{background:#eefbf2;border-color:#b9e4c4;color:#28733b}

/* KBH_STAGE_121_OFFER_VALIDITY_NATIVE_ICON_V1 */
.pw-offer-form input.pw-date-picker[type="date"]{
  -webkit-appearance:auto!important;
  appearance:auto!important;
  color-scheme:light;
  padding-right:12px!important;
}
.pw-offer-form input.pw-date-picker[type="date"]::-webkit-calendar-picker-indicator{
  -webkit-appearance:auto!important;
  appearance:auto!important;
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  cursor:pointer!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
}

/* KBH_STAGE_131_PROJECT_FILES_DEDUP_TIMELINE_V1 */
.pw-s131-sub{font-size:11px;opacity:.6;margin-top:4px}
.pw-s131-day-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:rgba(94,160,255,.06)}
.pw-s131-day.is-vendor .pw-s131-day-head{background:rgba(234,179,8,.08)}
.pw-s131-day-head strong{font-size:12px}
.pw-s131-count{margin-left:auto;font-size:10px;opacity:.55}
.pw-s131-row{grid-template-columns:46px minmax(240px,1fr) 150px auto}

/* KBH_STAGE_134_OFFER_BEFORE_ACCEPT_PROJECT_ACCESS_V1 */
.pw-s134-readonly{margin-top:10px;padding:9px 12px;border-radius:10px;border:1px solid rgba(234,179,8,.45);background:rgba(234,179,8,.10);font-size:12px;line-height:1.45}

/* KBH_STAGE_136_PROJECT_CHAT_V1 */
.pw-chat-slot{min-height:430px;margin-top:18px}
.pw-chat{display:flex;flex-direction:column;height:420px;padding:0!important;overflow:hidden;border-radius:16px}
.pw-chat-head{display:flex!important;align-items:center;gap:10px;width:100%;padding:12px 16px!important;border:0!important;border-bottom:1px solid var(--line,rgba(127,127,127,.16))!important;border-radius:0!important;background:linear-gradient(180deg,rgba(94,160,255,.10),rgba(127,127,127,.02))!important;color:inherit!important;box-shadow:none!important;font-weight:800!important;font-size:14px!important;text-align:left;cursor:default}
.pw-chat-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(94,160,255,.16);font-size:11px}
.pw-chat-chevron{margin-left:auto;display:none;transition:transform .15s ease}
.pw-chat-body{display:flex;flex-direction:column;flex:1;min-height:0}
.pw-chat-list{flex:1;overflow:auto;padding:12px 14px;display:grid;gap:10px;align-content:start}
.pw-chat-empty{font-size:12px;opacity:.55;padding:18px;text-align:center}
.pw-chat-msg{display:grid;gap:3px;max-width:78%;justify-self:start}
.pw-chat-msg.is-mine{justify-self:end}
.pw-chat-meta{display:flex;gap:8px;font-size:10px;opacity:.65;align-items:baseline}
.pw-chat-msg.is-mine .pw-chat-meta{justify-content:flex-end}
.pw-chat-bubble{padding:9px 12px;border-radius:14px 14px 14px 4px;background:rgba(127,127,127,.08);border:1px solid var(--line,rgba(127,127,127,.16));font-size:13px;line-height:1.45;word-break:break-word}
.pw-chat-msg.is-vendor .pw-chat-bubble{background:rgba(234,179,8,.10);border-color:rgba(234,179,8,.30)}
.pw-chat-msg.is-mine .pw-chat-bubble{border-radius:14px 14px 4px 14px;background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.30)}
.pw-chat-att{display:block;margin-top:6px;font-size:12px}
.pw-chat-area{font-size:10px;opacity:.55}
.pw-chat-msg.is-mine .pw-chat-area{text-align:right}
.pw-chat-form{display:grid;grid-template-columns:210px 1fr auto;gap:8px;align-items:end;padding:10px 12px;border-top:1px solid var(--line,rgba(127,127,127,.16))}
.pw-chat-form[hidden]{display:none}
.pw-chat-area-pick{display:grid;gap:3px;font-size:10px;opacity:.85}
.pw-chat-area-pick select{min-width:0}
.pw-chat-form textarea{resize:vertical;min-height:40px;max-height:160px;font:inherit}
.pw-chat-ro{padding:10px 14px;font-size:12px;border-top:1px solid var(--line,rgba(127,127,127,.16));background:rgba(234,179,8,.08)}
body > .pw-chat.is-floating{position:fixed!important;left:auto!important;top:auto!important;right:22px!important;bottom:22px!important;margin:0!important;z-index:9000!important;width:min(460px,calc(100vw - 32px))!important;height:auto;max-height:calc(100vh - 120px);box-shadow:0 18px 50px rgba(15,23,42,.28)!important}
.pw-chat.is-floating .pw-chat-head{cursor:pointer;border-bottom:0!important}
.pw-chat.is-floating .pw-chat-chevron{display:inline-block}
.pw-chat.is-floating:not(.is-open) .pw-chat-body{display:none}
body > .pw-chat.is-floating:not(.is-open){width:auto!important;min-width:280px}
body > .pw-chat.is-floating.is-open{height:min(560px,calc(100vh - 120px))!important}
.pw-chat.is-floating.is-open .pw-chat-chevron{transform:rotate(180deg)}
.pw-chat.is-floating.is-open .pw-chat-head{border-bottom:1px solid var(--line,rgba(127,127,127,.16))!important}
.pw-chat.is-floating .pw-chat-form{grid-template-columns:1fr auto}
.pw-chat.is-floating .pw-chat-area-pick{grid-column:1 / -1}
@media(max-width:900px){.pw-chat-form{grid-template-columns:1fr auto}.pw-chat-area-pick{grid-column:1 / -1}.pw-chat-msg{max-width:92%}}

/* KBH_STAGE_139_PROJECT_NAME_SORT_OPEN_WINDOWS_V1: sortowanie listy Projektów */
.pw-table th .pw-sort.pw-sort{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:inherit;text-transform:inherit;letter-spacing:inherit;color:inherit;padding:2px 0;border-radius:6px;white-space:nowrap}
.pw-table th .pw-sort.pw-sort:hover{opacity:1;text-decoration:underline}
.pw-table th .pw-sort.pw-sort:focus-visible{outline:2px solid rgba(94,160,255,.6);outline-offset:2px}
.pw-table th .pw-sort-arrow{font-size:10px;opacity:.45}
.pw-table th .pw-sort.is-active .pw-sort-arrow{opacity:1;color:#b88a00}
.pw-table th[aria-sort="ascending"],.pw-table th[aria-sort="descending"]{opacity:.9}

/* KBH_STAGE_140_PROJECT_QUANTITY_V1: opis + ilość sztuk w jednym wierszu */
.kbh-s140-desc-qty{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:14px 16px;align-items:start;min-width:0}
.kbh-s140-desc-qty>label{display:grid;gap:7px;align-content:start;min-width:0}
.kbh-s140-desc-qty input[type=number]{width:100%;min-height:40px;box-sizing:border-box}
@media (max-width:640px){.kbh-s140-desc-qty{grid-template-columns:1fr}}
