/* Hand-written, no build step: there is no Node toolchain on this machine and none is
   coming (CLAUDE.md rule 8). The palette is the sidebar's own — graphite rail, light grey
   content — so the shell and the desktop's menu look like one program. */

:root {
  --rail:     #1c1f26;
  --page:     #f6f7fc;
  --card:     #ffffff;
  --ink:      #1c1f26;
  --muted:    #646874;
  --line:     #e3e5ee;
  --indigo:   #2834d4;
  --red:      #dc2626;
  --font:     'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

/* The hidden attribute loses to any class that sets display; the marketing site paid for
   that one with an empty red box on screen. */
[hidden] { display: none !important; }

code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }

/* ── The shell ─────────────────────────────────────────────────────────── */

.erp-shell { display: flex; height: 100vh; overflow: hidden; }

#erp-sidebar {
  width: 270px;
  flex: 0 0 auto;
  height: 100%;
  border: 0;
  background: var(--rail);
  transition: width 140ms ease;
}

.erp-content { flex: 1 1 auto; overflow: auto; padding: 32px 40px; }
.erp-content header { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.erp-content h1 { font-size: 1.5rem; font-weight: 600; }
.erp-content .note { color: var(--muted); margin-bottom: 22px; }

.placeholder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  max-width: 62ch;
}
.placeholder p + p { margin-top: 10px; color: var(--muted); }

/* ── Sign in ───────────────────────────────────────────────────────────── */
/* Two halves (user, 2026-11-06, approved as .previews/signin.html): the door on the left, and on
   the right a dark panel that asks who is signing in: a forwarding partner on free access, or a
   paid ERP account. The switch is two radios and sibling selectors, because the page has no script. */

.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; }

.signin-door { display: flex; flex-direction: column; padding: 40px 56px; }
.signin-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
/* The logo (Components/BrandMark.razor): an inline SVG; its navy dots take this fill. */
.brand-mark { width: 54px; height: 22px; flex: none; display: block; fill: #3E5D7F; }
.signin-door-body { flex: 1; display: grid; place-items: center; padding: 24px 0; }

.signin .card { width: min(100%, 400px); }
.signin h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
.signin .lead { color: var(--muted); margin: 8px 0 28px; line-height: 1.5; }

.signin-passkey {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 12px 16px; border-radius: 9px; background: var(--indigo); color: #fff;
  font-weight: 500; text-decoration: none; transition: filter .12s;
}
.signin-passkey:hover { filter: brightness(1.1); }
.signin-passkey svg { width: 18px; height: 18px; }

/* The emulator's password door (Erp:PasswordSignIn), scoped to its form so the switch's labels keep their own look. */
.signin form label { display: block; font-size: 0.86rem; font-weight: 500; margin: 14px 0 5px; }

.signin form input {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbfe;
}
.signin form input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: transparent; }

