/* Documents Upload, from the "Borrower Portal Mockups" canvas (portal.css there).
   Same colors and shapes. Made fluid (the mockup was a fixed 390px phone) and with no
   web fonts: nothing loads from another site. */
:root{--bg:#F8F5EF;--card:#FFFFFF;--ink:#1E2A2D;--muted:#4A5A5E;--line:#DDD6C8;--brand:#00596B;--brand-dark:#00434F;--need-bg:#FBEFD5;--need-fg:#744500;--rec-bg:#E1EDF9;--rec-fg:#164A7C;--acc-bg:#DFF1E3;--acc-fg:#1B5A2B;--att-bg:#FBE4E0;--att-fg:#8A2619;--err-bg:#FBE4E0}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg)}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
a{color:var(--brand)}
h1{margin:0;font-size:26px;line-height:1.2;font-weight:650;letter-spacing:-0.01em}
p{margin:0;font-size:16px;line-height:1.5}
.muted{color:var(--muted)}
.small{font-size:14px;line-height:1.45}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.phone{max-width:480px;min-height:100vh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column}
.brandbar{display:flex;align-items:center;gap:10px;padding:10px 20px;min-height:64px;background:#fff;border-bottom:1px solid var(--line)}
.avatar{width:36px;height:36px;display:block}
.linkbtn{margin-left:auto;font:inherit;font-size:14px;font-weight:600;color:var(--brand);background:none;border:0;cursor:pointer;min-height:44px;padding:0 4px;text-decoration:underline}
.linkbtn.plain{margin-left:0;white-space:nowrap;padding:0;min-height:0}
.small .linkbtn.plain{display:inline}
.page{padding:44px 20px 28px;display:flex;flex-direction:column;flex:1}
.card{display:flex;flex-direction:column;gap:16px;flex:1}
.logo-top{display:block;width:210px;max-width:70%;height:auto;margin:0 0 8px}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:14px;font-weight:600}
.input{height:52px;border:1.5px solid #6F7780;border-radius:10px;padding:0 14px;font-size:16px;font-family:inherit;background:#fff;color:var(--ink);width:100%}
.btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:10px;background:var(--brand);color:#fff;font-weight:600;font-size:16px;font-family:inherit;text-decoration:none;border:0;cursor:pointer;width:100%}
.btn:hover{background:var(--brand-dark)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.spacer{flex:1}
.foot{padding:16px 20px;font-size:13px;line-height:1.45;color:var(--muted);text-align:center}
.err{background:var(--err-bg);color:var(--att-fg);border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.45}
.listwrap{padding:14px 20px 28px;display:flex;flex-direction:column;gap:10px}
.summaryrow{display:flex;justify-content:space-between;align-items:center;gap:12px}
.summaryline{font-size:15px;color:var(--muted)}
.item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;color:inherit;font:inherit;text-align:left;width:100%}
button.item{cursor:pointer}
button.item:hover{border-color:var(--brand)}
.itemtop{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.itemname{font-weight:600;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.itemsub{font-size:14px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}
.pill:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.needed{background:var(--need-bg);color:var(--need-fg)}
.received{background:var(--rec-bg);color:var(--rec-fg)}
.accepted{background:var(--acc-bg);color:var(--acc-fg)}
.attn{background:var(--att-bg);color:var(--att-fg)}
.attnnote{background:var(--att-bg);color:var(--att-fg);border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
@media (prefers-reduced-motion:no-preference){.btn,.item{transition:background .15s,border-color .15s}}

/* ---- On a computer (the "one narrow column" layout approved 11/17) ----
   The phone design above is unchanged. From 768px wide: sign-in screens sit in a
   centered white card; after login everything sits in one centered column 680px wide,
   and the bar's logo and Log out line up with that column's edges. */
@media (min-width:768px){
  .phone{max-width:none}
  .page{align-items:center;justify-content:center;padding:48px 24px}
  .card{flex:0 1 auto;width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:36px}
  .card .logo-top{width:200px;margin:0 0 4px}
  .card .spacer{display:none}
  .brandbar{padding-left:max(20px,calc((100% - 680px)/2 + 20px));padding-right:max(20px,calc((100% - 680px)/2 + 20px))}
  .listwrap{width:100%;max-width:680px;margin:0 auto;padding:36px 20px 48px;gap:12px}
  .side{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
  .summaryrow{flex-direction:column;align-items:flex-start;gap:6px}
}
