operations-payroll.component.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. :host {
  2. display: block;
  3. }
  4. .payroll-header {
  5. display: flex;
  6. align-items: flex-end;
  7. justify-content: space-between;
  8. gap: 24px;
  9. }
  10. .payroll-header h1 {
  11. letter-spacing: -.025em;
  12. }
  13. .payroll-header .header-actions {
  14. display: flex;
  15. align-items: center;
  16. gap: 10px;
  17. }
  18. .ui-button {
  19. min-height: 44px;
  20. padding: 0 16px;
  21. border-radius: 12px;
  22. font-size: 13px;
  23. font-weight: 750;
  24. }
  25. .refresh-action {
  26. border-color: #d6e2de;
  27. color: #38534a;
  28. background: #fff;
  29. }
  30. .export-action {
  31. border-color: #b9dace;
  32. color: #176c55;
  33. background: #edf8f4;
  34. }
  35. .refresh-action:hover,
  36. .export-action:hover {
  37. border-color: #86b7a6;
  38. color: #125e49;
  39. background: #f4faf7;
  40. }
  41. .payroll-tabs {
  42. display: grid;
  43. grid-template-columns: repeat(4, minmax(0, 1fr));
  44. width: 100%;
  45. gap: 12px;
  46. margin: 0 0 18px;
  47. padding: 8px;
  48. border: 1px solid #dfe8e4;
  49. border-radius: 14px;
  50. background: #fff;
  51. box-shadow: 0 6px 20px rgba(29, 62, 51, .04);
  52. }
  53. .payroll-tabs button {
  54. display: inline-flex;
  55. min-width: 0;
  56. white-space: nowrap;
  57. min-height: 44px;
  58. align-items: center;
  59. justify-content: center;
  60. gap: 10px;
  61. padding: 0 20px;
  62. border: 0;
  63. border-radius: 10px;
  64. color: #667972;
  65. background: transparent;
  66. font-weight: 750;
  67. }
  68. .payroll-tabs button:hover {
  69. color: #176c55;
  70. background: #f1f7f4;
  71. }
  72. .payroll-tabs button.active {
  73. border: 0;
  74. color: #fff;
  75. background: #176c55;
  76. box-shadow: 0 6px 14px rgba(23, 108, 85, .2);
  77. }
  78. .required-mark {
  79. color: #c84b45;
  80. }
  81. .evidence-field {
  82. display: grid;
  83. gap: 5px;
  84. }
  85. .evidence-field small {
  86. color: #87968f;
  87. font-size: 11px;
  88. }
  89. .payroll-toolbar {
  90. display: grid;
  91. grid-template-columns: 190px 220px minmax(260px, 1fr) auto auto;
  92. align-items: end;
  93. gap: 14px;
  94. padding: 18px;
  95. border-radius: 18px;
  96. }
  97. .payroll-toolbar label {
  98. min-width: 0;
  99. }
  100. .month-picker-field {
  101. position: relative;
  102. display: grid;
  103. gap: 6px;
  104. min-width: 0;
  105. color: #62716c;
  106. font-size: 12px;
  107. font-weight: 700;
  108. }
  109. .month-picker-trigger {
  110. display: grid;
  111. grid-template-columns: auto minmax(0, 1fr) auto;
  112. width: 100%;
  113. height: 46px;
  114. align-items: center;
  115. gap: 8px;
  116. padding: 9px 11px;
  117. border: 1px solid #d7e1dd;
  118. border-radius: 12px;
  119. color: #486058;
  120. background: #fff;
  121. text-align: left;
  122. cursor: pointer;
  123. }
  124. .month-picker-trigger strong {
  125. overflow: hidden;
  126. color: #2a3c36;
  127. font-size: 13px;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. }
  131. .month-picker-trigger:hover,
  132. .month-picker-trigger.active,
  133. .month-picker-trigger:focus-visible {
  134. border-color: #7fae9f;
  135. outline: 0;
  136. background: #fbfefd;
  137. box-shadow: 0 0 0 3px rgba(31, 128, 102, .11);
  138. }
  139. .picker-chevron { color: #657972; }
  140. .month-calendar-popover {
  141. position: absolute;
  142. z-index: 85;
  143. top: calc(100% + 9px);
  144. left: 0;
  145. width: 310px;
  146. padding: 14px;
  147. border: 1px solid #d9e5e0;
  148. border-radius: 16px;
  149. background: #fff;
  150. box-shadow: 0 20px 55px rgba(24, 62, 49, .2);
  151. }
  152. .month-calendar-popover header {
  153. display: grid;
  154. grid-template-columns: 34px 1fr 34px;
  155. align-items: center;
  156. margin-bottom: 12px;
  157. }
  158. .month-calendar-popover header strong {
  159. color: #263b34;
  160. font-size: 14px;
  161. text-align: center;
  162. }
  163. .month-calendar-popover button {
  164. border: 0;
  165. border-radius: 9px;
  166. color: #415a51;
  167. background: transparent;
  168. cursor: pointer;
  169. }
  170. .month-calendar-popover button:hover,
  171. .month-calendar-popover button:focus-visible {
  172. outline: 0;
  173. color: #176c55;
  174. background: #edf7f3;
  175. }
  176. .month-calendar-popover header button {
  177. display: grid;
  178. width: 34px;
  179. height: 34px;
  180. place-items: center;
  181. }
  182. .month-grid {
  183. display: grid;
  184. grid-template-columns: repeat(3, 1fr);
  185. gap: 7px;
  186. }
  187. .month-grid button {
  188. min-height: 39px;
  189. font-size: 13px;
  190. font-weight: 700;
  191. }
  192. .month-grid button.selected {
  193. color: #fff;
  194. background: #1f8066;
  195. box-shadow: 0 6px 14px rgba(31, 128, 102, .2);
  196. }
  197. .month-calendar-popover footer {
  198. display: flex;
  199. justify-content: flex-end;
  200. margin-top: 10px;
  201. padding-top: 10px;
  202. border-top: 1px solid #e6eeeb;
  203. }
  204. .month-calendar-popover footer button { min-height: 34px; padding: 0 10px; font-weight: 700; }
  205. .payroll-toolbar input,
  206. .payroll-toolbar select {
  207. height: 46px;
  208. border-radius: 12px;
  209. }
  210. .filter-actions {
  211. display: flex;
  212. gap: 10px;
  213. }
  214. .reset-action {
  215. min-width: 80px;
  216. height: 46px;
  217. }
  218. .query-action {
  219. min-width: 96px;
  220. height: 46px;
  221. box-shadow: 0 8px 18px rgba(23, 108, 85, .16);
  222. }
  223. .source-chip {
  224. display: inline-flex;
  225. height: 46px;
  226. align-items: center;
  227. gap: 8px;
  228. padding: 0 16px;
  229. border: 1px solid #b9dfd2;
  230. border-radius: 14px;
  231. color: #167459;
  232. background: #edf9f5;
  233. font-size: 12px;
  234. font-weight: 750;
  235. white-space: nowrap;
  236. }
  237. .source-chip i {
  238. width: 8px;
  239. height: 8px;
  240. border-radius: 50%;
  241. background: #20a374;
  242. box-shadow: 0 0 0 4px rgba(32, 163, 116, .12);
  243. }
  244. .source-chip.cache {
  245. border-color: #f1c5c5;
  246. color: #b42318;
  247. background: #fff2f2;
  248. }
  249. .source-chip.cache i {
  250. background: #d92d20;
  251. box-shadow: 0 0 0 4px rgba(217, 45, 32, .1);
  252. }
  253. .payroll-metrics {
  254. display: grid;
  255. grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  256. gap: 14px;
  257. margin: 18px 0;
  258. }
  259. .payroll-metrics article {
  260. position: relative;
  261. min-height: 138px;
  262. overflow: hidden;
  263. padding: 22px;
  264. border: 1px solid #dce7e3;
  265. border-radius: 18px;
  266. background: #fff;
  267. box-shadow: 0 10px 24px rgba(22, 52, 43, .05);
  268. }
  269. .payroll-metrics article::before {
  270. position: absolute;
  271. inset: 0 0 auto;
  272. height: 3px;
  273. background: #2f8c70;
  274. content: '';
  275. }
  276. .payroll-metrics article:nth-child(2)::before,
  277. .payroll-metrics article:nth-child(3)::before {
  278. background: #4f80b5;
  279. }
  280. .payroll-metrics article:nth-child(4)::before,
  281. .payroll-metrics article:nth-child(5)::before {
  282. background: #d3902b;
  283. }
  284. .payroll-metrics .exception-card::before {
  285. background: #c85a5a;
  286. }
  287. .payroll-metrics span {
  288. display: block;
  289. color: #667c75;
  290. font-weight: 700;
  291. }
  292. .payroll-metrics strong {
  293. display: block;
  294. margin: 12px 0 6px;
  295. color: #16352d;
  296. font-size: clamp(24px, 2vw, 30px);
  297. line-height: 1.1;
  298. }
  299. .payroll-metrics small {
  300. color: #84958f;
  301. line-height: 1.45;
  302. }
  303. .payroll-metrics .exception-card strong {
  304. color: #b42318;
  305. }
  306. .content-card {
  307. border-radius: 18px;
  308. }
  309. .content-card > header {
  310. min-height: 72px;
  311. padding: 17px 20px;
  312. background: linear-gradient(180deg, #fff, #fbfdfc);
  313. }
  314. .content-card > header > div {
  315. display: flex;
  316. flex-direction: column;
  317. gap: 5px;
  318. }
  319. .content-card > header strong {
  320. color: #20352e;
  321. font-size: 16px;
  322. }
  323. .content-card > header span {
  324. color: #83918c;
  325. font-size: 12px;
  326. }
  327. .create-payroll-action {
  328. min-width: 190px;
  329. }
  330. .data-table td small {
  331. display: block;
  332. margin-top: 4px;
  333. color: #84958f;
  334. }
  335. .payroll-summary-table th,
  336. .payroll-summary-table td {
  337. white-space: nowrap;
  338. }
  339. .payroll-summary-table th {
  340. position: sticky;
  341. z-index: 1;
  342. top: 0;
  343. height: 44px;
  344. color: #64756f;
  345. background: #f5f9f7;
  346. font-weight: 750;
  347. letter-spacing: .02em;
  348. }
  349. .payroll-summary-table tbody tr:hover {
  350. background: #f7fbf9;
  351. }
  352. .payroll-summary-table td:first-child strong {
  353. color: #243a33;
  354. font-size: 13px;
  355. }
  356. .view-action {
  357. width: 36px;
  358. height: 36px;
  359. border-radius: 11px;
  360. color: #176c55;
  361. background: #f2f9f6;
  362. }
  363. .type4-note {
  364. margin: 0;
  365. padding: 14px 20px;
  366. border-top: 1px solid #e6eeeb;
  367. color: #667c75;
  368. background: #fafcfb;
  369. }
  370. .payroll-drawer {
  371. width: min(1180px, 92vw);
  372. }
  373. .payroll-drawer .table-scroll {
  374. max-height: 54vh;
  375. border: 1px solid #e2e9e6;
  376. border-radius: 14px;
  377. }
  378. .payroll-drawer footer {
  379. gap: 10px;
  380. }
  381. .ui-button.compact {
  382. min-height: 30px;
  383. padding: 0 9px;
  384. border-radius: 8px;
  385. font-size: 11px;
  386. }
  387. .money {
  388. color: #167459;
  389. font-weight: 800;
  390. }
  391. .standards-summary { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 14px; }
  392. .standards-summary article { padding:18px 20px;border:1px solid #dce7e3;border-radius:16px;background:#fff; }
  393. .standards-summary article.warn { border-color:#efc78e;background:#fff9ef; }
  394. .standards-summary span,.standards-summary strong { display:block; }
  395. .standards-summary span { color:#71837d;font-size:12px;font-weight:700; }
  396. .standards-summary strong { margin-top:8px;color:#173d32;font-size:24px; }
  397. .standards-nav { display:flex;gap:8px;margin-bottom:14px;overflow-x:auto;scrollbar-width:thin; }
  398. .standards-nav button { flex:0 0 auto;min-height:42px;padding:0 16px;border:1px solid #d7e3df;border-radius:12px;color:#50665e;background:#fff;font-weight:750;white-space:nowrap; }
  399. .standards-nav button.active { border-color:#176c55;color:#fff;background:#176c55; }
  400. .standards-nav button span { margin-left:5px;padding:2px 6px;border-radius:999px;color:#9a5a00;background:#fff2d9;font-size:11px; }
  401. .standard-editor .form-grid { grid-template-columns:repeat(5,minmax(130px,1fr)) minmax(220px,1.4fr) auto;align-items:end; }
  402. .effective-date-filter { --date-filter-height:46px; }
  403. .credit-preview { min-height:64px;padding:10px 13px;border:1px solid #d9e5e1;border-radius:12px;background:#f7fbf9; }
  404. .credit-preview span,.credit-preview strong { display:block; }
  405. .credit-preview span { color:#71837d;font-size:11px; }
  406. .credit-preview strong { margin-top:4px;color:#23493e;font-size:12px; }
  407. .standards-table td,.mapping-table td { white-space:nowrap; }
  408. .rate-matrix th:nth-child(3),.rate-matrix td:nth-child(3) { background:#f3faf7; }
  409. .rate-matrix th:nth-child(4),.rate-matrix td:nth-child(4) { background:#fff8ed; }
  410. .rate-matrix .offline-price { color:#9b6417; }
  411. .matrix-actions { display:flex;gap:6px; }
  412. .delivery-badge { display:inline-flex;padding:4px 9px;border-radius:999px;color:#156c54;background:#e9f8f2;font-size:12px;font-weight:750; }
  413. .delivery-badge.offline { color:#855411;background:#fff2d9; }
  414. .mapping-search { width:min(340px,100%); }
  415. .mapping-search input,.mapping-table select { min-height:42px;border:1px solid #d7e3df;border-radius:11px;background:#fff; }
  416. .mapping-table select { min-width:138px;padding:0 34px 0 11px; }
  417. .stage-badge { display:inline-flex;min-height:32px;align-items:center;padding:0 11px;border:1px solid #b9dace;border-radius:999px;color:#176c55;background:#edf8f4;font-size:12px;font-weight:800; }
  418. .stage-badge.missing { border-color:#efc7c2;color:#b42318;background:#fff2f0; }
  419. .stage-overview { display:flex;gap:10px;padding:18px 18px 0; }
  420. .stage-overview span { display:inline-flex;min-width:92px;min-height:38px;align-items:center;justify-content:center;border:1px solid #b9dace;border-radius:999px;color:#176c55;background:#edf8f4;font-weight:800; }
  421. .category-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px; }
  422. .category-grid article { padding:18px;border:1px solid #dce7e3;border-radius:14px;background:#fbfdfc; }
  423. .category-grid span,.category-grid strong,.category-grid small { display:block; }
  424. .category-grid span { color:#8a9a94;font-size:11px; }
  425. .category-grid strong { margin:5px 0;color:#1d4136; }
  426. .category-grid input { width:100%;margin:8px 0;border:1px solid #d5e2de;border-radius:10px;padding:9px 10px;background:#fff;color:#193a31;font:inherit; }
  427. .category-actions { display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 8px; }
  428. .muted-text { color:#98a7a2; }
  429. .reconciliation-card .header-actions { display:flex;align-items:center;gap:8px; }
  430. .reconciliation-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px; }
  431. .reconciliation-summary article { padding:16px 18px;border:1px solid #dce7e3;border-radius:14px;background:#f8fbfa; }
  432. .reconciliation-summary span,.reconciliation-summary strong { display:block; }
  433. .reconciliation-summary span { color:#71837d;font-size:12px;font-weight:700; }
  434. .reconciliation-summary strong { margin-top:7px;color:#176c55;font-size:24px; }
  435. @media (max-width: 1400px) {
  436. .payroll-metrics {
  437. grid-template-columns: repeat(3, 1fr);
  438. }
  439. .payroll-toolbar {
  440. grid-template-columns: repeat(2, minmax(0, 1fr));
  441. }
  442. .source-chip {
  443. grid-column: 1 / -1;
  444. justify-self: start;
  445. }
  446. }
  447. @media (max-width: 900px) {
  448. .standards-summary,.category-grid,.reconciliation-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  449. .standard-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  450. .payroll-header {
  451. align-items: stretch;
  452. flex-direction: column;
  453. }
  454. .payroll-toolbar {
  455. grid-template-columns: repeat(2, minmax(0, 1fr));
  456. }
  457. .payroll-toolbar .search-field {
  458. grid-column: 1 / -1;
  459. }
  460. .query-action {
  461. justify-self: start;
  462. }
  463. }
  464. @media (max-width: 700px) {
  465. .standards-summary,.category-grid,.standard-editor .form-grid { grid-template-columns:1fr; }
  466. .standards-nav { overflow-x:auto; }
  467. .payroll-header .header-actions {
  468. display: grid;
  469. grid-template-columns: 1fr 1fr;
  470. }
  471. .payroll-tabs {
  472. grid-template-columns: repeat(2, minmax(0, 1fr));
  473. gap: 6px;
  474. }
  475. .payroll-tabs button { min-height: 42px; padding: 0 10px; }
  476. .payroll-toolbar {
  477. grid-template-columns: 1fr;
  478. padding: 15px;
  479. }
  480. .payroll-toolbar .search-field,
  481. .source-chip {
  482. grid-column: auto;
  483. }
  484. .month-calendar-popover {
  485. position: fixed;
  486. top: 50%;
  487. left: 50%;
  488. width: min(330px, calc(100vw - 28px));
  489. transform: translate(-50%, -50%);
  490. }
  491. .filter-actions > button {
  492. flex: 1;
  493. }
  494. .query-action,
  495. .source-chip {
  496. width: 100%;
  497. justify-self: stretch;
  498. justify-content: center;
  499. }
  500. .payroll-metrics {
  501. grid-template-columns: repeat(2, minmax(0, 1fr));
  502. gap: 10px;
  503. }
  504. .payroll-metrics article {
  505. min-height: 118px;
  506. padding: 16px;
  507. border-radius: 16px;
  508. }
  509. .payroll-metrics strong {
  510. font-size: 25px;
  511. }
  512. .content-card > header {
  513. align-items: stretch;
  514. flex-direction: column;
  515. }
  516. .create-payroll-action {
  517. width: 100%;
  518. }
  519. .payroll-drawer {
  520. width: 100vw;
  521. }
  522. .payroll-drawer .panel .form-grid {
  523. grid-template-columns: 1fr;
  524. }
  525. .payroll-drawer footer {
  526. display: grid;
  527. grid-template-columns: 1fr;
  528. }
  529. .stage-overview { overflow-x:auto; }
  530. }
  531. @media (max-width: 420px) {
  532. .payroll-header .header-actions,
  533. .payroll-metrics {
  534. grid-template-columns: 1fr;
  535. }
  536. }