/* EquiFlow styles. Same Equiton brand tokens, Lexend type and split-screen sign-in as the Equiton Dataroom.
   Do not add colours outside this palette, except the status colours, which exist so success, warning and error are never confused. */

:root {
  --eq-dark-blue: #223949;
  --eq-blue-grey: #6c7d9e;
  --eq-orange: #f58536;
  --eq-light-grey: #bcc9de;
  --eq-dark-grey: #2b3b46;
  --eq-white: #ffffff;
  --eq-teal: #40bdc1;

  --eq-blue-grey-5: #f6f7fa;
  --eq-blue-grey-10: #f0f2f6;
  --eq-blue-grey-20: #e2e6ee;
  --eq-blue-grey-40: #c4cbda;
  --eq-dark-blue-10: #e9ebed;
  --eq-dark-blue-80: #4e616e;
  --eq-orange-10: #fef3eb;

  --eq-ok: #17603a;      --eq-ok-bg: #e3f4ea;
  --eq-warn: #8a4a12;    --eq-warn-bg: #fdebd9;
  --eq-bad: #8a1c1c;     --eq-bad-bg: #f8e1e1;

  --eq-font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eq-radius: 12px;
  --eq-radius-sm: 8px;
  --eq-line: 1px solid var(--eq-blue-grey-20);
  --eq-focus: 0 0 0 3px rgba(245, 133, 54, .45);
}

