/* ===== 综合后台布局 ===== */
.login-hint { margin-top: 14px; font-size: 12px; color: #9aa7bd; text-align: center; }
.quick-login { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e0e6ef; }
.quick-title { font-size: 11px; color: #9aa7bd; text-align: center; margin-bottom: 8px; }
.quick-btn { width: 100%; padding: 9px; margin-bottom: 8px; background: #eef3fb; color: #2d6cd0; border: 1px solid #d6e3f7; border-radius: 8px; font-size: 13px; cursor: pointer; }
.quick-btn:hover { background: #e0ecfb; }

#app { display: flex; min-height: 100vh; }
.sidebar { width: 210px; background: #0f2742; color: #cdd8e8; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; }
.logo { font-size: 17px; font-weight: 700; color: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.logo span { font-size: 10px; letter-spacing: 2px; opacity: .5; font-weight: 400; }
#menu { flex: 1; overflow-y: auto; padding: 6px 0; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; cursor: pointer; font-size: 14px; color: #aebbd0; border-left: 3px solid transparent; }
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.active { background: rgba(45,140,255,.16); color: #fff; border-left-color: #2d8cff; }
.menu-item .ic { width: 18px; text-align: center; }
.side-foot { padding: 14px 20px; font-size: 11px; color: #6c7d96; border-top: 1px solid rgba(255,255,255,.08); }

.content { flex: 1; margin-left: 210px; display: flex; flex-direction: column; }
.apptop { height: 56px; background: #fff; border-bottom: 1px solid #e7ebf2; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 9; }
.crumb { font-size: 16px; font-weight: 600; color: #1f2733; }
.topright { display: flex; align-items: center; gap: 10px; }
.who { font-size: 13px; color: #5a6b86; }
.who .role { background: #eef3fb; color: #2d6cd0; border-radius: 10px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }
button.sm { padding: 5px 10px; font-size: 12px; background: #eef2f8; color: #33415c; }
.view { padding: 22px 24px 60px; }

/* 卡片/区块 */
.panel { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; }
.row-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.row-tools label { color: #33415c; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px){ .kpis{ grid-template-columns: repeat(2,1fr);} }

/* 趋势图 */
.chart-wrap { width: 100%; overflow-x: auto; }
svg.linechart { display: block; }

/* 通用表格 */
.dt { width: 100%; border-collapse: collapse; background: #fff; }
.dt th { background: #fafbfd; color: #8a94a6; font-size: 11px; text-align: left; padding: 9px 12px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.dt td { padding: 8px 12px; border-bottom: 1px solid #f3f5f8; font-size: 13px; }
.dt td.r, .dt th.r { text-align: right; }
.dt tr:hover td { background: #fafcff; }
.pill { border-radius: 10px; padding: 1px 8px; font-size: 11px; }
.pill.admin { background: #fde8e8; color: #c62828; }
.pill.editor { background: #e8f1fd; color: #1565c0; }
.pill.viewer { background: #eef5ec; color: #2e7d32; }
.pill.on { background: #eef5ec; color: #2e7d32; } .pill.off { background: #f1f1f1; color: #888; }

.btnbar { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: #9aa7bd; padding: 24px; text-align: center; }
.danger-text { color: #c62828; }
.muted { color: #8a94a6; font-size: 12px; }
.uploadbox { border: 2px dashed #cfd8e6; border-radius: 10px; padding: 22px; text-align: center; color: #5a6b86; }

/* 弹框 */
.ov { position: fixed; inset: 0; background: rgba(15,39,66,.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.dlg { background: #fff; border-radius: 14px; padding: 22px; width: 440px; max-height: 90vh; overflow: auto; }
.dlg h3 { margin: 0 0 16px; }
.dlg label { display: block; margin-bottom: 12px; font-size: 13px; color: #33415c; }
.dlg input:not([type=checkbox]), .dlg select { width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid #cfd8e6; border-radius: 7px; font-size: 14px; }
.dlg .cks { display: flex; gap: 16px; margin-top: 6px; }
.dlg label.ck { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.dlg label.ck input { width: auto; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
