/* Hornsby Logistics NPT — dashboard & login */
:root {
  --brand-blue: #146FA6;
  --brand-ink: #231F20;
  --navy: #0f2744;
  --navy-2: #16375f;
  --steel: #1c3a5a;
  --ink: #231F20;
  --muted: #5b6b7c;
  --line: #d5dde6;
  --bg: #eef2f6;
  --card: #ffffff;
  --accent: #146FA6;
  --accent-ink: #ffffff;
  --good: #1d7a46;
  --good-bg: #e7f6ee;
  --warn: #9a6b00;
  --warn-bg: #fff4d6;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --info: #185fa5;
  --info-bg: #e7f1fb;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 39, 68, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--navy-2); }
.npt-brand { display: flex; gap: 12px; align-items: center; }
.npt-mark {
  width: 42px; height: 42px; border-radius: 0;
  background: transparent; color: inherit;
  display: block; padding: 0; object-fit: contain;
}
.npt-tagline { font-size: 13px; opacity: .85; font-weight: 400; }
.npt-app .npt-lang a {
  color: #fff; text-decoration: none; margin-left: 10px; font-size: 14px;
  padding: 4px 8px; border-radius: 999px; border: 1px solid transparent;
}
.npt-app .npt-lang a.is-active { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }

/* ——— Login splash ——— */
.npt-login-body {
  background: #f3f5f7;
  min-height: 100vh;
  min-height: 100dvh;
}
.npt-splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 40px;
  position: relative;
}
.npt-splash-lang {
  position: absolute;
  top: 20px;
  right: 24px;
}
.npt-login-body .npt-lang a {
  color: var(--brand-ink);
  text-decoration: none;
  margin-left: 8px;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.npt-login-body .npt-lang a.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}
.npt-splash-brand {
  text-align: center;
  margin: 0 0 28px;
}
.npt-splash-logo {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 18px;
}
.npt-splash-name {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
  line-height: 1.15;
}
.npt-splash-tagline {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.npt-login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 16px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
  border: 1px solid #e6ebf0;
}
.npt-login-card h2 { margin: 0 0 8px; font-size: 22px; color: var(--brand-ink); }
.npt-login-body .npt-btn-primary.npt-btn-login {
  width: 100%;
  padding: 12px 16px;
  background: var(--brand-blue);
  margin-top: 4px;
}
.npt-login-body .npt-btn-primary.npt-btn-login:hover { background: #0f5d8c; }
.npt-form label.npt-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.npt-login-body .npt-form input[type=text]:focus,
.npt-login-body .npt-form input[type=password]:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 1px;
  border-color: var(--brand-blue);
}
.npt-splash-foot {
  max-width: 420px;
  text-align: center;
  margin: 22px auto 0;
  padding: 0 8px;
}
.npt-lead, .npt-footnote { color: var(--muted); font-size: 14px; }
.npt-form { display: grid; gap: 14px; margin-top: 16px; }
.npt-form label, .npt-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.npt-form input[type=text], .npt-form input[type=password], .npt-form input[type=email],
.npt-form input[type=date], .npt-form input[type=datetime-local], .npt-form input[type=number],
.npt-form input[type=url], .npt-form select, .npt-form textarea,
.npt-field input, .npt-field select, .npt-field textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; width: 100%;
}
.npt-form textarea, .npt-field textarea { min-height: 72px; resize: vertical; }
.npt-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.npt-btn {
  appearance: none; border: 0; border-radius: 8px; padding: 10px 16px;
  font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.npt-btn-primary { background: var(--navy); color: #fff; }
.npt-btn-primary:hover { background: var(--navy-2); }
.npt-btn-secondary { background: #e8eef5; color: var(--navy); }
.npt-btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.npt-btn-danger { background: var(--bad-bg); color: var(--bad); }
.npt-alert { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 12px; }
.npt-alert-error { background: var(--bad-bg); color: var(--bad); }
.npt-alert-warn { background: var(--warn-bg); color: var(--warn); }
.npt-alert-good { background: var(--good-bg); color: var(--good); }
.npt-alert-info { background: var(--info-bg); color: var(--info); }

.npt-app { background: var(--bg); }
.npt-shell { min-height: 100vh; display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.npt-top {
  background: var(--navy); color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 12px 18px; flex-wrap: wrap;
}
.npt-top .npt-brand strong { color: #fff; }
.npt-top-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.npt-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px;
}
.npt-badge.pending { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.npt-badge.offline { background: #7a2e12; }
.npt-nav {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center; align-self: start; background: var(--steel); padding: 8px 14px;
}
.npt-nav button {
  background: transparent; color: #dce6f2; border: 0; font: inherit; padding: 8px 12px;
  border-radius: 8px; cursor: pointer;
}
.npt-nav button.is-active, .npt-nav button:hover { background: rgba(255,255,255,.12); color: #fff; }
.npt-main { padding: 18px; max-width: 1280px; margin: 0 auto; width: 100%; }
.npt-grid { display: grid; gap: 16px; }
.npt-card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border: 1px solid #e6ebf0;
}
.npt-card h2 { margin: 0 0 14px; font-size: 20px; }
.npt-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.npt-fields .wide { grid-column: 1 / -1; }
.npt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.npt-duration {
  font-size: 28px; font-weight: 750; color: var(--navy); letter-spacing: -0.03em;
}
.npt-table-wrap { overflow: auto; }
table.npt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.npt-table th, .npt-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.npt-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #f7f9fb; }
.npt-table tr.is-double { background: #fde8e6; }
.npt-table tr.has-overlap { box-shadow: inset 3px 0 0 var(--accent); }
.npt-pill { font-size: 11px; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.npt-pill-open { background: var(--info-bg); color: var(--info); }
.npt-pill-needs_info { background: var(--warn-bg); color: var(--warn); }
.npt-pill-reviewed { background: var(--good-bg); color: var(--good); }
.npt-pill-draft { background: #eee; color: #555; }
.npt-muted { color: var(--muted); font-size: 13px; }
.npt-print-header { display: none; }
@media print {
  .npt-top, .npt-nav, .npt-actions, .npt-lang, button, .npt-no-print { display: none !important; }
  body, .npt-app, .npt-main { background: #fff; }
  .npt-card { box-shadow: none; border: 0; }
  .npt-print-header { display: block; margin-bottom: 16px; }
  .npt-table th, .npt-table td { border: 1px solid #ccc; }
}
@media (max-width: 720px) {
  .npt-splash { padding: 64px 16px 28px; justify-content: flex-start; }
  .npt-splash-lang { top: 14px; right: 14px; }
  .npt-splash-logo { width: 112px; height: 112px; margin-bottom: 14px; }
  .npt-splash-name { font-size: 24px; }
  .npt-splash-tagline { font-size: 15px; }
  .npt-splash-brand { margin-bottom: 22px; }
  .npt-login-card { margin: 0; padding: 22px 18px 20px; }
  .npt-login-body .npt-form input[type=text],
  .npt-login-body .npt-form input[type=password] { padding: 12px 12px; min-height: 44px; }
  .npt-main { padding: 12px; }
  .npt-fields { grid-template-columns: 1fr; }
  .npt-top { padding: 10px 12px; }
}
