/* Job xu TikTok — giao diện sáng sạch (PC + mobile) */
:root {
  --xu-bg: #f4f6f9;
  --xu-bg-soft: #eef1f6;
  --xu-surface: #ffffff;
  --xu-ink: #0f172a;
  --xu-muted: #64748b;
  --xu-line: #e2e8f0;
  --xu-cyan: #00a8a0;
  --xu-cyan-soft: #e6faf8;
  --xu-pink: #e11d48;
  --xu-pink-soft: #fff1f2;
  --xu-amber: #b45309;
  --xu-amber-soft: #fffbeb;
  --xu-radius: 1rem;
  --xu-radius-sm: 0.75rem;
  --xu-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --xu-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --xu-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body.xu-body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--xu-font);
  color: var(--xu-ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(0, 168, 160, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(225, 29, 72, 0.07), transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, var(--xu-bg) 40%, var(--xu-bg-soft) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.xu-shell {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
}

@media (min-width: 768px) {
  .xu-shell {
    padding: 1.5rem 1.5rem 3rem;
  }
}

/* —— Brand mark —— */
.xu-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.xu-mark-icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #111827 0%, #1e293b 100%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.xu-mark-icon::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--xu-pink);
  opacity: 0.9;
}

.xu-mark-icon svg {
  position: relative;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.xu-mark-text {
  min-width: 0;
}

.xu-mark-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xu-cyan);
}

.xu-mark-title {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .xu-mark-title {
    font-size: 1.35rem;
  }
}

/* —— Top bar —— */
.xu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.xu-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

/* —— Buttons —— */
.xu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.xu-btn:hover {
  background: #1e293b;
}

.xu-btn:active {
  transform: translateY(1px);
}

.xu-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.xu-btn-sec {
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--xu-line);
  box-shadow: none;
}

.xu-btn-sec:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.xu-btn-accent {
  background: linear-gradient(135deg, var(--xu-cyan), #059669);
  box-shadow: 0 6px 18px rgba(0, 168, 160, 0.28);
}

.xu-btn-accent:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--xu-cyan), #059669);
}

.xu-btn-block {
  width: 100%;
}

.xu-btn-sm {
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

/* —— Cards / surface —— */
.xu-card {
  background: var(--xu-surface);
  border: 1px solid var(--xu-line);
  border-radius: var(--xu-radius);
  box-shadow: var(--xu-shadow);
}

.xu-card-pad {
  padding: 1.15rem 1.2rem;
}

@media (min-width: 640px) {
  .xu-card-pad {
    padding: 1.35rem 1.5rem;
  }
}

.xu-card-link {
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.xu-card-link:hover {
  border-color: #99f6e4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.xu-section-title {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.xu-month-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}

.xu-month-nav-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.xu-month-nav-select {
  flex: 1 1 7rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.xu-month-nav-arrow {
  flex: 0 0 auto;
  min-width: 2.5rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  text-align: center;
}

.xu-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xu-team-pick {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.35rem 0.15rem;
}

.xu-team-pick-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  background: #f8fafc;
}

.xu-team-pick-row:hover {
  background: #ecfeff;
}

.xu-callout {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #ecfeff;
  border: 1px solid #99f6e4;
  font-size: 0.88rem;
}

.xu-staff-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.xu-card-link-inner {
  display: block;
  padding: 1rem 1.05rem 0.65rem;
  color: inherit;
  text-decoration: none;
}

.xu-card-link-inner:hover {
  background: #f8fafc;
}

.xu-staff-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 1rem 0.85rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.xu-badge-pending {
  background: #fff7ed;
  color: #c2410c;
}

.xu-section-title svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--xu-cyan);
}

.xu-muted {
  color: var(--xu-muted);
  font-size: 0.8rem;
}

.xu-flash {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--xu-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.xu-flash-ok {
  background: var(--xu-cyan-soft);
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.xu-flash-err {
  background: var(--xu-pink-soft);
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* —— KPI —— */
.xu-kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .xu-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.xu-kpi-grid.cols-5 {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .xu-kpi-grid.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .xu-kpi-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.xu-kpi {
  padding: 1rem 1.05rem;
  position: relative;
  overflow: hidden;
}

.xu-kpi-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: var(--xu-cyan-soft);
  color: var(--xu-cyan);
  margin-bottom: 0.65rem;
}

.xu-kpi-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.xu-kpi-icon.is-amber {
  background: var(--xu-amber-soft);
  color: var(--xu-amber);
}

.xu-kpi-icon.is-pink {
  background: var(--xu-pink-soft);
  color: var(--xu-pink);
}

.xu-kpi-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xu-muted);
}

.xu-kpi-value {
  margin: 0.35rem 0 0;
  font-family: var(--xu-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.xu-kpi-sub {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--xu-muted);
}

.xu-kpi-value.is-remain {
  color: var(--xu-amber);
}

/* —— Forms —— */
.xu-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xu-muted);
}

.xu-input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--xu-radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--xu-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xu-input:focus {
  outline: none;
  border-color: var(--xu-cyan);
  box-shadow: 0 0 0 3px rgba(0, 168, 160, 0.18);
}

.xu-form-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .xu-form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .xu-form-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.xu-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* —— Staff cards —— */
.xu-staff-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .xu-staff-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .xu-staff-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.xu-staff-card {
  padding: 1.15rem 1.2rem;
}

.xu-staff-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.xu-avatar {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #0f172a, #334155);
}

.xu-staff-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.xu-staff-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--xu-muted);
}

