@import url("/assets/css/pb-site.css");
/*
 * ProcBetter global styles.
 * Component styling is inline in the page templates (as authored in the
 * design). This file holds the page baseline and the responsive layer, which
 * targets the pb-* hook classes added to the templates. Inline styles win by
 * default, so responsive overrides use !important.
 *
 * Breakpoints: 1024px header menu · 960px stacked two-column layouts ·
 * 900px workspace drawer · 760px phone spacing · 520px compact rows.
 */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#F5F7F6;color:#15212E;font-family:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
a{color:#1550B4;text-decoration:none}
a:hover{color:#0F2439}
input,select,textarea,button{font-family:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;color:inherit}
input,select,textarea{color:#15212E}
table{border-collapse:collapse}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #1B63D6;outline-offset:2px}
pb-image{display:block}
#app[aria-busy="true"]{min-height:100vh}
[id]{scroll-margin-top:16px}

/* ---- Two-column page layouts (sidebar + content) ------------------------ */
.pb-split--left{grid-template-columns:var(--side,300px) minmax(0,1fr)}
.pb-split--right{grid-template-columns:minmax(0,1fr) var(--side,340px)}
.pb-filter-toggle{display:none}

/* ---- Workspace sidebars: hidden helpers on desktop ----------------------- */
.pb-mbar,.pb-drawer-close,.pb-backdrop{display:none}

/* ---- Header menu button ---------------------------------------------------- */
.pb-hdr-toggle{display:none;margin-left:auto;width:42px;height:42px;border:1px solid #E1E8F2;border-radius:10px;background:#fff;align-items:center;justify-content:center;cursor:pointer}
.pb-hdr--dark .pb-hdr-toggle{border-color:rgba(255,255,255,.3);background:transparent}

@media (max-width:1200px){
  /* Keeps the whole globe (and its circles) inside the hero panel. */
  .pb-hero-spacer{min-height:470px!important}
  .pb-hero--dark .pb-hero-spacer{min-height:220px!important}
  .pb-hero--dark .pb-hero-title{font-size:52px!important}
}

@media (max-width:1024px){
  .pb-hdr{gap:14px!important}
  .pb-hdr-toggle{display:inline-flex}
  .pb-hdr-nav,.pb-hdr-actions{display:none!important;width:100%}
  html[data-hdr-open] .pb-hdr-nav{display:flex!important;flex-direction:column;gap:0!important;border-top:1px solid #E6ECF4;padding-top:4px}
  html[data-hdr-open] .pb-hdr-nav a{display:block;padding:12px 2px!important;border-bottom:1px solid #F0F3F8!important}
  html[data-hdr-open] .pb-hdr--dark .pb-hdr-nav{border-top-color:rgba(255,255,255,.18)}
  html[data-hdr-open] .pb-hdr--dark .pb-hdr-nav a{border-bottom-color:rgba(255,255,255,.12)!important}
  html[data-hdr-open] .pb-hdr-actions{display:flex!important;margin-left:0!important;padding-bottom:6px}
  .pb-hdr-search{width:100%!important}
  html[data-hdr-open] .pb-hdr-actions>a{flex:1 1 120px;text-align:center}
}

@media (max-width:960px){
  .pb-split{grid-template-columns:minmax(0,1fr)!important}
  .pb-split>*{max-width:none!important}
  .pb-split--after>.pb-side{order:2}
  .pb-filter-toggle{display:flex;align-items:center;justify-content:center;gap:9px;height:46px;border:1.5px solid #E2E7E4;border-radius:12px;background:#fff;color:#15212E;font-size:15px;font-weight:600;cursor:pointer}
  .pb-filters{display:none}
  html[data-filters-open] .pb-filters{display:block}
  html[data-filters-open] .pb-filter-toggle{border-color:#1B63D6;color:#1B63D6}
}

@media (max-width:900px){
  .pb-shell{align-content:flex-start}
  .pb-shell-main{min-width:0!important;flex:1 1 100%!important}
  .pb-mbar{display:flex;align-items:center;gap:12px;width:100%;flex:0 0 100%;padding:12px 16px;position:sticky;top:0;z-index:60}
  .pb-mbar-btn{margin-left:auto;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:10px;border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
  .pb-drawer{position:fixed!important;top:0;bottom:0;left:0;z-index:100;min-height:0!important;max-width:86vw;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease}
  html[data-drawer-open] .pb-drawer{transform:none;box-shadow:0 0 40px rgba(0,0,0,.35)}
  .pb-drawer-close{display:inline-flex;position:absolute;top:16px;right:12px;width:36px;height:36px;align-items:center;justify-content:center;border-radius:9px;border:1px solid rgba(255,255,255,.22);background:transparent;cursor:pointer}
  html[data-drawer-open] .pb-backdrop{display:block;position:fixed;inset:0;z-index:99;background:rgba(10,20,40,.45)}
  html[data-drawer-open]{overflow:hidden}
}

@media (max-width:760px){
  .pb-gutter{padding-left:16px!important;padding-right:16px!important}
  .pb-h1{font-size:28px!important;line-height:1.18!important}

  .pb-hero{display:flex;flex-direction:column}
  .pb-hero-grid{order:1;padding-top:30px!important;padding-bottom:22px!important}
  .pb-hero-spacer{display:none}
  .pb-hero-media{order:2;position:relative!important;inset:auto!important;height:220px;margin:0 16px;border-radius:14px;overflow:hidden}
  .pb-hero-overlay{display:none}
  .pb-hero-title{font-size:36px!important}

  .pb-hero--dark{display:block}
  .pb-hero--dark .pb-hero-media{order:0;position:absolute!important;inset:0!important;height:auto;margin:0;border-radius:0}
  .pb-hero--dark .pb-hero-overlay{display:block}
  .pb-hero--dark .pb-hero-grid{padding-top:26px!important}
  .pb-hero-strip a{padding-left:0!important;padding-right:0!important;border-left:0!important}
  .pb-hero-stats{gap:18px 28px!important}

  .pb-ftr{padding:40px 16px 28px!important;margin-top:56px!important}
  .pb-ws-actions{width:100%;margin-left:0!important}
  .pb-ws-actions>input{flex:1 1 180px;width:auto!important}
  .pb-lesson-media{height:200px!important}
  .pb-auth{min-height:0!important}
  .pb-auth-card{padding:24px 20px!important}
  .pb-auth-panel{padding-top:32px!important;padding-bottom:28px!important}
  .pb-auth-panel h2{font-size:28px!important}
}

@media (max-width:900px){
  .pb-ftr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 20px!important}
  .pb-ftr-brand{grid-column:1/-1}
}

@media (max-width:520px){
  .pb-row{flex-wrap:wrap}
  .pb-row .pb-row-main{flex:1 1 calc(100% - 48px)!important}
  .pb-row .pb-row-tag{margin-left:48px}
  .pb-row .pb-row-date{min-width:0!important;margin-left:auto}
  .pb-thread-votes{flex:0 0 40px!important}
  .pb-thread-stats{flex:1 1 100%!important;display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;padding-left:56px;text-align:left!important}
  .pb-thread-stats>div{margin-top:0!important}
}

@media (prefers-reduced-motion:reduce){
  .pb-drawer{transition:none}
  *{scroll-behavior:auto!important}
}

/* ---- Portal forms (supplier / admin / buyer workflow pages) --------------- */
.pf-card{background:#fff;border:1px solid #E4E8E6;border-radius:18px;padding:22px;min-width:0}
.pf-title{font-family:'Space Grotesk',sans-serif;font-size:18px;font-weight:600;color:#15212E}
.pf-sub{margin-top:4px;font-size:13.5px;line-height:1.5;color:#5D6B79}
.pf-grid{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px}
.pf-full{grid-column:1/-1}
.pf-label{display:block}
.pf-label>span{font-size:13.5px;font-weight:600;color:#3C4A58}
.pf-req{color:#B4541A}
.pf-opt{font-size:12px;font-weight:500;color:#8A96A2}
.pf-input{margin-top:6px;width:100%;height:44px;border:1.5px solid #E2E7E4;border-radius:11px;padding:0 12px;font:inherit;font-size:15px;background:#fff;color:#15212E}
textarea.pf-input{height:auto;min-height:96px;padding:10px 12px;line-height:1.5;resize:vertical}
.pf-input:focus{border-color:#1B63D6;outline:none}
.pf-input:disabled{background:#F5F7F6;color:#5D6B79}
.pf-actions{margin-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border-radius:11px;font:inherit;font-size:14.5px;font-weight:700;cursor:pointer;border:0;background:#1B63D6;color:#fff;text-decoration:none}
.pf-btn:hover{background:#1550B4}
.pf-btn:disabled{background:#E4E8E6;color:#8A96A2;cursor:not-allowed}
.pf-btn--ghost{background:#fff;color:#1B63D6;border:1.5px solid #CCDCF1}
.pf-btn--ghost:hover{background:#F2F7FF}
.pf-btn--small{height:34px;padding:0 12px;font-size:13px}
.pf-btn--danger{background:#fff;color:#A8323A;border:1.5px solid #E7A3A8}
.pf-btn--danger:hover{background:#FDF3F3}
.pf-saved{font-size:13.5px;font-weight:600;color:#0F6B3C}
.pf-error{padding:10px 12px;border-radius:10px;background:#FDECEC;color:#9B1C1C;font-size:13.5px;font-weight:600}
.pf-row{margin-top:12px;padding:14px;border:1px solid #E7EBE9;border-radius:12px;background:#FAFBFA}
.pf-files{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.pf-file{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #E7EBE9;border-radius:10px;font-size:13.5px;background:#fff}
.pf-thumb{width:44px;height:44px;flex:0 0 44px;border-radius:8px;object-fit:cover;background:#EEF1EF}
.pf-drop{margin-top:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1.5px dashed #CCDCF1;border-radius:12px;background:#F8FBFF;font-size:13px;color:#5D6B79}
.pf-drop input[type=file]{font-size:13px;max-width:100%}
.pf-kv{display:grid;grid-template-columns:minmax(120px,190px) 1fr;gap:8px 16px;font-size:14px;line-height:1.5}
.pf-kv dt{color:#7A8896}
.pf-kv dd{margin:0;color:#15212E;overflow-wrap:anywhere}
.pf-sticky{position:sticky;top:16px}
@media (max-width:960px){.pf-sticky{position:static}}

/* ---- Admin moderation: pop-up confirmations, sticky messages, row menus,
   and tables that become cards on phones (2026-09-24). ---- */
.pb-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(14,42,85,.45)}
.pb-modal-card{width:100%;max-width:480px;background:#fff;border-radius:18px;padding:22px;box-shadow:0 30px 70px -30px rgba(14,42,85,.7)}
.pb-flash{position:sticky;top:12px;z-index:30}
.pb-act{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 11px;border:1.5px solid #E2E7E4;background:#fff;border-radius:8px;font-size:13px;font-weight:600;color:#15212E;cursor:pointer;white-space:nowrap;text-decoration:none}
.pb-act:hover{border-color:#1B63D6;color:#15212E}
.pb-act--ok{background:#1F8A4C;border-color:#1F8A4C;color:#fff}.pb-act--ok:hover{background:#17703D;border-color:#17703D;color:#fff}
.pb-act--bad{color:#A8323A;border-color:#E7A3A8}.pb-act--bad:hover{background:#FDF3F3;border-color:#A8323A;color:#A8323A}
.pb-acts{display:flex;gap:6px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.pb-rowmenu{position:fixed;z-index:1100;min-width:200px;background:#fff;border:1px solid #E4E8E6;border-radius:12px;box-shadow:0 18px 40px -16px rgba(14,42,85,.5);padding:6px;display:flex;flex-direction:column;text-align:left}
.pb-rowmenu a,.pb-rowmenu button{display:block;text-align:left;border:0;background:none;padding:9px 11px;border-radius:8px;font-size:14px;color:#15212E;cursor:pointer;text-decoration:none;font-family:inherit}
.pb-rowmenu a:hover,.pb-rowmenu button:hover{background:#F5F8FC}
.pb-rowmenu .pb-danger{color:#A8323A;font-weight:600}
@media (max-width:760px){
  .pb-rtable{min-width:0!important}
  .pb-rtable thead{display:none}
  .pb-rtable,.pb-rtable tbody,.pb-rtable tr,.pb-rtable td{display:block;width:100%}
  .pb-rtable tr{padding:14px 16px;border-top:1px solid #EEF1EF}
  .pb-rtable td{padding:3px 0!important;text-align:left!important;max-width:none!important}
  .pb-rtable td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;font-family:'Space Mono',monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8A96A2;margin-top:6px}
  .pb-rtable .pb-acts{justify-content:flex-start;margin-top:10px}
  .pb-rtable td.pb-td-check{display:none}
}

/* ---- Solicitation form: rich-text editors, chips, Required / Not required
   (2026-09-25) ---- */
.pb-rt{margin-top:6px;border:1.5px solid #E2E7E4;border-radius:12px;background:#fff;overflow:hidden}
.pb-rt:focus-within{border-color:#1B63D6}
.pb-rt-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px;border-bottom:1px solid #EEF1EF;background:#F8FAFC}
.pb-rt-bar button{min-width:34px;height:32px;padding:0 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#33475F;font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit}
.pb-rt-bar button:hover{background:#EAF2FE;border-color:#CCDCF1;color:#1550B4}
.pb-rt-bar button mark{background:#FFF1A6;color:inherit;padding:0 3px;border-radius:3px}
.pb-rt-sep{width:1px;height:20px;background:#E1E7F0;margin:0 4px}
.pb-rt-area{min-height:150px;max-height:520px;overflow:auto;padding:12px 14px;font-size:15px;line-height:1.6;color:#15212E;outline:none}
.pb-rt-area:empty::before{content:attr(data-placeholder);color:#9AA5B1}
.pb-rt-area ul,.pb-rt-area ol,.pb-rich ul,.pb-rich ol{margin:6px 0;padding-left:24px}
.pb-rt-area p,.pb-rich p{margin:0 0 8px}
.pb-rt-area h3,.pb-rich h3{margin:12px 0 6px;font-family:'Space Grotesk',sans-serif;font-size:17px;font-weight:700;color:#15212E}
.pb-rt-area h4,.pb-rich h4{margin:10px 0 4px;font-size:15px;font-weight:700;color:#15212E}
.pb-rt-area mark,.pb-rich mark{background:#FFF1A6;color:inherit;padding:0 2px;border-radius:3px}
.pb-rich > :first-child{margin-top:0}.pb-rich > :last-child{margin-bottom:0}
/* Tables (typed or pasted from Word): always bordered; scroll sideways on a phone. */
.pb-rt-area table,.pb-rich table{border-collapse:collapse;margin:8px 0 12px;max-width:100%;display:block;overflow-x:auto}
.pb-rt-area td,.pb-rt-area th,.pb-rich td,.pb-rich th{border:1px solid #8A96A2;padding:6px 10px;vertical-align:top;text-align:left;min-width:60px}
.pb-rt-area th,.pb-rich th{background:#F3F6F9;font-weight:700}
.pb-rt-area td p,.pb-rt-area th p,.pb-rich td p,.pb-rich th p{margin:0}
.pb-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 12px;border-radius:999px;background:#EAF2FE;color:#1550B4;font-size:13px;font-weight:600;max-width:100%;overflow-wrap:anywhere}
.pb-chip button{width:22px;height:22px;flex:none;border:0;border-radius:999px;background:rgba(21,80,180,.12);color:#1550B4;font-size:14px;line-height:1;cursor:pointer}
.pb-chip button:hover{background:#1550B4;color:#fff}
.pb-req-badge{display:inline-block;font-size:12px;padding:4px 10px;border-radius:999px;font-weight:700;background:#FBE9EA;color:#A8323A}
.pb-seg{display:inline-flex;gap:4px;padding:3px;border:1px solid #E4E8E6;border-radius:10px;background:#F8FAFC}
.pb-seg button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:8px;padding:7px 12px;font-size:13px;font-weight:700;cursor:pointer;background:transparent;color:#5D6B79;font-family:inherit;white-space:nowrap}
.pb-seg button[aria-checked="true"].pb-seg-req{background:#A8323A;color:#fff}
.pb-seg button[aria-checked="true"].pb-seg-not{background:#4A5865;color:#fff}

/* Company logos on solicitations (listings, the solicitation page, the form). */
.pb-logo{flex:0 0 auto;width:56px;height:56px;border-radius:12px;border:1px solid #E4E8E6;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pb-logo img{width:100%;height:100%;object-fit:contain;padding:4px;display:block}
.pb-logo span{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:18px;color:#1550B4;letter-spacing:-.01em}
.pb-logo--lg{width:84px;height:84px;border-radius:16px}
.pb-logo--lg span{font-size:24px}
.pb-logo-field{margin-top:14px;display:flex;gap:16px;align-items:center;padding:12px 14px;border:1px dashed #CCD6E0;border-radius:14px;background:#FAFCFE}
.pb-logo-field label.pf-btn{position:relative}
@media (max-width:560px){.pb-opp-card .pb-logo{width:46px;height:46px}}
