/* ===== 科技炫酷主题 — WORKLOG DASHBOARD ===== */

:root {
  --bg-deep: #0b111e;
  --card-rgb: 16, 24, 40;
  --input-rgb: 6, 12, 22;
  --navbar-rgb: 10, 18, 38;
  --table-rgb: 10, 18, 38;
  --panel-rgb: 12, 20, 36;
  --border-rgb: 100, 200, 220;
  --border-glow: rgba(100, 200, 220, 0.15);
  --border-bright: rgba(120, 210, 230, 0.3);
  --neon-cyan: #6cd0e0;
  --neon-blue: #5090c0;
  --neon-magenta: #d07090;
  --neon-green: #60c090;
  --neon-orange: #d09060;
  --neon-yellow: #c0b060;
  --text-primary: #b0c4d0;
  --text-dim: #6a7e90;
  --text-bright: #c8d8e4;
  --glow-cyan: 0 0 8px rgba(108,208,224,0.2);
  --font-display: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', monospace;
  --radius: 4px;
}

/* ===== 浅色主题（data-theme="light"） ===== */
[data-theme="light"] {
  --bg-deep: #eef2f7;
  --card-rgb: 255, 255, 255;
  --input-rgb: 240, 245, 250;
  --navbar-rgb: 255, 255, 255;
  --table-rgb: 248, 250, 253;
  --panel-rgb: 250, 252, 255;
  --border-rgb: 80, 140, 170;
  --border-glow: rgba(80, 140, 170, 0.15);
  --border-bright: rgba(40, 100, 140, 0.3);
  --neon-cyan: #1a7a90;
  --neon-blue: #2070a0;
  --neon-magenta: #b04860;
  --neon-green: #2a8050;
  --neon-orange: #a86830;
  --neon-yellow: #8a7820;
  --text-primary: #2a3848;
  --text-dim: #5a6a7a;
  --text-bright: #1f2a38;
  --glow-cyan: 0 0 8px rgba(26,122,144,0.15);
}

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

/* ===== BACKGROUND ===== */
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(80,160,200,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(120,180,200,0.03) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(100,180,200,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,180,200,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none; z-index: 0;
}

.container { max-width: 1500px; margin: 0 auto; padding: 1.2rem 1.5rem; position: relative; z-index: 1; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(var(--navbar-rgb), 0.65);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.12);
  padding: 0.5rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 1px 24px rgba(0,0,0,0.3);
}
.navbar a {
  color: var(--text-dim); text-decoration: none; font-size: 0.8rem;
  letter-spacing: 1px; transition: all 0.2s;
  padding: 0.3rem 0.6rem; border-radius: 2px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
}
.navbar a:hover { color: var(--neon-cyan); text-shadow: none; }
.nav-right { margin-left: auto; color: var(--text-bright); font-size: 0.8rem; font-family: var(--font-mono); }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--neon-cyan); text-shadow: none;
  margin-bottom: 1.2rem; letter-spacing: 2px;
  text-transform: uppercase;
}
h2 { font-size: 0.95rem; margin-bottom: 0.8rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(80,140,160,0.12);
  border-radius: var(--radius);
  padding: 1.5rem; margin: 1rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.02);
}
.card h2 {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--neon-cyan); margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* ===== FORMS ===== */
form label { display: block; margin: 0.5rem 0; color: var(--text-dim); font-size: 0.85rem; }
input, select, textarea {
  padding: 0.5rem 0.7rem; border: 1px solid rgba(80,140,160,0.12);
  border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font-body);
  background: rgba(0,8,20,0.8); color: var(--text-bright);
  transition: all 0.2s; width: 100%; max-width: 400px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0,240,255,0.2);
}
input[type="checkbox"] { width: auto; accent-color: var(--neon-cyan); }
input:disabled {
  background: rgba(0,8,20,0.3); color: var(--text-dim); cursor: not-allowed;
}

