/* Yorkshire Haulage Tickets - dark navy and blue branding */
:root {
  color-scheme: dark;
  --bg: #091321;
  --bg-alt: #0c192d;
  --sidebar: #0b1729;
  --surface: #102037;
  --surface-hover: #162b48;
  --surface-strong: #132642;
  --line: #273d5e;
  --line-soft: #1c304d;
  --text: #edf4ff;
  --muted: #9eb1cd;
  --blue: #3489ea;
  --blue-hover: #4899f4;
  --blue-soft: #a5d0ff;
  --ring: #76b6ff;
  --success: #48dba1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #81bcff; text-decoration: none; }
a:hover { color: #d2e8ff; }
button, input, textarea, select { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.layout { min-height: 100vh; display: flex; }
.sidebar {
  width: 264px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d2038, var(--sidebar) 37%);
  border-right: 1px solid var(--line-soft); padding: 27px 15px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 3px 6px 30px; color: #fff; font-weight: 750; font-size: 15px; line-height: 1.27; }
.brand:hover { color: #fff; }
.brand-icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #152b49; border: 1px solid #35557c; box-shadow: inset 0 0 20px #ffffff05; }
.brand-icon img { width: 49px; height: 49px; object-fit: contain; }
.brand-wordmark { min-width: 0; }
.brand small { display: block; font-size: 10px; letter-spacing: 1.85px; color: #80baff; font-weight: 800; padding-top: 5px; }
.nav { display: grid; gap: 7px; }
.nav a { display: block; padding: 13px 15px; border: 1px solid transparent; border-radius: 10px; color: #a7bdd8; font-weight: 640; transition: background .15s, color .15s, border-color .15s; }
.nav a:hover { background: #172e4c; color: #e4f1ff; }
.nav a.active { background: linear-gradient(90deg, #193f74, #142c4c); color: #fff; border-color: #2d5788; box-shadow: inset 3px 0 0 var(--blue); }
.aside-bottom { margin-top: auto; padding: 18px 10px 2px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.account { padding: 18px 0; line-height: 1.8; }
.account strong { color: #fff; }
.status { display: flex; gap: 9px; align-items: center; font-size: 12px; }
.status-dot { height: 9px; width: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px #3cb58a75; }
.status-dot.offline { background: #ee737e; box-shadow: none; }
.link-button { border: 0; background: none; color: var(--blue-soft); padding: 0; cursor: pointer; text-align: left; }
.link-button:hover { color: #fff; }
.main { flex: 1; min-width: 0; }
.topbar { height: 74px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; padding: 0 36px; color: var(--muted); background: #0d1b30; }
.topbar strong { color: #edf4ff; font-weight: 700; }
.crumb { color: #7f96b7; }
.top-account { font-size: 12px; color: #dbeaff; }
.content { padding: 38px 40px 70px; max-width: 1500px; margin: auto; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
h1 { font-size: 30px; letter-spacing: -.8px; margin: 7px 0 9px; line-height: 1.18; }
h2 { font-size: 17px; margin: 0 0 18px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.heading p, p { color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.eyebrow { font-weight: 800; font-size: 11px; letter-spacing: 2px; color: #7cb7ff; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid #4d9af2; border-radius: 10px; padding: 12px 17px; background: linear-gradient(180deg, var(--blue-hover), #2875d1); color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; box-shadow: 0 5px 16px #0b4a951c; }
.btn:hover { background: #519fff; color: #fff; }
.btn-secondary { background: #193c65; border-color: #3f77af; }
.btn-ghost { background: transparent; border-color: #3d5472; color: #d8e9ff; box-shadow: none; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 26px 0 36px; }
.stat { background: linear-gradient(145deg, #142740, #0e1d32); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 12px 30px #020a1715; }
.stat span, .stat small { display: block; color: var(--muted); }
.stat strong { display: block; font-size: 36px; letter-spacing: -1px; margin: 10px 0 3px; color: #f3f8ff; }
.stat small { font-size: 12px; }
.surface { background: linear-gradient(145deg, #13263f, #102035); border: 1px solid var(--line); border-radius: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 12px; }
.section-head a { font-size: 13px; }
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 18px; border-bottom: 1px solid #263a57; font-size: 13px; white-space: nowrap; }
th { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #9cb1ce; }
td { color: #dae5f4; }
tbody tr:last-child td { border: 0; }
code { font: 12px ui-monospace, Consolas, monospace; color: #afcdff; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 750; text-transform: uppercase; background: #17406d; color: #98caff; }
.pill.closed { background: #2a394f; color: #c3cfe0; }
.empty { color: #a0b5d2; text-align: center; padding: 45px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.panel-card { padding: 23px; color: #fff; display: block; }
.panel-card:hover { border-color: #477bbb; background: #172f4b; color: #fff; }
.panel-card p { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 42px; }
.panel-card small { font-size: 12px; color: #9bc6ff; }
.panel-emoji { font-size: 30px; display: block; margin-bottom: 14px; }
.form-columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(290px,1fr); gap: 18px; align-items: start; }
.form-card { padding: 27px; margin-bottom: 18px; }
label { display: block; color: #dbe7f7; font-weight: 600; margin-bottom: 18px; }
input:not([type=checkbox]),textarea,select { font: inherit; display: block; width: 100%; border: 1px solid #385270; background: #0b192a; color: #edf6ff; border-radius: 9px; margin-top: 9px; padding: 13px; outline: none; }
input:focus,textarea:focus,select:focus { border-color: var(--ring); }
textarea { resize: vertical; }
.inline-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.check-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 13px; margin-bottom: 22px; gap: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px; border-radius: 6px; font-size: 13px; }
.check-row:hover { background: #1b3554; }
.check-row input { accent-color: var(--blue); height: 16px; width: 16px; flex-shrink: 0; }
.muted { color: #a2b5d0; }
.small { font-size: 12px; }
.hint { margin-top: 16px; }
.tabs { display: flex; gap: 6px; margin: 20px 0; }
.tabs a { padding: 11px 18px; border-radius: 8px; color: #aec3de; }
.tabs .selected { color: #eff7ff; background: #1b416c; }
.settings-card { max-width: 900px; }
.settings-card h2:not(:first-child) { margin-top: 27px; }
.details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-bottom: 25px; }
.details small { color: #95bfff; }
.details p { margin-top: 4px; color: #edf6ff; }
.notice { background: #17345c; border: 1px solid #3469ae; padding: 15px 18px; border-radius: 9px; margin-bottom: 25px; color: #d6eaff; }
/* Branded login */
.login-main { margin: auto; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 100vh; padding: 34px 20px; background: radial-gradient(ellipse at 52% 18%, #193c6c 0%, #10243f 28%, #091321 68%); }
.login-wrap { width: 100%; max-width: 520px; }
.login-brand { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 28px; }
.login-brand img { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 4px 18px #3d93fc32); }
.login-brand span { display: flex; flex-direction: column; text-align: left; gap: 3px; }
.login-brand strong { color: #f5f9ff; font-weight: 810; font-size: 22px; letter-spacing: -.4px; }
.login-brand small { color: #80bbff; font-size: 11px; letter-spacing: 4px; font-weight: 800; }
.login-card { border: 1px solid #385b88; background: linear-gradient(150deg,#172e50,#101f37 58%,#11233d); padding: 43px 42px; border-radius: 20px; text-align: center; box-shadow: 0 24px 90px #0007, inset 0 1px #ffffff12; }
.login-symbol { display: inline-grid; place-items: center; width: 66px; height: 66px; font-size: 29px; margin-bottom: 18px; border-radius: 16px; border: 1px solid #3b6293; background: #1c3d69; }
.login-card h1 { font-size: clamp(30px, 5vw, 39px); letter-spacing: -1.3px; margin: 12px 0 14px; }
.gradient-text { color: #8fc4ff; }
.login-card p { margin: 12px auto 26px; max-width: 390px; }
.btn-discord { background: #5865f2; border-color: #8b94ff; width: 100%; max-width: 340px; box-shadow: 0 8px 24px #5865f235; }
.btn-discord:hover { background: #6976ff; }
.login-note { font-size: 12px; color: #a1b8d7; margin-top: 21px; }
.error-card { max-width: 620px; margin: 30px auto; }
.error-card .btn { margin-top: 20px; }
@media (max-width: 950px) {
  .form-columns { grid-template-columns: 1fr; }
  .content { padding: 30px 22px; }
  .sidebar { width: 226px; }
  .stat-grid { gap: 8px; }
}
@media (max-width: 660px) {
  .layout { display: block; }
  .sidebar { height: auto; width: 100%; position: relative; padding: 10px; display: block; }
  .brand { padding: 6px 5px 10px; }
  .nav { display: flex; overflow: auto; }
  .nav a { white-space: nowrap; padding: 11px; }
  .aside-bottom, .topbar { display: none; }
  .heading { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .content { padding: 24px 16px; }
  .form-card { padding: 20px; }
  .inline-fields { grid-template-columns: 1fr; }
  .login-card { padding: 32px 23px; }
  .login-brand strong { font-size: 19px; }
}
