/* Bai Tender Web navigation, locked sections and specification dialog. */
.portal-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;align-self:stretch;gap:7px;background:#f2f7f3;padding:5px;margin-bottom:20px;border:1px solid #e2ece4;border-radius:15px}
.portal-tabs button{min-width:0;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#587161;font-weight:720;font-size:13px;white-space:nowrap;transition:background .15s,color .15s}
.portal-tabs button:hover{background:#e6f3e9;color:#0a7f42}
.portal-tabs button.active{background:#fff;color:#087b3f;box-shadow:0 3px 12px #163a2520}
.portal-tabs .portal-tab-icon{font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.portal-tabs .portal-tab-icon svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-tabs button.no-icon{gap:0}
.portal-private-screen{flex:1;display:flex;align-items:center;justify-content:center;padding:8px 0 10px}
.portal-access-card{position:relative;overflow:hidden;border:1px solid #d8e9df;background:radial-gradient(circle at 92% 4%,#e5f9ea 0,transparent 39%),#fff;border-radius:22px;padding:34px 36px;max-width:820px;width:100%;box-shadow:0 12px 35px #174c2a0d;text-align:center}
.portal-access-visual{display:flex;justify-content:center;align-items:center;gap:13px;margin-bottom:17px}
.portal-access-icon{display:grid;place-items:center;width:66px;height:66px;background:#e5f7eb;color:#09854a;font-size:37px;border:1px solid #c7e7d2;border-radius:20px}
.portal-access-chip{font-size:11px;background:#eff9f2;color:#258552;border-radius:99px;padding:6px 10px;font-weight:780}
.portal-access-card h2{font-size:clamp(23px,2.6vw,32px);letter-spacing:-.8px;line-height:1.18;margin:0 0 12px}
.portal-access-card p{max-width:590px;margin:0 auto 20px;color:#698072;font-size:14px;line-height:1.6}
.portal-access-features{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-bottom:24px}
.portal-access-features span{font-size:11px;font-weight:700;color:#217b47;background:#eff9f2;padding:8px 11px;border:1px solid #d8eee0;border-radius:99px}
.portal-access-login{min-width:260px}
.portal-access-card>small{display:block;color:#879c8b;font-size:11px;margin-top:15px}
.portal-favorites-panel{width:100%;align-self:flex-start;padding-top:10px}
.portal-favorites-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.portal-favorites-title h2{margin:4px 0 5px;font-size:27px;letter-spacing:-.7px}
.portal-favorites-title p{margin:0;color:#789083;font-size:13px}
.portal-favorites-empty{border:1px dashed #b9d6c2;border-radius:19px;padding:50px 24px;text-align:center;background:#fbfffc}
.portal-favorites-empty-icon{font-size:44px;line-height:1;color:#108749;background:#eaf7ee;width:70px;height:70px;display:grid;place-items:center;border-radius:24px;margin:0 auto 17px}
.portal-favorites-empty h3{font-size:20px;margin:0 0 8px}
.portal-favorites-empty p{font-size:13px;color:#718577;margin:0 auto 20px;max-width:440px}
#main .tw-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-top:1px solid #edf2ed;margin-top:11px;padding-top:11px}
#main .tw-card-spec-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#eaf7ee;color:#0b7f43;border:1px solid #b4dbc3;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:740;cursor:pointer;transition:background .15s}
#main .tw-card-spec-button:hover{background:#d9f0e1}
#main .tw-card-spec-button svg{width:17px;height:17px}
#main .tw-card-source{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e7dc;background:#fff;color:#467454;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700}
#main .tw-card-source:hover{background:#f3faf4}
#main .tw-result-bookmark{border:0;background:transparent;cursor:pointer}
#main .tw-result-bookmark.is-saved{color:#11854a;background:#e8f7ee}
#main .tw-result-bookmark.is-saved svg{fill:#c7efd8}
.tender-spec-dialog{width:min(800px,calc(100vw - 30px));max-height:min(88dvh,1000px);padding:0;margin:auto;border:1px solid #d8e8de;border-radius:22px;box-shadow:0 32px 90px #102d1c55;color:#1a2c22;background:#fff;overflow:hidden}
.tender-spec-dialog::backdrop{background:#0d2319b8;backdrop-filter:blur(3px)}
.tender-spec-frame{display:flex;flex-direction:column;max-height:min(88dvh,1000px)}
.tender-spec-dialog-top{display:flex;align-items:center;justify-content:space-between;padding:13px 22px;border-bottom:1px solid #e6eee8;background:#fdfefd}
.tender-spec-dialog-top strong{font-size:14px;letter-spacing:-.2px}
.tender-spec-close{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e0ebe4;border-radius:10px;background:#fff;color:#496653;font-size:22px;cursor:pointer}
.tender-spec-close:hover{background:#e8f7ed}
.tender-spec-content{overflow:auto;overscroll-behavior:contain;padding:24px 24px 26px}
.tender-spec-heading{display:flex;align-items:center;gap:14px}
.tender-spec-heading-icon{width:48px;height:48px;background:#e5f7eb;border-radius:14px;display:grid;place-items:center;color:#0e8244}
.tender-spec-heading-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.tender-spec-heading h2{margin:2px 0 0;font-size:26px;letter-spacing:-.6px;line-height:1.2}
.tender-spec-name{margin:19px 0 19px;font-size:18px;line-height:1.45;font-weight:800}
.tender-spec-facts{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px;border:1px solid #dce8e0;background:#f7fcf8;padding:16px;border-radius:15px;margin:0 0 24px}
.tender-spec-facts>div{min-width:0}
.tender-spec-facts dt{color:#789180;font-size:11px;font-weight:690;margin:0 0 4px}
.tender-spec-facts dd{font-weight:750;font-size:13px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.tender-spec-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.tender-spec-section-title h3{margin:0;font-size:18px}
.tender-spec-section-title>span{background:#eaf7ee;border-radius:99px;padding:6px 10px;font-size:11px;color:#19854a;font-weight:680}
.tender-spec-warning{padding:12px 14px;border-radius:12px;background:#fffaed;border:1px solid #f1e3bb;color:#8a6b2c;font-size:12px;line-height:1.5;margin-bottom:12px}
.tender-spec-lots{display:grid;gap:10px}
.tender-spec-lot{border:1px solid #dfebe2;border-radius:13px;padding:14px 15px}
.tender-spec-lot-head{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;font-weight:760;color:#168044}
.tender-spec-lot h4{font-size:14px;font-weight:800;margin:8px 0 7px;line-height:1.4;overflow-wrap:anywhere}
.tender-spec-lot p{font-size:12px;color:#597264;margin:0 0 10px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.tender-spec-lot .tender-spec-no-description{font-style:italic;color:#91a092}
.tender-spec-lot-facts{display:flex;flex-wrap:wrap;gap:12px 22px;font-size:12px;color:#728c7a}
.tender-spec-lot-facts strong{color:#1b4730}
.tender-spec-empty{padding:22px;text-align:center;border:1px dashed #bfdac6;border-radius:13px;background:#fcfffd}
.tender-spec-empty strong{display:block;font-size:14px}
.tender-spec-empty p{margin:7px 0 0;font-size:12px;color:#769079}
.tender-spec-document-note{display:flex;gap:12px;align-items:flex-start;margin-top:18px;padding:13px 16px;background:#f6f8f6;border-radius:12px;color:#64816d}
.tender-spec-document-note svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tender-spec-document-note p{margin:0;font-size:12px;line-height:1.55}
.tender-spec-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}
.tender-spec-error{text-align:center;padding:35px 0}
@media(max-width:850px){
 .portal-tabs{margin-bottom:16px}
 .portal-tabs button{font-size:11px;padding:10px 5px;gap:5px;flex-direction:column}
 .portal-tabs .portal-tab-icon{font-size:19px}
 .portal-private-screen{padding:9px 0}
 .portal-access-card{padding:30px 18px;border-radius:17px}
 .portal-access-card h2{font-size:24px}
 .portal-access-card p{font-size:13px}
 .portal-access-features{gap:6px}
 .portal-access-features span{font-size:10px}
 .portal-access-login{min-width:0;width:100%}
 #main .tw-card-actions{justify-content:stretch}
 #main .tw-card-actions>*{flex:1}
 .tender-spec-content{padding:18px 15px 22px}
 .tender-spec-facts{padding:13px;gap:10px}
 .tender-spec-facts dd{font-size:12px}
}
@media(max-width:480px){
 /* The four primary sections remain visible in the upper switcher on small screens. */
 .portal-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:3px;padding:4px;margin-bottom:14px}
 .portal-tabs button{min-width:0;min-height:66px;display:flex;flex-direction:column;gap:3px;padding:7px 3px;font-size:clamp(9px,2.4vw,11px);line-height:1.15;white-space:normal;overflow-wrap:anywhere;text-align:center}
 .portal-tabs .portal-tab-icon{font-size:20px;line-height:23px}
 .tender-spec-heading h2{font-size:21px}
 .tender-spec-name{font-size:15px;margin:15px 0}
 .tender-spec-facts{grid-template-columns:1fr 1fr}
 .tender-spec-dialog-top{padding:10px 13px}
 #main .tw-card-spec-button{font-size:11px}
 #main .tw-card-source{font-size:11px}
 .portal-favorites-title{flex-direction:column;align-items:flex-start}
}