/* ===== BUTTONS ===== */
button, .btn {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  padding: 0.5rem 1.2rem; border: 1px solid var(--neon-cyan); border-radius: var(--radius);
  cursor: pointer; text-decoration: none; display: inline-block;
  background: rgba(0,240,255,0.08); color: var(--neon-cyan);
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.25s; position: relative; overflow: hidden;
}
button:hover, .btn:hover {
  background: rgba(0,240,255,0.18);
  box-shadow: var(--glow-cyan); color: #fff;
}
.btn.active {
  background: var(--neon-cyan); color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(0,240,255,0.6);
}
button[type="submit"] {
  border-color: var(--neon-green); color: var(--neon-green);
  background: rgba(0,255,136,0.08);
}
button[type="submit"]:hover {
  background: rgba(0,255,136,0.18);
  box-shadow: 0 0 12px rgba(0,255,136,0.4);
}
/* 按钮尺寸系统（替代散乱内联 style，与语义色 class 正交叠加） */
.btn-lg { font-size: 0.9rem; padding: 0.5rem 1.2rem; }
.btn-md { font-size: 0.78rem; padding: 0.3rem 0.7rem; }
.btn-sm { font-size: 0.7rem; padding: 0.2rem 0.5rem; }

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  background: rgba(6,11,20,0.5); font-family: var(--font-mono);
  font-size: 0.78rem; border: 1px solid rgba(0,200,255,0.1);
}
.data-table thead { border-bottom: 2px solid rgba(0,240,255,0.3); }
.data-table th {
  background: rgba(0,240,255,0.04); color: var(--neon-cyan);
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 700;
  padding: 0.6rem 0.6rem; text-align: left; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.data-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(0,200,255,0.05);
  color: var(--text-primary); font-size: 0.78rem;
}
.data-table tr:hover td {
  background: rgba(0,240,255,0.03);
  box-shadow: inset 0 0 24px rgba(0,240,255,0.02);
}

