/* ToolsForge Generator Stołów — pasek projektu zgodny z Konfiguratorem Korpusów */
#tf-plugin-wrapper .tf-table-project-bar{
  position:sticky!important;top:0!important;z-index:20!important;
  display:grid!important;grid-template-columns:auto minmax(320px,1fr) auto!important;
  gap:12px!important;align-items:end!important;
  width:var(--tf-shell-width,90vw)!important;max-width:none!important;
  margin:18px auto 18px!important;padding:10px 12px!important;
  background:#fff!important;border:1px solid #d9dee5!important;border-top:4px solid #b23434!important;
  box-shadow:0 8px 24px rgba(47,55,66,.14)!important;
  box-sizing:border-box!important;font-family:Arial,Helvetica,sans-serif!important;
}
.tf-table-project-brand{display:flex;align-items:center;gap:10px;align-self:center;min-width:185px;line-height:1.1;color:#2f4a68}
.tf-table-project-logo{display:block;width:40px;height:40px;flex:0 0 40px;overflow:hidden;background:#102b4d;border:1px solid #243b59}
.tf-table-project-logo img{display:block;width:100%;height:100%;object-fit:cover}
.tf-table-project-brand-copy{display:flex;flex-direction:column}
.tf-table-project-brand strong{font-size:13px;letter-spacing:.06em;text-transform:uppercase}.tf-table-project-brand-copy span{margin-top:4px;font-size:10px;color:#7a838d;letter-spacing:.01em;text-transform:none}
.tf-table-project-name label{display:block!important;margin:0 0 5px!important;color:#8a939d!important;font-size:9px!important;line-height:1!important;font-weight:800!important;letter-spacing:.09em!important;text-transform:uppercase!important}
#tf-plugin-wrapper .tf-table-project-name input{width:100%!important;height:42px!important;min-height:42px!important;margin:0!important;padding:7px 12px!important;background:#f7f8fa!important;border:1px solid #d9dee5!important;border-radius:0!important;color:#2f3742!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important}
.tf-table-project-actions{display:grid;grid-auto-flow:column;grid-auto-columns:160px;gap:8px;align-items:stretch}
#tf-plugin-wrapper .tf-table-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;width:100%!important;margin:0!important;padding:10px 14px!important;border-radius:0!important;font-size:11px!important;line-height:1.15!important;font-weight:900!important;letter-spacing:.025em!important;text-transform:uppercase!important;white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important}
#tf-plugin-wrapper .tf-table-btn-blue-outline{background:#fff!important;border:2px solid #2f4a68!important;color:#2f4a68!important}
#tf-plugin-wrapper .tf-table-btn-blue-outline:hover,
#tf-plugin-wrapper .tf-table-btn-blue-outline:focus{background:#f2f5f8!important;border-color:#2f4a68!important;color:#2f4a68!important}
#tf-plugin-wrapper .tf-table-btn-red-outline{background:#fff!important;border:2px solid #b23434!important;color:#b23434!important}
#tf-plugin-wrapper .tf-table-btn-red-outline:hover,
#tf-plugin-wrapper .tf-table-btn-red-outline:focus{background:#fff5f5!important;border-color:#b23434!important;color:#b23434!important}
#tf-plugin-wrapper .tf-table-btn-red{background:#b23434!important;border:2px solid #b23434!important;color:#fff!important}
#tf-plugin-wrapper .tf-table-btn-red:hover,
#tf-plugin-wrapper .tf-table-btn-red:focus{background:#9e2c2c!important;border-color:#9e2c2c!important;color:#fff!important}
#tf-plugin-wrapper .tf-table-btn:disabled{opacity:.55!important;cursor:wait!important}
.tf-table-project-status{grid-column:1/-1;padding:7px 10px;background:#f7f8fa;border:1px solid #e3e6ea;color:#5f6874;font-size:10.5px;line-height:1.35}
.tf-table-project-status.is-ok{color:#24563d;border-left:4px solid #2f6f4e}.tf-table-project-status.is-error{color:#8d2323;border-left:4px solid #b23434}.tf-table-project-status.is-dirty{color:#6d4b13;border-left:4px solid #d6922e}

.tf-table-modal-backdrop{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(20,28,37,.72);box-sizing:border-box}
.tf-table-modal{position:relative;width:min(600px,100%);background:#fff;border:1px solid #dfe4ea;border-top:5px solid #b23434;box-shadow:0 24px 70px rgba(0,0,0,.34);font-family:Arial,Helvetica,sans-serif}
.tf-table-modal-head{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:72px;padding:18px 22px;border-bottom:1px solid #e3e6ea;box-sizing:border-box}
.tf-table-modal-head h3{margin:0!important;color:#2f4a68!important;font-size:23px!important;line-height:1.18!important;font-weight:800!important;text-transform:none!important;letter-spacing:-.015em!important}
.tf-table-modal-close{position:relative;flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;border:0!important;border-radius:0!important;background:#b23434!important;color:#fff!important;cursor:pointer;box-shadow:none!important}
.tf-table-modal-close:hover,.tf-table-modal-close:focus{background:#9e2c2c!important}
.tf-table-modal-close span::before,.tf-table-modal-close span::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;background:#fff;transform-origin:center}
.tf-table-modal-close span::before{transform:translate(-50%,-50%) rotate(45deg)}
.tf-table-modal-close span::after{transform:translate(-50%,-50%) rotate(-45deg)}
.tf-table-modal-body{padding:20px 22px;color:#2f3742;font-size:14px;line-height:1.6}
.tf-table-modal-body p{margin:0 0 10px}.tf-table-modal-body p:last-child{margin-bottom:0}
.tf-table-modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;padding:14px 22px 18px;background:#f7f8fa;border-top:1px solid #e3e6ea}
.tf-table-modal-action{display:inline-flex;align-items:center;justify-content:center;min-width:150px;min-height:44px;padding:10px 15px;border:2px solid #2f4a68;background:#2f4a68;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:900;letter-spacing:.025em;text-transform:uppercase;cursor:pointer;box-sizing:border-box;border-radius:0!important;box-shadow:none!important}
.tf-table-modal-action:hover,.tf-table-modal-action:focus{background:#263e58;border-color:#263e58;color:#fff!important}
.tf-table-modal-action.is-primary{background:#b23434;border-color:#b23434}
.tf-table-modal-action.is-primary:hover,.tf-table-modal-action.is-primary:focus{background:#9e2c2c;border-color:#9e2c2c}
.tf-table-modal-action.is-light{background:#fff;color:#2f4a68!important;border-color:#cfd6de}
.tf-table-modal--auth .tf-table-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px 22px 20px}
.tf-table-modal--auth .tf-table-modal-action{width:100%;min-width:0;min-height:52px;font-size:12px}
.tf-table-modal--auth .tf-table-modal-action:not(.is-primary){background:#2f4a68;border-color:#2f4a68;color:#fff!important}
.tf-table-modal--auth .tf-table-modal-action:not(.is-primary):hover,.tf-table-modal--auth .tf-table-modal-action:not(.is-primary):focus{background:#263e58;border-color:#263e58}


body.tf-table-generator-embedded header,
body.tf-table-generator-embedded .site-header,
body.tf-table-generator-embedded #masthead,
body.tf-table-generator-embedded footer,
body.tf-table-generator-embedded .site-footer,
body.tf-table-generator-embedded #colophon{display:none!important}
body.tf-table-generator-embedded #page,
body.tf-table-generator-embedded .site,
body.tf-table-generator-embedded .site-content,
body.tf-table-generator-embedded #content,
body.tf-table-generator-embedded main{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
body.tf-table-generator-embedded #tf-plugin-wrapper{margin-top:0!important;margin-bottom:0!important}

@media(max-width:1180px){#tf-plugin-wrapper .tf-table-project-bar{grid-template-columns:auto minmax(200px,1fr)!important}.tf-table-project-actions{grid-column:1/-1;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}#tf-plugin-wrapper .tf-table-btn{width:100%!important}}
@media(max-width:760px){#tf-plugin-wrapper .tf-table-project-bar{position:relative!important;top:auto!important;grid-template-columns:1fr!important;width:calc(100vw - 20px)!important;padding:10px!important;margin:10px auto 14px!important}.tf-table-project-brand{min-width:0}.tf-table-project-actions{grid-column:auto;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:8px!important;align-items:stretch!important}.tf-table-project-status{grid-column:auto}.tf-table-modal-actions{display:grid;grid-template-columns:1fr}.tf-table-modal-action{width:100%}.tf-table-modal--auth .tf-table-modal-actions{grid-template-columns:1fr}.tf-table-modal-head{padding:16px 18px}.tf-table-modal-body{padding:18px}.tf-table-modal--auth .tf-table-modal-actions{padding:14px 18px 18px}#tf-plugin-wrapper .tf-table-project-actions .tf-table-btn{min-width:0!important;padding:8px 6px!important;font-size:10px!important;line-height:1.15!important;white-space:normal!important;text-align:center!important}}

/* Integracja z Konfiguratorem Korpusów */
.tf-table-btn-cabinet{border-color:#2f4a68!important;background:#2f4a68!important;color:#fff!important}
.tf-table-btn-cabinet:hover{background:#243447!important;border-color:#243447!important}
.tf-table-btn-cabinet:disabled{opacity:.55!important;cursor:wait!important}
