@charset "UTF-8";
/* FareKite — admin & partner portal shell (matches public theme tokens) */

:root {
  --blue: #2149e8;
  --blue-d: #1a3ac2;
  --lime: #f1f3e7;
  --yellow: #ffc727;
  --neon: #d9f024;
  --ink: #131518;
  --text: #5f6673;
  --lightblue: #ebf3fc;
  --white: #fff;
  --line: #e9eaf0;
  --green: #0f9d58;
  --red: #e5484d;
  --orange: #b3541e;
  --shadow-soft: 0 10px 30px rgba(19, 21, 24, 0.06);
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); font-size: 14px; color: var(--text); background: #f6f7f9; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -0.2px; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* sidebar */
.side {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-logo { display: flex; align-items: center; gap: 4px; padding: 2px 10px 20px; }
.side-logo img { height: 30px; filter: brightness(0) invert(1); }
.side-logo .tag {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--neon);
  color: var(--ink);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 6px;
}
.side a.nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.side a.nav i { width: 17px; text-align: center; font-size: 13px; opacity: 0.85; }
.side a.nav:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side a.nav.on { background: var(--blue); color: #fff; }
.side .spacer { flex: 1; }
.side .who { font-size: 12px; padding: 10px 12px; color: rgba(255, 255, 255, 0.45); }

/* main */
.main { padding: 26px 30px 60px; max-width: 1200px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { font-size: 21px; }
.topbar .sub { font-size: 12.5px; color: var(--text); margin-top: 2px; }

/* cards & stats */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.stat .k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: #9aa1ad; }
.stat .v { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.stat .v small { font-size: 13px; color: var(--text); font-weight: 500; }
.stat.hi { background: var(--ink); border-color: var(--ink); }
.stat.hi .k { color: rgba(255, 255, 255, 0.55); }
.stat.hi .v { color: var(--neon); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; }
.panel-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-h h3 { font-size: 14.5px; }
.panel-b { padding: 18px; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #9aa1ad;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid #f1f2f5; vertical-align: middle; color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafbfd; }
.tbl .mut { color: #9aa1ad; font-size: 12px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
}
.b-green { background: #e5f6ee; color: var(--green); }
.b-red { background: #fdeaea; color: var(--red); }
.b-gray { background: #eef0f3; color: #6a7280; }
.b-yellow { background: #fff4d6; color: #8a6d00; }
.b-blue { background: var(--lightblue); color: var(--blue); }
.b-orange { background: #fbeee4; color: var(--orange); }

/* forms */
.frm label { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 5px; }
.frm input, .frm select, .frm textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.frm input:focus, .frm select:focus, .frm textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 73, 232, 0.1); }
.frm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.frm .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.frm .row1 { margin-bottom: 14px; }
.frm .hint { font-size: 11.5px; color: #9aa1ad; margin-top: 4px; line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-red { background: #fdeaea; color: var(--red); }
.btn-red:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }

/* flash messages */
.flash { border-radius: 10px; padding: 11px 16px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.flash.ok { background: #e5f6ee; color: #0b6b3d; }
.flash.err { background: #fdeaea; color: var(--red); }

/* filter bar */
.fbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.fbar .ff { min-width: 150px; }
.fbar label { display: block; font-size: 11px; font-weight: 600; color: #9aa1ad; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; font-family: var(--font-head); }
.fbar input, .fbar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; color: var(--ink); outline: none; }

/* login screen */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--lime); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(19, 21, 24, 0.12); padding: 38px; width: min(400px, 100%); }
.login-card .lg { display: flex; justify-content: center; margin-bottom: 8px; }
.login-card .lg img { height: 40px; }
.login-card h1 { font-size: 17px; text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; font-size: 13px; margin-bottom: 24px; }

/* misc */
.balance-big { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--ink); }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px; }
.right { text-align: right; }
.mt { margin-top: 16px; }
.help { font-size: 12.5px; color: #9aa1ad; line-height: 1.6; }

/* notices (admin broadcasts on the partner dashboard) */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; padding: 12px 15px; background: #fbfcfe; }
.notice-new { background: #eef4ff; border-left-color: var(--blue); }
.notice-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.notice-h b { font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.notice-t { margin-left: auto; font-size: 11.5px; color: #9aa1ad; }
.notice-b { font-size: 13.5px; color: var(--text); line-height: 1.6; }

/* support ticket thread */
.tk-thread { display: grid; gap: 10px; margin-bottom: 4px; }
.tk-msg { max-width: 82%; border-radius: 12px; padding: 10px 14px; }
.tk-msg.them { background: #f2f4f8; justify-self: start; border-top-left-radius: 4px; }
.tk-msg.me { background: var(--lightblue); justify-self: end; border-top-right-radius: 4px; }
.tk-meta { font-size: 11px; color: #8a919d; font-weight: 600; margin-bottom: 4px; }
.tk-body { font-size: 13.5px; color: var(--ink); line-height: 1.6; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .spacer, .side .who { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .frm .row, .frm .row3 { grid-template-columns: 1fr; }
  .main { padding: 18px 14px 50px; }
  .panel-b { overflow-x: auto; }
}