/* Lexend, self-hosted (SIL OFL, see fonts/Lexend-OFL.txt), so no request leaves for a font service. */
@font-face {
  font-family: "Lexend";
  src: url("fonts/Lexend.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--eq-font-body);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--eq-dark-grey);
  background: var(--eq-blue-grey-5);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--eq-dark-blue); font-weight: 500; line-height: 1.25; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
p { margin: 0 0 1rem; max-width: 70ch; }
img, svg { max-width: 100%; }

a { color: var(--eq-dark-blue); text-decoration-color: var(--eq-light-grey); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color .12s, color .12s; }
a:hover { text-decoration-color: var(--eq-orange); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: var(--eq-focus); border-radius: var(--eq-radius-sm); }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
::selection { background: rgba(245, 133, 54, .3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------------------------------------ shell */
.eq-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 3.6rem; padding: 0 1.5rem;
  background: var(--eq-dark-blue); color: var(--eq-white);
  box-shadow: 0 2px 10px rgba(34, 57, 73, .25);
}
.eq-header a { color: var(--eq-white); text-decoration: none; }
.eq-wordmark { display: inline-flex; align-items: center; }
.eq-wordmark img { display: block; width: 150px; height: auto; }
.eq-product { font-size: .8rem; color: var(--eq-light-grey); border-left: 1px solid #4A6273; padding-left: .65rem; margin-left: -.5rem; white-space: nowrap; }
.eq-nav { display: flex; gap: .25rem; align-items: center; flex: 1; }
.eq-nav a { padding: .4rem .9rem; border: 1px solid transparent; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.eq-nav a.active { color: #E98840; border-color: var(--eq-orange); font-weight: 600; }
.eq-header form { margin: 0 0 0 auto; display: flex; align-items: center; gap: .75rem; }
.eq-who { color: var(--eq-light-grey); font-size: .88rem; }
.eq-header .eq-btn-ghost { color: var(--eq-light-grey); }
.eq-header .eq-btn-ghost:hover { color: var(--eq-white); background: rgba(255, 255, 255, .1); }
.eq-main { max-width: 74rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ------------------------------------------------------------------------------------------------ buttons */
.eq-btn, .eq-btn-outline, .eq-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.5rem; padding: .5rem 1.1rem;
  font: inherit; font-weight: 500; font-size: .9rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border-radius: var(--eq-radius-sm); border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.eq-btn { background: var(--eq-dark-blue); color: var(--eq-white); }
.eq-btn:hover { background: var(--eq-dark-blue-80); color: var(--eq-white); }
.eq-btn:active { background: #17272f; }
.eq-btn-outline { background: var(--eq-white); color: var(--eq-dark-blue); border-color: var(--eq-blue-grey-40); }
.eq-btn-outline:hover { background: var(--eq-blue-grey-10); border-color: var(--eq-blue-grey); }
.eq-btn-ghost { background: transparent; color: var(--eq-dark-blue); }
.eq-btn-ghost:hover { background: var(--eq-blue-grey-10); }
.eq-btn-block { width: 100%; min-height: 2.75rem; }

.eq-hint { color: var(--eq-blue-grey); font-size: .85rem; margin: .4rem 0 0; }
.eq-error { color: var(--eq-bad); }
.eq-card { background: var(--eq-white); border: var(--eq-line); border-radius: var(--eq-radius); padding: 1.5rem; margin-bottom: 1.25rem; }

/* ------------------------------------------------------------------------------------------------ sign-in (split screen) */
.eq-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.eq-login-brand { background: var(--eq-dark-blue); color: var(--eq-white); padding: 3.5rem 4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.eq-login-mark { display: inline-block; }
.eq-login-mark img { display: block; width: 260px; max-width: 100%; height: auto; }
.eq-login-sub { color: var(--eq-light-grey); margin-top: .35rem; font-size: .95rem; }
.eq-login-pitch h2 { color: var(--eq-white); font-size: 2.1rem; font-weight: 500; line-height: 1.25; margin: 0 0 1rem; max-width: 20ch; }
.eq-login-pitch p { color: var(--eq-light-grey); max-width: 34ch; margin: 0; }
.eq-login-main { background: var(--eq-blue-grey-10); display: flex; flex-direction: column; padding: 2rem; }
.eq-login-card { margin: auto; width: min(26rem, 100%); background: var(--eq-white); border-radius: var(--eq-radius); padding: 2rem; box-shadow: 0 6px 24px rgba(34, 57, 73, .1); }
.eq-login-card h1 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.eq-login-card p { max-width: none; }
.eq-login-foot { text-align: center; padding-top: 1.5rem; font-size: .9rem; color: var(--eq-blue-grey); }
.eq-pill { display: inline-block; background: var(--eq-orange-10); color: var(--eq-warn); border: 1px solid #f9d4b5; border-radius: 999px; padding: .15rem .8rem; font-size: .82rem; font-weight: 500; margin-bottom: .8rem; }

@media (max-width: 860px) {
  .eq-login { grid-template-columns: 1fr; }
  .eq-login-brand { padding: 1.75rem 1.5rem; gap: 1.25rem; }
  .eq-login-pitch h2 { font-size: 1.4rem; max-width: none; }
  .eq-login-main { padding: 1.25rem; }
  .eq-login-card { padding: 1.5rem; margin: 0 auto auto; }
  .eq-header { padding: .5rem 1rem; flex-wrap: wrap; }
  .eq-main { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: 1.5rem; }
}

/* ------------------------------------------------------------------------------------------------ framework error bar */
/* Must stay display:none until Blazor shows it after a real failure. */
#blazor-error-ui {
  display: none;
  position: fixed; left: 0; bottom: 0; width: 100%; z-index: 1000;
  padding: .6rem 1.25rem .7rem;
  background: var(--eq-blue-grey-20); color: var(--eq-dark-blue);
  box-shadow: 0 -1px 2px rgba(34, 57, 73, .25);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ------------------------------------------------------------------------------------------------ forms */
input[type=text], input[type=email], input[type=search], input[type=date], input[type=number], select, textarea {
  font: inherit; font-size: .9375rem; color: var(--eq-dark-grey);
  min-height: 2.6rem; padding: .5rem .75rem; width: 100%; max-width: 24rem;
  background: var(--eq-white); border: 1px solid var(--eq-blue-grey-40); border-radius: var(--eq-radius-sm);
  transition: border-color .12s, box-shadow .12s;
}
input[type=date] { width: auto; }
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.eq-wide { max-width: none !important; }
input:hover, select:hover, textarea:hover { border-color: var(--eq-blue-grey); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--eq-orange); box-shadow: var(--eq-focus); }
input::placeholder { color: var(--eq-blue-grey); }
input[type=checkbox] { accent-color: var(--eq-dark-blue); width: 1.05rem; height: 1.05rem; min-height: 0; padding: 0; vertical-align: -.15em; margin-right: .35rem; }
button:disabled { opacity: .6; cursor: default; }

.eq-form { max-width: 52rem; }
.eq-form h2 { margin-top: 0; font-size: 1.05rem; }
.eq-field { margin-bottom: 1.1rem; }
.eq-field label { display: block; margin-bottom: .3rem; font-size: .9rem; color: var(--eq-dark-blue); font-weight: 500; }
.eq-field label.eq-check { font-weight: 400; }
.eq-req { color: var(--eq-bad); }
.eq-field-error { margin: .3rem 0 0; font-size: .85rem; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.25rem; }
.eq-grid-3 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.eq-grid select, .eq-grid input[type=date] { max-width: none; width: 100%; }
.eq-actions { display: flex; gap: .6rem; align-items: center; margin-top: 1.25rem; }
.eq-alert { background: var(--eq-bad-bg); color: var(--eq-bad); border-radius: var(--eq-radius-sm); padding: .7rem 1rem; margin-bottom: 1rem; }

.eq-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.eq-chips:empty { display: none; }
.eq-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--eq-blue-grey-20); color: var(--eq-dark-blue); border-radius: 999px; padding: .15rem .35rem .15rem .8rem; font-size: .88rem; }
.eq-chip button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--eq-dark-blue-80); padding: 0 .35rem; border-radius: 999px; }
.eq-chip button:hover { background: var(--eq-blue-grey-40); color: var(--eq-dark-blue); }

/* ------------------------------------------------------------------------------------------------ lists and detail */
.eq-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eq-titlebar h1 { margin: 0; }
.eq-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--eq-white); border: var(--eq-line); border-radius: var(--eq-radius); overflow: hidden; }
.eq-table th { text-align: left; font-weight: 500; font-size: .82rem; color: var(--eq-blue-grey); padding: .75rem 1rem; background: var(--eq-blue-grey-5); border-bottom: var(--eq-line); }
.eq-table td { padding: .8rem 1rem; border-bottom: var(--eq-line); }
.eq-table tbody tr:last-child td { border-bottom: 0; }
.eq-table tbody tr:hover { background: var(--eq-blue-grey-5); }
.eq-table td a { font-weight: 500; }
.eq-facts { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; }
.eq-facts dt { color: var(--eq-blue-grey); font-size: .88rem; }
.eq-facts dd { margin: 0; }
.eq-description p:last-child { margin-bottom: 0; }
.eq-devlist { margin: 0; padding-left: 1.2rem; font-size: .9rem; }
hr { border: 0; border-top: var(--eq-line); margin: 1.5rem 0; }

/* ------------------------------------------------------------------------------------------------ task detail */
.eq-crumbs { margin: 0 0 .5rem; font-size: .88rem; color: var(--eq-blue-grey); }
.eq-crumbs a { color: var(--eq-blue-grey); text-decoration: none; }
.eq-crumbs a:hover { color: var(--eq-dark-blue); text-decoration: underline; }
.eq-detail { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.5rem; align-items: start; }
.eq-detail-side select { max-width: none; width: 100%; margin-bottom: .6rem; }
.eq-detail-side h2 { margin-top: 0; font-size: 1rem; }
.eq-detail-side .eq-titlebar { margin-bottom: 0; }
.eq-detail-side .eq-titlebar p { margin: 0; }
.eq-facts { grid-template-columns: max-content 1fr; }
.eq-section { margin-top: 2rem; }
.eq-section h2 { margin-top: 0; font-size: 1.1rem; }
.eq-inline { display: flex; gap: .5rem; margin: .5rem 0 1rem; }
.eq-inline input[type=text] { max-width: 22rem; }
.eq-inline button { white-space: nowrap; }
.eq-confirm { background: var(--eq-orange-10); border: 1px solid #f9d4b5; border-left: 4px solid var(--eq-orange); border-radius: var(--eq-radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.eq-confirm p { margin-bottom: .6rem; }
.eq-confirm ul { margin: 0 0 .75rem; padding-left: 1.2rem; }

.eq-checklist { padding: 1rem 1.25rem; margin-bottom: .75rem; }
.eq-checklist-head { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.eq-progress { height: .4rem; background: var(--eq-blue-grey-20); border-radius: 999px; overflow: hidden; margin-bottom: .6rem; }
.eq-progress span { display: block; height: 100%; background: var(--eq-orange); }
.eq-items { list-style: none; margin: 0; padding: 0; }
.eq-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.eq-items li.done span:first-of-type { text-decoration: line-through; color: var(--eq-blue-grey); }
.eq-items label { display: flex; align-items: center; cursor: pointer; }

.eq-tabs { display: flex; gap: 1.4rem; border-bottom: var(--eq-line); margin-bottom: 1rem; }
.eq-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .5rem 0 .6rem; font: inherit; font-weight: 500; color: var(--eq-blue-grey); cursor: pointer; }
.eq-tabs button.active { color: var(--eq-dark-blue); border-bottom-color: var(--eq-orange); }
.eq-comment { background: var(--eq-white); border: var(--eq-line); border-radius: var(--eq-radius); padding: .8rem 1rem; margin-bottom: .6rem; }
.eq-comment-head { margin-bottom: .2rem; }
.eq-comment p:last-child { margin-bottom: 0; }
.eq-activity { list-style: none; margin: 0; padding: 0; }
.eq-activity li { padding: .5rem 0; border-bottom: var(--eq-line); }
.eq-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eq-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; white-space: nowrap; }
.eq-status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--dot, var(--eq-blue-grey)); }

