operations-payroll.component.scss 13 KB

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