/* Client portal (my.finwiz.co.il). Mobile first; the design is
   design/client-portal/v1: white ground, Heebo, one accent, one subject per
   screen. */

:root {
  --pt-text: #1d2b3a;
  --pt-muted: #5b6b7b;
  --pt-accent: #1f6fb2;
  --pt-accent-dark: #174f80;
  --pt-line: #eef1f5;
  --pt-border: #c9d2dc;
  --pt-ground: #ffffff;
  --pt-ground-soft: #f4f6f9;
  --pt-radius: 14px;
  --pt-ok: #1e7a46;
  --pt-warn: #a14d00;
  --pt-bad: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pt-ground);
  color: var(--pt-text);
  font-family: Heebo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--pt-accent); }
a:hover { color: var(--pt-accent-dark); }

.pt-page { min-height: 100vh; }

/* The advisor watching a client's area: always on top, never mistaken for the client's own. */
.pt-preview-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 16px;
  background: #fff4e0;
  border-bottom: 1px solid #f0d199;
  color: #6b3d00;
  font-size: 15px;
}
.pt-preview-bar form { margin: 0; }
.pt-preview-bar__end {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9a441;
  border-radius: 999px;
  background: #ffffff;
  color: #6b3d00;
  font: inherit;
  cursor: pointer;
}

/* --- sign-in screens ------------------------------------------------------ */

.pt-auth {
  max-width: 440px;
  margin: 0 auto;
  padding: 96px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pt-stack { display: flex; flex-direction: column; gap: 16px; }

.pt-logo { height: 36px; width: auto; align-self: flex-start; }
.pt-logo--center { height: 56px; align-self: center; }

.pt-title { margin: 0; font-size: 30px; font-weight: 700; }
.pt-title--large { font-size: 32px; }
.pt-lead { margin: 0; font-size: 19px; }
.pt-muted { margin: 0; color: var(--pt-muted); }
.pt-label { font-size: 15px; color: var(--pt-muted); }

.pt-input {
  height: 56px;
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
  padding: 0 16px;
  font: inherit;
  text-align: left;
}
.pt-input:focus { outline: 2px solid var(--pt-accent); outline-offset: 1px; }

.pt-button {
  height: 56px;
  border: none;
  border-radius: var(--pt-radius);
  background: var(--pt-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pt-button:hover { background: var(--pt-accent-dark); color: #ffffff; }
.pt-button--quiet { background: var(--pt-ground-soft); color: var(--pt-text); }
.pt-button--quiet:hover { background: var(--pt-line); color: var(--pt-text); }

.pt-link { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

.pt-link-button {
  min-height: 44px;
  border: none;
  background: none;
  color: var(--pt-muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* --- hub: one list of large rows ------------------------------------------ */

.pt-hub {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pt-hub__top { display: flex; justify-content: space-between; align-items: center; }

.pt-rows { display: flex; flex-direction: column; }

.pt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid var(--pt-line);
  color: var(--pt-text);
  text-decoration: none;
}
.pt-row:hover { color: var(--pt-text); background: var(--pt-ground-soft); }
.pt-row__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pt-row__title { font-size: 19px; font-weight: 500; }
.pt-row__sub { font-size: 15px; color: var(--pt-muted); }
.pt-row__sub--alert { color: var(--pt-warn); }
.pt-chevron { color: #9aa6b2; flex-shrink: 0; }

.pt-back {
  width: 44px;
  height: 44px;
  margin-inline-start: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pt-text);
}

.pt-stack--tight { gap: 6px; }

/* --- documents ------------------------------------------------------------ */

.pt-group { display: flex; flex-direction: column; gap: 4px; }
.pt-group__title { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--pt-muted); }

/* Colour is never the only signal: every state is also a word. */
.pt-state { font-size: 15px; font-weight: 500; }
.pt-state--ok { color: var(--pt-ok); }
.pt-state--missing { color: var(--pt-warn); }
.pt-state--problem { color: var(--pt-bad); }
.pt-state--pending { color: var(--pt-accent); }

.pt-notice {
  background: #fbeceb;
  border-radius: var(--pt-radius);
  padding: 14px 18px;
}
.pt-list { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; }

.pt-details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--pt-accent); }
.pt-explanation { margin: 8px 0 0; color: var(--pt-text); }

.pt-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.pt-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--pt-line);
}
.pt-file__name { overflow-wrap: anywhere; }

.pt-file__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.pt-file__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pt-file__actions form { margin: 0; }
.pt-files--nested { margin: 0; padding-inline-start: 36px; }

.pt-link-button--accent { color: var(--pt-accent); }
.pt-link-button--danger { color: var(--pt-bad); display: inline-flex; align-items: center; text-decoration: none; }
.pt-button--danger { background: var(--pt-bad); }
.pt-button--danger:hover { background: #8f1e18; }

/* --- progress: how much of the folder is in -------------------------------- */

.pt-progress { display: flex; flex-direction: column; gap: 8px; }
.pt-progress__head { display: flex; align-items: baseline; gap: 12px; }
.pt-progress__percent { font-size: 28px; font-weight: 700; }
.pt-progress__count { color: var(--pt-muted); font-size: 15px; }
.pt-progress__track { height: 10px; border-radius: 999px; background: var(--pt-line); overflow: hidden; }
.pt-progress__fill { height: 100%; border-radius: inherit; background: var(--pt-accent); transition: width 0.4s ease; }
.pt-progress__fill.is-done { background: var(--pt-ok); }

/* --- folders, as in Drive --------------------------------------------------- */

.pt-folder-icon { color: var(--pt-muted); flex-shrink: 0; }
.pt-crumb { margin: 0; color: var(--pt-muted); font-size: 15px; }

.pt-sub { display: flex; flex-direction: column; border-bottom: 1px solid var(--pt-line); padding-bottom: 8px; }
.pt-sub__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  color: var(--pt-text);
  text-decoration: none;
}
.pt-sub__head:hover { color: var(--pt-text); background: var(--pt-ground-soft); }
.pt-sub__title { font-size: 18px; font-weight: 500; }
.pt-sub__go { color: var(--pt-accent); font-size: 15px; flex-shrink: 0; }
.pt-sub__empty { padding-inline-start: 36px; padding-bottom: 8px; font-size: 15px; }

/* --- settings --------------------------------------------------------------- */

.pt-icon-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pt-muted);
}
.pt-icon-link:hover { color: var(--pt-text); background: var(--pt-ground-soft); }
.pt-icon-link:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 1px; }