/* ------------------------------------------------------------------------------------------------ list and board */
.eq-subnav { display: flex; gap: 1.4rem; border-bottom: var(--eq-line); margin-bottom: 1rem; }
.eq-subnav a { padding: .4rem 0 .6rem; text-decoration: none; color: var(--eq-blue-grey); font-weight: 500; border-bottom: 3px solid transparent; }
.eq-subnav a.active { color: var(--eq-dark-blue); border-bottom-color: var(--eq-orange); }
.eq-filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; background: var(--eq-white); border: var(--eq-line); border-radius: var(--eq-radius); padding: 1rem 1.25rem .5rem; margin-bottom: 1rem; }
.eq-filters .eq-field { margin-bottom: .5rem; }
.eq-filters label { font-size: .82rem; color: var(--eq-blue-grey); }
.eq-filters select, .eq-filters input[type=text] { max-width: 12rem; min-height: 2.3rem; }
.eq-filters .eq-actions { margin: 0 0 .5rem; }
.eq-table th a { color: inherit; text-decoration: none; }
.eq-table th a:hover { color: var(--eq-dark-blue); text-decoration: underline; }
.eq-table th[aria-sort] a::after { content: " \2191"; }
.eq-table th[aria-sort=descending] a::after { content: " \2193"; }
.eq-closed td { color: var(--eq-blue-grey); }