.xu-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.xu-badge-ok {
  background: var(--xu-cyan-soft);
  color: #0f766e;
}

.xu-badge-off {
  background: var(--xu-pink-soft);
  color: #be123c;
}

.xu-staff-stats {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--xu-line);
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.xu-staff-stats strong {
  font-family: var(--xu-mono);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.xu-remain {
  color: var(--xu-amber);
  font-weight: 700;
}

.xu-progress {
  margin-top: 0.65rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.xu-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--xu-cyan), #34d399);
}

/* —— Tables —— */
.xu-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.xu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.xu-table th,
table.xu-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--xu-line);
  text-align: left;
  white-space: nowrap;
}

table.xu-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xu-muted);
  background: #f8fafc;
}

table.xu-table tbody tr:last-child td {
  border-bottom: 0;
}

table.xu-table .num {
  font-family: var(--xu-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

table.xu-table tr.is-today td {
  background: var(--xu-cyan-soft);
}

/* —— Layout helpers —— */
.xu-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.xu-split {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 1024px) {
  .xu-split.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.xu-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--xu-muted);
}

.xu-empty svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  color: #94a3b8;
  display: block;
}

.xu-hello {
  margin: 0 0 1rem;
}

.xu-hello strong {
  font-weight: 700;
}

.xu-qr {
  width: min(14rem, 100%);
  border-radius: 0.85rem;
  border: 1px solid var(--xu-line);
  background: #fff;
  padding: 0.5rem;
}

.xu-sticky-cta {
  position: sticky;
  bottom: 0.75rem;
  z-index: 20;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .xu-sticky-cta {
    position: static;
  }
}

/* —— Login —— */
.xu-login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.xu-login-shell {
  width: min(26.5rem, 100%);
}

.xu-login-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.xu-login-hero .xu-mark {
  justify-content: center;
  flex-direction: column;
  gap: 0.85rem;
}

.xu-login-hero .xu-mark-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
}

.xu-login-hero .xu-mark-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.xu-login-hero .xu-mark-title {
  font-size: 1.55rem;
}

.xu-login-sub {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--xu-muted);
}

.xu-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #f1f5f9;
  margin-bottom: 1.15rem;
}

.xu-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-height: 2.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--xu-muted);
  cursor: pointer;
}

.xu-tab.on {
  background: #fff;
  color: var(--xu-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.xu-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.xu-login-form.hidden {
  display: none;
}

.xu-safe-bottom {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* —— Bank search combo —— */
.xu-bank-combo {
  position: relative;
}
.xu-bank-combo-q.is-picked {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.xu-bank-combo-dd {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--xu-line);
  border-radius: var(--xu-radius-sm);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.xu-bank-combo-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--xu-ink);
  cursor: pointer;
}
.xu-bank-combo-opt:last-child {
  border-bottom: 0;
}
.xu-bank-combo-opt:hover,
.xu-bank-combo-opt.is-active {
  background: var(--xu-cyan-soft);
  color: #0f766e;
}
.xu-bank-combo-empty {
  padding: 0.85rem;
  font-size: 0.8rem;
  color: var(--xu-muted);
  text-align: center;
}