.pt-settings { display: flex; flex-direction: column; gap: 28px; }
.pt-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-legend { padding: 0; margin-bottom: 8px; font-size: 19px; font-weight: 500; }
.pt-hint { font-size: 15px; }
.pt-address { text-align: right; }
.pt-add { align-self: flex-start; padding: 0; }
.pt-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  cursor: pointer;
}
.pt-check:has(input:checked) { border-color: var(--pt-accent); background: #eef5fb; }
.pt-check:has(input:focus-visible) { outline: 2px solid var(--pt-accent); outline-offset: 1px; }
.pt-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--pt-accent); }
.pt-check__text { display: flex; flex-direction: column; padding: 6px 0; }
.pt-check__sub { color: var(--pt-muted); font-size: 15px; text-align: right; }
.pt-extra { display: flex; gap: 8px; align-items: center; }
.pt-input--grow { flex: 1; min-width: 0; }
.pt-field-error { margin: 0; color: var(--pt-bad); font-size: 15px; }
.pt-saved { margin: 0; padding: 12px 16px; border-radius: var(--pt-radius); background: #e8f4ec; color: var(--pt-ok); }
.pt-signout { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--pt-line); display: flex; flex-direction: column; }
.pt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

/* --- choosing two proposals to compare ------------------------------------ */

.pt-compare { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pt-compare select.pt-input { text-align: right; background: var(--pt-ground); }

/* --- upload --------------------------------------------------------------- */

.pt-upload { display: flex; flex-direction: column; gap: 12px; }
.pt-upload.is-sending { opacity: 0.6; pointer-events: none; }
.pt-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pt-upload label { position: relative; }
.pt-upload label:focus-within { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.pt-upload__error { margin: 0; color: var(--pt-bad); }

.pt-drop {
  border: 2px dashed var(--pt-border);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
}
.pt-drop.is-over { border-color: var(--pt-accent); background: var(--pt-ground-soft); }
.pt-drop__text { margin: 0; font-size: 18px; }
.pt-drop__hint { font-size: 14px; }

/* A phone has a camera and no drag and drop; a desktop the other way round. */
@media (hover: none) and (pointer: coarse) {
  .pt-drop { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .pt-camera { display: none; }
}
