dashboard.scss 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  1. @use "sass:color";
  2. @use '../../../shared/styles/ios-theme' as ios;
  3. @use '../ios-theme.scss' as local;
  4. /* 新增优化样式 */
  5. @import './dashboard-new-styles.scss';
  6. @import './dashboard-calendar.scss';
  7. /* 顶部导航栏样式 */
  8. .top-navbar {
  9. position: fixed;
  10. top: 0;
  11. left: 0;
  12. right: 0;
  13. z-index: 1000;
  14. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  15. padding: 0.625rem 2rem; // 从1rem减少到0.625rem,降低高度
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  20. .navbar-left {
  21. .navbar-title {
  22. font-size: 1.25rem; // 从1.5rem减小到1.25rem
  23. font-weight: 600;
  24. color: white;
  25. margin: 0;
  26. }
  27. }
  28. .navbar-right {
  29. display: flex;
  30. align-items: center;
  31. gap: 1.5rem; // 从2rem减少到1.5rem
  32. .date-display {
  33. color: rgba(255, 255, 255, 0.9);
  34. font-size: 0.875rem; // 从0.95rem减小到0.875rem
  35. font-weight: 500;
  36. }
  37. .user-profile {
  38. display: flex;
  39. align-items: center;
  40. gap: 0.625rem; // 从0.75rem减少到0.625rem
  41. background: rgba(255, 255, 255, 0.15);
  42. padding: 0.375rem 0.875rem; // 从0.5rem 1rem减少
  43. border-radius: 50px;
  44. backdrop-filter: blur(10px);
  45. transition: background 0.3s ease;
  46. &:hover {
  47. background: rgba(255, 255, 255, 0.25);
  48. }
  49. .user-avatar {
  50. width: 36px; // 从40px减小到36px
  51. height: 36px;
  52. border-radius: 50%;
  53. object-fit: cover;
  54. border: 2px solid white;
  55. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  56. }
  57. .user-name {
  58. color: white;
  59. font-weight: 600;
  60. font-size: 0.9375rem; // 从1rem减小到0.9375rem
  61. }
  62. .user-role {
  63. color: rgba(255, 255, 255, 0.8);
  64. font-size: 0.8125rem; // 从0.875rem减小到0.8125rem
  65. padding: 0.1875rem 0.625rem; // 从0.25rem 0.75rem减少
  66. background: rgba(255, 255, 255, 0.2);
  67. border-radius: 12px;
  68. }
  69. }
  70. }
  71. }
  72. :host {
  73. display: block;
  74. background-color: ios.$ios-background-secondary;
  75. min-height: 100vh;
  76. padding: 0; // 移除默认padding
  77. padding-left: ios.$ios-spacing-lg;
  78. padding-right: ios.$ios-spacing-lg;
  79. padding-top: calc(70px + ios.$ios-spacing-lg); // 70px为导航栏高度,加上额外间距
  80. padding-bottom: ios.$ios-spacing-lg;
  81. overflow-y: auto; /* 确保组件内容可以滚动 */
  82. max-height: 100vh; /* 限制最大高度为视口高度 */
  83. box-sizing: border-box; /* 确保padding计入高度 */
  84. }
  85. .dashboard-header {
  86. margin-bottom: local.$ios-spacing-xxl;
  87. h1 {
  88. font-size: local.$ios-font-size-xl;
  89. font-weight: local.$ios-font-weight-bold;
  90. color: local.$ios-text-primary;
  91. margin: 0 0 local.$ios-spacing-lg 0;
  92. }
  93. // 核心数据指标卡片样式
  94. .dashboard-metrics {
  95. display: grid;
  96. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  97. gap: local.$ios-spacing-lg;
  98. margin-top: local.$ios-spacing-lg;
  99. .metric-card {
  100. display: flex;
  101. align-items: center;
  102. gap: local.$ios-spacing-md;
  103. background: linear-gradient(135deg, local.$ios-card-background, #f8f9fa);
  104. border-radius: local.$ios-radius-lg;
  105. padding: local.$ios-spacing-lg;
  106. border: 1px solid local.$ios-border;
  107. box-shadow: local.$ios-shadow-sm;
  108. cursor: pointer;
  109. transition: all 0.3s ease;
  110. &:hover {
  111. transform: translateY(-2px);
  112. box-shadow: local.$ios-shadow-card;
  113. }
  114. .metric-icon {
  115. font-size: 2rem;
  116. width: 50px;
  117. height: 50px;
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. border-radius: local.$ios-radius-full;
  122. background-color: local.$ios-background;
  123. }
  124. .metric-icon.warning { background-color: rgba(255, 149, 0, 0.1); }
  125. .metric-icon.info { background-color: rgba(59, 130, 246, 0.1); }
  126. .metric-icon.primary { background-color: rgba(124, 58, 237, 0.1); }
  127. .metric-icon.danger { background-color: rgba(239, 68, 68, 0.1); }
  128. .metric-icon.success { background-color: rgba(16, 185, 129, 0.1); }
  129. .metric-content { flex: 1; }
  130. .metric-count {
  131. font-size: 2rem;
  132. font-weight: local.$ios-font-weight-bold;
  133. color: local.$ios-text-primary;
  134. line-height: 1.2;
  135. }
  136. .metric-label {
  137. font-size: local.$ios-font-size-sm;
  138. color: local.$ios-text-secondary;
  139. text-transform: uppercase;
  140. letter-spacing: 0.5px;
  141. }
  142. }
  143. }
  144. }
  145. /* 极窄屏样式优化:减小列间距与列宽,保证可视密�?*/
  146. @media (max-width: 640px) {
  147. .project-kanban {
  148. .kanban-header { gap: local.$ios-spacing-sm; }
  149. .kanban-body {
  150. gap: local.$ios-spacing-sm;
  151. .kanban-column {
  152. min-width: 160px;
  153. max-width: 160px;
  154. }
  155. }
  156. }
  157. }
  158. @media (max-width: 480px) {
  159. .project-kanban {
  160. .kanban-body {
  161. .kanban-column {
  162. min-width: 150px;
  163. max-width: 150px;
  164. }
  165. }
  166. }
  167. }
  168. .dashboard-main {
  169. max-width: 1400px;
  170. margin: 0 auto;
  171. }
  172. .section-header {
  173. display: flex;
  174. justify-content: space-between;
  175. align-items: center;
  176. margin-bottom: local.$ios-spacing-lg;
  177. h2 {
  178. font-size: local.$ios-font-size-lg;
  179. font-weight: local.$ios-font-weight-semibold;
  180. color: local.$ios-text-primary;
  181. margin: 0;
  182. }
  183. .section-actions {
  184. display: inline-flex;
  185. align-items: center;
  186. gap: 12px;
  187. .btn-link {
  188. background: transparent;
  189. border: none;
  190. color: #0969da;
  191. cursor: pointer;
  192. padding: 4px 6px;
  193. &:hover { text-decoration: underline; }
  194. }
  195. }
  196. }
  197. .btn-toggle-view {
  198. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  199. border-radius: local.$ios-radius-md;
  200. border: 1px solid local.$ios-border;
  201. background: linear-gradient(180deg, #fff, #f8fafc);
  202. color: local.$ios-text-primary;
  203. font-size: local.$ios-font-size-sm;
  204. cursor: pointer;
  205. box-shadow: local.$ios-shadow-sm;
  206. transition: all .2s ease;
  207. &:hover {
  208. transform: translateY(-1px);
  209. box-shadow: local.$ios-shadow-card;
  210. }
  211. }
  212. .gantt-card {
  213. background: local.$ios-card-background;
  214. border: 1px solid local.$ios-border;
  215. border-radius: local.$ios-radius-lg;
  216. box-shadow: local.$ios-shadow-card;
  217. padding: local.$ios-spacing-lg;
  218. margin-bottom: local.$ios-spacing-xl;
  219. position: relative; // 确保内部绝对定位下拉基于该容�?
  220. .gantt-container {
  221. width: 100%;
  222. height: 600px; // 增加高度以更好地展示项目
  223. min-height: 500px;
  224. }
  225. .gantt-header {
  226. display: flex;
  227. justify-content: space-between;
  228. align-items: center;
  229. margin-bottom: local.$ios-spacing-md;
  230. overflow: visible; // 避免头部区域裁剪下拉
  231. .title {
  232. font-size: local.$ios-font-size-md;
  233. font-weight: local.$ios-font-weight-semibold;
  234. color: local.$ios-text-primary;
  235. }
  236. .hint {
  237. font-size: local.$ios-font-size-xs;
  238. color: local.$ios-text-secondary;
  239. }
  240. // 布局调整:搜索框放在同层级最右边,模式切换在其左�?
  241. .scale-switch { margin-left: 0; }
  242. .mode-switch { order: 3; margin-left: 8px; }
  243. .search-box { order: 4; margin-left: auto; position: relative; }
  244. // 甘特头部中的搜索建议下拉为悬浮层,不占据文档�?
  245. .search-box {
  246. .suggestion-panel {
  247. position: absolute;
  248. top: calc(100% + 6px);
  249. right: 0;
  250. min-width: 260px;
  251. width: max(100%, 360px);
  252. max-width: 520px;
  253. background: #fff;
  254. border: 1px solid #e5e7eb;
  255. border-radius: 10px;
  256. box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  257. z-index: 20;
  258. padding: 6px;
  259. }
  260. .suggestion-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
  261. .suggestion-panel li {
  262. padding: 8px 10px;
  263. border-radius: 8px;
  264. cursor: pointer;
  265. transition: background .15s ease;
  266. display: flex;
  267. flex-direction: column;
  268. gap: 4px;
  269. }
  270. .suggestion-panel li:hover { background: #f3f4f6; }
  271. .suggestion-panel .line-1 { display: flex; align-items: center; gap: 8px; }
  272. .suggestion-panel .line-1 .name { font-weight: 600; color: #111827; flex: 1; min-width: 0; }
  273. .suggestion-panel .line-1 .badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
  274. .suggestion-panel .line-1 .badge.vip { background: #ede9fe; color: #7c3aed; }
  275. .suggestion-panel .line-1 .urgency { font-size: 12px; }
  276. .suggestion-panel .line-2 { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-size: 12px; }
  277. .suggestion-panel .empty { padding: 10px 12px; color: #6b7280; font-size: 13px; }
  278. }
  279. }
  280. .gantt-chart {
  281. width: 100%;
  282. height: 420px;
  283. }
  284. }
  285. .section-filters {
  286. display: flex;
  287. gap: local.$ios-spacing-md;
  288. flex-wrap: wrap;
  289. align-items: center;
  290. overflow: visible; // 避免看板筛选区搜索建议被裁�?
  291. .custom-select {
  292. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  293. border: 1px solid local.$ios-border;
  294. border-radius: local.$ios-radius-md;
  295. background-color: local.$ios-background;
  296. font-size: local.$ios-font-size-sm;
  297. color: local.$ios-text-primary;
  298. cursor: pointer;
  299. transition: all 0.2s ease;
  300. min-width: 140px;
  301. }
  302. .search-box {
  303. margin-right: 8px;
  304. position: relative; // 作为下拉定位参�?
  305. .input-search {
  306. width: 260px;
  307. padding: 8px 12px;
  308. border: 1px solid #e5e7eb;
  309. border-radius: 8px;
  310. font-size: 14px;
  311. outline: none;
  312. transition: border-color .2s ease, box-shadow .2s ease;
  313. &:focus {
  314. border-color: #3b82f6;
  315. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  316. }
  317. }
  318. // 看板筛选区域同样使用悬浮层下拉
  319. .suggestion-panel {
  320. position: absolute;
  321. top: calc(100% + 6px);
  322. right: 0;
  323. min-width: 260px;
  324. width: max(100%, 360px);
  325. max-width: 520px;
  326. background: #fff;
  327. border: 1px solid #e5e7eb;
  328. border-radius: 10px;
  329. box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  330. z-index: 20;
  331. padding: 6px;
  332. }
  333. .suggestion-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
  334. .suggestion-panel li {
  335. padding: 8px 10px;
  336. border-radius: 8px;
  337. cursor: pointer;
  338. transition: background .15s ease;
  339. display: flex;
  340. flex-direction: column;
  341. gap: 4px;
  342. }
  343. .suggestion-panel li:hover { background: #f3f4f6; }
  344. .suggestion-panel .line-1 { display: flex; align-items: center; gap: 8px; }
  345. .suggestion-panel .line-1 .name { font-weight: 600; color: #111827; flex: 1; min-width: 0; }
  346. .suggestion-panel .line-1 .badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
  347. .suggestion-panel .line-1 .badge.vip { background: #ede9fe; color: #7c3aed; }
  348. .suggestion-panel .line-1 .urgency { font-size: 12px; }
  349. .suggestion-panel .line-2 { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-size: 12px; }
  350. .suggestion-panel .empty { padding: 10px 12px; color: #6b7280; font-size: 13px; }
  351. }
  352. }
  353. // 项目卡片与看板样�?
  354. .project-kanban {
  355. position: relative;
  356. z-index: 1;
  357. // 公共横向滚动容器
  358. .kanban-scroll {
  359. overflow-x: auto;
  360. padding-bottom: local.$ios-spacing-md;
  361. -webkit-overflow-scrolling: touch;
  362. &::-webkit-scrollbar { height: 6px; }
  363. &::-webkit-scrollbar-track {
  364. background: local.$ios-background;
  365. border-radius: local.$ios-radius-full;
  366. }
  367. &::-webkit-scrollbar-thumb {
  368. background: local.$ios-border;
  369. border-radius: local.$ios-radius-full;
  370. }
  371. &::-webkit-scrollbar-thumb:hover { background: local.$ios-text-tertiary; }
  372. .kanban-header, .kanban-body { width: max-content; }
  373. }
  374. // 看板标题�?
  375. .kanban-header {
  376. position: sticky;
  377. top: 0;
  378. z-index: 2;
  379. background: local.$ios-card-background;
  380. border-bottom: 1px solid local.$ios-border;
  381. display: flex;
  382. gap: local.$ios-spacing-md;
  383. margin-bottom: local.$ios-spacing-md;
  384. .kanban-column-header {
  385. flex: 0 0 180px;
  386. min-width: 180px;
  387. max-width: 180px;
  388. display: flex;
  389. justify-content: space-between;
  390. align-items: center;
  391. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  392. background-color: local.$ios-background;
  393. border-radius: local.$ios-radius-md;
  394. border: 1px solid local.$ios-border;
  395. h3 {
  396. font-size: local.$ios-font-size-sm;
  397. font-weight: local.$ios-font-weight-medium;
  398. color: local.$ios-text-primary;
  399. margin: 0;
  400. }
  401. .stage-count {
  402. font-size: local.$ios-font-size-xs;
  403. background-color: local.$ios-primary;
  404. color: local.$ios-background;
  405. padding: 2px 8px;
  406. border-radius: local.$ios-radius-full;
  407. font-weight: local.$ios-font-weight-medium;
  408. }
  409. }
  410. }
  411. // 看板主体内容
  412. .kanban-body {
  413. display: flex;
  414. gap: local.$ios-spacing-md;
  415. .kanban-column {
  416. flex: 1;
  417. min-width: 180px;
  418. max-width: 180px;
  419. height: 400px;
  420. background-color: local.$ios-background;
  421. border-radius: local.$ios-radius-md;
  422. border: 1px solid local.$ios-border;
  423. padding: local.$ios-spacing-sm;
  424. overflow-y: auto;
  425. -webkit-overflow-scrolling: touch;
  426. &::-webkit-scrollbar { width: 4px; }
  427. &::-webkit-scrollbar-track { background: transparent; }
  428. &::-webkit-scrollbar-thumb {
  429. background: local.$ios-border;
  430. border-radius: local.$ios-radius-full;
  431. }
  432. .project-card {
  433. background-color: local.$ios-card-background;
  434. border-radius: local.$ios-radius-md;
  435. padding: local.$ios-spacing-md;
  436. margin-bottom: local.$ios-spacing-sm;
  437. border: 1px solid local.$ios-border;
  438. box-shadow: local.$ios-shadow-sm;
  439. transition: all 0.2s ease;
  440. cursor: pointer;
  441. user-select: none;
  442. &:hover {
  443. transform: translateY(-2px);
  444. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  445. }
  446. &:active { transform: translateY(-1px); opacity: 0.98; }
  447. &.overdue { border-left: 4px solid local.$ios-danger; }
  448. &.high-urgency { border-left: 4px solid local.$ios-warning; }
  449. &.due-soon { border-left: 4px solid local.$ios-warning; }
  450. .project-card-header {
  451. display: flex;
  452. justify-content: space-between;
  453. align-items: flex-start;
  454. margin-bottom: local.$ios-spacing-sm;
  455. h4 {
  456. font-size: local.$ios-font-size-sm;
  457. font-weight: local.$ios-font-weight-medium;
  458. color: local.$ios-primary;
  459. margin: 0;
  460. cursor: pointer;
  461. &:hover { text-decoration: underline; }
  462. }
  463. .project-urgency {
  464. font-size: 10px;
  465. padding: 2px 6px;
  466. border-radius: local.$ios-radius-full;
  467. font-weight: local.$ios-font-weight-medium;
  468. }
  469. .urgency-high { background-color: rgba(239, 68, 68, 0.1); color: local.$ios-danger; }
  470. .urgency-medium { background-color: rgba(255, 149, 0, 0.1); color: local.$ios-warning; }
  471. .urgency-low { background-color: rgba(59, 130, 246, 0.1); color: local.$ios-info; }
  472. }
  473. .project-card-content {
  474. margin-bottom: local.$ios-spacing-sm;
  475. p {
  476. font-size: 11px;
  477. color: local.$ios-text-secondary;
  478. margin: 0 0 4px 0;
  479. }
  480. .deadline { font-size: 10px; color: local.$ios-text-tertiary; }
  481. }
  482. .project-card-footer {
  483. display: flex;
  484. gap: 4px;
  485. button {
  486. flex: 1;
  487. font-size: 10px;
  488. padding: 4px 6px;
  489. border: none;
  490. border-radius: local.$ios-radius-sm;
  491. cursor: pointer;
  492. transition: all 0.2s ease;
  493. }
  494. .btn-view { background-color: local.$ios-primary; color: local.$ios-background; }
  495. .btn-assign { background-color: local.$ios-success; color: local.$ios-background; }
  496. button:hover { opacity: 0.9; }
  497. }
  498. .right-badges {
  499. display: flex;
  500. align-items: center;
  501. gap: 6px;
  502. }
  503. .member-badge {
  504. font-size: 10px;
  505. padding: 2px 6px;
  506. border-radius: local.$ios-radius-full;
  507. background-color: rgba(59, 130, 246, 0.08);
  508. color: local.$ios-info;
  509. &.vip {
  510. background-color: rgba(124, 58, 237, 0.12);
  511. color: local.$ios-primary;
  512. font-weight: local.$ios-font-weight-semibold;
  513. }
  514. }
  515. }
  516. .empty-column {
  517. display: flex;
  518. flex-direction: column;
  519. align-items: center;
  520. justify-content: center;
  521. height: 100%;
  522. .empty-icon {
  523. font-size: 2rem;
  524. margin-bottom: local.$ios-spacing-sm;
  525. opacity: 0.3;
  526. }
  527. p {
  528. font-size: local.$ios-font-size-sm;
  529. color: local.$ios-text-tertiary;
  530. margin: 0;
  531. }
  532. }
  533. }
  534. }
  535. }
  536. /* 项目监控大盘样式 */
  537. .monitoring-section {
  538. background-color: local.$ios-card-background;
  539. border-radius: local.$ios-radius-lg;
  540. padding: local.$ios-spacing-xl;
  541. margin-bottom: local.$ios-spacing-xl;
  542. box-shadow: local.$ios-shadow-card;
  543. position: relative;
  544. overflow: visible; // 允许搜索建议下拉面板不被裁剪
  545. &::before {
  546. content: '';
  547. position: absolute;
  548. top: 0;
  549. right: 0;
  550. width: 300px;
  551. height: 300px;
  552. background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
  553. border-radius: 50%;
  554. transform: translate(50%, -50%);
  555. z-index: 0;
  556. pointer-events: none;
  557. }
  558. .gantt-card { position: relative; z-index: 1; }
  559. }
  560. /* 快速操作面板样�?*/
  561. .quick-actions-section {
  562. background-color: local.$ios-card-background;
  563. border-radius: local.$ios-radius-lg;
  564. padding: local.$ios-spacing-xl;
  565. margin-bottom: local.$ios-spacing-xl;
  566. box-shadow: local.$ios-shadow-card;
  567. .quick-actions-grid {
  568. display: grid;
  569. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  570. gap: local.$ios-spacing-lg;
  571. .action-card {
  572. background: linear-gradient(135deg, local.$ios-background, #f8f9fa);
  573. border-radius: local.$ios-radius-lg;
  574. padding: local.$ios-spacing-xl;
  575. border: 1px solid local.$ios-border;
  576. text-align: center;
  577. cursor: pointer;
  578. transition: all 0.3s ease;
  579. &:hover {
  580. transform: translateY(-3px);
  581. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  582. border-color: local.$ios-primary-light;
  583. }
  584. .action-icon {
  585. font-size: 2.5rem;
  586. margin-bottom: local.$ios-spacing-md;
  587. opacity: 0.8;
  588. }
  589. h3 {
  590. font-size: local.$ios-font-size-base;
  591. font-weight: local.$ios-font-weight-medium;
  592. color: local.$ios-text-primary;
  593. margin: 0 0 local.$ios-spacing-xs 0;
  594. }
  595. p {
  596. font-size: local.$ios-font-size-sm;
  597. color: local.$ios-text-secondary;
  598. margin: 0;
  599. }
  600. }
  601. }
  602. }
  603. /* 待办任务样式 */
  604. .todo-section {
  605. background-color: local.$ios-card-background;
  606. border-radius: local.$ios-radius-lg;
  607. padding: local.$ios-spacing-xl;
  608. margin-bottom: local.$ios-spacing-xl;
  609. box-shadow: local.$ios-shadow-card;
  610. }
  611. .todo-list {
  612. .todo-item {
  613. padding: local.$ios-spacing-lg;
  614. border-radius: local.$ios-radius-md;
  615. margin-bottom: local.$ios-spacing-md;
  616. background-color: local.$ios-background;
  617. border: 1px solid local.$ios-border;
  618. transition: local.$ios-feedback-hover;
  619. &:last-child { margin-bottom: 0; }
  620. &.priority-high { border-left: 4px solid local.$ios-danger; }
  621. &.priority-medium { border-left: 4px solid local.$ios-warning; }
  622. &.priority-low { border-left: 4px solid local.$ios-info; }
  623. &:hover { transform: translateY(-1px); box-shadow: local.$ios-shadow-sm; }
  624. .todo-header {
  625. display: flex;
  626. justify-content: space-between;
  627. align-items: center;
  628. margin-bottom: local.$ios-spacing-md;
  629. h3 {
  630. font-size: local.$ios-font-size-base;
  631. font-weight: local.$ios-font-weight-medium;
  632. color: local.$ios-text-primary;
  633. margin: 0;
  634. }
  635. .task-priority {
  636. font-size: local.$ios-font-size-xs;
  637. padding: local.$ios-spacing-xs local.$ios-spacing-sm;
  638. border-radius: local.$ios-radius-full;
  639. font-weight: local.$ios-font-weight-medium;
  640. }
  641. }
  642. .todo-info {
  643. margin-bottom: local.$ios-spacing-md;
  644. p {
  645. margin: 0 0 local.$ios-spacing-xs 0;
  646. font-size: local.$ios-font-size-sm;
  647. color: local.$ios-text-secondary;
  648. }
  649. .task-deadline { font-size: local.$ios-font-size-xs; color: local.$ios-text-tertiary; }
  650. }
  651. .todo-actions {
  652. .btn-handle {
  653. background-color: local.$ios-primary;
  654. color: local.$ios-background;
  655. border: none;
  656. border-radius: local.$ios-radius-md;
  657. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  658. font-size: local.$ios-font-size-sm;
  659. font-weight: local.$ios-font-weight-medium;
  660. cursor: pointer;
  661. transition: local.$ios-feedback-tap;
  662. &:hover { background-color: local.$ios-primary-light; }
  663. }
  664. }
  665. }
  666. }
  667. /* 超期提醒样式 */
  668. .overdue-alert {
  669. position: fixed;
  670. top: 50%;
  671. left: 50%;
  672. transform: translate(-50%, -50%);
  673. background-color: local.$ios-card-background;
  674. border-radius: local.$ios-radius-lg;
  675. padding: local.$ios-spacing-xl;
  676. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  677. z-index: 1000;
  678. min-width: 400px;
  679. animation: slideIn 0.3s ease-out;
  680. @keyframes slideIn {
  681. from { opacity: 0; transform: translate(-50%, -60%); }
  682. to { opacity: 1; transform: translate(-50%, -50%); }
  683. }
  684. .alert-content {
  685. h3 {
  686. font-size: local.$ios-font-size-lg;
  687. font-weight: local.$ios-font-weight-semibold;
  688. color: local.$ios-danger;
  689. margin: 0 0 local.$ios-spacing-lg 0;
  690. display: flex;
  691. align-items: center;
  692. gap: local.$ios-spacing-sm;
  693. }
  694. ul {
  695. margin: 0 0 local.$ios-spacing-lg 0;
  696. padding-left: local.$ios-spacing-xl;
  697. li {
  698. font-size: local.$ios-font-size-base;
  699. color: local.$ios-text-primary;
  700. margin-bottom: local.$ios-spacing-sm;
  701. &:last-child { margin-bottom: 0; }
  702. }
  703. }
  704. .alert-actions {
  705. display: flex;
  706. gap: local.$ios-spacing-md;
  707. justify-content: flex-end;
  708. .btn-view-all {
  709. background-color: local.$ios-primary;
  710. color: local.$ios-background;
  711. border: none;
  712. border-radius: local.$ios-radius-md;
  713. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  714. font-size: local.$ios-font-size-sm;
  715. font-weight: local.$ios-font-weight-medium;
  716. cursor: pointer;
  717. transition: local.$ios-feedback-tap;
  718. &:hover { background-color: local.$ios-primary-light; }
  719. }
  720. .btn-close {
  721. background-color: local.$ios-text-tertiary;
  722. color: local.$ios-text-primary;
  723. border: none;
  724. border-radius: local.$ios-radius-md;
  725. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  726. font-size: local.$ios-font-size-sm;
  727. font-weight: local.$ios-font-weight-medium;
  728. cursor: pointer;
  729. transition: local.$ios-feedback-tap;
  730. &:hover { background-color: local.$ios-text-secondary; color: local.$ios-background; }
  731. }
  732. }
  733. }
  734. }
  735. .time-window-buttons {
  736. display: inline-flex;
  737. gap: 8px;
  738. margin-left: 8px;
  739. button {
  740. padding: 6px 10px;
  741. border: 1px solid #d0d7de;
  742. border-radius: 6px;
  743. background: #fff;
  744. color: #24292f;
  745. cursor: pointer;
  746. transition: all .15s ease;
  747. &:hover { background: #f6f8fa; }
  748. &.active { background: #0969da; color: #fff; border-color: #0969da; }
  749. }
  750. }
  751. .inline-actions {
  752. display: inline-flex;
  753. gap: 6px;
  754. margin-left: 8px;
  755. .btn-secondary {
  756. padding: 4px 8px;
  757. font-size: 12px;
  758. border: 1px solid #d0d7de;
  759. border-radius: 6px;
  760. background: #fff;
  761. color: #24292f;
  762. cursor: pointer;
  763. &:hover { background: #f3f4f6; }
  764. }
  765. }
  766. .urgent-pinned {
  767. margin: 8px 16px 0;
  768. padding: 8px 12px;
  769. background: rgba(255, 241, 241, 0.8);
  770. border: 1px solid #fecaca;
  771. border-radius: 8px;
  772. .pinned-title {
  773. font-size: 12px;
  774. color: #b91c1c;
  775. margin-bottom: 6px;
  776. font-weight: 600;
  777. }
  778. .pinned-list {
  779. display: flex;
  780. align-items: center;
  781. gap: 12px;
  782. flex-wrap: wrap;
  783. }
  784. .pinned-item {
  785. display: inline-flex;
  786. align-items: center;
  787. gap: 6px;
  788. padding: 6px 10px;
  789. border-radius: 6px;
  790. background: #fff;
  791. border: 1px solid #fee2e2;
  792. cursor: pointer;
  793. transition: box-shadow .2s ease;
  794. &:hover { box-shadow: 0 1px 4px rgba(0,0,0,.1); }
  795. .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  796. .dot-high { background: #ef4444; }
  797. .name { font-weight: 600; color: #111827; }
  798. .meta { color: #6b7280; font-size: 12px; }
  799. }
  800. .btn-view-all {
  801. padding: 6px 10px;
  802. border: none;
  803. background: #ef4444;
  804. color: #fff;
  805. border-radius: 6px;
  806. cursor: pointer;
  807. }
  808. }
  809. /* 全局甘特头部工具条(网格布局,含缩放/搜索/模式切换�?*/
  810. .gantt-header {
  811. position: relative;
  812. z-index: 2;
  813. display: grid;
  814. grid-template-columns: 1fr auto auto auto; // title/hint | scale | search | mode
  815. gap: 12px;
  816. align-items: center;
  817. .search-box {
  818. input[type='search'] {
  819. width: 240px;
  820. padding: 8px 12px;
  821. border: 1px solid #e5e7eb;
  822. border-radius: 8px;
  823. font-size: 14px;
  824. outline: none;
  825. transition: border-color .2s ease, box-shadow .2s ease;
  826. &:focus {
  827. border-color: #3b82f6;
  828. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  829. }
  830. }
  831. }
  832. .scale-switch {
  833. margin-left: auto;
  834. display: inline-flex;
  835. border: 1px solid local.$ios-border;
  836. border-radius: 8px;
  837. overflow: hidden;
  838. button {
  839. background: #fff;
  840. color: local.$ios-text-secondary;
  841. padding: 6px 10px;
  842. border: none;
  843. outline: none;
  844. cursor: pointer;
  845. font-size: local.$ios-font-size-sm;
  846. &:hover { background: local.$ios-background-secondary; }
  847. &.active {
  848. background: local.$ios-primary-light;
  849. color: #fff;
  850. }
  851. & + button { border-left: 1px solid local.$ios-border; }
  852. }
  853. }
  854. .mode-switch {
  855. position: relative;
  856. display: inline-flex;
  857. align-items: center;
  858. background: local.$ios-background;
  859. border: 1px solid local.$ios-border;
  860. border-radius: 999px;
  861. padding: 2px;
  862. overflow: hidden;
  863. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  864. // 滑块式高亮背�?
  865. &::before {
  866. content: '';
  867. position: absolute;
  868. top: 2px;
  869. left: 2px;
  870. bottom: 2px;
  871. width: calc(50% - 2px);
  872. background: linear-gradient(180deg, local.$ios-primary-light 0%, color.adjust(local.$ios-primary-light, $lightness: -4%) 100%);
  873. border-radius: 999px;
  874. box-shadow: 0 6px 14px rgba(99,102,241,.22);
  875. transform: translateX(0%);
  876. transition: transform .25s cubic-bezier(.2,.8,.2,1);
  877. z-index: 0;
  878. }
  879. &[data-active='designer']::before { transform: translateX(100%); }
  880. button {
  881. position: relative;
  882. z-index: 1;
  883. background: transparent;
  884. border: none;
  885. outline: none;
  886. color: local.$ios-text-secondary;
  887. padding: 10px 16px 10px 14px;
  888. font-size: local.$ios-font-size-sm;
  889. font-weight: local.$ios-font-weight-semibold;
  890. letter-spacing: .2px;
  891. border-radius: 999px;
  892. cursor: pointer;
  893. transition: color .2s ease, transform .05s ease;
  894. display: inline-flex;
  895. align-items: center;
  896. gap: 6px;
  897. &:hover { color: local.$ios-text-primary; }
  898. &:active { transform: translateY(0.5px); }
  899. &:focus-visible { box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
  900. &.active {
  901. color: #fff;
  902. text-shadow: 0 1px 0 rgba(0,0,0,.08);
  903. }
  904. &::before {
  905. content: '';
  906. display: inline-block;
  907. width: 14px; height: 14px;
  908. }
  909. &:first-child::before { content: '📁'; }
  910. &:last-child::before { content: '🎨'; }
  911. }
  912. @media (max-width: 640px) { button { padding: 8px 12px 8px 10px; } }
  913. @media (max-width: 420px) {
  914. button {
  915. padding: 7px 10px 7px 9px;
  916. font-size: 12px;
  917. }
  918. }
  919. @media (prefers-reduced-motion: reduce) {
  920. &::before { transition: none; }
  921. button { transition: none; }
  922. }
  923. }
  924. }
  925. @media (max-width: 1024px) {
  926. .gantt-header {
  927. grid-template-columns: 1fr auto auto; // title/hint | scale | mode; search full row
  928. grid-auto-rows: auto;
  929. .search-box { grid-column: 1 / -1; }
  930. }
  931. .section-filters {
  932. .search-box { width: 100%; }
  933. .input-search { width: min(100%, 520px); }
  934. }
  935. }
  936. @media (max-width: 640px) {
  937. .gantt-header {
  938. gap: 8px;
  939. .search-box input[type='search'] { width: 100%; }
  940. }
  941. .section-filters {
  942. gap: 6px;
  943. .input-search { width: 100%; }
  944. }
  945. }
  946. .workload-summary {
  947. margin: 12px 0 16px;
  948. padding: 12px 14px;
  949. background: local.$ios-background;
  950. border: 1px solid local.$ios-border;
  951. border-radius: local.$ios-radius-lg;
  952. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  953. .summary-header {
  954. display: flex;
  955. align-items: center;
  956. justify-content: space-between;
  957. margin-bottom: 8px;
  958. h3 { font-size: local.$ios-font-size-md; margin: 0; color: local.$ios-text-primary; }
  959. .summary-actions {
  960. display: flex;
  961. align-items: center;
  962. gap: 8px;
  963. .dimension-switch {
  964. display: inline-flex;
  965. border: 1px solid local.$ios-border;
  966. border-radius: 999px;
  967. overflow: hidden;
  968. button {
  969. background: #fff;
  970. color: local.$ios-text-secondary;
  971. padding: 6px 10px;
  972. border: none;
  973. cursor: pointer;
  974. font-size: local.$ios-font-size-sm;
  975. &:hover { background: local.$ios-background-secondary; }
  976. &.active { background: local.$ios-primary-light; color: #fff; }
  977. & + button { border-left: 1px solid local.$ios-border; }
  978. }
  979. }
  980. }
  981. }
  982. .workload-chart {
  983. width: 100%;
  984. height: 240px;
  985. }
  986. }
  987. // 在文件末尾追加覆盖样式:让项目监控大盘四列等分占满卡片内�?
  988. .project-kanban {
  989. // 让头部与主体容器使用可用宽度而非max-content,避免不必要的横向滚�?
  990. .kanban-scroll {
  991. .kanban-header, .kanban-body { width: 100%; }
  992. }
  993. // 使用grid使四列等分,并确保头部与主体列宽对齐
  994. .kanban-header {
  995. display: grid;
  996. grid-template-columns: repeat(4, minmax(0, 1fr));
  997. gap: local.$ios-spacing-md;
  998. .kanban-column-header {
  999. // 取消固定180px,允许自适应
  1000. flex: 1 1 auto;
  1001. min-width: 0;
  1002. max-width: none;
  1003. }
  1004. }
  1005. .kanban-body {
  1006. display: grid;
  1007. grid-template-columns: repeat(4, minmax(0, 1fr));
  1008. gap: local.$ios-spacing-md;
  1009. .kanban-column {
  1010. // 取消固定180px,允许自适应
  1011. min-width: 0;
  1012. max-width: none;
  1013. }
  1014. }
  1015. }
  1016. // 响应式:中屏降为两列,小屏单列,避免过窄
  1017. @media (max-width: 1200px) {
  1018. .project-kanban {
  1019. .kanban-header, .kanban-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  1020. }
  1021. }
  1022. @media (max-width: 640px) {
  1023. .project-kanban {
  1024. .kanban-header, .kanban-body { grid-template-columns: 1fr; }
  1025. }
  1026. }
  1027. /* 员工详情面板样式 */
  1028. .employee-detail-overlay {
  1029. position: fixed;
  1030. top: 0;
  1031. left: 0;
  1032. right: 0;
  1033. bottom: 0;
  1034. background: rgba(0, 0, 0, 0.5);
  1035. backdrop-filter: blur(4px);
  1036. z-index: 1000;
  1037. display: flex;
  1038. align-items: center;
  1039. justify-content: center;
  1040. padding: 20px;
  1041. animation: fadeIn 0.3s ease-out;
  1042. }
  1043. .employee-detail-panel {
  1044. background: #ffffff;
  1045. border-radius: 16px;
  1046. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  1047. max-width: 600px;
  1048. width: 100%;
  1049. max-height: 80vh;
  1050. overflow: hidden;
  1051. animation: slideUp 0.3s ease-out;
  1052. .panel-header {
  1053. display: flex;
  1054. align-items: center;
  1055. justify-content: space-between;
  1056. padding: 24px 24px 16px;
  1057. border-bottom: 1px solid #f1f5f9;
  1058. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1059. color: white;
  1060. .panel-title {
  1061. display: flex;
  1062. align-items: center;
  1063. gap: 12px;
  1064. margin: 0;
  1065. font-size: 20px;
  1066. font-weight: 600;
  1067. .icon-user {
  1068. width: 24px;
  1069. height: 24px;
  1070. stroke-width: 2;
  1071. }
  1072. }
  1073. .btn-close {
  1074. background: rgba(255, 255, 255, 0.2);
  1075. border: none;
  1076. border-radius: 8px;
  1077. width: 36px;
  1078. height: 36px;
  1079. display: flex;
  1080. align-items: center;
  1081. justify-content: center;
  1082. cursor: pointer;
  1083. transition: all 0.2s ease;
  1084. svg {
  1085. width: 18px;
  1086. height: 18px;
  1087. stroke: white;
  1088. }
  1089. &:hover {
  1090. background: rgba(255, 255, 255, 0.3);
  1091. transform: scale(1.05);
  1092. }
  1093. }
  1094. }
  1095. .panel-content {
  1096. padding: 24px;
  1097. max-height: calc(80vh - 100px);
  1098. overflow-y: auto;
  1099. .section {
  1100. margin-bottom: 24px;
  1101. &:last-child {
  1102. margin-bottom: 0;
  1103. }
  1104. .section-header {
  1105. display: flex;
  1106. align-items: center;
  1107. gap: 8px;
  1108. margin-bottom: 16px;
  1109. .section-icon {
  1110. width: 20px;
  1111. height: 20px;
  1112. stroke: #667eea;
  1113. stroke-width: 2;
  1114. }
  1115. h4 {
  1116. margin: 0;
  1117. font-size: 16px;
  1118. font-weight: 600;
  1119. color: #1e293b;
  1120. }
  1121. }
  1122. }
  1123. // 负载概况样式
  1124. .workload-section {
  1125. .workload-info {
  1126. background: #f8fafc;
  1127. border-radius: 12px;
  1128. padding: 20px;
  1129. border: 1px solid #e2e8f0;
  1130. .workload-stat {
  1131. display: flex;
  1132. align-items: center;
  1133. gap: 8px;
  1134. margin-bottom: 16px;
  1135. .stat-label {
  1136. font-size: 14px;
  1137. color: #64748b;
  1138. font-weight: 500;
  1139. }
  1140. .stat-value {
  1141. font-size: 18px;
  1142. font-weight: 700;
  1143. padding: 4px 12px;
  1144. border-radius: 20px;
  1145. &.normal-workload {
  1146. color: #059669;
  1147. background: #d1fae5;
  1148. }
  1149. &.high-workload {
  1150. color: #dc2626;
  1151. background: #fee2e2;
  1152. }
  1153. }
  1154. }
  1155. .project-list {
  1156. .project-label {
  1157. font-size: 14px;
  1158. color: #64748b;
  1159. font-weight: 500;
  1160. margin-bottom: 8px;
  1161. display: block;
  1162. }
  1163. .project-tags {
  1164. display: flex;
  1165. flex-wrap: wrap;
  1166. gap: 8px;
  1167. .project-tag {
  1168. background: #667eea;
  1169. color: white;
  1170. padding: 4px 12px;
  1171. border-radius: 16px;
  1172. font-size: 12px;
  1173. font-weight: 500;
  1174. transition: all 0.2s ease;
  1175. &.clickable {
  1176. cursor: pointer;
  1177. display: inline-flex;
  1178. align-items: center;
  1179. gap: 4px;
  1180. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1181. box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  1182. .icon-arrow {
  1183. width: 14px;
  1184. height: 14px;
  1185. stroke-width: 2.5;
  1186. opacity: 0;
  1187. transform: translateX(-4px);
  1188. transition: all 0.2s ease;
  1189. }
  1190. &:hover {
  1191. background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  1192. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  1193. transform: translateY(-2px);
  1194. .icon-arrow {
  1195. opacity: 1;
  1196. transform: translateX(0);
  1197. }
  1198. }
  1199. &:active {
  1200. transform: translateY(0);
  1201. box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  1202. }
  1203. }
  1204. &.more {
  1205. background: #94a3b8;
  1206. cursor: default;
  1207. }
  1208. }
  1209. }
  1210. }
  1211. }
  1212. }
  1213. // 请假明细样式
  1214. .leave-section {
  1215. .leave-table {
  1216. background: #ffffff;
  1217. border-radius: 12px;
  1218. border: 1px solid #e2e8f0;
  1219. overflow: hidden;
  1220. table {
  1221. width: 100%;
  1222. border-collapse: collapse;
  1223. thead {
  1224. background: #f8fafc;
  1225. th {
  1226. padding: 12px 16px;
  1227. text-align: left;
  1228. font-size: 14px;
  1229. font-weight: 600;
  1230. color: #374151;
  1231. border-bottom: 1px solid #e5e7eb;
  1232. }
  1233. }
  1234. tbody {
  1235. tr {
  1236. transition: background-color 0.2s ease;
  1237. &:hover {
  1238. background: #f9fafb;
  1239. }
  1240. &.leave-day {
  1241. background: #fef2f2;
  1242. &:hover {
  1243. background: #fee2e2;
  1244. }
  1245. }
  1246. td {
  1247. padding: 12px 16px;
  1248. font-size: 14px;
  1249. color: #374151;
  1250. border-bottom: 1px solid #f1f5f9;
  1251. &:last-child {
  1252. border-bottom: none;
  1253. }
  1254. }
  1255. }
  1256. tr:last-child td {
  1257. border-bottom: none;
  1258. }
  1259. }
  1260. .status-badge {
  1261. padding: 4px 8px;
  1262. border-radius: 12px;
  1263. font-size: 12px;
  1264. font-weight: 500;
  1265. &.work {
  1266. background: #d1fae5;
  1267. color: #059669;
  1268. }
  1269. &.leave {
  1270. background: #fee2e2;
  1271. color: #dc2626;
  1272. }
  1273. }
  1274. }
  1275. .no-leave {
  1276. padding: 40px 20px;
  1277. text-align: center;
  1278. color: #64748b;
  1279. .no-data-icon {
  1280. width: 48px;
  1281. height: 48px;
  1282. margin: 0 auto 16px;
  1283. stroke: #94a3b8;
  1284. stroke-width: 1.5;
  1285. }
  1286. p {
  1287. margin: 0;
  1288. font-size: 14px;
  1289. }
  1290. }
  1291. }
  1292. }
  1293. // 红色标记说明样式
  1294. .explanation-section {
  1295. .explanation-content {
  1296. background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  1297. border: 1px solid #f59e0b;
  1298. border-radius: 12px;
  1299. padding: 16px;
  1300. .explanation-text {
  1301. margin: 0;
  1302. font-size: 14px;
  1303. color: #92400e;
  1304. line-height: 1.5;
  1305. font-weight: 500;
  1306. }
  1307. }
  1308. }
  1309. }
  1310. }
  1311. // 动画效果
  1312. @keyframes fadeIn {
  1313. from {
  1314. opacity: 0;
  1315. }
  1316. to {
  1317. opacity: 1;
  1318. }
  1319. }
  1320. @keyframes slideUp {
  1321. from {
  1322. opacity: 0;
  1323. transform: translateY(30px) scale(0.95);
  1324. }
  1325. to {
  1326. opacity: 1;
  1327. transform: translateY(0) scale(1);
  1328. }
  1329. }
  1330. // 响应式设�?
  1331. @media (max-width: 768px) {
  1332. .employee-detail-overlay {
  1333. padding: 10px;
  1334. .employee-detail-panel {
  1335. max-width: 100%;
  1336. max-height: 90vh;
  1337. .panel-header {
  1338. padding: 20px 20px 12px;
  1339. .panel-title {
  1340. font-size: 18px;
  1341. }
  1342. }
  1343. .panel-content {
  1344. padding: 20px;
  1345. .section {
  1346. margin-bottom: 20px;
  1347. }
  1348. .workload-section .workload-info {
  1349. padding: 16px;
  1350. }
  1351. .leave-section .leave-table table {
  1352. font-size: 13px;
  1353. th, td {
  1354. padding: 10px 12px;
  1355. }
  1356. }
  1357. }
  1358. }
  1359. }
  1360. }