/* FILE-O: paste a tender notice and build an editable draft document bundle. */
.tender-autofill{margin:22px 0 30px;padding:26px;
 border:1px solid #e2daf4;border-radius:18px;
 background:linear-gradient(130deg,#f8f5ff,#fff 64%);
 box-shadow:0 11px 32px #4c348911}
.tender-autofill-overline{display:inline-block;font-size:11px;font-weight:820;
 color:#7158c8;letter-spacing:.09em;margin-bottom:12px}
.tender-autofill-head h2{font-size:clamp(20px,2.7vw,29px);
 letter-spacing:-.5px;color:#342a54;margin:0 0 10px;line-height:1.28}
.tender-autofill-head p{font-size:13px;line-height:1.7;color:#736983;
 max-width:920px;margin:0 0 20px}
.tender-autofill-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:19px;align-items:stretch}
.tender-paste-input{background:#fff;border:1px solid #e8e1f3;border-radius:14px;
 padding:19px;min-width:0}
.tender-paste-input>label{display:block;font-size:13px;font-weight:800;color:#3f315e;margin-bottom:9px}
#tenderRawText{display:block;width:100%;resize:vertical;min-height:300px;max-height:780px;
 border:1px solid #d8cfee;border-radius:11px;padding:15px 16px;
 background:#fff;color:#302745;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
 outline-color:#876ad8}
#tenderRawText::placeholder{color:#9a90ae}
#tenderRawText:focus{border-color:#a58ce3;box-shadow:0 0 0 3px #8160dd16}
.tender-autofill-meta{display:flex;justify-content:space-between;gap:9px;
 color:#8c819c;font-size:10.5px;margin:9px 0 14px}
.tender-autofill-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tender-autofill-actions .ut-button{font-size:12.5px;padding:12px 15px}
.tender-autofill-actions .ut-secondary{font-size:12px;padding:11px 13px}
.tender-autofill-actions button:disabled,#tenderAutoDownloadEdited:disabled{cursor:wait;opacity:.56}
.tender-autofill-status{min-height:24px;margin:13px 0 0;line-height:1.56;
 font-size:12px;font-weight:750;color:#6753b5}
.tender-autofill-status.error{color:#ad334f}
.tender-autofill-privacy{color:#9890a5;font-size:10.5px;line-height:1.6;margin:8px 0 0}
.tender-paste-side{background:#fff;border-radius:14px;border:1px solid #e7dff2;padding:21px 19px;
 display:flex;flex-direction:column}
.tender-paste-side-top strong{display:block;font-size:16px;color:#372a5b}
.tender-paste-side-top span{display:block;font-size:11px;color:#877a97;margin-top:5px}
.tender-paste-side ul{list-style:none;margin:18px 0 15px;padding:0;display:grid;gap:12px}
.tender-paste-side li{display:flex;align-items:center;gap:11px;font-size:12px;
 color:#4c4265;line-height:1.5}
.tender-paste-side li span{flex:none;background:#f0ecfa;border:1px solid #e0d4f4;
 border-radius:9px;padding:5px 7px;color:#715dba;font-size:10px;font-weight:800}
.tender-paste-side>p{font-size:11px;line-height:1.6;color:#827990;margin:0}
.tender-paste-note{border-top:1px solid #ebe6f2;margin-top:auto;padding-top:15px;
 font-size:11px;line-height:1.62;color:#6b5b84}
.tender-autofill-preview{margin-top:21px;border:1px solid #dfd4f1;
 border-radius:13px;background:#fff;padding:22px}
.tender-autofill-preview[hidden]{display:none!important}
.tender-autofill-preview-header{display:flex;justify-content:space-between;gap:10px;
 flex-wrap:wrap;align-items:center;margin:0 0 19px}
.tender-autofill-preview-header h3{font-size:20px;color:#342955;margin:0 0 7px}
.tender-autofill-preview-header p{font-size:12px;color:#7c718d;margin:0}
.tender-found-count{border-radius:10px;background:#f0eafd;
 padding:8px 12px;color:#6c56b5;font-size:12px;font-weight:800}
.tender-extracted-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tender-extracted-field{display:grid;gap:6px;min-width:0;padding:11px;
 border:1px solid #ece7f5;border-radius:10px;background:#fcfbff}
.tender-extracted-title{font-size:11px;font-weight:790;color:#564771}
.tender-extracted-field input,.tender-extracted-field select{width:100%;min-width:0;
 padding:9px;border:1px solid #e0d8ec;border-radius:8px;background:#fff;
 color:#372e51;font-size:12px}
.tender-extracted-source{font-size:10px;color:#94869c;overflow:hidden;
 text-overflow:ellipsis;white-space:nowrap}
.tender-autofill-extras{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}
.tender-autofill-extras>div{padding:15px;border:1px solid #ede8f4;border-radius:11px;
 max-height:260px;overflow:auto}
.tender-autofill-extras strong{font-size:12px;color:#504169}
.tender-autofill-extras p{font-size:11px;line-height:1.55;color:#746a84;margin:10px 0 0;
 padding-left:10px;border-left:2px solid #d8cced}
#tenderAutoDownloadEdited{margin-top:4px;font-size:13px}
@media(max-width:930px){.tender-autofill-grid{grid-template-columns:1fr}
 .tender-paste-side{display:none}.tender-extracted-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.tender-autofill{padding:14px;margin:12px 0 24px}
 .tender-paste-input{padding:13px}
 #tenderRawText{min-height:290px}
 .tender-extracted-fields,.tender-autofill-extras{grid-template-columns:1fr}
 .tender-autofill-actions button{width:100%}
 .tender-autofill-preview{padding:14px}
}

.tender-file-upload-zone{border:1px dashed #bcb0e4;border-radius:13px;
 background:#faf8ff;padding:14px 16px;margin-bottom:13px}
.tender-file-upload-zone label{display:grid;gap:5px;cursor:pointer}
.tender-file-upload-zone label strong{font-size:13px;color:#44347c}
.tender-file-upload-zone label span{color:#847894;font-size:11px}
#tenderNoticeFile{display:block;font-size:12px;margin:12px 0 0;width:100%;color:#645975}
#tenderNoticeFile::file-selector-button{border:1px solid #d2c6ef;border-radius:9px;
 background:#eee9fc;color:#5b45ab;padding:8px 12px;margin-right:10px;cursor:pointer}
#tenderNoticeFileStatus{font-size:11px;color:#6b5a8e;line-height:1.5;margin:7px 0 0}
.tender-or{display:flex;justify-content:center;align-items:center;color:#9f94b2;
 font-size:11px;letter-spacing:.04em;margin:10px 0}
.tender-own-price{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0 6px}
.tender-own-price label{display:grid;gap:7px;align-content:start;
 font-size:12px;color:#473863;font-weight:760}
.tender-own-price label small{font-weight:400;font-size:10px;color:#8a809c}
.tender-own-price input,.tender-own-price select,
.tender-saved-profile select{border:1px solid #d9ceea;border-radius:10px;background:#fff;
 padding:11px 12px;color:#362a52;font-size:13px;min-width:0;width:100%}
.tender-price-hint{font-size:11px;color:#84798e;margin:6px 0 17px;line-height:1.6}
.tender-saved-profile{border:1px solid #ddd3f2;border-radius:12px;
 padding:13px;background:#f8f5fe;margin:13px 0 16px}
.tender-saved-profile[hidden]{display:none!important}
.tender-saved-profile label{display:block;font-size:12px;color:#554783;font-weight:820;margin-bottom:8px}
.tender-saved-profile a{font-size:11px;color:#6953b8}
.tender-saved-profile p{font-size:11px;color:#716789;line-height:1.6;margin:7px 0}
@media(max-width:650px){.tender-own-price{grid-template-columns:1fr}}

/* Universal multi-file tender analysis and editable offer matrix. */
.tender-analyze-btn{margin-top:10px;font-size:12px;padding:10px 15px}
.tender-file-upload-zone.tender-dragging{border-color:#6f4ed2;background:#eee7ff}
.tender-intake-report{margin:20px 0 22px;display:grid;gap:15px}
.tender-intake-report[hidden]{display:none!important}
.tender-intake-head{background:linear-gradient(112deg,#f5effe,#fff);
 border:1px solid #e3d9f4;padding:22px;border-radius:14px}
.tender-intake-eyebrow{display:block;color:#6855ac;
 font-size:10px;font-weight:840;letter-spacing:.1em;margin:0 0 9px}
.tender-intake-head h2{font-size:23px;color:#382a5f;margin:0 0 9px}
.tender-intake-muted{font-size:12px;line-height:1.6;color:#776e86;margin:7px 0}
.tender-intake-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:10px;margin-top:18px}
.tender-intake-stat{border:1px solid #e6dff3;background:#fff;
 border-radius:10px;display:grid;gap:3px;padding:14px;text-align:center}
.tender-intake-stat strong{font-size:23px;color:#5c43b7}
.tender-intake-stat span{font-size:10px;color:#796b8a;line-height:1.4}
.tender-intake-card{padding:20px;border:1px solid #e7e0f0;
 background:#fff;border-radius:13px}
.tender-intake-section-head h3{font-size:18px;margin:0 0 7px;color:#3a2c61}
.tender-intake-section-head p{font-size:12px;line-height:1.6;
 color:#7d718c;margin:0 0 14px}
.tender-intake-file-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.tender-intake-file{display:grid;gap:4px;border:1px solid #eee8f5;
 padding:11px 13px;border-radius:10px;min-width:0;background:#fcfbfe}
.tender-intake-file strong{color:#473b60;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.tender-intake-file span{font-size:11px;font-weight:750;color:#6c55b0}
.tender-intake-file small{font-size:10px;color:#8c7e9d}
.tender-intake-condition-tags{display:flex;gap:7px;flex-wrap:wrap}
.tender-intake-tag{background:#f1ecfc;color:#6953b3;
 font-size:11px;font-weight:760;padding:8px 10px;border-radius:8px}
.tender-intake-tag.important{background:#fff3e5;color:#966321}
.tender-intake-price{margin:16px 0 8px;font-size:14px;
 font-weight:810;color:#3a3057}
.tender-intake-conditions{display:grid;gap:7px;padding-left:18px;
 margin:14px 0;font-size:12px;color:#4f436a}
.tender-intake-conditions li strong{display:block;font-size:12px}
.tender-intake-conditions li small{display:block;margin-top:3px;
 color:#8d8199;font-size:11px}
.tender-intake-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tender-intake-stage{padding:13px;background:#fbfaff;border:1px solid #e7def2;border-radius:10px}
.tender-intake-stage>strong{font-size:13px;color:#4e3d84}
.tender-intake-stage ul,.tender-intake-alerts ul{padding-left:18px;margin:10px 0;
 color:#6e627d;font-size:12px;line-height:1.75}
.tender-intake-stage li{margin:5px 0}
.tender-intake-product{border:1px solid #ded5eb;border-radius:12px;margin:10px 0;
 background:#fcfbff;overflow:hidden}
.tender-intake-product>summary{cursor:pointer;display:flex;align-items:center;
 justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px}
.tender-intake-product>summary strong{font-size:13px;color:#44336b;line-height:1.5}
.tender-intake-product>summary span{font-size:11px;color:#847795}
.tender-intake-product[open]>summary{border-bottom:1px solid #e8e2f0}
.tender-intake-product-body{padding:14px 16px 20px}
.tender-intake-product-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tender-intake-product-inputs label{display:grid;gap:6px;font-size:11px;
 font-weight:720;color:#5b4a7b;min-width:0}
.tender-intake-product input{width:100%;min-width:0;border:1px solid #ded4ee;
 border-radius:8px;padding:9px 10px;font-size:12px;color:#382a5d;background:#fff}
.tender-intake-attributes{width:100%;border-collapse:collapse;margin-top:14px;font-size:11px;table-layout:fixed}
.tender-intake-attributes th,.tender-intake-attributes td{
 border:1px solid #e6dff0;padding:9px;text-align:left;vertical-align:top;
 overflow-wrap:anywhere;line-height:1.5}
.tender-intake-attributes th{background:#f2edfc;color:#554583;font-weight:820}
.tender-intake-attributes td:nth-child(1){width:24%;font-weight:770;color:#53476d}
.tender-intake-attributes td:nth-child(2){width:40%;color:#5f556e}
.tender-intake-alerts ul{margin:2px 0 12px}
.tender-intake-alerts li{margin-bottom:7px}
.tender-intake-warning{color:#a45359!important;font-size:11px;line-height:1.6}
@media(max-width:850px){
 .tender-intake-file-list,.tender-intake-stage-grid{grid-template-columns:1fr}
 .tender-intake-product-inputs{grid-template-columns:1fr}
}
@media(max-width:650px){
 .tender-intake-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tender-intake-head,.tender-intake-card{padding:14px}
 .tender-intake-head h2{font-size:19px}
 .tender-intake-attributes{display:block;overflow-x:auto;table-layout:auto}
 .tender-intake-attributes th,.tender-intake-attributes td{min-width:125px}
}

.tender-intake-national{border-left:3px solid #b08ada;background:#f8f4ff;
 padding:10px 12px;color:#5a4387;font-size:11px;font-weight:720;line-height:1.6}
