/* PSN CMS safe, responsive article tables */
.psn-article-body .psn-content-table,.psn-article-body table,.ql-editor .psn-content-table{border-collapse:collapse;width:100%;min-width:460px;font-size:.95em;margin:16px 0;background:#fff}
.psn-article-body th,.psn-article-body td,.ql-editor .psn-content-table th,.ql-editor .psn-content-table td{border:1px solid #cbd5e1;padding:10px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.psn-article-body th,.ql-editor .psn-content-table th{background:#eef2f6;font-weight:700}
.psn-article-body .psn-content-table,.psn-article-body table{display:block;overflow-x:auto;max-width:100%}
.ql-editor .psn-table-embed{overflow-x:auto;margin:16px 0;cursor:pointer;border:1px solid transparent}
.ql-editor .psn-table-embed:hover{border-color:#d97706}
.psn-table-modal{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.55);display:flex;justify-content:center;align-items:center;padding:15px}
.psn-table-dialog{background:white;color:#172b43;border-radius:12px;padding:20px;max-width:900px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 12px 50px #0003}
.psn-table-dialog h3{margin:0 0 8px}.psn-table-dialog p{margin:0 0 14px}
.psn-table-grid{overflow:auto;max-height:50vh}.psn-table-grid table{border-collapse:collapse}.psn-table-grid td{border:1px solid #ddd;padding:3px}
.psn-table-grid input{min-width:130px;width:150px;border:1px solid #cbd5e1;border-radius:4px;padding:8px}
.psn-table-controls{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.psn-table-controls button{border:1px solid #cbd5e1;background:#f7f9fc;color:#18283a;border-radius:7px;padding:9px 13px;cursor:pointer}
.psn-table-controls .psn-table-primary{background:#ef7900;color:#111;border-color:#ef7900;font-weight:700}
.psn-media-tools .psn-media-button{width:auto!important;padding:0 9px!important}
/* Explicit table dimensions and accessible responsive controls */
.psn-table-dimensions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:12px 0}
.psn-table-dimensions label{display:flex;align-items:center;gap:8px;font-weight:600}
.psn-table-dimensions input{width:80px;max-width:100%;border:1px solid #94a3b8;border-radius:7px;padding:8px;font:inherit;color:#172b43;background:white}
.psn-table-error{color:#b42318;font-weight:600;min-height:1em;margin:0!important}
.psn-table-grid{max-width:100%;overflow:auto}
.psn-table-grid input{box-sizing:border-box}

.psn-table-status{font-weight:700;color:#344054;margin:4px 0 10px!important}
.psn-table-grid table{width:max-content;min-width:100%;table-layout:auto}
.psn-table-grid td{min-width:155px}
.psn-table-grid input{width:100%;min-width:145px}

/* PSN_TABLE_ARCH_V2: Quill-safe atomic table preview, not an editable HTML table. */
.ql-editor .psn-table-preview{display:grid;width:max-content;min-width:100%;overflow:hidden;border:1px solid #cbd5e1;background:#fff}
.ql-editor .psn-table-preview > div{box-sizing:border-box;min-height:36px;min-width:140px;padding:9px 12px;border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;overflow-wrap:anywhere;white-space:pre-wrap}
.ql-editor .psn-table-preview-header{font-weight:700;background:#eef2f6}
.ql-editor .psn-table-embed{overflow-x:auto;max-width:100%}

/* PSN_TABLE_VISUAL_V23_BEGIN - editor appearance only, no Quill state changes */
.ql-editor .psn-table-embed{display:block;max-width:100%;margin:1.4rem 0;border:1px solid #d8e1ea;border-radius:9px;background:#f8fafc;padding:12px 14px;line-height:1.5;box-sizing:border-box;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
.ql-editor .psn-table-embed:hover{border-color:#e87500;background:#fff9f2}
.ql-editor .psn-table-embed:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.psn-table-dialog{max-width:min(1100px,calc(100vw - 32px));padding:clamp(16px,2.5vw,28px);border-radius:16px}
.psn-table-grid{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;border:1px solid #dde5ee;border-radius:8px}
.psn-table-grid table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.psn-table-grid td{padding:5px;min-width:165px;border-color:#dde5ee;background:#fff}
.psn-table-grid input{min-width:145px;min-height:42px;border-radius:6px}
.psn-table-grid input:focus-visible{outline:2px solid #2563eb;outline-offset:0}
.psn-table-controls button{min-height:42px;white-space:nowrap}
@media(max-width:640px){.psn-table-modal{padding:8px}.psn-table-dialog{max-width:100%;max-height:95dvh;padding:14px}.psn-table-grid td{min-width:135px}.psn-table-grid input{min-width:125px}}
/* PSN_TABLE_VISUAL_V23_END */

/* PSN_TABLE_VISUAL_V24_BEGIN
   Restore native table layout and eliminate the apparent empty fifth column.
   Applied to both the public stylesheet and CMS table stylesheet.
*/
.psn-article-body,
.article-body { min-width: 0; }
.psn-article-body table,
.psn-article-body .psn-content-table,
.article-body table,
.article-body .psn-content-table {
  display: table !important;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  overflow: visible;
  margin: 1.25rem 0;
}
.psn-article-body table th,
.psn-article-body table td,
.article-body table th,
.article-body table td {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: top;
}
/* Keep the table accessible on smaller screens without drawing an extra border. */
@media (max-width: 700px) {
  .psn-article-body, .article-body { overflow-x: auto; overscroll-behavior-x: contain; }
  .psn-article-body table,
  .psn-article-body .psn-content-table,
  .article-body table,
  .article-body .psn-content-table {
    width: max(100%, 520px) !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}
/* PSN_TABLE_VISUAL_V24_END */