.eq-boardopt { display: inline-block; margin-bottom: 1rem; }
.eq-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.eq-column { flex: 0 0 16rem; background: var(--eq-blue-grey-10); border-radius: var(--eq-radius); padding: .75rem; }
.eq-column h2 { margin: 0 0 .6rem; font-size: .95rem; display: flex; justify-content: space-between; }
.eq-cardlet { background: var(--eq-white); border: var(--eq-line); border-radius: var(--eq-radius-sm); padding: .7rem .8rem; margin-bottom: .6rem; }
.eq-cardlet a { font-weight: 500; }
.eq-cardlet p { margin: .2rem 0; }
.eq-cardlet select { max-width: none; width: 100%; min-height: 2rem; padding: .2rem .5rem; font-size: .85rem; margin-top: .3rem; }
.eq-meta { display: flex; gap: .75rem; align-items: center; font-size: .82rem; }

@media (max-width: 860px) {
  .eq-detail { grid-template-columns: 1fr; }
  .eq-detail-side { order: -1; }
}

/* ------------------------------------------------------------------------------------------------ attachments */
.eq-drop { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 4.5rem; padding: 1rem; margin: .5rem 0; border: 2px dashed var(--eq-blue-grey-40); border-radius: var(--eq-radius); background: var(--eq-blue-grey-5); transition: border-color .12s, background .12s; }
.eq-drop:hover, .eq-drop:focus-within { border-color: var(--eq-orange); background: var(--eq-orange-10); }
/* The real file input covers the whole zone, so clicking and dropping both land on it. */
.eq-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; cursor: pointer; }
.eq-drop input[type=file]:disabled { cursor: progress; }
.eq-files { list-style: none; margin: 0 0 .75rem; padding: 0; }
.eq-file { display: flex; align-items: center; gap: .85rem; padding: .55rem .25rem; border-bottom: var(--eq-line); }
.eq-file:last-child { border-bottom: 0; }
.eq-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eq-file-main a, .eq-file-main > span:first-child { overflow-wrap: anywhere; font-weight: 500; }
.eq-file-actions { display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.eq-thumb { flex: none; width: 3.4rem; height: 3.4rem; border-radius: var(--eq-radius-sm); overflow: hidden; background: var(--eq-blue-grey-20); display: inline-flex; align-items: center; justify-content: center; }
.eq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-thumb-type { font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--eq-dark-blue); }
.eq-files-small .eq-thumb { width: 2.4rem; height: 2.4rem; }
.eq-comment .eq-files { margin: .5rem 0 0; }
.eq-danger-text { color: var(--eq-bad); }
@media (max-width: 600px) { .eq-file { flex-wrap: wrap; } .eq-file-actions { flex-basis: 100%; } }

