/* Command and the partner dashboards on their own addresses (decision 0036). --pc1 and --pc2 are the organisation's colours. */
body.portal { margin: 0; background: #f4f5f0; color: #18241b; font-family: Inter, system-ui, sans-serif; }
.portal .pbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 22px; background: #fff; border-bottom: 3px solid var(--pc2); }
.portal .plogo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 21px; color: #0f3d24; text-decoration: none; }
.portal .plogo svg { width: 26px; height: 26px; }
.portal .paddr { font-size: 12.5px; color: #4b5a4f; background: #f0f2ee; border-radius: 999px; padding: 5px 12px; }
.portal .psp { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.portal .pbell { position: relative; color: #1d2a22; display: grid; place-items: center; }
.portal .pbell em { position: absolute; top: -6px; right: -8px; background: #e8590c; color: #fff; border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 800; padding: 1px 5px; }
.portal .pme { position: relative; }
.portal .pme summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.portal .pme summary::-webkit-details-marker { display: none; }
.portal .pme .av { width: 34px; height: 34px; border-radius: 50%; background: #dfe9da; color: #18412a; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.portal .pme .who b { display: block; font-size: 13.5px; } .portal .pme .who small { color: #6b776e; font-size: 11.5px; }
.portal .pme .panel { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: #fff; border: 1px solid #e3e7e0; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 8px; z-index: 40; }
.portal .pme .me-email { font-size: 12px; color: #6b776e; padding: 6px 8px; overflow-wrap: anywhere; }
.portal .pme .me-link, .portal .pme button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 8px; font: inherit; font-size: 13.5px; color: #1d2a22; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none; }
.portal .pme .me-link:hover, .portal .pme button:hover { background: #f2f5f0; }
.portal .pburger { display: none; border: 0; background: none; padding: 4px; }
.portal .pframe { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 63px); background: linear-gradient(90deg, var(--pc1) 250px, transparent 250px); }
.portal .porg { display: none; }
.portal .pside { background: var(--pc1); color: #eef2ec; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 63px; height: calc(100vh - 63px); overflow-y: auto; scrollbar-width: thin; }
.portal .pbrand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.portal .pbrand .plg { width: 44px; height: 44px; border-radius: 11px; background: #fff; color: var(--pc1); display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 3px solid var(--pc2); flex: none; object-fit: contain; }
.portal .pbrand b { display: block; font-size: 14.5px; line-height: 1.25; } .portal .pbrand small { opacity: .75; font-size: 11.5px; display: block; margin-top: 2px; }
.portal .pside h6 { margin: 12px 10px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; font-weight: 700; }
.portal .pside > a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: inherit; text-decoration: none; opacity: .92; }
.portal .pside > a:hover { background: rgba(255,255,255,.08); }
.portal .pside > a.on { background: rgba(255,255,255,.15); opacity: 1; font-weight: 700; box-shadow: inset 3px 0 0 var(--pc2); }
.portal .pside > a .i { width: 17px; height: 17px; opacity: .85; }
.portal .pfoot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; opacity: .85; display: flex; flex-direction: column; gap: 6px; }
.portal .ppw { display: flex; align-items: center; gap: 6px; } .portal .ppw svg { width: 16px; height: 16px; }
.portal .pmain { padding: 22px 26px 48px; min-width: 0; max-width: 1320px; width: 100%; box-sizing: border-box; }
.portal .pshade { display: none; }
.portal .ptab { display: none; }
/* The pages' own tab rows are in the side menu here. */
.portal .pt-tabs, .portal .pmain > .ptabs, .portal .ad-tabs { display: none !important; }
.portal .nx-head h1 { color: var(--pc1); }
.portal .pt-tabs a.on, .portal .btn-y { }

@media (max-width: 700px) {
  .portal .pbar { height: 54px; padding: 0 12px; gap: 10px; }
  .portal .paddr, .portal .pme .who { display: none; }
  .portal .pframe { grid-template-columns: minmax(0, 1fr); background: none; }
  .portal .porg { display: flex; align-items: center; gap: 10px; margin: -14px -12px 14px; padding: 10px 12px; background: var(--pc1); color: #fff; border-bottom: 3px solid var(--pc2); font-size: 14px; }
  .portal .porg .plg { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--pc1); display: grid; place-items: center; font-weight: 800; font-size: 10.5px; object-fit: contain; flex: none; }
  .portal .pside { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; height: 100%; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .portal .pside.open { transform: none; }
  .portal .pshade { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
  .portal .pshade[hidden] { display: none; }
  .portal .pmain { padding: 14px 12px 92px; }
  .portal .ptab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--pc1); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .portal .ptab a, .portal .ptab button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #eef2ec; font: inherit; font-size: 10.5px; text-decoration: none; background: none; border: 0; opacity: .85; padding: 4px 2px; min-width: 0; text-align: center; }
  .portal .ptab .i { width: 21px; height: 21px; }
  .portal .ptab a.on { opacity: 1; font-weight: 800; color: var(--pc2); }
}
@media (prefers-reduced-motion: reduce) { .portal .pside { transition: none; } }
/* Logo and colours page */
.br-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.br-cols input[type=color] { width: 100%; height: 44px; padding: 2px; border-radius: 8px; border: 1px solid #d7ddd4; background: #fff; }
.br-prev .br-side { background: var(--pc1); color: #fff; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.br-prev .plg { width: 46px; height: 46px; border-radius: 11px; background: #fff; color: var(--pc1); display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 3px solid var(--pc2); overflow: hidden; }
.br-prev .plg img { width: 100%; height: 100%; object-fit: contain; }
.br-prev i { font-style: normal; font-size: 13px; padding: 6px 8px; border-radius: 7px; opacity: .9; }
.br-prev i.on { background: rgba(255,255,255,.15); box-shadow: inset 3px 0 0 var(--pc2); font-weight: 700; }
.portal .pbrand img.plg { padding: 2px; }
/* Sign-in pages on each address */
body.pin { background: #f4f5f0; }
.pin-wrap { display: grid; grid-template-columns: minmax(320px, 44%) 1fr; min-height: 100vh; }
.pin-side { background: var(--pc1); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; border-right: 5px solid var(--pc2); }
.pin-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; } .pin-logo svg { width: 28px; height: 28px; }
.pin-what { margin-top: auto; } .pin-what small { display: inline-block; font-size: 12.5px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 11px; }
.pin-what h1 { font-size: 34px; line-height: 1.15; margin: 14px 0 8px; } .pin-what p { margin: 0; opacity: .85; font-size: 15.5px; }
.pin-list { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.pin-list li { padding-left: 22px; position: relative; opacity: .92; } .pin-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--pc2); }
.pin-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 20px; gap: 16px; }
.pin-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e3e7e0; border-radius: 16px; padding: 28px; box-sizing: border-box; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.pin-card h2 { margin: 0 0 6px; font-size: 24px; color: #18241b; } .pin-lead { margin: 0 0 18px; color: #4b5a4f; font-size: 14.5px; line-height: 1.5; }
.pin-lead a, .pin-farm a { color: var(--pc1); font-weight: 700; }
.pin-card label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.pin-card input[type=email], .pin-card input[name=code] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 13px; border: 1px solid #cfd6cb; border-radius: 10px; }
.pin-card input:focus { outline: 3px solid color-mix(in srgb, var(--pc2) 45%, transparent); border-color: var(--pc1); }
.pin-code { letter-spacing: .4em; font-weight: 800; text-align: center; }
.pin-go { width: 100%; margin-top: 16px; padding: 13px; border: 0; border-radius: 10px; background: var(--pc1); color: #fff; font: inherit; font-weight: 800; font-size: 15.5px; cursor: pointer; box-shadow: inset 0 -3px 0 var(--pc2); }
.pin-err { color: #b42318; font-size: 13.5px; margin-top: 6px; }
.pin-check { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 600 !important; margin-top: 14px; } .pin-check small { display: block; font-weight: 400; color: #6b776e; font-size: 12.5px; }
.pin-again { margin-top: 14px; font-size: 13.5px; color: #4b5a4f; } .pin-again button { background: none; border: 0; padding: 0; color: var(--pc1); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.pin-note { font-size: 12.5px; color: #6b776e; margin: 12px 0 0; }
.pin-farm { font-size: 13.5px; color: #4b5a4f; margin: 0; text-align: center; }
@media (max-width: 700px) {
  .pin-wrap { grid-template-columns: 1fr; min-height: 0; }
  .pin-side { padding: 18px 16px 20px; gap: 12px; border-right: 0; border-bottom: 4px solid var(--pc2); }
  .pin-what h1 { font-size: 24px; margin: 10px 0 4px; } .pin-what p { font-size: 14px; } .pin-list { display: none; }
  .pin-main { justify-content: flex-start; padding: 18px 12px 32px; } .pin-card { padding: 20px 16px; }
}
.pin-info { background: #fff6dc; border: 1px solid #f1d98a; color: #5c4400; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin: 0 0 14px; }
/* Command overview */
.cm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.cm-tile { background: #fff; border: 1px solid #e3e7e0; border-radius: 14px; padding: 14px 16px; display: grid; gap: 3px; }
.cm-tile .i { width: 20px; height: 20px; color: #2f7d32; } .cm-tile span { font-size: 13px; color: #4b5a4f; } .cm-tile b { font-size: 26px; color: #18241b; line-height: 1.1; } .cm-tile small { color: #6b776e; font-size: 12px; }
.cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cm-wait { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1ec; color: inherit; text-decoration: none; }
.cm-wait:last-child { border: 0; } .cm-wait em { font-style: normal; font-weight: 800; background: #fff1c2; color: #6b4e00; border-radius: 999px; padding: 2px 10px; }
.cm-ch { padding: 8px 0; border-bottom: 1px solid #eef1ec; font-size: 13.5px; } .cm-ch:last-child { border: 0; } .cm-ch small { display: block; color: #6b776e; font-size: 12px; }
.cm-note { font-size: 12.5px; color: #6b776e; }
.lg-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.lg-filter label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.lg-filter input, .lg-filter select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #cfd6cb; border-radius: 9px; background: #fff; }
@media (max-width: 900px) { .cm-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .cm-tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .cm-tile b { font-size: 22px; } .lg-filter > * { flex: 1 1 140px; } }
