:root {
  --navy: #071833;
  --navy-2: #0c2148;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --gold: #f5c400;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e6edf5;
  --page: #f4f7fb;
  --shadow: 0 8px 24px rgba(15, 40, 80, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.app { display: flex; min-height: 100vh; min-width: 1240px; }

.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: linear-gradient(180deg, #081a3c 0%, #07142e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.sidebar::-webkit-scrollbar { width: 0; }

.brand-block {
  padding: 18px 16px 8px;
  text-align: center;
}
.brand-block img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #fff;
}
.brand-block p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.nav { padding: 8px 12px 24px; }
.nav-label {
  margin: 16px 8px 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}
.nav-item svg { flex: 0 0 auto; }
.nav-item span { white-space: nowrap; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); }
.nav-item.active {
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 700;
}
.nav-item.dash {
  background: #1e4ed8;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
  border-radius: 9px;
}
.nav-item.dash:hover { background: #1a45c4; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background:
    linear-gradient(90deg, rgba(12, 48, 140, 0.72) 0%, rgba(18, 72, 180, 0.28) 46%, rgba(8, 32, 90, 0.08) 100%),
    url("assets/header.jpg") right center / cover no-repeat;
  position: sticky;
  top: 0;
  z-index: 30;
}
.top-brand { display: flex; align-items: center; gap: 12px; color: #fff; position: relative; z-index: 1; }
.top-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #fff;
}
.top-brand strong { display: block; font-size: 26px; letter-spacing: 0.04em; line-height: 1; font-weight: 800; }
.top-brand span { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; opacity: 0.95; }

.admin-wrap { position: relative; z-index: 2; }
.admin-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px;
}
.admin-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.admin-menu {
  position: absolute;
  right: 0;
  top: 48px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 40, 80, 0.16);
  min-width: 180px;
  padding: 6px;
}
.admin-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.admin-menu button:hover { background: #f3f6fb; }

.content { padding: 16px 22px 28px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 12px;
}
.crumb button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0;
  display: inline-flex;
}
.crumb .here { color: #64748b; font-weight: 500; }
.crumb .sep { color: #cbd5e1; }

.page-title { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.page-title h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.page-title p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.page-title p b { color: var(--blue); font-weight: 700; }
.title-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8f0ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #edf2f8;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
}
.stat .bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.stat b { display: block; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat.blue { background: #eef4ff; }
.stat.blue .bubble { background: #dbe7ff; color: #2563eb; }
.stat.green { background: #e9f9ef; }
.stat.green .bubble { background: #d4f5e2; color: #16a34a; }
.stat.red { background: #fdecec; }
.stat.red .bubble { background: #fbdada; color: #ef4444; }
.stat.orange { background: #fff6e8; }
.stat.orange .bubble { background: #ffe8c2; color: #f59e0b; }
.stat.pink { background: #fdeff1; }
.stat.pink .bubble { background: #fad7dc; color: #f43f5e; }

.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding: 0 4px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 2px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

.split { display: grid; grid-template-columns: 1.65fr 0.95fr; gap: 14px; margin-bottom: 14px; }
.drop {
  background: #fff;
  border: 1.5px dashed #c5d7f2;
  border-radius: 16px;
  min-height: 168px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.drop > div:nth-child(2) { flex: 1; min-width: 0; }
.drop-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef4ff;
  color: #3b82f6;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.drop h3 { margin: 0 0 4px; font-size: 16px; }
.drop p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.drop-side {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.guide {
  background: #f8fbff;
  border: 1px solid #d7e6fb;
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.guide h3 {
  margin: 0 0 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e3a5f;
}
.guide ol { margin: 0; padding-left: 18px; color: #475569; font-size: 12.5px; line-height: 1.55; }
.guide .sample-label { margin: 12px 0 6px; font-size: 12.5px; font-weight: 700; color: #334155; }
.mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.mini th { background: #e8f1ff; color: #334155; font-weight: 700; text-align: left; padding: 7px 8px; }
.mini td { padding: 7px 8px; color: #475569; border-top: 1px solid #eef3f8; }

.btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn.danger { background: #fff; color: #e11d2e; border: 1px solid #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.btn.ghost:hover { background: #f8fafc; }
.linkish {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card {
  background: #fff;
  border: 1px solid #edf2f8;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 16px 10px;
}
.list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.list-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.list-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.list-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.filters { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 10px;
  height: 38px;
  color: #94a3b8;
  background: #fff;
  min-width: 220px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
}
.filters select {
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  padding: 0 10px;
  min-width: 124px;
}

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  color: #334155;
}
table.data tr:hover td { background: #fbfdff; }
table.data input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); }

.who { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #1e293b; }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.pill i { width: 6px; height: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.pill.active { background: #e8f9ef; color: #16a34a; }
.pill.inactive { background: #fdecec; color: #ef4444; }
.row-actions { white-space: nowrap; }
.row-actions .icon-btn + .icon-btn { margin-left: 6px; }
.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-grid;
  place-items: center;
}
.icon-btn.edit { color: #2563eb; background: #eef4ff; }
.icon-btn.del { color: #ef4444; background: #fdecec; }
.icon-btn.more { color: #64748b; }
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 8px;
  color: #64748b;
  font-size: 13px;
}
.pager-right { display: flex; align-items: center; gap: 12px; }
.pages { display: flex; align-items: center; gap: 4px; }
.pages button, .page-size {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-weight: 600;
}
.pages button.on { background: var(--blue); color: #fff; }
.pages button:disabled { opacity: 0.35; }
.page-size { border-color: #e2e8f0; padding: 0 8px; background: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: #334155; }
.field label em { color: #ef4444; font-style: normal; }
.field input, .field select, .field textarea {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.field input, .field select { height: 40px; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 96px; }
.field .hint, .hint { display: block; margin-top: 6px; color: #64748b; font-size: 12.5px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #334155; grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.manual { padding: 18px; margin-bottom: 14px; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal.wide { width: min(860px, 100%); }
.people-table { max-height: 420px; }
.count-btn {
  border: 0;
  background: #eef4ff;
  color: #1e4fd8;
  font-weight: 800;
  border-radius: 999px;
  min-width: 36px;
  padding: 4px 10px;
  cursor: pointer;
}
.count-btn.read { background: #e8f9ef; color: #15803d; }
.count-btn.unread { background: #fdecec; color: #dc2626; }
.modal {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.modal h3 { margin: 0 0 14px; font-size: 18px; }
.menu-pop {
  position: absolute;
  right: 16px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 40, 80, 0.12);
  z-index: 5;
  min-width: 140px;
  padding: 4px;
}
.menu-pop button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}
.menu-pop button:hover { background: #f4f7fb; }
.row-rel { position: relative; }

.soon { padding: 28px; }
.soon h2 { margin: 0 0 6px; }
.soon p { margin: 0; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-link {
  text-align: left;
  width: 100%;
  border: 1px solid #edf2f8;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.dash-link strong { display: block; font-size: 18px; margin-bottom: 4px; }
.dash-link span { color: var(--muted); font-size: 13.5px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 70;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}
.hidden-file { display: none; }

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f5f7fb;
}
.login-art {
  min-height: 100vh;
  background: #071a4a;
}
.login-art img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
}
.login-right {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.28), transparent 28%),
    radial-gradient(circle at 8% 96%, rgba(147, 197, 253, 0.34), transparent 26%),
    #f7f9fc;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.08);
  padding: 34px 32px 26px;
  position: relative;
  z-index: 1;
}
.login-logo { text-align: center; }
.asap-mark {
  font-size: 52px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1d4ed8;
}
.asap-mark span { color: #f5b400; }
.asap-sub {
  margin-top: 2px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.login-kicker {
  margin: 8px 0 6px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.login-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}
.login-input { position: relative; }
.login-input > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.login-input input {
  width: 100%;
  height: 48px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 0 44px 0 42px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.login-input input::placeholder { color: #b6c0cc; }
.login-input input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.eye-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: grid;
  place-items: center;
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}
.remember input { width: 16px; height: 16px; accent-color: #2563eb; }
.forgot {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0;
}
.login-error { margin: 10px 0 0; color: #e11d2e; font-size: 12.5px; font-weight: 600; }
.login-btn {
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.login-btn:hover { background: #1e40af; }
.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.or-line::before, .or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8edf3;
}
.secure-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f7ff;
  border: 1px solid #e4edff;
  border-radius: 12px;
  padding: 12px 14px;
}
.secure-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7efff;
  color: #2563eb;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.secure-box strong { display: block; font-size: 13.5px; color: #1e293b; }
.secure-box p { margin: 2px 0 0; font-size: 12.5px; color: #64748b; }
.login-foot {
  margin: 22px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