.signin form button {
  width: 100%;
  font: inherit;
  font-weight: 500;
  margin-top: 22px;
  padding: 10px;
  color: #fff;
  background: var(--indigo);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.signin form button:hover { filter: brightness(1.08); }

.signin .fine { margin-top: 16px; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.signin .fine a, .signin-foot a { color: var(--indigo); }
.signin-divider { height: 1px; background: var(--line); margin: 28px 0 20px; }
.signin-foot { font-size: 0.78rem; color: var(--muted); }

/* The right half. */
.signin-pitch {
  --dark: #0f1218; --dark-2: #171b23; --dark-line: #2a303c; --dark-ink: #e9ebf1; --dark-muted: #9aa1b0;
  --blue: #4c7dff; --green: #3fb37f; --paid: #b8c6ff;
  background: radial-gradient(1200px 600px at 85% -10%, #1d2a55 0%, transparent 60%), var(--dark);
  color: var(--dark-ink); padding: 40px 64px;
  display: flex; flex-direction: column; gap: 24px; overflow: auto;
}

.who-radio { position: absolute; opacity: 0; pointer-events: none; }
.who {
  display: flex; gap: 6px; align-self: flex-start;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 999px; padding: 4px;
}
.who label { font-size: 0.86rem; color: var(--dark-muted); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.who label:hover { color: var(--dark-ink); }
#who-partner:checked ~ .who label[for="who-partner"],
#who-paid:checked ~ .who label[for="who-paid"] { background: #fff; color: var(--ink); font-weight: 500; }
#who-partner:focus-visible ~ .who label[for="who-partner"],
#who-paid:focus-visible ~ .who label[for="who-paid"] { outline: 2px solid var(--blue); outline-offset: 2px; }

.who-panel { display: none; flex-direction: column; gap: 22px; }
#who-partner:checked ~ .who-panel--partner,
#who-paid:checked ~ .who-panel--paid { display: flex; }

.signin-pitch .eyebrow { font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.signin-pitch h2 { font-size: 2.1rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; max-width: 28ch; }
.signin-pitch .intro { color: var(--dark-muted); line-height: 1.6; margin-top: 14px; max-width: 62ch; }

.compare { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: start; }
.compare .col { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px; padding: 22px; }
.compare .col--paid { border-color: #34437a; background: linear-gradient(180deg, #18203a, var(--dark-2)); }
.compare h3 { font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.signin-pitch .chip {
  font-size: 0.7rem; font-weight: 500; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--dark-line); color: var(--dark-muted); white-space: nowrap;
}
.compare .col--paid .chip { border-color: #3c4f92; color: var(--paid); }
.compare .sub { font-size: 0.8rem; color: var(--dark-muted); margin-top: 4px; line-height: 1.5; }

.signin-pitch ul.checks { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.signin-pitch ul.checks li { display: flex; gap: 10px; font-size: 0.88rem; line-height: 1.45; }
.signin-pitch ul.checks li::before {
  content: ""; flex: 0 0 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

ol.adds { list-style: none; margin-top: 16px; display: grid; gap: 14px; }
ol.adds li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
ol.adds .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #24305a; color: var(--paid); }
ol.adds .ico svg { width: 18px; height: 18px; }
ol.adds b { display: block; font-size: 0.9rem; font-weight: 600; }
ol.adds span { display: block; font-size: 0.82rem; color: var(--dark-muted); line-height: 1.5; margin-top: 2px; }
ol.adds em { font-style: normal; color: var(--paid); font-size: 0.76rem; }

.signin-pitch .sum {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--dark-line); border-radius: 14px; padding: 20px 22px; background: rgba(255, 255, 255, .03);
}
.signin-pitch .sum p { line-height: 1.55; max-width: 60ch; font-size: 0.92rem; }
.signin-pitch .sum strong { color: #fff; font-weight: 600; }
.signin-pitch .sum .muted { color: var(--dark-muted); display: block; font-size: 0.84rem; margin-top: 4px; }
.signin-pitch .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.signin-pitch .cta { padding: 11px 18px; border-radius: 9px; text-decoration: none; font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.signin-pitch .cta--primary { background: #fff; color: var(--ink); }
.signin-pitch .cta--ghost { color: var(--dark-ink); border: 1px solid var(--dark-line); }
.signin-pitch .cta:hover { filter: brightness(1.1); }

.paid-card { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px; padding: 28px; max-width: 640px; margin-top: 6px; }
.paid-card .big-check { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.paid-card .big-check svg { width: 22px; height: 22px; }
.paid-card h3 { font-size: 1.35rem; font-weight: 600; }
.paid-card > p { color: var(--dark-muted); line-height: 1.6; margin-top: 10px; }
.paid-card .paid-foot { font-size: 0.82rem; margin-top: 16px; }
.paid-card .paid-foot a { color: var(--paid); }

@media (max-width: 1100px) {
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin-door { padding: 28px; }
  .who { flex-wrap: wrap; border-radius: 14px; }
  .signin-pitch { padding: 36px 28px; overflow: visible; }
  .compare { grid-template-columns: 1fr; }
}

.notice {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #8c1d1d;
  font-size: 0.9rem;
}

main.plain { padding: 48px; }
main.plain h1 { font-size: 1.4rem; margin-bottom: 10px; }
main.plain p { color: var(--muted); margin-bottom: 8px; }

/* A module's own page fills the content area; it brings its own header and padding. */
.erp-content { position: relative; padding: 0; }
.erp-pad { padding: 32px 40px; }
.erp-surface { width: 100%; height: 100%; border: 0; display: block; background: var(--page); }

/* ── Windows ──────────────────────────────────────────────────────────────────────────
   A surface opened over another one, the way the desktop opens these screens as Forms:
   Default settings from the SOA menu, a rate contract from a rate template. The page
   inside is the same one the main view shows, so the frame gives it room and nothing
   else — no padding, no chrome of our own beyond the bar that names it and closes it. */
.erp-window-back {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgb(15 23 42 / 45%);
  padding: 28px;
}

.erp-window {
  display: flex; flex-direction: column;
  width: min(1280px, 100%); height: min(860px, 100%);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgb(15 23 42 / 28%);
}

.erp-window-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  background: var(--surface, #f8fafc);
}

.erp-window-close {
  border: 0; background: transparent; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 20px; line-height: 1; color: var(--muted);
}
.erp-window-close:hover { background: rgb(15 23 42 / 8%); color: inherit; }

.erp-window-frame { flex: 1 1 auto; width: 100%; border: 0; }

/* A window sized to its content (ShellWindows.Fit): it opens near the size a typical
   schedule needs, so the step to the measured size is small, and a page may maximize it
   (the lanes map does) — the desktop's VesselScheduleEditorForm, 2026-11-01. */
.erp-window { max-width: 100%; max-height: 100%; }
.erp-window--fit { width: min(1100px, 100%); height: min(640px, 100%); }
.erp-window--max { width: 100% !important; height: 100% !important; }