.truncate { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.hint { color: var(--text-dim); font-size: 0.8rem; margin: 0.5rem 0; }

/* ===== WARNING COLORS ===== */
.warn-red { color: #c04040; text-shadow: none; font-weight: bold; }
.warn-orange { color: #c08050; text-shadow: none; font-weight: bold; }
.warn-yellow { color: #a080c0; text-shadow: none; font-weight: bold; }

/* ===== LOGIN ===== */
.login-box {
  max-width: 420px; margin: 8rem auto;
  background: var(--bg-card); border: 1px solid rgba(80,140,160,0.12);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 60px rgba(0,200,255,0.05);
  backdrop-filter: blur(20px);
}
.login-box h1 {
  text-align: center; margin-bottom: 2rem; font-size: 1.8rem;
}

/* ===== CHART AREA ===== */
.chart-row { display: flex; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; }
.chart-box {
  flex: 1; min-width: 480px;
  background: var(--bg-card); border: 1px solid rgba(80,140,160,0.12);
  border-radius: var(--radius); padding: 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.legend { display: flex; gap: 1.5rem; margin: 0.5rem 0; font-size: 0.8rem; }

/* ===== CONTROLS ===== */
.controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.controls input[type="date"] {
  background: rgba(0,8,20,0.8); border: 1px solid rgba(80,140,160,0.12);
  color: var(--text-bright); padding: 0.4rem 0.6rem;
  font-family: var(--font-mono); font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 1.5rem; min-width: 420px; max-width: 90vw;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0,200,255,0.1);
}
.modal-content h3 {
  font-family: var(--font-display); color: var(--neon-cyan); margin-bottom: 1rem;
  letter-spacing: 1.5px;
}

/* ===== CHECKBOX LIST ===== */
.checkbox-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.4rem; margin: 1rem 0;
}
.checkbox-list label {
  color: var(--text-primary); cursor: pointer; padding: 0.3rem 0.5rem;
  border-radius: var(--radius); transition: all 0.15s;
}
.checkbox-list label:hover { background: rgba(0,240,255,0.06); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--border-glow); border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* ===== PAGE-SPECIFIC ===== */
.data-table td:last-child { white-space: nowrap; }

/* ===== ANIMATIONS ===== */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
  50% { opacity: 1; }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0.5rem; }
  .navbar { padding: 0.4rem 0.6rem; gap: 0.5rem; font-size: 0.7rem; }
  .navbar a { font-size: 0.65rem; padding: 0.2rem 0.3rem; letter-spacing: 0; }
  h1 { font-size: 1rem; }
  .card { padding: 0.8rem; }
  .chart-box { min-width: 320px !important; }
  .chart-row { flex-direction: column; }
  .controls { flex-wrap: wrap; gap: 0.3rem; }
  .controls .btn, .controls button { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
  .controls input[type="date"] { font-size: 0.75rem; padding: 0.3rem 0.4rem; max-width: 110px !important; }
  .data-table { font-size: 0.7rem; min-width: max-content; }
  .data-table .col-customer { min-width: 260px; }
  .data-table .col-location { min-width: 296px; }
  .data-table th, .data-table td { padding: 0.3rem 0.4rem; }
  .login-box { margin: 2rem auto; padding: 1.5rem; max-width: 90vw; }
  .modal-content { min-width: 280px; }
  /* 表单控件移动端适配 */
  form[id="ot-form"], .controls form {
    flex-shrink: 1 !important;
    max-width: 100%;
  }
  input[type="date"] {
    max-width: 105px !important;
    font-size: 0.72rem !important;
    padding: 0.25rem 0.35rem !important;
  }
  button, .btn {
    min-width: unset;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  .btn-sm { font-size: 0.68rem; padding: 0.2rem 0.45rem; }
  .btn-lg { font-size: 0.85rem; padding: 0.45rem 1rem; }
}

/* ===== FROSTED GLASS OVERRIDES ===== */
.card {
  background: rgba(var(--card-rgb), 0.5) !important;
  border: 1px solid rgba(var(--border-rgb), 0.18) !important;
  backdrop-filter: blur(14px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(110%) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.data-table {
  background: rgba(var(--table-rgb), 0.4) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.data-table th { background: rgba(var(--border-rgb), 0.08) !important; }
.chart-box {
  background: rgba(var(--card-rgb), 0.5) !important;
  backdrop-filter: blur(10px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(110%) !important;
  border: 1px solid rgba(var(--border-rgb), 0.12) !important;
}
.login-box {
  background: rgba(var(--card-rgb), 0.55) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  border: 1px solid rgba(var(--border-rgb), 0.18) !important;
}
.modal-content {
  background: rgba(var(--card-rgb), 0.7) !important;
  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
  border: 1px solid rgba(var(--border-rgb), 0.25) !important;
}
input, select, textarea {
  background: rgba(var(--input-rgb), 0.5) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(100, 200, 220, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 240, 255, 0.04);
  transition: all 0.25s;
  letter-spacing: 0.5px;
}
.back-link:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(100, 200, 220, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  color: #fff;
}

/* ===== HINT LINKS ===== */
.hint a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 200, 220, 0.25);
  transition: all 0.2s;
}
.hint a:hover {
  color: #fff;
  border-bottom-color: var(--neon-cyan);
}

/* ===== DROPDOWN PANEL ===== */
.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  background: rgba(var(--panel-rgb), 0.98);
  border: 1px solid rgba(var(--border-rgb), 0.25);
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
  min-width: 200px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 200, 255, 0.08);
}
.dropdown-header {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(100, 200, 220, 0.1);
  position: sticky;
  top: 0;
  background: rgba(var(--panel-rgb), 0.98);
  z-index: 1;
}
.eng-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.eng-option:hover {
  background: rgba(0, 240, 255, 0.06);
  color: var(--text-bright);
}
.eng-option input[type="checkbox"] { width: auto; flex-shrink: 0; }
.eng-toggle { font-size: 0.75rem; padding: 0.3rem 0.7rem; white-space: nowrap; }

/* ===== STAT CARD ===== */
.stat-card {
  background: rgba(var(--card-rgb), 0.55);
  border: 1px solid rgba(var(--border-rgb), 0.15);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s;
}
.stat-card:hover {
  border-color: rgba(100, 200, 220, 0.25);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.08);
}
.stat-value { font-size: 1.6rem; font-weight: bold; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ===== BUTTON VARIANTS ===== */
.btn-danger {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
  background: rgba(208, 112, 144, 0.06);
}
.btn-danger:hover {
  background: rgba(208, 112, 144, 0.15);
  box-shadow: 0 0 12px rgba(208, 112, 144, 0.3);
  color: #fff;
}
.btn-success {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(96, 192, 144, 0.06);
}
.btn-success:hover {
  background: rgba(96, 192, 144, 0.15);
  box-shadow: 0 0 12px rgba(96, 192, 144, 0.3);
  color: #fff;
}
.btn-warn {
  border-color: var(--neon-orange);
  color: var(--neon-orange);
  background: rgba(208, 144, 96, 0.06);
}
.btn-warn:hover {
  background: rgba(208, 144, 96, 0.15);
  box-shadow: 0 0 12px rgba(208, 144, 96, 0.3);
  color: #fff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-content { animation: fadeIn 0.2s ease-out; }
.dropdown-panel[style*="block"] { animation: slideDown 0.15s ease-out; }

/* ===== ENHANCED MOBILE ===== */
@media (max-width: 768px) {
  .dropdown-panel {
    position: fixed;
    top: auto;
    left: 1rem;
    right: 1rem;
    bottom: auto;
    max-height: 50vh;
    min-width: auto;
    z-index: 200;
  }
  .stat-card .stat-value { font-size: 1.3rem; }
  .back-link { font-size: 0.78rem; padding: 0.35rem 0.8rem; }
}

/* ===== SELF-DECLARED ROW (深紫色文字区分) ===== */
.row-self-declared td {
  color: #9d7bdf;
}
.row-self-declared:hover td {
  color: #b89eff;
}
/* ===== HOLIDAY ROW (非工作日淡紫背景区分，需求2) ===== */
/* 用 tr 级 background（非 td），消除 border-collapse 时 td 间隙的竖线渲染 */
.row-holiday {
  background: rgba(160, 128, 192, 0.12) !important;
}
.row-holiday td {
  background: transparent !important;
}
.row-holiday:hover {
  background: rgba(160, 128, 192, 0.20) !important;
}
.row-self-declared.row-holiday {
  background: rgba(160, 128, 192, 0.10) !important;
}
/* 自申报+非工作日叠加：自申报文字色优先 + 非工作日背景 */
.row-self-declared.row-holiday td {
  color: #d4c060;
  background: rgba(160, 128, 192, 0.10);
}
.badge-self {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  background: rgba(208, 144, 96, 0.2);
  color: var(--neon-orange);
  border: 1px solid rgba(208, 144, 96, 0.3);
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.5px;
}
/* 审核状态徽章（需求4） */
.badge-review {
  display: inline-block;
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 3px;
  letter-spacing: 0.3px;
}
.badge-pending {
  background: rgba(192, 176, 96, 0.2);
  color: #c0b060;
  border: 1px solid rgba(192, 176, 96, 0.4);
}
.badge-rejected {
  background: rgba(192, 112, 128, 0.2);
  color: #d09098;
  border: 1px solid rgba(192, 112, 128, 0.4);
}
.badge-approved {
  background: rgba(96, 192, 144, 0.15);
  color: #60c090;
  border: 1px solid rgba(96, 192, 144, 0.35);
}
/* ===== FLASH MESSAGES ===== */
.msg {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}
.msg-error {
  background: rgba(192,112,128,0.2);
  border: 1px solid rgba(192,112,128,0.4);
  color: #d09098;
}
.msg-success {
  background: rgba(96,180,120,0.15);
  border: 1px solid rgba(96,180,120,0.35);
  color: #78c890;
}
.btn-proof {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  background: rgba(192, 176, 96, 0.06);
}
.btn-proof:hover {
  background: rgba(192, 176, 96, 0.15);
  box-shadow: 0 0 8px rgba(192, 176, 96, 0.3);
  color: #fff;
}

/* ===== THEME TOGGLE（深浅主题切换按钮） ===== */
.theme-toggle {
  font-size: 1rem; line-height: 1; padding: 0.25rem 0.5rem;
  min-width: auto; letter-spacing: 0; text-transform: none;
  border: 1px solid rgba(var(--border-rgb), 0.25);
  background: transparent; color: var(--text-dim);
  cursor: pointer; border-radius: var(--radius); vertical-align: middle;
}
.theme-toggle:hover {
  color: var(--neon-cyan); border-color: var(--neon-cyan);
  background: rgba(var(--border-rgb), 0.1);
}

/* ===== DATA ACTION FORMS（数据管理页：导入 / 清空范围，同一行紧凑） ===== */
.data-action-row {
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
}
.data-action-form {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.action-label { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }
.range-sep { color: var(--text-dim); font-size: 0.8rem; }
.data-action-form input[type="file"] { width: auto; max-width: 280px; }
.data-action-form input[type="date"] { width: auto; max-width: 150px; }
.data-action-form button { white-space: nowrap; }
@media (max-width: 768px) {
  .data-action-form input[type="date"] { max-width: 120px !important; }
  .data-action-form button { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
}

/* ===== 响应式补强：移动端导航/主题/可读性 ===== */
@media (max-width: 768px) {
  .nav-right {
    margin-left: 0; width: 100%; padding-top: 0.3rem;
    border-top: 1px solid rgba(var(--border-rgb), 0.1); font-size: 0.7rem;
  }
  .theme-toggle { font-size: 0.9rem; padding: 0.15rem 0.4rem; }
  .stat-card .stat-value { font-size: 1.25rem; }
  .login-box { margin: 1.5rem auto; padding: 1.2rem; }
}
/* 表格容器横向滚动（移动端宽表不溢出） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 分页链接（明细/回收站/审计/用户管理共用，替代 4 模板 16 处内联样式） */
.page-link { padding: 0.2rem 0.6rem; border: 1px solid rgba(100, 200, 220, 0.2); border-radius: 4px; text-decoration: none; color: #6cd0e0; font-size: 0.75rem; }
/* 视角提示横幅（明细页自申报审核/未申报人视图） */
.msg-notice { background: rgba(74, 144, 217, 0.12); border: 1px solid rgba(74, 144, 217, 0.4); color: #a8c8e8; padding: 0.5rem 0.8rem; border-radius: 4px; }
.msg-alert { background: rgba(214, 120, 160, 0.10); border: 1px solid rgba(214, 120, 160, 0.4); color: #e0b0c8; padding: 0.5rem 0.8rem; border-radius: 4px; }