.eq-hidden { display: none !important; }

/* ------------------------------------------------------------------------------------------------ rich text */
.eq-rich { overflow-wrap: anywhere; }
.eq-rich > :first-child { margin-top: 0; }
.eq-rich > :last-child { margin-bottom: 0; }
.eq-rich h1, .eq-rich h2, .eq-rich h3, .eq-rich h4 { margin: 1.1rem 0 .5rem; }
.eq-rich h1 { font-size: 1.5rem; } .eq-rich h2 { font-size: 1.25rem; } .eq-rich h3 { font-size: 1.1rem; } .eq-rich h4 { font-size: 1rem; }
.eq-rich p { max-width: none; margin: 0 0 .8rem; }
.eq-rich ul, .eq-rich ol { margin: 0 0 .8rem; padding-left: 1.6rem; }
.eq-rich blockquote { margin: 0 0 .8rem; padding: .2rem 1rem; border-left: 4px solid var(--eq-blue-grey-40); color: var(--eq-dark-blue-80); }
.eq-rich pre { margin: 0 0 .8rem; padding: .75rem 1rem; background: var(--eq-blue-grey-10); border: var(--eq-line); border-radius: var(--eq-radius-sm); overflow-x: auto; }
.eq-rich code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; background: var(--eq-blue-grey-10); padding: .1rem .3rem; border-radius: 4px; }
.eq-rich pre code { background: none; padding: 0; }
.eq-rich hr { margin: 1rem 0; }
.eq-rich table { border-collapse: collapse; margin: 0 0 .8rem; max-width: 100%; }
.eq-rich th, .eq-rich td { border: 1px solid var(--eq-blue-grey-40); padding: .4rem .6rem; vertical-align: top; }
.eq-rich th { background: var(--eq-blue-grey-10); font-weight: 600; text-align: left; }

/* The editor: same corners and focus colour as the other fields. */
.eq-field .e-richtexteditor { border-radius: var(--eq-radius-sm); font-family: var(--eq-font-body); }
.eq-field .e-richtexteditor:focus-within { border-color: var(--eq-orange); box-shadow: var(--eq-focus); }
.eq-field .e-richtexteditor .e-content { font-family: var(--eq-font-body); font-size: .9375rem; color: var(--eq-dark-grey); }
