/* Scoped additions: reuse the existing ERP palette, spacing and controls. */
.gso-root{font:inherit;color:#202224;min-width:0}.gso-root *{box-sizing:border-box}.gso-section{padding:24px;background:#fff;border:1px solid #e3e5e8;border-radius:16px;margin:0 0 24px;min-width:0}.gso-heading{margin-bottom:20px}.gso-root h2{font-size:23px;line-height:1.3;margin:0 0 10px}.gso-root h3{font-size:18px;margin:20px 0 12px}.gso-root h4{margin:16px 0 8px}.gso-note{font-size:14px;color:#62676d;line-height:1.55;margin:10px 0;overflow-wrap:anywhere}.gso-error{color:#a52b2b;white-space:pre-wrap;overflow-wrap:anywhere}.gso-error:empty{display:none}.gso-root .gs-btn{font-size:14px;min-height:40px;margin:2px;white-space:normal}.gso-field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;margin:0 0 16px;min-width:0}.gso-root input:not([type=checkbox]),.gso-root select,.gso-root textarea{min-width:0;width:100%;border:1px solid #cdd1d6;border-radius:8px;padding:10px 12px;background:#fff;font:400 16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:#202224;min-height:44px}.gso-root textarea{resize:vertical}.gso-root input:focus-visible,.gso-root textarea:focus-visible,.gso-root button:focus-visible,.gso-root select:focus-visible,.gso-root a:focus-visible{outline:3px solid #6653c7;outline-offset:2px}.gso-root input[type=file]{padding:8px;max-width:100%}.gso-root input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;accent-color:#202224}.gso-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gso-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:16px 0}.gso-check{display:flex;gap:10px;align-items:center;font-size:15px;margin:10px 0}.gso-rights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;margin:20px 0}.gso-attachments{border:1px solid #dfe2e6;border-radius:12px;padding:18px;margin-top:24px}.gso-attachments legend{padding:0 8px;font-size:16px;font-weight:700}.gso-uploader{background:#f6f7f8;padding:16px;border:1px solid #e0e3e7;border-radius:12px;margin:0 0 16px}.gso-uploader summary,.gso-spoiler summary{cursor:pointer;font-weight:650;padding:8px 0}.gso-spoiler{margin:18px 0;padding:12px;border:1px solid #e0e3e7;border-radius:10px}.gso-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:18px}.gso-file{min-width:0;border:1px solid #dfe3e7;border-radius:12px;overflow:hidden;background:#fff}.gso-old{border-style:dashed;background:#f7f7f7}.gso-thumb{border:0;background:#eef0f2;width:100%;height:180px;display:grid;place-items:center;cursor:pointer;color:#42464b;font:700 22px system-ui}.gso-thumb img{width:100%;height:180px;object-fit:contain}.gso-file-body{padding:14px}.gso-file small,.gso-root td small{display:block;font-size:13px;color:#656a70;margin-top:6px}.gso-file-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:10px}.gso-wrap{overflow-wrap:anywhere}.gso-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.gso-facts{display:grid;grid-template-columns:minmax(130px,230px) minmax(0,1fr);gap:14px 20px;margin:20px 0}.gso-facts dt{color:#656a70;font-size:14px;overflow-wrap:anywhere}.gso-facts dd{margin:0;min-width:0}.gso-value{white-space:pre-wrap;font:14px/1.5 system-ui;margin:0;overflow-wrap:anywhere}.gso-param{display:grid;grid-template-columns:1fr 2fr auto;gap:10px;align-items:start;margin:12px 0}.gso-table-wrap{overflow:auto;max-width:100%;border:1px solid #e0e3e7;border-radius:9px;margin:12px 0}.gso-root .gs-table th{white-space:normal;font-size:13px}.gso-root .gs-table td{white-space:pre-wrap;vertical-align:top;font-size:14px}.gso-spec-table{min-width:580px}.gso-spec-block{margin-top:24px;padding-top:4px}.gso-editor-table{min-width:850px}.gso-editor-table input{min-width:85px;padding:8px}.gso-editor-table textarea{min-width:190px;padding:8px;min-height:82px}.gso-editor-table td{padding:6px}.gso-overlay{position:fixed;inset:0;z-index:100100;background:#15171ba6;display:flex;align-items:center;justify-content:center;padding:24px}.gso-dialog{background:#fff;border-radius:16px;width:min(720px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;box-shadow:0 20px 80px #0004;overflow:hidden}.gso-wide{width:min(1350px,100%)}.gso-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e1e3e6;padding:16px 22px}.gso-dialog-head h2{font-size:21px;margin:0;overflow-wrap:anywhere}.gso-dialog-body{padding:22px;overflow:auto;min-height:0}.gso-dialog video,.gso-large-image{max-width:100%;max-height:70vh;display:block;margin:auto}.gso-dialog video{width:100%}.gso-chat{border:1px solid #e0e3e7;background:#f6f7f9;border-radius:12px;max-height:55vh;min-height:180px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.gso-chat-message{background:#fff;border:1px solid #e0e3e7;border-radius:12px;padding:12px 16px;max-width:88%;align-self:flex-start;min-width:180px}.gso-chat-message.own{align-self:flex-end;background:#fffbe0;border-color:#e7dfb4}.gso-chat-message header{display:flex;gap:20px;flex-wrap:wrap;font-size:14px}.gso-chat-message time{font-size:12px;color:#686d73}.gso-chat-message p{margin:8px 0 2px;font-size:16px}.gso-chat-form{margin-top:20px}.gso-conversation{display:flex;align-items:center;justify-content:space-between;gap:20px;color:inherit;text-decoration:none;padding:20px 0;border-bottom:1px solid #e0e3e7}.gso-conversation p{color:#656a70;font-size:14px;margin:8px 0 0;overflow-wrap:anywhere}.gso-unread{background:#ffdf00;border-radius:30px;font-weight:700;padding:5px 12px}.gso-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gso-milestone{background:#fff;border:1px solid #dbe0e5;border-radius:12px;text-align:left;padding:18px;cursor:pointer;color:inherit;font:inherit}.gso-milestone p{font-size:14px;line-height:1.5;color:#656a70}.gso-milestone strong{font-size:14px}.gso-milestone.selected{outline:2px solid #202224;background:#fffcdf}.gso-stage-state{font-size:12px;background:#f4ebeb;color:#7a4747;border-radius:20px;padding:5px 8px;display:inline-block}.gso-stage-state.ready{background:#e8f3e8;color:#315e38}.gso-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.gso-totals article{border:1px solid #e0e3e7;border-radius:12px;padding:18px}.gso-totals strong{font-size:24px;display:block;margin-top:8px}.gso-invoice{padding:15px 0;border-bottom:1px solid #e0e3e7}.gso-root [hidden]{display:none!important}
@media(max-width:800px){.gso-section{padding:18px}.gso-grid,.gso-rights,.gso-totals{grid-template-columns:1fr}.gso-milestones{grid-template-columns:repeat(2,minmax(0,1fr))}.gso-overlay{padding:8px}.gso-dialog{max-height:calc(100dvh - 16px)}.gso-dialog-body{padding:16px}.gso-dialog-head{padding:12px 16px}.gso-facts{grid-template-columns:1fr;gap:6px}.gso-facts dd{margin-bottom:12px}.gso-param{grid-template-columns:1fr}.gso-chat-message{max-width:96%}.gso-chat-message header{gap:5px;flex-direction:column}}@media(max-width:480px){.gso-milestones{grid-template-columns:1fr}.gso-gallery{grid-template-columns:1fr}.gso-dialog-head h2{font-size:18px}}
@media print{.gso-overlay{display:none!important}.gs-print-sheet .gso-table-wrap{overflow:visible;border:0}.gs-print-sheet .gso-spec-table{min-width:0;width:100%}.gs-print-sheet .gso-spec-table td,.gs-print-sheet .gso-spec-table th{white-space:normal;font-size:9pt;padding:6px;border:1px solid #999}.gs-print-sheet .gso-spec-block{break-inside:auto}.gs-print-sheet tr{break-inside:avoid}.gs-print-sheet thead{display:table-header-group}}

/* Internal conversations reuse the operational controls. */
.gso-chat-kind{display:block;font-size:12px;color:#6b7076;margin-bottom:6px}.gso-chat-quote{margin:0 0 20px;padding:12px 16px;border-left:3px solid #d6b84b;background:#fffbea;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}.gso-chat-message .gs-btn{margin-top:12px;font-size:13px;min-height:34px}.gso-root select[multiple]{min-height:160px}.gso-chat-message .gs-text-link{display:inline-block;margin-top:10px}
/* Attachment controls also appear inside the shared record modal outside .gso-root. */
.gso-attachments .gso-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0 0 16px;font:600 14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:#202224}.gso-attachments input:not([type=checkbox]),.gso-attachments select,.gso-attachments textarea{display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cdd1d6;border-radius:8px;background:#fff;color:#202224;font:400 16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}.gso-attachments textarea{min-height:96px;resize:vertical}.gso-attachments input:focus-visible,.gso-attachments select:focus-visible,.gso-attachments textarea:focus-visible{outline:3px solid #6653c7;outline-offset:2px}

/* Keep real column widths; the table scrolls inside the page or modal. */
.gso-spec-scroll{width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-color:#737b88 #edf0f4;scrollbar-width:auto;outline-offset:3px;background:linear-gradient(90deg,#fff 30%,#fff0),linear-gradient(270deg,#fff 30%,#fff0),linear-gradient(90deg,#00000014,#0000),linear-gradient(270deg,#00000014,#0000);background-position:left center,right center,left center,right center;background-size:36px 100%,36px 100%,14px 100%,14px 100%;background-repeat:no-repeat;background-attachment:local,local,scroll,scroll}
.gso-spec-scroll::-webkit-scrollbar{width:12px;height:12px}.gso-spec-scroll::-webkit-scrollbar-track{background:#edf0f4;border-radius:8px}.gso-spec-scroll::-webkit-scrollbar-thumb{background:#737b88;border:3px solid #edf0f4;border-radius:8px}.gso-spec-scroll::-webkit-scrollbar-thumb:hover{background:#4c5563}.gso-spec-scroll:focus-visible{outline:3px solid #b69d00}
.gso-root .gs-table.gso-spec-table,.gso-root .gs-table.gso-editor-table{table-layout:fixed;min-width:100%;max-width:none;border-collapse:collapse}.gso-root .gso-spec-table th,.gso-root .gso-editor-table th{font-size:14px;line-height:1.5;padding:13px 12px;overflow-wrap:normal;word-break:normal}.gso-root .gso-spec-table td{padding:13px 12px;overflow-wrap:anywhere}.gso-root .gso-editor-table td{padding:8px;overflow-wrap:anywhere}.gso-root .gso-editor-table input:not([type=checkbox]),.gso-root .gso-editor-table textarea{width:100%;min-width:0;max-width:100%;padding:9px 10px;font-size:16px}.gso-root .gso-editor-table textarea{min-height:72px}.gso-root .gso-editor-table input[readonly]{background:#f6f7f9;color:#3c4652}.gso-root .gso-editor-table th{position:sticky;top:0;z-index:2;background:#f7f8fa;box-shadow:0 1px 0 #dfe3e8}.gso-dialog .gso-spec-scroll{max-height:60dvh;min-height:90px}.gso-dialog-body{overflow-x:hidden}.gso-scroll-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#62676d;font-size:14px;margin:12px 0 4px}.gso-scroll-tools>div{display:flex;gap:4px;flex-shrink:0}.gso-root .gso-scroll-tools .gs-btn{min-width:44px;min-height:36px;font-size:20px;line-height:1;padding:5px 12px}.gso-catalog-toolbar label{display:flex;flex:1 1 280px;flex-direction:column;gap:7px;min-width:0;max-width:700px;font-size:14px}.gso-catalog-toolbar select{max-width:100%}
@media(max-width:480px){.gso-scroll-tools{align-items:flex-start}.gso-scroll-tools>span{max-width:190px}.gso-dialog .gso-spec-scroll{max-height:56dvh}.gso-catalog-toolbar label{flex-basis:100%}}
@media print{.gso-scroll-tools{display:none!important}.gs-print-sheet .gso-spec-scroll{overflow:visible;max-height:none;background:none}.gs-print-sheet .gso-spec-table{width:100%!important;min-width:0;table-layout:auto}.gs-print-sheet .gso-spec-table col{width:auto!important}}

/* Specification commands stay grouped and table exports stay with their data. */
.gso-spec-actions{
  display:grid;
  gap:12px;
  min-width:0;
  margin:0 0 26px;
  padding:14px;
  background:#f7f8f9;
  border:1px solid #e1e5e8;
  border-radius:14px;
}
.gso-spec-actions-head,.gso-spec-action-group{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:0;
}
.gso-spec-actions-head{justify-content:space-between;gap:12px}
.gso-spec-tools{border-top:1px solid #e1e5e8;padding-top:12px}
.gso-root .gso-spec-actions .gs-btn,.gso-root .gso-spec-table-head .gs-btn{
  max-width:100%;
  min-height:42px;
  margin:0;
  border-radius:9px;
  text-align:start;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.gso-root .gso-spec-actions .gs-btn:not(:disabled):hover,
.gso-root .gso-spec-table-head .gs-btn:not(:disabled):hover{
  transform:translateY(-1px);
  box-shadow:0 3px 9px #20222415;
}
.gso-spec-excel svg{flex:none}
.gso-spec-table-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;min-width:0}
.gso-root .gso-spec-table-head h3{margin:0;overflow-wrap:anywhere}
.gso-root [data-specs] .gso-spec-block{
  min-width:0;
  margin-top:14px;
  padding:clamp(12px,2vw,20px);
  border:1px solid #e1e5e8;
  border-radius:14px;
  box-shadow:0 1px 3px #20222409;
}
.gso-root [data-specs] .gso-spec-scroll{margin-bottom:0}
@media(max-width:640px){
  .gso-spec-actions{padding:12px}
  .gso-spec-actions-head{display:grid;grid-template-columns:minmax(0,1fr)}
  .gso-spec-action-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .gso-spec-downloads{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
  .gso-root .gso-spec-actions .gs-btn{min-width:0;padding-inline:8px;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
  .gso-root .gso-spec-actions .gs-btn,.gso-root .gso-spec-table-head .gs-btn{transition:none}
  .gso-root .gso-spec-actions .gs-btn:not(:disabled):hover,.gso-root .gso-spec-table-head .gs-btn:not(:disabled):hover{transform:none}
}
