/* =========================================================
   请假系统模拟 · 样式表
   ========================================================= */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --text: #1f2937;
  --text-2: #4b5563;
  --muted: #8b95a5;
  --line: #e6e9ef;
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --primary-l: #eff4ff;
  --ok: #059669;
  --ok-l: #ecfdf5;
  --warn: #d97706;
  --warn-l: #fffbeb;
  --danger: #dc2626;
  --danger-l: #fef2f2;
  --info: #0891b2;
  --info-l: #ecfeff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
table { border-collapse: collapse; width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ---------------- 登录页 ---------------- */
.login-wrap { display: flex; min-height: 100vh; }

.login-left {
  flex: 1.05;
  padding: 52px 48px;
  color: #fff;
  background: linear-gradient(150deg, #14245c 0%, #2563eb 52%, #0ea5e9 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-left h1 { font-size: 30px; letter-spacing: 1px; }
.login-foot { opacity: .68; font-size: 12px; }

.login-right {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.login-card {
  width: 100%; max-width: 400px; background: var(--panel); border-radius: 16px;
  box-shadow: var(--shadow); padding: 32px;
}
.login-card h2 { font-size: 22px; }
.login-card .hint { color: var(--muted); margin-top: 6px; margin-bottom: 22px; font-size: 13px; }
.demo-title { margin: 22px 0 10px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btn {
  border: 1px solid var(--line); background: #fbfcfe; border-radius: var(--radius-sm);
  padding: 8px 10px; cursor: pointer; text-align: left; transition: .15s;
}
.demo-btn:hover { border-color: var(--primary); background: var(--primary-l); }
.demo-btn b { display: block; font-size: 13px; }
.demo-btn span { font-size: 11px; color: var(--muted); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, #2563eb, #0ea5e9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.brand-title { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.me { text-align: right; line-height: 1.35; }
.me-name { font-weight: 600; }
.me-sub { font-size: 12px; color: var(--muted); }

/* ---------------- 导航 ---------------- */
.nav {
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 0 26px; display: flex; gap: 4px; overflow-x: auto;
}
.nav-item {
  border: none; background: none; cursor: pointer; padding: 12px 14px;
  color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.nav-item:hover { color: var(--primary); }
.nav-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.nav-badge {
  background: var(--danger); color: #fff; border-radius: 9px;
  font-size: 11px; padding: 0 6px; line-height: 17px; min-width: 17px; text-align: center;
}

/* ---------------- 主区域 ---------------- */
.main { padding: 22px 26px 56px; max-width: 1360px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head h2 { font-size: 20px; }
.page-head .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.card > h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* ---------------- 统计卡 ---------------- */
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 600; margin-top: 2px; }
.stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.stat.blue .v { color: var(--primary); }
.stat.green .v { color: var(--ok); }
.stat.orange .v { color: var(--warn); }
.stat.red .v { color: var(--danger); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.list { font-size: 13px; min-width: 820px; }
table.list th {
  text-align: left; font-weight: 600; color: var(--text-2); background: #f8fafc;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px;
}
table.list td { padding: 11px 12px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
table.list tbody tr:hover { background: #fbfcff; }
table.list tbody tr:last-child td { border-bottom: none; }
table.list.mini { min-width: 0; }
.cell-strong { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 徽章 ---------------- */
.badge {
  display: inline-block; padding: 1px 9px; border-radius: 20px;
  font-size: 12px; line-height: 19px; white-space: nowrap;
}
.badge-ok { background: var(--ok-l); color: var(--ok); }
.badge-warn { background: var(--warn-l); color: var(--warn); }
.badge-info { background: var(--info-l); color: var(--info); }
.badge-danger { background: var(--danger-l); color: var(--danger); }
.badge-muted { background: #f1f5f9; color: #64748b; }
.badge-role { background: var(--primary-l); color: var(--primary-d); }
.badge-dept { background: #f5f3ff; color: #6d28d9; }

.dot-type { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------------- 按钮 ---------------- */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer;
  transition: .15s; white-space: nowrap; line-height: 1.5;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #047857; border-color: #047857; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }
.btn-sm { padding: 3px 10px; font-size: 12.5px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  border: none; background: transparent; font-size: 20px; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 6px;
}
.icon-btn:hover { background: #f1f5f9; color: var(--text); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 15px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.field .tip { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field .req { color: var(--danger); margin-left: 2px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; border: 1px solid #d7dde8; border-radius: var(--radius-sm);
  padding: 8px 11px; background: #fff; color: var(--text); transition: .15s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea { resize: vertical; min-height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .f { display: flex; flex-direction: column; gap: 4px; }
.filters .f label { font-size: 12px; color: var(--muted); }
.filters select, .filters input { min-width: 130px; }

.days-preview {
  background: var(--primary-l); border: 1px dashed #bfd3fb; border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--primary-d); font-weight: 600; font-size: 15px;
}
.alert { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert-error { background: var(--danger-l); color: #991b1b; border: 1px solid #fecaca; }
.alert-warn { background: var(--warn-l); color: #92400e; border: 1px solid #fde68a; }
.alert-ok { background: var(--ok-l); color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: var(--info-l); color: #155e75; border: 1px solid #a5f3fc; }

.quota-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.bar { height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.bar.warn > i { background: var(--warn); }
.bar.danger > i { background: var(--danger); }

/* ---------------- 时间线 ---------------- */
.timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary-l);
}
.timeline .tl-t { font-weight: 600; }
.timeline .tl-m { font-size: 12px; color: var(--muted); }
.timeline .tl-c { font-size: 12.5px; color: var(--text-2); background: #f8fafc; border-radius: 6px; padding: 4px 8px; margin-top: 5px; display: inline-block; }

.detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 13px; }
.detail-grid .k { color: var(--muted); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 8px; }

/* ---------------- 弹窗 ---------------- */
.modal-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.modal {
  position: relative; background: #fff; border-radius: 14px; width: calc(100% - 40px);
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.confirm-text { font-size: 14px; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: #1f2937; color: #fff; padding: 9px 18px; border-radius: 22px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
  opacity: 0; transform: translateY(-8px); transition: .25s; max-width: 78vw;
}
.toast-in { opacity: 1; transform: translateY(0); }
.toast-ok { background: #047857; }
.toast-error { background: #b91c1c; }
.toast-warn { background: #b45309; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .login-left { display: none; }
}
@media (max-width: 640px) {
  .main { padding: 16px 14px 40px; }
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .nav { padding: 0 10px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 90px 1fr; }
}

/* =========================================================
   手机版申请人端（我的申请 / 新建申请 / 请假详情）
   —— 420px 窄栏居中，蓝色标题栏 + 分组卡片
   ========================================================= */
.m-app {
  width: 420px; max-width: 100%; margin: 0 auto; min-height: 100vh;
  background: #f4f6fb; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .04), 0 18px 48px rgba(16, 24, 40, .10);
}

/* ---- 顶部蓝色标题栏 ---- */
.m-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 6px;
  height: 50px; padding: 0 8px 0 4px;
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, .28);
}
.m-back {
  width: 34px; height: 34px; flex: 0 0 34px; border: 0; background: transparent; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; padding: 0 0 3px;
}
.m-back:hover { background: rgba(255, 255, 255, .16); }
.m-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.m-bar-right { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.m-link {
  position: relative; border: 0; background: transparent; color: rgba(255, 255, 255, .92);
  font-size: 12.5px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.m-link:hover { background: rgba(255, 255, 255, .16); }
.m-dot {
  position: absolute; top: -1px; right: -1px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; line-height: 15px;
  text-align: center; font-weight: 600;
}

/* ---- 内容区 + 底部 Tab ---- */
.m-body { flex: 1; padding: 12px 12px 20px; }
.m-tabs {
  position: sticky; bottom: 0; z-index: 60; display: flex;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(16, 24, 40, .06);
}
.m-tab {
  flex: 1; border: 0; background: transparent; padding: 12px 0 13px; cursor: pointer;
  font-family: inherit; font-size: 14px; color: var(--muted);
}
.m-tab.on { color: var(--primary); font-weight: 600; box-shadow: inset 0 2px 0 var(--primary); }

/* ---- 统计小卡 ---- */
.m-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.m-stat {
  background: #fff; border-radius: var(--radius-sm); padding: 9px 6px;
  text-align: center; box-shadow: var(--shadow);
}
.m-stat .k { font-size: 11px; color: var(--muted); white-space: nowrap; }
.m-stat .v { font-size: 17px; font-weight: 600; color: var(--primary); line-height: 1.35; }
.m-stat .v small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 1px; }

/* ---- 通用卡片 ---- */
.m-card {
  background: #fff; border-radius: var(--radius); padding: 12px 14px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.m-card-title { display: flex; align-items: center; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.m-mark { width: 3px; height: 15px; background: var(--primary); border-radius: 2px; margin-right: 8px; }
.m-sec { font-size: 13px; color: var(--muted); margin: 14px 2px 8px; }
.m-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 10px; }

/* ---- 额度卡（复用桌面 quotaCards 结构） ---- */
.m-quota-card { padding: 4px 14px 10px; }
.m-quota-card .card { box-shadow: none; border-radius: 0; padding: 10px 0 4px; border-bottom: 1px solid var(--line); }
.m-quota-card .card:last-child { border-bottom: 0; }

/* ---- 筛选行 ---- */
.m-filter-row { display: flex; gap: 8px; padding: 10px 12px; }
.m-filter-row select { flex: 1; min-width: 0; }

/* ---- 申请记录卡片 ---- */
.m-req { cursor: pointer; transition: box-shadow .16s, transform .16s; }
.m-req:hover { box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 12px 30px rgba(16, 24, 40, .10); transform: translateY(-1px); }
.m-req-top { display: flex; align-items: center; gap: 8px; }
.m-chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.m-arrow { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
.m-req-time { font-size: 15px; font-weight: 600; margin-top: 8px; }
.m-req-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; word-break: break-all; }
.m-req-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }

/* ---- 表单（标签左 / 值右） ---- */
.m-form { padding: 2px 14px 12px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-row > label { flex: 0 0 auto; font-size: 14.5px; color: var(--text); }
.m-row > label .req { color: var(--danger); margin-left: 2px; }
.m-row input[type="text"], .m-row input[type="date"], .m-row select {
  flex: 1; min-width: 0; border: 0; background: transparent; text-align: right;
  font-family: inherit; font-size: 14.5px; color: var(--text-2); padding: 2px 0; outline: none;
}
.m-row select { text-align-last: right; }
.m-row input::placeholder { color: #bcc4d0; }
.m-value { flex: 1; text-align: right; font-size: 14.5px; color: var(--text-2); }
.m-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-block > label { display: block; font-size: 14.5px; margin-bottom: 8px; }
.m-block > label .req { color: var(--danger); margin-left: 2px; }
.m-block textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcfe; font-family: inherit; font-size: 14px; line-height: 1.6;
  padding: 9px 10px; resize: vertical; outline: none; color: var(--text);
}
.m-block textarea:focus, .m-row input:focus, .m-row select:focus { border-color: var(--primary); background: #fff; }
.m-block input[type="file"] { width: 100%; font-size: 12.5px; color: var(--muted); }
.m-tip { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.m-ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.m-ul li { margin: 3px 0; }

/* ---- 附件列表 ---- */
.m-attach { margin-top: 8px; }
.m-attach-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 6px;
  background: var(--primary-l); border-radius: var(--radius-sm); font-size: 12.5px;
}
.m-attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.m-attach-size { color: var(--muted); flex: 0 0 auto; }
.m-attach-del {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--danger);
  font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 2px 4px;
}
.m-attach-empty { font-size: 12px; color: var(--muted); }

/* ---- 底部按钮 ---- */
.m-submit { padding: 6px 0 10px; }
.m-btn-primary {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 13px 0;
  background: var(--primary); color: #fff; font-family: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.m-btn-primary:hover { background: var(--primary-d); }
.m-btn-ghost {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 11px 0;
  background: #fff; color: var(--text-2); font-family: inherit; font-size: 15px; cursor: pointer;
}
.m-btn-ghost.danger { color: var(--danger); border-color: #fca5a5; }
.m-btn-ghost:hover { background: #f8fafc; }

/* ---- 详情页 ---- */
.m-detail .m-kv {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.m-detail .m-kv:last-child { border-bottom: 0; }
.m-detail .m-kv .k { flex: 0 0 96px; color: var(--muted); font-size: 13.5px; }
.m-detail .m-kv .v { flex: 1; min-width: 0; font-size: 14px; word-break: break-word; text-align: right; }
.m-detail .m-kv.stack { display: block; }
.m-detail .m-kv.stack .k { display: block; flex: none; margin-bottom: 5px; }
.m-detail .m-kv.stack .v { text-align: left; line-height: 1.7; }
.m-tl { display: flex; gap: 10px; padding: 11px 0 3px; }
.m-tl-icon {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: var(--primary);
}
.m-tl-icon.ok { background: var(--ok); }
.m-tl-icon.bad { background: var(--danger); }
.m-tl-icon.info { background: var(--info); }
.m-tl-body { flex: 1; min-width: 0; }
.m-tl-top { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.m-tl-top .muted { margin-left: auto; font-size: 11.5px; }
.m-tl-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

@media (max-width: 460px) {
  .m-app { width: 100%; box-shadow: none; }
  .m-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-detail .m-kv .k { flex-basis: 84px; }
}

/* =========================================================================
   学生请假系统 · 追加样式
   ① 桌面端补齐类名别名  ② 手机端表单  ③ 手机端《请假详情》（对齐参考图）
   ========================================================================= */

/* ---------------- ① 桌面端补齐 ---------------- */
.brand-name { font-weight: 600; font-size: 15px; }
.brand-title { font-weight: 600; font-size: 15px; }
.hello { font-weight: 600; font-size: 13px; }
.who { font-size: 12px; color: var(--muted); }
.topbadge {
  background: var(--primary-l); color: var(--primary-d); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.small { font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.login-sub { font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 10px; line-height: 1.7; }
.login-demo-title { margin: 22px 0 10px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.login-feats li b { display: block; font-size: 13.5px; }
.login-card .field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-card { padding: 14px 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.field-inline { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.field-inline select, .field-inline input { min-width: 132px; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge-bad { background: var(--danger-l); color: var(--danger); }

table.table { font-size: 13px; min-width: 760px; }
table.table th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap;
}
table.table td { padding: 11px 12px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
table.table tbody tr:hover { background: #fbfcff; }
table.table tbody tr:last-child td { border-bottom: none; }
.card > table.table { min-width: 0; }

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; font-size: 13px; }
.dl { display: flex; gap: 8px; align-items: baseline; }
.dl > span { color: var(--muted); flex: 0 0 auto; }
.dl > b { font-weight: 600; word-break: break-all; }
.detail-block { margin-top: 16px; }
.dl-k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.detail-text { font-size: 13.5px; line-height: 1.75; color: var(--text-2); word-break: break-word; }
.timeline .tl-dot {
  position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
}

/* ---------------- ② 手机端表单 ---------------- */
.m-body-flat { padding: 0; background: #fff; }
.m-bar-btn {
  border: 0; background: transparent; color: rgba(255, 255, 255, .94);
  font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.m-bar-btn:hover { background: rgba(255, 255, 255, .16); }
.m-back-space { width: 34px; flex: 0 0 34px; }

.m-form { background: #fff; min-height: 100%; padding-bottom: 8px; }
.m-form .alert-error { margin: 12px; }
.m-field { padding: 13px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.m-field.hidden { display: none; }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-field .m-label { flex: 0 0 auto; font-size: 14px; color: var(--text); }
.m-field .m-label .req { color: #e11d48; font-style: normal; margin-right: 3px; }
.m-field .m-label small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.m-row .m-ctrl { flex: 1; min-width: 0; display: flex; justify-content: flex-end; align-items: center; }
.m-input, .m-select {
  border: 0; background: transparent; text-align: right; font-size: 14px; color: var(--text);
  font-family: inherit; padding: 0; outline: none; max-width: 100%;
}
.m-input::placeholder { color: #b6bdc9; }
.m-input[type="date"] { text-align: right; min-width: 130px; color: var(--text); }
.m-select { text-align-last: right; }
.m-textarea {
  display: block; width: 100%; margin-top: 9px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
  font-family: inherit; font-size: 14px; line-height: 1.65; color: var(--text);
  min-height: 84px; resize: vertical; outline: none;
}
.m-textarea:focus { border-color: var(--primary); background: #fff; }
.m-block .m-label { display: block; }
.m-field input[type="file"] { display: block; width: 100%; margin-top: 9px; font-size: 12.5px; }
.m-form .m-tip { padding: 10px 14px 0; }
.m-form .m-empty { margin: 12px; }
.m-submit { padding: 16px 14px 20px; }
.m-btn-primary {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 13px 0;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
  font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.m-btn-primary:hover { background: var(--primary-d); }
.m-btn-mini {
  border: 1px solid #cfe0ff; background: #f5f9ff; color: var(--primary-d);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.m-btn-mini:hover { background: #e8f1ff; }
.m-btn-mini.danger { border-color: #fecdd3; background: #fff5f5; color: var(--danger); }
.m-btn-ghost {
  display: block; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 11px 0; font-size: 15px; color: var(--text-2); font-family: inherit; cursor: pointer;
}
.m-btn-ghost.danger { color: var(--danger); border-color: #fecdd3; }
.m-card-title small { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.m-attach-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.m-attach-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-attach-size { font-size: 12px; color: var(--muted); }
.m-attach-del {
  border: 0; background: transparent; color: var(--danger); font-size: 12.5px;
  cursor: pointer; font-family: inherit; padding: 2px 4px;
}
.m-attach-empty { font-size: 12px; color: var(--muted); padding-top: 6px; }

/* ---------------- ③ 手机端《请假详情》（对齐参考图）---------------- */
.d-wrap { background: #fff; min-height: 100%; padding-bottom: 20px; }
.d-top { display: flex; justify-content: center; align-items: center; padding: 16px 14px; }
.d-top-space { display: block; height: 1px; }
.d-return-btn {
  border: 0; background: #e64340; color: #fff; font-family: inherit;
  font-size: 15.5px; padding: 9px 26px; border-radius: 6px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(230, 67, 64, .28);
}
.d-return-btn:hover { background: #d43a37; }
.d-sec { border-top: 8px solid #f5f6f8; padding: 14px 15px 6px; }
.d-sec:first-of-type { border-top: 0; }
.d-sec-t {
  position: relative; margin: 0 0 10px; padding-left: 10px;
  font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .3px;
}
.d-sec-t::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--primary);
}
.d-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; padding-bottom: 8px; }
.d-cell { display: flex; gap: 6px; font-size: 13.5px; line-height: 1.5; min-width: 0; }
.d-cell.wide { grid-column: 1 / -1; }
.d-k { color: var(--muted); flex: 0 0 auto; white-space: nowrap; }
.d-v { color: var(--text); word-break: break-word; min-width: 0; }
.d-rows { padding-bottom: 6px; }
.d-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid #f0f2f5; font-size: 14px;
}
.d-row .d-k { font-size: 14px; }
.d-row .d-v { text-align: right; }
.d-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.d-block { padding: 11px 0; border-bottom: 1px solid #f0f2f5; }
.d-block .d-k { font-size: 14px; margin-bottom: 7px; }
.d-text { font-size: 14px; line-height: 1.78; color: var(--text); word-break: break-word; }
.d-appr { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.d-appr:last-child { border-bottom: 0; }
.d-appr-icon {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; line-height: 1; font-weight: 700;
}
.d-appr-icon.ok { background: #22c55e; }
.d-appr-icon.bad { background: #ef4444; }
.d-appr-icon.wait { background: #cbd5e1; font-size: 11px; }
.d-appr-body { flex: 1; min-width: 0; }
.d-appr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.d-appr-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.d-appr-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.d-appr-state { font-size: 13px; color: var(--muted); margin-top: 3px; }
.d-appr-comment { font-size: 13.5px; color: var(--text-2); margin-top: 7px; line-height: 1.7; word-break: break-word; }
.d-foot { display: flex; flex-direction: column; gap: 10px; padding: 18px 15px 24px; }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .d-sec { padding-left: 12px; padding-right: 12px; }
}
@media print {
  .topbar, .nav, .head-actions, .filter-card { display: none; }
}

/* =========================================================
   ④ 《请假详情》视觉对齐参考图（真机 xg.betiltc.edu.cn）
   —— 深蓝标题栏 / 白底分段 / 1px 细分隔线 / 15px 标签灰值黑
   —— 覆盖前面同名规则（同优先级、后写生效）
   ========================================================= */
.m-bar { background: #1b5fa8; box-shadow: 0 2px 10px rgba(27, 95, 168, .3); }
.m-title { font-size: 17px; font-weight: 600; letter-spacing: 1px; }

.d-wrap { background: #fff; min-height: 100%; padding-bottom: 18px; }
.d-top { display: flex; justify-content: center; align-items: center; padding: 12px 14px 14px; background: #fff; }
.d-return-btn {
  border: 0; background: #e54341; color: #fff; font-family: inherit;
  font-size: 12px; line-height: 1; letter-spacing: 5px; padding: 8.5px 17px; border-radius: 4px; cursor: pointer;
  box-shadow: none;
}
.d-return-btn:hover { background: #d34343; }
.d-return-btn:active { background: #c93c3c; }

.d-sec { background: #fff; border-top: 0; padding: 16px 15px 12px; }
.d-sec:first-of-type { border-top: 1px solid #d9d9d9; }
.d-sec-t { position: relative; margin: 0 -15px 6px; padding: 0 15px 10px 31px; font-size: 16px; font-weight: 700; color: #22262e; letter-spacing: .2px; line-height: 22px; border-bottom: 1px solid #d9d9d9; }
.d-sec-t::before { content: ''; position: absolute; left: 10px; top: 11px; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 1px; background: #194d87; }

.d-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 2px 0 8px; }
.d-cell { display: flex; gap: 4px; font-size: 14px; line-height: 26px; min-width: 0; }
.d-cell.wide { grid-column: 1 / -1; }
.d-k { color: #22262e; flex: 0 0 auto; white-space: nowrap; }
.d-v { color: #22262e; word-break: break-word; min-width: 0; }

.d-rows { padding-bottom: 4px; }
.d-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 0; font-size: 15px; line-height: 1.5; }
.d-row .d-k { font-size: 15px; color: #22262e; }
.d-row .d-v { text-align: right; color: #22262e; font-size: 14px; }
.d-row-long .d-v { flex: 1; text-align: left; }
.d-row:last-child { border-bottom: 0; }
.d-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.d-block { padding: 12px 0; border-bottom: 1px solid #eceef2; }
.d-block .d-k { font-size: 15px; margin-bottom: 7px; }
.d-text { font-size: 15px; line-height: 1.8; color: #22262e; word-break: break-word; }

.d-appr { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eceef2; }
.d-appr:last-child { border-bottom: 0; }
.d-appr-icon { flex: 0 0 17px; width: 17px; height: 17px; border-radius: 50%; margin-top: 2px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; line-height: 1; font-weight: 700; }
.d-appr-icon.ok { background: #08d09c; }
.d-check { display: block; }
.d-appr-icon.bad { background: #ef4444; }
.d-appr-icon.wait { background: #c2c2c2; font-size: 10px; }
.d-appr-icon.wait::after { content: ''; width: 7px; height: 2px; border-radius: 1px; background: #fff; }
.d-appr-body { flex: 1; min-width: 0; }
.d-appr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.d-appr-name { font-size: 15px; font-weight: 400; color: #22262e; }
.d-appr-time { font-size: 13px; color: #22262e; white-space: nowrap; }
.d-appr-state { font-size: 13px; color: #8a8f99; margin-top: 2px; }
.d-appr-comment { font-size: 14px; color: #4a5160; margin-top: 6px; margin-left: -6px; line-height: 1.7; word-break: break-word; }

/* 数字/日期用系统西文字体渲染（CJK 自动回落到微软雅黑），贴近真机字形 */
.m-app { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.m-app button, .m-app input, .m-app select, .m-app textarea { font-family: inherit; }

@media (max-width: 640px) {
  .d-sec { padding-left: 12px; padding-right: 12px; }
}

/* ---------------- 注册页 ---------------- */
.login-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); opacity: 1; }
.link-btn { border: 0; background: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 0 2px; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.reg-card { max-width: 560px; }
.reg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 16px; }
.role-pick { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; transition: .15s; }
.role-pick b { font-size: 14px; color: #22262e; }
.role-pick span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.role-pick:hover { border-color: #bcc8da; }
.role-pick.on { border-color: var(--primary); background: var(--primary-l); box-shadow: inset 0 0 0 1px var(--primary); }
.role-pick.on b { color: var(--primary); }
.reg-hint { margin: -4px 0 12px; padding: 8px 10px; background: #f6f8fb; border-radius: 8px; font-size: 12px; color: #5b6472; line-height: 1.6; }
.reg-hint.warn { background: #fff8e8; color: #8a6412; }
@media (max-width: 720px) {
  .login-wrap { display: block; }
  .login-left { display: none; }
  .login-right { padding: 24px 16px 32px; align-items: flex-start; }
  .reg-card { max-width: 100%; padding: 22px 18px; }
  .role-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- 申请页：日期 + 时刻 ---------------- */
.m-pair { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.m-pair .m-input[type="date"] { min-width: 112px; }
.m-pair .m-time { min-width: 76px; text-align: right; color: var(--text); }
.m-pair .m-time::-webkit-calendar-picker-indicator { opacity: .55; }

/* ---------------- 个人信息 ---------------- */
.m-ro { flex: 1; min-width: 0; text-align: right; font-size: 14px; color: var(--muted); word-break: break-all; }
.m-sec-title { padding: 13px 14px 9px; font-size: 13px; color: var(--muted); background: #f7f8fa; border-bottom: 1px solid var(--line); }
.m-sec-title small { margin-left: 6px; color: #9aa3b2; font-size: 12px; }
/* ---------------- 云端同步角标 ---------------- */
.sync-pill {
  position: fixed; left: 12px; bottom: 12px; z-index: 40;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; line-height: 18px; white-space: nowrap;
  color: #5b6473; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(16, 32, 64, .08);
  pointer-events: none; user-select: none;
}
.sync-pill.ok { color: #0b7a55; border-color: #b7e4d2; background: rgba(236, 253, 245, .95); }
.sync-pill.warn { color: #9a6a00; border-color: #f0dca6; background: rgba(255, 250, 235, .95); }
@media (max-width: 720px) { .sync-pill { left: 50%; transform: translateX(-50%); bottom: 62px; } }

