.pc-workspace, .pc-editor, .pc-preview, .pc-case-detail { min-width: 0; }
.pc-search { display: flex; gap: 12px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.pc-search input { min-width: 240px; }
.pc-table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--product-line, #dbe5e3); border-radius: 6px; max-height: 65vh; }
.pc-table { width: 100%; min-width: 1050px; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.pc-table th, .pc-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dbe5e3; overflow-wrap: anywhere; }
.pc-table th { background: #edf3f2; position: sticky; top: 0; z-index: 2; }
.pc-table td:first-child, .pc-table th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; width: 190px; border-right: 1px solid #dbe5e3; }
.pc-table th:first-child { background: #edf3f2; z-index: 3; }
.pc-table small { display: block; margin-top: 5px; color: #6c7c78; font-size: 12px; }
.pc-table .text-button { display: block; padding: 6px 0; text-align: left; white-space: normal; }
.pc-types { margin-bottom: 18px; border-bottom: 1px solid #dbe5e3; padding-bottom: 12px; }
.pc-import-summary { margin-bottom:16px; padding:10px 12px; border-left:3px solid #0d5147; background:#f3f8f6; font-size:13px; }
.pc-import-summary summary, .pc-source-note summary { cursor:pointer; font-weight:600; }
.pc-source-note { margin-bottom:12px; font-size:13px; }
.pc-source-note pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:260px; overflow:auto; }
.pc-types summary { padding: 8px 0; cursor: pointer; font-weight: 600; }
.pc-types-list { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; align-items: center; }
.pc-types-list > span { padding: 4px 12px; border: 1px solid #dbe5e3; border-radius: 5px; font-size: 13px; }
.pc-editor form, .pc-editor fieldset { display: grid; gap: 14px; min-width: 0; }
.pc-editor fieldset { padding: 0; margin: 0; border: 0; }
.pc-editor input[type=checkbox] { width: 18px; min-height: 18px; vertical-align: middle; }
.pc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pc-editor .pc-specs { border: 1px solid #dbe5e3; padding: 12px; border-radius: 6px; }
.pc-spec-row { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 8px; border-bottom: 1px solid #edf3f2; padding: 8px 0; align-items: start; }
.pc-spec-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pc-spec-controls .field-label { font-size: 12px; }
.pc-editor [hidden] { display: none !important; }
.pc-spec-row input, .pc-spec-row select { min-width: 0; }
.pc-spec-row > label { display: flex; gap: 6px; align-items: center; }
.pc-preview pre, .pc-case-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 55vh; overflow-y: auto; border: 1px solid #dbe5e3; padding: 18px; font: 14px/1.8 sans-serif; }
.pc-signature { display: block; max-width: 260px; border: 1px solid #dbe5e3; }
.pc-case-detail .field-help { overflow-wrap: anywhere; }
.pc-preview .text-button, .pc-case-detail .text-button { white-space: normal; }
.pc-sign-page { background: #f5f8f7; color: #163c35; margin: 0; font: 15px/1.7 system-ui,sans-serif; }
.pc-sign-page [hidden] { display: none !important; }
.pc-sign-main { max-width: 880px; margin: 28px auto; padding: 24px; background: white; border: 1px solid #dbe5e3; border-radius: 8px; }
.pc-sign-main h1 { font-size: 23px; margin: 0 0 8px; }
.pc-sign-main h2 { font-size: 18px; }
.pc-sign-main p { overflow-wrap: anywhere; }
.pc-sign-main form { display: grid; gap: 14px; }
.pc-sign-main label:not(.pc-consent) { display: grid; gap: 6px; }
.pc-sign-main input:not([type=checkbox]) { min-height: 42px; border: 1px solid #b8cbc5; padding: 0 12px; font: inherit; min-width: 0; box-sizing: border-box; }
.pc-sign-main button { min-height: 44px; background: #e86420; color: white; border: 0; border-radius: 5px; padding: 8px 18px; font: inherit; cursor: pointer; }
.pc-sign-main button:disabled { opacity: .5; cursor: not-allowed; }
.pc-sign-main button.secondary { color: #163c35; background: #edf3f2; }
.pc-sign-main pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 55vh; overflow-y: auto; padding: 16px; border: 1px solid #dbe5e3; font: 15px/1.8 sans-serif; }
.pc-sign-main canvas { width: 100%; height: 180px; border: 1px solid #b8cbc5; background: #fff; touch-action: none; }
.pc-sign-main :focus-visible, .pc-workspace :focus-visible, .pc-editor :focus-visible { outline: 2px solid #117264; outline-offset: 3px; }
.pc-sign-error { color: #b42318; border-left: 3px solid #b42318; padding-left: 12px; }
@media(max-width:1100px) { .product-ui:has(.pc-workspace) .topbar { margin-inline: 0; } }
@media(max-width:650px) { .pc-form-grid { grid-template-columns: minmax(0,1fr); } .pc-spec-row { grid-template-columns: minmax(0,1fr); } .pc-spec-controls { grid-template-columns: repeat(2,minmax(0,1fr)); } .pc-search input { min-width: 0; width: 100%; } .pc-sign-main { margin: 12px; padding: 16px; } .pc-table td:first-child,.pc-table th:first-child { width: 150px; } }
