dashboard.scss 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405
  1. @use '../../../shared/styles/ios-theme' as ios;
  2. @use '../ios-theme.scss' as local;
  3. :host {
  4. display: block;
  5. background-color: ios.$ios-background-secondary;
  6. min-height: 100vh;
  7. padding: ios.$ios-spacing-lg;
  8. }
  9. .dashboard-header {
  10. margin-bottom: local.$ios-spacing-xxl;
  11. h1 {
  12. font-size: local.$ios-font-size-xl;
  13. font-weight: local.$ios-font-weight-bold;
  14. color: local.$ios-text-primary;
  15. margin: 0 0 local.$ios-spacing-lg 0;
  16. }
  17. // �詨��唳旿����∠��瑕�
  18. .dashboard-metrics {
  19. display: grid;
  20. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  21. gap: local.$ios-spacing-lg;
  22. margin-top: local.$ios-spacing-lg;
  23. .metric-card {
  24. display: flex;
  25. align-items: center;
  26. gap: local.$ios-spacing-md;
  27. background: linear-gradient(135deg, local.$ios-card-background, #f8f9fa);
  28. border-radius: local.$ios-radius-lg;
  29. padding: local.$ios-spacing-lg;
  30. border: 1px solid local.$ios-border;
  31. box-shadow: local.$ios-shadow-sm;
  32. cursor: pointer;
  33. transition: all 0.3s ease;
  34. &:hover {
  35. transform: translateY(-2px);
  36. box-shadow: local.$ios-shadow-card;
  37. }
  38. .metric-icon {
  39. font-size: 2rem;
  40. width: 50px;
  41. height: 50px;
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. border-radius: local.$ios-radius-full;
  46. background-color: local.$ios-background;
  47. }
  48. .metric-icon.warning { background-color: rgba(255, 149, 0, 0.1); }
  49. .metric-icon.info { background-color: rgba(59, 130, 246, 0.1); }
  50. .metric-icon.primary { background-color: rgba(124, 58, 237, 0.1); }
  51. .metric-content { flex: 1; }
  52. .metric-count {
  53. font-size: 2rem;
  54. font-weight: local.$ios-font-weight-bold;
  55. color: local.$ios-text-primary;
  56. line-height: 1.2;
  57. }
  58. .metric-label {
  59. font-size: local.$ios-font-size-sm;
  60. color: local.$ios-text-secondary;
  61. text-transform: uppercase;
  62. letter-spacing: 0.5px;
  63. }
  64. }
  65. }
  66. }
  67. /* ���撅𤩺甅撘譍��吔��誩��烾𡢿頝苷��堒捐嚗䔶�霂�虾閫��嚙?*/
  68. @media (max-width: 640px) {
  69. .project-kanban {
  70. .kanban-header { gap: local.$ios-spacing-sm; }
  71. .kanban-body {
  72. gap: local.$ios-spacing-sm;
  73. .kanban-column {
  74. min-width: 160px;
  75. max-width: 160px;
  76. }
  77. }
  78. }
  79. }
  80. @media (max-width: 480px) {
  81. .project-kanban {
  82. .kanban-body {
  83. .kanban-column {
  84. min-width: 150px;
  85. max-width: 150px;
  86. }
  87. }
  88. }
  89. }
  90. .dashboard-main {
  91. max-width: 1400px;
  92. margin: 0 auto;
  93. }
  94. .section-header {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. margin-bottom: local.$ios-spacing-lg;
  99. h2 {
  100. font-size: local.$ios-font-size-lg;
  101. font-weight: local.$ios-font-weight-semibold;
  102. color: local.$ios-text-primary;
  103. margin: 0;
  104. }
  105. .section-actions {
  106. display: inline-flex;
  107. align-items: center;
  108. gap: 12px;
  109. .btn-link {
  110. background: transparent;
  111. border: none;
  112. color: #0969da;
  113. cursor: pointer;
  114. padding: 4px 6px;
  115. &:hover { text-decoration: underline; }
  116. }
  117. }
  118. }
  119. .btn-toggle-view {
  120. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  121. border-radius: local.$ios-radius-md;
  122. border: 1px solid local.$ios-border;
  123. background: linear-gradient(180deg, #fff, #f8fafc);
  124. color: local.$ios-text-primary;
  125. font-size: local.$ios-font-size-sm;
  126. cursor: pointer;
  127. box-shadow: local.$ios-shadow-sm;
  128. transition: all .2s ease;
  129. &:hover {
  130. transform: translateY(-1px);
  131. box-shadow: local.$ios-shadow-card;
  132. }
  133. }
  134. .gantt-card {
  135. background: local.$ios-card-background;
  136. border: 1px solid local.$ios-border;
  137. border-radius: local.$ios-radius-lg;
  138. box-shadow: local.$ios-shadow-card;
  139. padding: local.$ios-spacing-lg;
  140. margin-bottom: local.$ios-spacing-xl;
  141. position: relative; // 蝖桐����蝏嘥笆摰帋�銝𧢲��箔�霂亙捆嚙?
  142. .gantt-header {
  143. display: flex;
  144. justify-content: space-between;
  145. align-items: center;
  146. margin-bottom: local.$ios-spacing-md;
  147. overflow: visible; // �踹�憭湧��箏�鋆��銝𧢲�
  148. .title {
  149. font-size: local.$ios-font-size-md;
  150. font-weight: local.$ios-font-weight-semibold;
  151. color: local.$ios-text-primary;
  152. }
  153. .hint {
  154. font-size: local.$ios-font-size-xs;
  155. color: local.$ios-text-secondary;
  156. }
  157. // 撣��靚�㟲嚗𡁏�蝝X��曉銁���蝥扳��唾器嚗峕芋撘誩��W銁�嗅椰嚙?
  158. .scale-switch { margin-left: 0; }
  159. .mode-switch { order: 3; margin-left: 8px; }
  160. .search-box { order: 4; margin-left: auto; position: relative; }
  161. // �条鸌憭湧�銝剔��𦦵揣撱箄悅銝𧢲�銝箸�瘚桀�嚗䔶��䭾旿��﹝嚙?
  162. .search-box {
  163. .suggestion-panel {
  164. position: absolute;
  165. top: calc(100% + 6px);
  166. right: 0;
  167. min-width: 260px;
  168. width: max(100%, 360px);
  169. max-width: 520px;
  170. background: #fff;
  171. border: 1px solid #e5e7eb;
  172. border-radius: 10px;
  173. box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  174. z-index: 20;
  175. padding: 6px;
  176. }
  177. .suggestion-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
  178. .suggestion-panel li {
  179. padding: 8px 10px;
  180. border-radius: 8px;
  181. cursor: pointer;
  182. transition: background .15s ease;
  183. display: flex;
  184. flex-direction: column;
  185. gap: 4px;
  186. }
  187. .suggestion-panel li:hover { background: #f3f4f6; }
  188. .suggestion-panel .line-1 { display: flex; align-items: center; gap: 8px; }
  189. .suggestion-panel .line-1 .name { font-weight: 600; color: #111827; flex: 1; min-width: 0; }
  190. .suggestion-panel .line-1 .badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
  191. .suggestion-panel .line-1 .badge.vip { background: #ede9fe; color: #7c3aed; }
  192. .suggestion-panel .line-1 .urgency { font-size: 12px; }
  193. .suggestion-panel .line-2 { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-size: 12px; }
  194. .suggestion-panel .empty { padding: 10px 12px; color: #6b7280; font-size: 13px; }
  195. }
  196. }
  197. .gantt-chart {
  198. width: 100%;
  199. height: 420px;
  200. }
  201. }
  202. .section-filters {
  203. display: flex;
  204. gap: local.$ios-spacing-md;
  205. flex-wrap: wrap;
  206. align-items: center;
  207. overflow: visible; // �踹��𧢲踎蝑偦�匧躹�𦦵揣撱箄悅鋡怨�嚙?
  208. .custom-select {
  209. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  210. border: 1px solid local.$ios-border;
  211. border-radius: local.$ios-radius-md;
  212. background-color: local.$ios-background;
  213. font-size: local.$ios-font-size-sm;
  214. color: local.$ios-text-primary;
  215. cursor: pointer;
  216. transition: all 0.2s ease;
  217. min-width: 140px;
  218. }
  219. .search-box {
  220. margin-right: 8px;
  221. position: relative; // 雿靝蛹銝𧢲�摰帋���蕭?
  222. .input-search {
  223. width: 260px;
  224. padding: 8px 12px;
  225. border: 1px solid #e5e7eb;
  226. border-radius: 8px;
  227. font-size: 14px;
  228. outline: none;
  229. transition: border-color .2s ease, box-shadow .2s ease;
  230. &:focus {
  231. border-color: #3b82f6;
  232. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  233. }
  234. }
  235. // �𧢲踎蝑偦�匧躹�笔��瑚蝙�冽�瘚桀�銝𧢲�
  236. .suggestion-panel {
  237. position: absolute;
  238. top: calc(100% + 6px);
  239. right: 0;
  240. min-width: 260px;
  241. width: max(100%, 360px);
  242. max-width: 520px;
  243. background: #fff;
  244. border: 1px solid #e5e7eb;
  245. border-radius: 10px;
  246. box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  247. z-index: 20;
  248. padding: 6px;
  249. }
  250. .suggestion-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
  251. .suggestion-panel li {
  252. padding: 8px 10px;
  253. border-radius: 8px;
  254. cursor: pointer;
  255. transition: background .15s ease;
  256. display: flex;
  257. flex-direction: column;
  258. gap: 4px;
  259. }
  260. .suggestion-panel li:hover { background: #f3f4f6; }
  261. .suggestion-panel .line-1 { display: flex; align-items: center; gap: 8px; }
  262. .suggestion-panel .line-1 .name { font-weight: 600; color: #111827; flex: 1; min-width: 0; }
  263. .suggestion-panel .line-1 .badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
  264. .suggestion-panel .line-1 .badge.vip { background: #ede9fe; color: #7c3aed; }
  265. .suggestion-panel .line-1 .urgency { font-size: 12px; }
  266. .suggestion-panel .line-2 { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-size: 12px; }
  267. .suggestion-panel .empty { padding: 10px 12px; color: #6b7280; font-size: 13px; }
  268. }
  269. }
  270. // 憿寧𤌍�∠�銝𡒊��踵甅嚙?
  271. .project-kanban {
  272. position: relative;
  273. z-index: 1;
  274. // �砍�璅芸�皛𡁜𢆡摰孵膥
  275. .kanban-scroll {
  276. overflow-x: auto;
  277. padding-bottom: local.$ios-spacing-md;
  278. -webkit-overflow-scrolling: touch;
  279. &::-webkit-scrollbar { height: 6px; }
  280. &::-webkit-scrollbar-track {
  281. background: local.$ios-background;
  282. border-radius: local.$ios-radius-full;
  283. }
  284. &::-webkit-scrollbar-thumb {
  285. background: local.$ios-border;
  286. border-radius: local.$ios-radius-full;
  287. }
  288. &::-webkit-scrollbar-thumb:hover { background: local.$ios-text-tertiary; }
  289. .kanban-header, .kanban-body { width: max-content; }
  290. }
  291. // �𧢲踎���嚙?
  292. .kanban-header {
  293. position: sticky;
  294. top: 0;
  295. z-index: 2;
  296. background: local.$ios-card-background;
  297. border-bottom: 1px solid local.$ios-border;
  298. display: flex;
  299. gap: local.$ios-spacing-md;
  300. margin-bottom: local.$ios-spacing-md;
  301. .kanban-column-header {
  302. flex: 0 0 180px;
  303. min-width: 180px;
  304. max-width: 180px;
  305. display: flex;
  306. justify-content: space-between;
  307. align-items: center;
  308. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  309. background-color: local.$ios-background;
  310. border-radius: local.$ios-radius-md;
  311. border: 1px solid local.$ios-border;
  312. h3 {
  313. font-size: local.$ios-font-size-sm;
  314. font-weight: local.$ios-font-weight-medium;
  315. color: local.$ios-text-primary;
  316. margin: 0;
  317. }
  318. .stage-count {
  319. font-size: local.$ios-font-size-xs;
  320. background-color: local.$ios-primary;
  321. color: local.$ios-background;
  322. padding: 2px 8px;
  323. border-radius: local.$ios-radius-full;
  324. font-weight: local.$ios-font-weight-medium;
  325. }
  326. }
  327. }
  328. // �𧢲踎銝颱���捆
  329. .kanban-body {
  330. display: flex;
  331. gap: local.$ios-spacing-md;
  332. .kanban-column {
  333. flex: 1;
  334. min-width: 180px;
  335. max-width: 180px;
  336. height: 400px;
  337. background-color: local.$ios-background;
  338. border-radius: local.$ios-radius-md;
  339. border: 1px solid local.$ios-border;
  340. padding: local.$ios-spacing-sm;
  341. overflow-y: auto;
  342. -webkit-overflow-scrolling: touch;
  343. &::-webkit-scrollbar { width: 4px; }
  344. &::-webkit-scrollbar-track { background: transparent; }
  345. &::-webkit-scrollbar-thumb {
  346. background: local.$ios-border;
  347. border-radius: local.$ios-radius-full;
  348. }
  349. .project-card {
  350. background-color: local.$ios-card-background;
  351. border-radius: local.$ios-radius-md;
  352. padding: local.$ios-spacing-md;
  353. margin-bottom: local.$ios-spacing-sm;
  354. border: 1px solid local.$ios-border;
  355. box-shadow: local.$ios-shadow-sm;
  356. transition: all 0.2s ease;
  357. cursor: pointer;
  358. user-select: none;
  359. &:hover {
  360. transform: translateY(-2px);
  361. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  362. }
  363. &:active { transform: translateY(-1px); opacity: 0.98; }
  364. &.overdue { border-left: 4px solid local.$ios-danger; }
  365. &.high-urgency { border-left: 4px solid local.$ios-warning; }
  366. &.due-soon { border-left: 4px solid local.$ios-warning; }
  367. .project-card-header {
  368. display: flex;
  369. justify-content: space-between;
  370. align-items: flex-start;
  371. margin-bottom: local.$ios-spacing-sm;
  372. h4 {
  373. font-size: local.$ios-font-size-sm;
  374. font-weight: local.$ios-font-weight-medium;
  375. color: local.$ios-primary;
  376. margin: 0;
  377. cursor: pointer;
  378. &:hover { text-decoration: underline; }
  379. }
  380. .project-urgency {
  381. font-size: 10px;
  382. padding: 2px 6px;
  383. border-radius: local.$ios-radius-full;
  384. font-weight: local.$ios-font-weight-medium;
  385. }
  386. .urgency-high { background-color: rgba(239, 68, 68, 0.1); color: local.$ios-danger; }
  387. .urgency-medium { background-color: rgba(255, 149, 0, 0.1); color: local.$ios-warning; }
  388. .urgency-low { background-color: rgba(59, 130, 246, 0.1); color: local.$ios-info; }
  389. }
  390. .project-card-content {
  391. margin-bottom: local.$ios-spacing-sm;
  392. p {
  393. font-size: 11px;
  394. color: local.$ios-text-secondary;
  395. margin: 0 0 4px 0;
  396. }
  397. .deadline { font-size: 10px; color: local.$ios-text-tertiary; }
  398. }
  399. .project-card-footer {
  400. display: flex;
  401. gap: 4px;
  402. button {
  403. flex: 1;
  404. font-size: 10px;
  405. padding: 4px 6px;
  406. border: none;
  407. border-radius: local.$ios-radius-sm;
  408. cursor: pointer;
  409. transition: all 0.2s ease;
  410. }
  411. .btn-view { background-color: local.$ios-primary; color: local.$ios-background; }
  412. .btn-assign { background-color: local.$ios-success; color: local.$ios-background; }
  413. button:hover { opacity: 0.9; }
  414. }
  415. .right-badges {
  416. display: flex;
  417. align-items: center;
  418. gap: 6px;
  419. }
  420. .member-badge {
  421. font-size: 10px;
  422. padding: 2px 6px;
  423. border-radius: local.$ios-radius-full;
  424. background-color: rgba(59, 130, 246, 0.08);
  425. color: local.$ios-info;
  426. &.vip {
  427. background-color: rgba(124, 58, 237, 0.12);
  428. color: local.$ios-primary;
  429. font-weight: local.$ios-font-weight-semibold;
  430. }
  431. }
  432. }
  433. .empty-column {
  434. display: flex;
  435. flex-direction: column;
  436. align-items: center;
  437. justify-content: center;
  438. height: 100%;
  439. .empty-icon {
  440. font-size: 2rem;
  441. margin-bottom: local.$ios-spacing-sm;
  442. opacity: 0.3;
  443. }
  444. p {
  445. font-size: local.$ios-font-size-sm;
  446. color: local.$ios-text-tertiary;
  447. margin: 0;
  448. }
  449. }
  450. }
  451. }
  452. }
  453. /* 憿寧𤌍�烐綉憭抒��瑕� */
  454. .monitoring-section {
  455. background-color: local.$ios-card-background;
  456. border-radius: local.$ios-radius-lg;
  457. padding: local.$ios-spacing-xl;
  458. margin-bottom: local.$ios-spacing-xl;
  459. box-shadow: local.$ios-shadow-card;
  460. position: relative;
  461. overflow: visible; // ��捂�𦦵揣撱箄悅銝𧢲��X踎銝滩◤鋆��
  462. &::before {
  463. content: '';
  464. position: absolute;
  465. top: 0;
  466. right: 0;
  467. width: 300px;
  468. height: 300px;
  469. background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
  470. border-radius: 50%;
  471. transform: translate(50%, -50%);
  472. z-index: 0;
  473. pointer-events: none;
  474. }
  475. .gantt-card { position: relative; z-index: 1; }
  476. }
  477. /* 敹恍���雿𣈯𢒰�踵甅嚙?*/
  478. .quick-actions-section {
  479. background-color: local.$ios-card-background;
  480. border-radius: local.$ios-radius-lg;
  481. padding: local.$ios-spacing-xl;
  482. margin-bottom: local.$ios-spacing-xl;
  483. box-shadow: local.$ios-shadow-card;
  484. .quick-actions-grid {
  485. display: grid;
  486. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  487. gap: local.$ios-spacing-lg;
  488. .action-card {
  489. background: linear-gradient(135deg, local.$ios-background, #f8f9fa);
  490. border-radius: local.$ios-radius-lg;
  491. padding: local.$ios-spacing-xl;
  492. border: 1px solid local.$ios-border;
  493. text-align: center;
  494. cursor: pointer;
  495. transition: all 0.3s ease;
  496. &:hover {
  497. transform: translateY(-3px);
  498. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  499. border-color: local.$ios-primary-light;
  500. }
  501. .action-icon {
  502. font-size: 2.5rem;
  503. margin-bottom: local.$ios-spacing-md;
  504. opacity: 0.8;
  505. }
  506. h3 {
  507. font-size: local.$ios-font-size-base;
  508. font-weight: local.$ios-font-weight-medium;
  509. color: local.$ios-text-primary;
  510. margin: 0 0 local.$ios-spacing-xs 0;
  511. }
  512. p {
  513. font-size: local.$ios-font-size-sm;
  514. color: local.$ios-text-secondary;
  515. margin: 0;
  516. }
  517. }
  518. }
  519. }
  520. /* 敺��隞餃𦛚�瑕� */
  521. .todo-section {
  522. background-color: local.$ios-card-background;
  523. border-radius: local.$ios-radius-lg;
  524. padding: local.$ios-spacing-xl;
  525. margin-bottom: local.$ios-spacing-xl;
  526. box-shadow: local.$ios-shadow-card;
  527. }
  528. .todo-list {
  529. .todo-item {
  530. padding: local.$ios-spacing-lg;
  531. border-radius: local.$ios-radius-md;
  532. margin-bottom: local.$ios-spacing-md;
  533. background-color: local.$ios-background;
  534. border: 1px solid local.$ios-border;
  535. transition: local.$ios-feedback-hover;
  536. &:last-child { margin-bottom: 0; }
  537. &.priority-high { border-left: 4px solid local.$ios-danger; }
  538. &.priority-medium { border-left: 4px solid local.$ios-warning; }
  539. &.priority-low { border-left: 4px solid local.$ios-info; }
  540. &:hover { transform: translateY(-1px); box-shadow: local.$ios-shadow-sm; }
  541. .todo-header {
  542. display: flex;
  543. justify-content: space-between;
  544. align-items: center;
  545. margin-bottom: local.$ios-spacing-md;
  546. h3 {
  547. font-size: local.$ios-font-size-base;
  548. font-weight: local.$ios-font-weight-medium;
  549. color: local.$ios-text-primary;
  550. margin: 0;
  551. }
  552. .task-priority {
  553. font-size: local.$ios-font-size-xs;
  554. padding: local.$ios-spacing-xs local.$ios-spacing-sm;
  555. border-radius: local.$ios-radius-full;
  556. font-weight: local.$ios-font-weight-medium;
  557. }
  558. }
  559. .todo-info {
  560. margin-bottom: local.$ios-spacing-md;
  561. p {
  562. margin: 0 0 local.$ios-spacing-xs 0;
  563. font-size: local.$ios-font-size-sm;
  564. color: local.$ios-text-secondary;
  565. }
  566. .task-deadline { font-size: local.$ios-font-size-xs; color: local.$ios-text-tertiary; }
  567. }
  568. .todo-actions {
  569. .btn-handle {
  570. background-color: local.$ios-primary;
  571. color: local.$ios-background;
  572. border: none;
  573. border-radius: local.$ios-radius-md;
  574. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  575. font-size: local.$ios-font-size-sm;
  576. font-weight: local.$ios-font-weight-medium;
  577. cursor: pointer;
  578. transition: local.$ios-feedback-tap;
  579. &:hover { background-color: local.$ios-primary-light; }
  580. }
  581. }
  582. }
  583. }
  584. /* 頞���鞾��瑕� */
  585. .overdue-alert {
  586. position: fixed;
  587. top: 50%;
  588. left: 50%;
  589. transform: translate(-50%, -50%);
  590. background-color: local.$ios-card-background;
  591. border-radius: local.$ios-radius-lg;
  592. padding: local.$ios-spacing-xl;
  593. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  594. z-index: 1000;
  595. min-width: 400px;
  596. animation: slideIn 0.3s ease-out;
  597. @keyframes slideIn {
  598. from { opacity: 0; transform: translate(-50%, -60%); }
  599. to { opacity: 1; transform: translate(-50%, -50%); }
  600. }
  601. .alert-content {
  602. h3 {
  603. font-size: local.$ios-font-size-lg;
  604. font-weight: local.$ios-font-weight-semibold;
  605. color: local.$ios-danger;
  606. margin: 0 0 local.$ios-spacing-lg 0;
  607. display: flex;
  608. align-items: center;
  609. gap: local.$ios-spacing-sm;
  610. }
  611. ul {
  612. margin: 0 0 local.$ios-spacing-lg 0;
  613. padding-left: local.$ios-spacing-xl;
  614. li {
  615. font-size: local.$ios-font-size-base;
  616. color: local.$ios-text-primary;
  617. margin-bottom: local.$ios-spacing-sm;
  618. &:last-child { margin-bottom: 0; }
  619. }
  620. }
  621. .alert-actions {
  622. display: flex;
  623. gap: local.$ios-spacing-md;
  624. justify-content: flex-end;
  625. .btn-view-all {
  626. background-color: local.$ios-primary;
  627. color: local.$ios-background;
  628. border: none;
  629. border-radius: local.$ios-radius-md;
  630. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  631. font-size: local.$ios-font-size-sm;
  632. font-weight: local.$ios-font-weight-medium;
  633. cursor: pointer;
  634. transition: local.$ios-feedback-tap;
  635. &:hover { background-color: local.$ios-primary-light; }
  636. }
  637. .btn-close {
  638. background-color: local.$ios-text-tertiary;
  639. color: local.$ios-text-primary;
  640. border: none;
  641. border-radius: local.$ios-radius-md;
  642. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  643. font-size: local.$ios-font-size-sm;
  644. font-weight: local.$ios-font-weight-medium;
  645. cursor: pointer;
  646. transition: local.$ios-feedback-tap;
  647. &:hover { background-color: local.$ios-text-secondary; color: local.$ios-background; }
  648. }
  649. }
  650. }
  651. }
  652. .time-window-buttons {
  653. display: inline-flex;
  654. gap: 8px;
  655. margin-left: 8px;
  656. button {
  657. padding: 6px 10px;
  658. border: 1px solid #d0d7de;
  659. border-radius: 6px;
  660. background: #fff;
  661. color: #24292f;
  662. cursor: pointer;
  663. transition: all .15s ease;
  664. &:hover { background: #f6f8fa; }
  665. &.active { background: #0969da; color: #fff; border-color: #0969da; }
  666. }
  667. }
  668. .inline-actions {
  669. display: inline-flex;
  670. gap: 6px;
  671. margin-left: 8px;
  672. .btn-secondary {
  673. padding: 4px 8px;
  674. font-size: 12px;
  675. border: 1px solid #d0d7de;
  676. border-radius: 6px;
  677. background: #fff;
  678. color: #24292f;
  679. cursor: pointer;
  680. &:hover { background: #f3f4f6; }
  681. }
  682. }
  683. .urgent-pinned {
  684. margin: 8px 16px 0;
  685. padding: 8px 12px;
  686. background: rgba(255, 241, 241, 0.8);
  687. border: 1px solid #fecaca;
  688. border-radius: 8px;
  689. .pinned-title {
  690. font-size: 12px;
  691. color: #b91c1c;
  692. margin-bottom: 6px;
  693. font-weight: 600;
  694. }
  695. .pinned-list {
  696. display: flex;
  697. align-items: center;
  698. gap: 12px;
  699. flex-wrap: wrap;
  700. }
  701. .pinned-item {
  702. display: inline-flex;
  703. align-items: center;
  704. gap: 6px;
  705. padding: 6px 10px;
  706. border-radius: 6px;
  707. background: #fff;
  708. border: 1px solid #fee2e2;
  709. cursor: pointer;
  710. transition: box-shadow .2s ease;
  711. &:hover { box-shadow: 0 1px 4px rgba(0,0,0,.1); }
  712. .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  713. .dot-high { background: #ef4444; }
  714. .name { font-weight: 600; color: #111827; }
  715. .meta { color: #6b7280; font-size: 12px; }
  716. }
  717. .btn-view-all {
  718. padding: 6px 10px;
  719. border: none;
  720. background: #ef4444;
  721. color: #fff;
  722. border-radius: 6px;
  723. cursor: pointer;
  724. }
  725. }
  726. /* �典��条鸌憭湧�撌亙��∴�蝵烐聢撣��嚗�鉄蝻拇𦆮/�𦦵揣/璅∪���揢嚙?*/
  727. .gantt-header {
  728. position: relative;
  729. z-index: 2;
  730. display: grid;
  731. grid-template-columns: 1fr auto auto auto; // title/hint | scale | search | mode
  732. gap: 12px;
  733. align-items: center;
  734. .search-box {
  735. input[type='search'] {
  736. width: 240px;
  737. padding: 8px 12px;
  738. border: 1px solid #e5e7eb;
  739. border-radius: 8px;
  740. font-size: 14px;
  741. outline: none;
  742. transition: border-color .2s ease, box-shadow .2s ease;
  743. &:focus {
  744. border-color: #3b82f6;
  745. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  746. }
  747. }
  748. }
  749. .scale-switch {
  750. margin-left: auto;
  751. display: inline-flex;
  752. border: 1px solid local.$ios-border;
  753. border-radius: 8px;
  754. overflow: hidden;
  755. button {
  756. background: #fff;
  757. color: local.$ios-text-secondary;
  758. padding: 6px 10px;
  759. border: none;
  760. outline: none;
  761. cursor: pointer;
  762. font-size: local.$ios-font-size-sm;
  763. &:hover { background: local.$ios-background-secondary; }
  764. &.active {
  765. background: local.$ios-primary-light;
  766. color: #fff;
  767. }
  768. & + button { border-left: 1px solid local.$ios-border; }
  769. }
  770. }
  771. .mode-switch {
  772. position: relative;
  773. display: inline-flex;
  774. align-items: center;
  775. background: local.$ios-background;
  776. border: 1px solid local.$ios-border;
  777. border-radius: 999px;
  778. padding: 2px;
  779. overflow: hidden;
  780. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  781. // 皛穃�撘誯�鈭株�嚙?
  782. &::before {
  783. content: '';
  784. position: absolute;
  785. top: 2px;
  786. left: 2px;
  787. bottom: 2px;
  788. width: calc(50% - 2px);
  789. background: linear-gradient(180deg, local.$ios-primary-light 0%, darken(local.$ios-primary-light, 4%) 100%);
  790. border-radius: 999px;
  791. box-shadow: 0 6px 14px rgba(99,102,241,.22);
  792. transform: translateX(0%);
  793. transition: transform .25s cubic-bezier(.2,.8,.2,1);
  794. z-index: 0;
  795. }
  796. &[data-active='designer']::before { transform: translateX(100%); }
  797. button {
  798. position: relative;
  799. z-index: 1;
  800. background: transparent;
  801. border: none;
  802. outline: none;
  803. color: local.$ios-text-secondary;
  804. padding: 10px 16px 10px 14px;
  805. font-size: local.$ios-font-size-sm;
  806. font-weight: local.$ios-font-weight-semibold;
  807. letter-spacing: .2px;
  808. border-radius: 999px;
  809. cursor: pointer;
  810. transition: color .2s ease, transform .05s ease;
  811. display: inline-flex;
  812. align-items: center;
  813. gap: 6px;
  814. &:hover { color: local.$ios-text-primary; }
  815. &:active { transform: translateY(0.5px); }
  816. &:focus-visible { box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
  817. &.active {
  818. color: #fff;
  819. text-shadow: 0 1px 0 rgba(0,0,0,.08);
  820. }
  821. &::before {
  822. content: '';
  823. display: inline-block;
  824. width: 14px; height: 14px;
  825. }
  826. &:first-child::before { content: '��'; }
  827. &:last-child::before { content: '�綫'; }
  828. }
  829. @media (max-width: 640px) { button { padding: 8px 12px 8px 10px; } }
  830. @media (max-width: 420px) {
  831. button {
  832. padding: 7px 10px 7px 9px;
  833. font-size: 12px;
  834. }
  835. }
  836. @media (prefers-reduced-motion: reduce) {
  837. &::before { transition: none; }
  838. button { transition: none; }
  839. }
  840. }
  841. }
  842. @media (max-width: 1024px) {
  843. .gantt-header {
  844. grid-template-columns: 1fr auto auto; // title/hint | scale | mode; search full row
  845. grid-auto-rows: auto;
  846. .search-box { grid-column: 1 / -1; }
  847. }
  848. .section-filters {
  849. .search-box { width: 100%; }
  850. .input-search { width: min(100%, 520px); }
  851. }
  852. }
  853. @media (max-width: 640px) {
  854. .gantt-header {
  855. gap: 8px;
  856. .search-box input[type='search'] { width: 100%; }
  857. }
  858. .section-filters {
  859. gap: 6px;
  860. .input-search { width: 100%; }
  861. }
  862. }
  863. .workload-summary {
  864. margin: 12px 0 16px;
  865. padding: 12px 14px;
  866. background: local.$ios-background;
  867. border: 1px solid local.$ios-border;
  868. border-radius: local.$ios-radius-lg;
  869. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  870. .summary-header {
  871. display: flex;
  872. align-items: center;
  873. justify-content: space-between;
  874. margin-bottom: 8px;
  875. h3 { font-size: local.$ios-font-size-md; margin: 0; color: local.$ios-text-primary; }
  876. .summary-actions {
  877. display: flex;
  878. align-items: center;
  879. gap: 8px;
  880. .dimension-switch {
  881. display: inline-flex;
  882. border: 1px solid local.$ios-border;
  883. border-radius: 999px;
  884. overflow: hidden;
  885. button {
  886. background: #fff;
  887. color: local.$ios-text-secondary;
  888. padding: 6px 10px;
  889. border: none;
  890. cursor: pointer;
  891. font-size: local.$ios-font-size-sm;
  892. &:hover { background: local.$ios-background-secondary; }
  893. &.active { background: local.$ios-primary-light; color: #fff; }
  894. & + button { border-left: 1px solid local.$ios-border; }
  895. }
  896. }
  897. }
  898. }
  899. .workload-chart {
  900. width: 100%;
  901. height: 240px;
  902. }
  903. }
  904. // �冽�隞嗆錰撠曇蕭�㰘��𡝗甅撘𧶏�霈拚★�桃��批之�睃��㛖����皛∪㨃���嚙?
  905. .project-kanban {
  906. // 霈拙仍�其�銝颱�摰孵膥雿輻鍂�舐鍂摰賢漲�屸�max-content嚗屸��滢�敹����赤�烐�嚙?
  907. .kanban-scroll {
  908. .kanban-header, .kanban-body { width: 100%; }
  909. }
  910. // 雿輻鍂grid雿踹��㛖����撟嗥&靽嘥仍�其�銝颱��堒捐撖寥�
  911. .kanban-header {
  912. display: grid;
  913. grid-template-columns: repeat(4, minmax(0, 1fr));
  914. gap: local.$ios-spacing-md;
  915. .kanban-column-header {
  916. // �𡝗��箏�180px嚗��霈貉䌊���
  917. flex: 1 1 auto;
  918. min-width: 0;
  919. max-width: none;
  920. }
  921. }
  922. .kanban-body {
  923. display: grid;
  924. grid-template-columns: repeat(4, minmax(0, 1fr));
  925. gap: local.$ios-spacing-md;
  926. .kanban-column {
  927. // �𡝗��箏�180px嚗��霈貉䌊���
  928. min-width: 0;
  929. max-width: none;
  930. }
  931. }
  932. }
  933. // �滚�撘𧶏�銝剖��滢蛹銝文�嚗��撅誩��梹��踹�餈��
  934. @media (max-width: 1200px) {
  935. .project-kanban {
  936. .kanban-header, .kanban-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  937. }
  938. }
  939. @media (max-width: 640px) {
  940. .project-kanban {
  941. .kanban-header, .kanban-body { grid-template-columns: 1fr; }
  942. }
  943. }
  944. /* �睃極霂行��X踎�瑕� */
  945. .employee-detail-overlay {
  946. position: fixed;
  947. top: 0;
  948. left: 0;
  949. right: 0;
  950. bottom: 0;
  951. background: rgba(0, 0, 0, 0.5);
  952. backdrop-filter: blur(4px);
  953. z-index: 1000;
  954. display: flex;
  955. align-items: center;
  956. justify-content: center;
  957. padding: 20px;
  958. animation: fadeIn 0.3s ease-out;
  959. }
  960. .employee-detail-panel {
  961. background: #ffffff;
  962. border-radius: 16px;
  963. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  964. max-width: 600px;
  965. width: 100%;
  966. max-height: 80vh;
  967. overflow: hidden;
  968. animation: slideUp 0.3s ease-out;
  969. .panel-header {
  970. display: flex;
  971. align-items: center;
  972. justify-content: space-between;
  973. padding: 24px 24px 16px;
  974. border-bottom: 1px solid #f1f5f9;
  975. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  976. color: white;
  977. .panel-title {
  978. display: flex;
  979. align-items: center;
  980. gap: 12px;
  981. margin: 0;
  982. font-size: 20px;
  983. font-weight: 600;
  984. .icon-user {
  985. width: 24px;
  986. height: 24px;
  987. stroke-width: 2;
  988. }
  989. }
  990. .btn-close {
  991. background: rgba(255, 255, 255, 0.2);
  992. border: none;
  993. border-radius: 8px;
  994. width: 36px;
  995. height: 36px;
  996. display: flex;
  997. align-items: center;
  998. justify-content: center;
  999. cursor: pointer;
  1000. transition: all 0.2s ease;
  1001. svg {
  1002. width: 18px;
  1003. height: 18px;
  1004. stroke: white;
  1005. }
  1006. &:hover {
  1007. background: rgba(255, 255, 255, 0.3);
  1008. transform: scale(1.05);
  1009. }
  1010. }
  1011. }
  1012. .panel-content {
  1013. padding: 24px;
  1014. max-height: calc(80vh - 100px);
  1015. overflow-y: auto;
  1016. .section {
  1017. margin-bottom: 24px;
  1018. &:last-child {
  1019. margin-bottom: 0;
  1020. }
  1021. .section-header {
  1022. display: flex;
  1023. align-items: center;
  1024. gap: 8px;
  1025. margin-bottom: 16px;
  1026. .section-icon {
  1027. width: 20px;
  1028. height: 20px;
  1029. stroke: #667eea;
  1030. stroke-width: 2;
  1031. }
  1032. h4 {
  1033. margin: 0;
  1034. font-size: 16px;
  1035. font-weight: 600;
  1036. color: #1e293b;
  1037. }
  1038. }
  1039. }
  1040. // 韐蠘蝸璁���瑕�
  1041. .workload-section {
  1042. .workload-info {
  1043. background: #f8fafc;
  1044. border-radius: 12px;
  1045. padding: 20px;
  1046. border: 1px solid #e2e8f0;
  1047. .workload-stat {
  1048. display: flex;
  1049. align-items: center;
  1050. gap: 8px;
  1051. margin-bottom: 16px;
  1052. .stat-label {
  1053. font-size: 14px;
  1054. color: #64748b;
  1055. font-weight: 500;
  1056. }
  1057. .stat-value {
  1058. font-size: 18px;
  1059. font-weight: 700;
  1060. padding: 4px 12px;
  1061. border-radius: 20px;
  1062. &.normal-workload {
  1063. color: #059669;
  1064. background: #d1fae5;
  1065. }
  1066. &.high-workload {
  1067. color: #dc2626;
  1068. background: #fee2e2;
  1069. }
  1070. }
  1071. }
  1072. .project-list {
  1073. .project-label {
  1074. font-size: 14px;
  1075. color: #64748b;
  1076. font-weight: 500;
  1077. margin-bottom: 8px;
  1078. display: block;
  1079. }
  1080. .project-tags {
  1081. display: flex;
  1082. flex-wrap: wrap;
  1083. gap: 8px;
  1084. .project-tag {
  1085. background: #667eea;
  1086. color: white;
  1087. padding: 4px 12px;
  1088. border-radius: 16px;
  1089. font-size: 12px;
  1090. font-weight: 500;
  1091. &.more {
  1092. background: #94a3b8;
  1093. }
  1094. }
  1095. }
  1096. }
  1097. }
  1098. }
  1099. // 霂瑕��𡒊��瑕�
  1100. .leave-section {
  1101. .leave-table {
  1102. background: #ffffff;
  1103. border-radius: 12px;
  1104. border: 1px solid #e2e8f0;
  1105. overflow: hidden;
  1106. table {
  1107. width: 100%;
  1108. border-collapse: collapse;
  1109. thead {
  1110. background: #f8fafc;
  1111. th {
  1112. padding: 12px 16px;
  1113. text-align: left;
  1114. font-size: 14px;
  1115. font-weight: 600;
  1116. color: #374151;
  1117. border-bottom: 1px solid #e5e7eb;
  1118. }
  1119. }
  1120. tbody {
  1121. tr {
  1122. transition: background-color 0.2s ease;
  1123. &:hover {
  1124. background: #f9fafb;
  1125. }
  1126. &.leave-day {
  1127. background: #fef2f2;
  1128. &:hover {
  1129. background: #fee2e2;
  1130. }
  1131. }
  1132. td {
  1133. padding: 12px 16px;
  1134. font-size: 14px;
  1135. color: #374151;
  1136. border-bottom: 1px solid #f1f5f9;
  1137. &:last-child {
  1138. border-bottom: none;
  1139. }
  1140. }
  1141. }
  1142. tr:last-child td {
  1143. border-bottom: none;
  1144. }
  1145. }
  1146. .status-badge {
  1147. padding: 4px 8px;
  1148. border-radius: 12px;
  1149. font-size: 12px;
  1150. font-weight: 500;
  1151. &.work {
  1152. background: #d1fae5;
  1153. color: #059669;
  1154. }
  1155. &.leave {
  1156. background: #fee2e2;
  1157. color: #dc2626;
  1158. }
  1159. }
  1160. }
  1161. .no-leave {
  1162. padding: 40px 20px;
  1163. text-align: center;
  1164. color: #64748b;
  1165. .no-data-icon {
  1166. width: 48px;
  1167. height: 48px;
  1168. margin: 0 auto 16px;
  1169. stroke: #94a3b8;
  1170. stroke-width: 1.5;
  1171. }
  1172. p {
  1173. margin: 0;
  1174. font-size: 14px;
  1175. }
  1176. }
  1177. }
  1178. }
  1179. // 蝥Z𠧧��扇霂湔��瑕�
  1180. .explanation-section {
  1181. .explanation-content {
  1182. background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  1183. border: 1px solid #f59e0b;
  1184. border-radius: 12px;
  1185. padding: 16px;
  1186. .explanation-text {
  1187. margin: 0;
  1188. font-size: 14px;
  1189. color: #92400e;
  1190. line-height: 1.5;
  1191. font-weight: 500;
  1192. }
  1193. }
  1194. }
  1195. }
  1196. }
  1197. // �函𤫇���
  1198. @keyframes fadeIn {
  1199. from {
  1200. opacity: 0;
  1201. }
  1202. to {
  1203. opacity: 1;
  1204. }
  1205. }
  1206. @keyframes slideUp {
  1207. from {
  1208. opacity: 0;
  1209. transform: translateY(30px) scale(0.95);
  1210. }
  1211. to {
  1212. opacity: 1;
  1213. transform: translateY(0) scale(1);
  1214. }
  1215. }
  1216. // �滚�撘讛挽嚙?
  1217. @media (max-width: 768px) {
  1218. .employee-detail-overlay {
  1219. padding: 10px;
  1220. .employee-detail-panel {
  1221. max-width: 100%;
  1222. max-height: 90vh;
  1223. .panel-header {
  1224. padding: 20px 20px 12px;
  1225. .panel-title {
  1226. font-size: 18px;
  1227. }
  1228. }
  1229. .panel-content {
  1230. padding: 20px;
  1231. .section {
  1232. margin-bottom: 20px;
  1233. }
  1234. .workload-section .workload-info {
  1235. padding: 16px;
  1236. }
  1237. .leave-section .leave-table table {
  1238. font-size: 13px;
  1239. th, td {
  1240. padding: 10px 12px;
  1241. }
  1242. }
  1243. }
  1244. }
  1245. }
  1246. }