/* Accountant version of Mijn Dossier, and the sign-up page in front of it (boekhouders/account/).
   Prototype: accountant.js keeps everything in this browser's localStorage. */

/* Sign-up and log-in card */
.acc-page { min-height: 100vh; background: var(--surface); }
.acc-top { height: 64px; display: flex; align-items: center; padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.acc-top img { display: block; width: 116px; height: auto; }
.acc-top a + a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.acc-wrap { display: grid; gap: 32px; max-width: 1040px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.acc-card { padding: 32px 24px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-card); }
.acc-card h1 { font-family: var(--display); font-size: 30px; line-height: 36px; letter-spacing: -.5px; color: var(--ink); }
.acc-card__sub { margin-top: 10px; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.acc-card__intro { margin-top: 14px; color: var(--muted-2); font-size: 16px; line-height: 25px; }
.acc-form { display: grid; gap: 14px; margin-top: 28px; }
.acc-row { display: grid; gap: 14px; }
.acc-field { display: grid; gap: 6px; }
.acc-field > span { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.acc-field small { font-weight: 500; color: var(--muted); }
.acc-input, .acc-select, .acc-textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.acc-textarea { min-height: 96px; resize: vertical; }
.acc-input:focus, .acc-select:focus, .acc-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.acc-input[aria-invalid="true"] { border-color: #d92d20; }
.acc-pass { position: relative; }
.acc-pass button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.acc-choice { display: grid; gap: 10px; }
.acc-choice label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-size: 15px; line-height: 22px; color: var(--ink); }
.acc-choice label:has(input:checked) { border-color: var(--accent); background: #fff7f4; }
.acc-choice input { margin-top: 3px; accent-color: var(--accent); }
.acc-choice small { display: block; color: var(--muted); }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 21px; color: var(--muted-2); }
.acc-check input { margin-top: 3px; accent-color: var(--accent); }
.acc-error { padding: 12px 14px; border-radius: var(--r-sm); background: #fef3f2; color: #b42318; font-size: 14px; line-height: 20px; font-weight: 600; }
.acc-form .btn { width: 100%; margin-top: 6px; }
.acc-switch { margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.acc-switch a { color: var(--ink); font-weight: 700; }
.acc-proto { margin-top: 18px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ph); color: var(--ink-2); font-size: 13px; line-height: 19px; }
.acc-aside { display: grid; gap: 20px; align-content: start; }
.acc-aside h2 { font-family: var(--display); font-size: 22px; line-height: 28px; color: var(--ink); }
.acc-aside ul { display: grid; gap: 14px; }
.acc-aside li { display: flex; gap: 12px; color: var(--muted-2); font-size: 16px; line-height: 24px; }
.acc-aside li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.acc-aside li strong { color: var(--ink); }
.acc-person { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--ring); }
.acc-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.acc-person p { font-size: 14px; line-height: 20px; color: var(--muted); }
.acc-person strong { display: block; font-size: 15px; color: var(--ink); }
@media (min-width: 640px) { .acc-row--2 { grid-template-columns: 1fr 1fr; } .acc-card { padding: 40px; } }
@media (min-width: 960px) { .acc-wrap { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; padding-top: 56px; } .acc-aside { padding-top: 40px; } }

/* Dashboard shell */
.ad { min-height: 100vh; display: grid; grid-template-rows: auto auto 1fr; background: var(--surface); }
.ad-head { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.ad-head__logo img { display: block; width: 104px; height: auto; }
.ad-head__caption { display: none; padding-left: 16px; border-left: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted-2); }
.ad-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ad-badge svg { width: 14px; height: 14px; color: var(--accent); }
.ad-head__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ad-head__office { display: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.ad-head__out { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted-2); cursor: pointer; }
.ad-proto { padding: 8px var(--gutter); background: var(--ph); color: var(--ink-2); font-size: 13px; line-height: 18px; text-align: center; }
.ad-body { display: grid; align-content: start; }
.ad-nav { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.ad-nav a { display: flex; align-items: center; gap: 10px; flex: none; padding: 10px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--muted-2); text-decoration: none; }
.ad-nav a svg { width: 20px; height: 20px; }
.ad-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.ad-nav a[aria-current="page"] svg { color: var(--accent); }
.ad-nav .ad-nav__help { display: none; }
.ad-title .btn svg { width: 18px; height: 18px; }
.ad-main { padding: 28px var(--gutter) 64px; max-width: 1120px; width: 100%; }
.ad-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ad-title h1 { font-family: var(--display); font-size: 28px; line-height: 34px; letter-spacing: -.4px; color: var(--ink); }
.ad-title p { margin-top: 6px; color: var(--muted-2); }
.ad-back { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--muted-2); text-decoration: none; }
.ad-back svg { width: 16px; height: 16px; transform: rotate(180deg); }

/* Overview */
.ad-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.ad-stat { padding: 18px; border-radius: var(--r-md); background: #fff; box-shadow: var(--ring); }
.ad-stat strong { display: block; font-family: var(--display); font-size: 28px; line-height: 34px; color: var(--ink); }
.ad-stat span { font-size: 14px; line-height: 20px; color: var(--muted); }
.ad-stat--todo strong { color: var(--accent); }
.ad-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ad-search { flex: 1 1 240px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 15px; }
.ad-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-filter button { height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted-2); cursor: pointer; }
.ad-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.ad-list { display: grid; gap: 10px; margin-top: 16px; }
.ad-client { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-md); background: #fff; box-shadow: var(--ring); color: inherit; text-decoration: none; }
.ad-client:hover { box-shadow: 0 0 0 1px var(--control); }
.ad-client__name { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.ad-client__sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.ad-client__turn { font-size: 14px; line-height: 20px; color: var(--muted-2); }
.ad-client__turn strong { color: var(--ink); }
.ad-client__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted-2); }
.ad-pill--you { background: #fff1ec; color: #c4320a; }
.ad-pill--done { background: #ecfdf3; color: #067647; }
.ad-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ad-bar span { height: 6px; border-radius: 3px; background: var(--line-2); }
.ad-bar span.is-done { background: var(--ink); }
.ad-bar span.is-now { background: var(--accent); }
.ad-empty { margin-top: 24px; padding: 40px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--ring); text-align: center; }
.ad-empty h2 { font-family: var(--display); font-size: 22px; line-height: 28px; color: var(--ink); }
.ad-empty p { max-width: 520px; margin: 10px auto 0; color: var(--muted-2); }
.ad-empty .ad-actions { justify-content: center; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ad-link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted-2); text-decoration: underline; cursor: pointer; }

/* Panels (new client, client detail, office) */
.ad-grid { display: grid; gap: 16px; margin-top: 24px; }
.ad-panel { padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--ring); }
.ad-panel h2 { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.ad-panel > p { margin-top: 6px; color: var(--muted-2); font-size: 15px; line-height: 23px; }
.ad-panel .acc-form { margin-top: 18px; }
.ad-now { border-left: 4px solid var(--accent); }
.ad-now__who { font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }
.ad-steps { display: grid; gap: 0; margin-top: 16px; }
.ad-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.ad-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.ad-step:last-child::before { display: none; }
.ad-step__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-2); }
.ad-step__dot svg { width: 16px; height: 16px; }
.ad-step.is-done .ad-step__dot { background: var(--ink); color: #fff; box-shadow: none; }
.ad-step.is-now .ad-step__dot { background: var(--accent); color: #fff; box-shadow: none; }
.ad-step strong { display: block; font-size: 15px; line-height: 22px; color: var(--ink); }
.ad-step span { font-size: 14px; line-height: 20px; color: var(--muted); }
.ad-facts { display: grid; gap: 10px; margin-top: 14px; }
.ad-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; font-size: 14px; line-height: 21px; }
.ad-facts dt { color: var(--muted); }
.ad-facts dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ad-docs { display: grid; gap: 8px; margin-top: 14px; }
.ad-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; line-height: 20px; color: var(--ink); }
.ad-doc svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.ad-doc em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.ad-doc.is-ready svg, .ad-doc.is-ready em { color: #067647; }
.ad-log { display: grid; gap: 10px; margin-top: 14px; }
.ad-log li { display: grid; gap: 2px; font-size: 14px; line-height: 20px; color: var(--ink); }
.ad-log time { font-size: 12px; color: var(--muted); }
.ad-sim { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ph); font-size: 13px; line-height: 19px; color: var(--ink-2); }
.ad-sim button { margin-top: 6px; }
.ad-toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; transition: .2s; pointer-events: none; }
.ad-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .ad-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-client { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 20px; }
}
@media (min-width: 1024px) {
  .ad-head__caption, .ad-head__office { display: block; }
  .ad-body { grid-template-columns: 248px minmax(0, 1fr); }
  .ad-nav { flex-direction: column; overflow: visible; padding: 28px 16px; border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100vh - 64px); position: sticky; top: 64px; align-self: start; }
  .ad-nav .ad-nav__help { display: flex; margin-top: auto; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); text-decoration: none; }
  .ad-nav__help img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
  .ad-nav__help span { font-size: 13px; line-height: 18px; color: var(--muted); }
  .ad-nav__help strong { display: block; font-size: 14px; color: var(--ink); }
  .ad-main { padding: 40px 48px 80px; }
  .ad-grid--2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
.acc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
