operations-payroll.component.scss 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  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: inline-flex;
  43. gap: 4px;
  44. margin: 0 0 18px;
  45. padding: 5px;
  46. border: 1px solid #dfe8e4;
  47. border-radius: 14px;
  48. background: #fff;
  49. box-shadow: 0 6px 20px rgba(29, 62, 51, .04);
  50. }
  51. .payroll-tabs button {
  52. display: inline-flex;
  53. min-height: 40px;
  54. align-items: center;
  55. justify-content: center;
  56. gap: 7px;
  57. padding: 0 16px;
  58. border: 0;
  59. border-radius: 10px;
  60. color: #667972;
  61. background: transparent;
  62. font-weight: 750;
  63. }
  64. .payroll-tabs button:hover {
  65. color: #176c55;
  66. background: #f1f7f4;
  67. }
  68. .payroll-tabs button.active {
  69. border: 0;
  70. color: #fff;
  71. background: #176c55;
  72. box-shadow: 0 6px 14px rgba(23, 108, 85, .2);
  73. }
  74. .payroll-toolbar {
  75. display: grid;
  76. grid-template-columns: 190px 220px minmax(260px, 1fr) auto auto;
  77. align-items: end;
  78. gap: 14px;
  79. padding: 18px;
  80. border-radius: 18px;
  81. }
  82. .payroll-toolbar label {
  83. min-width: 0;
  84. }
  85. .payroll-toolbar input,
  86. .payroll-toolbar select {
  87. height: 46px;
  88. border-radius: 12px;
  89. }
  90. .query-action {
  91. min-width: 96px;
  92. height: 46px;
  93. box-shadow: 0 8px 18px rgba(23, 108, 85, .16);
  94. }
  95. .source-chip {
  96. display: inline-flex;
  97. height: 46px;
  98. align-items: center;
  99. gap: 8px;
  100. padding: 0 16px;
  101. border: 1px solid #b9dfd2;
  102. border-radius: 14px;
  103. color: #167459;
  104. background: #edf9f5;
  105. font-size: 12px;
  106. font-weight: 750;
  107. white-space: nowrap;
  108. }
  109. .source-chip i {
  110. width: 8px;
  111. height: 8px;
  112. border-radius: 50%;
  113. background: #20a374;
  114. box-shadow: 0 0 0 4px rgba(32, 163, 116, .12);
  115. }
  116. .source-chip.cache {
  117. border-color: #f1c5c5;
  118. color: #b42318;
  119. background: #fff2f2;
  120. }
  121. .source-chip.cache i {
  122. background: #d92d20;
  123. box-shadow: 0 0 0 4px rgba(217, 45, 32, .1);
  124. }
  125. .payroll-metrics {
  126. display: grid;
  127. grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  128. gap: 14px;
  129. margin: 18px 0;
  130. }
  131. .payroll-metrics article {
  132. position: relative;
  133. min-height: 138px;
  134. overflow: hidden;
  135. padding: 22px;
  136. border: 1px solid #dce7e3;
  137. border-radius: 18px;
  138. background: #fff;
  139. box-shadow: 0 10px 24px rgba(22, 52, 43, .05);
  140. }
  141. .payroll-metrics article::before {
  142. position: absolute;
  143. inset: 0 0 auto;
  144. height: 3px;
  145. background: #2f8c70;
  146. content: '';
  147. }
  148. .payroll-metrics article:nth-child(2)::before,
  149. .payroll-metrics article:nth-child(3)::before {
  150. background: #4f80b5;
  151. }
  152. .payroll-metrics article:nth-child(4)::before,
  153. .payroll-metrics article:nth-child(5)::before {
  154. background: #d3902b;
  155. }
  156. .payroll-metrics .exception-card::before {
  157. background: #c85a5a;
  158. }
  159. .payroll-metrics span {
  160. display: block;
  161. color: #667c75;
  162. font-weight: 700;
  163. }
  164. .payroll-metrics strong {
  165. display: block;
  166. margin: 12px 0 6px;
  167. color: #16352d;
  168. font-size: clamp(24px, 2vw, 30px);
  169. line-height: 1.1;
  170. }
  171. .payroll-metrics small {
  172. color: #84958f;
  173. line-height: 1.45;
  174. }
  175. .payroll-metrics .exception-card strong {
  176. color: #b42318;
  177. }
  178. .content-card {
  179. border-radius: 18px;
  180. }
  181. .content-card > header {
  182. min-height: 72px;
  183. padding: 17px 20px;
  184. background: linear-gradient(180deg, #fff, #fbfdfc);
  185. }
  186. .content-card > header > div {
  187. display: flex;
  188. flex-direction: column;
  189. gap: 5px;
  190. }
  191. .content-card > header strong {
  192. color: #20352e;
  193. font-size: 16px;
  194. }
  195. .content-card > header span {
  196. color: #83918c;
  197. font-size: 12px;
  198. }
  199. .create-payroll-action {
  200. min-width: 190px;
  201. }
  202. .data-table td small {
  203. display: block;
  204. margin-top: 4px;
  205. color: #84958f;
  206. }
  207. .payroll-summary-table th,
  208. .payroll-summary-table td {
  209. white-space: nowrap;
  210. }
  211. .payroll-summary-table th {
  212. position: sticky;
  213. z-index: 1;
  214. top: 0;
  215. height: 44px;
  216. color: #64756f;
  217. background: #f5f9f7;
  218. font-weight: 750;
  219. letter-spacing: .02em;
  220. }
  221. .payroll-summary-table tbody tr:hover {
  222. background: #f7fbf9;
  223. }
  224. .payroll-summary-table td:first-child strong {
  225. color: #243a33;
  226. font-size: 13px;
  227. }
  228. .view-action {
  229. width: 36px;
  230. height: 36px;
  231. border-radius: 11px;
  232. color: #176c55;
  233. background: #f2f9f6;
  234. }
  235. .type4-note {
  236. margin: 0;
  237. padding: 14px 20px;
  238. border-top: 1px solid #e6eeeb;
  239. color: #667c75;
  240. background: #fafcfb;
  241. }
  242. .payroll-drawer {
  243. width: min(1180px, 92vw);
  244. }
  245. .payroll-drawer .table-scroll {
  246. max-height: 54vh;
  247. border: 1px solid #e2e9e6;
  248. border-radius: 14px;
  249. }
  250. .payroll-drawer footer {
  251. gap: 10px;
  252. }
  253. .ui-button.compact {
  254. min-height: 30px;
  255. padding: 0 9px;
  256. border-radius: 8px;
  257. font-size: 11px;
  258. }
  259. .money {
  260. color: #167459;
  261. font-weight: 800;
  262. }
  263. .standards-summary { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 14px; }
  264. .standards-summary article { padding:18px 20px;border:1px solid #dce7e3;border-radius:16px;background:#fff; }
  265. .standards-summary article.warn { border-color:#efc78e;background:#fff9ef; }
  266. .standards-summary span,.standards-summary strong { display:block; }
  267. .standards-summary span { color:#71837d;font-size:12px;font-weight:700; }
  268. .standards-summary strong { margin-top:8px;color:#173d32;font-size:24px; }
  269. .standards-nav { display:flex;gap:8px;margin-bottom:14px; }
  270. .standards-nav button { min-height:42px;padding:0 16px;border:1px solid #d7e3df;border-radius:12px;color:#50665e;background:#fff;font-weight:750; }
  271. .standards-nav button.active { border-color:#176c55;color:#fff;background:#176c55; }
  272. .standards-nav button span { margin-left:5px;padding:2px 6px;border-radius:999px;color:#9a5a00;background:#fff2d9;font-size:11px; }
  273. .standard-editor .form-grid { grid-template-columns:repeat(5,minmax(130px,1fr)) minmax(220px,1.4fr) auto;align-items:end; }
  274. .credit-preview { min-height:64px;padding:10px 13px;border:1px solid #d9e5e1;border-radius:12px;background:#f7fbf9; }
  275. .credit-preview span,.credit-preview strong { display:block; }
  276. .credit-preview span { color:#71837d;font-size:11px; }
  277. .credit-preview strong { margin-top:4px;color:#23493e;font-size:12px; }
  278. .standards-table td,.mapping-table td { white-space:nowrap; }
  279. .delivery-badge { display:inline-flex;padding:4px 9px;border-radius:999px;color:#156c54;background:#e9f8f2;font-size:12px;font-weight:750; }
  280. .delivery-badge.offline { color:#855411;background:#fff2d9; }
  281. .mapping-search { width:min(340px,100%); }
  282. .mapping-search input,.mapping-table select { min-height:42px;border:1px solid #d7e3df;border-radius:11px;background:#fff; }
  283. .category-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px; }
  284. .category-grid article { padding:18px;border:1px solid #dce7e3;border-radius:14px;background:#fbfdfc; }
  285. .category-grid span,.category-grid strong,.category-grid small { display:block; }
  286. .category-grid span { color:#8a9a94;font-size:11px; }
  287. .category-grid strong { margin:5px 0;color:#1d4136; }
  288. .category-grid input { width:100%;margin:8px 0;border:1px solid #d5e2de;border-radius:10px;padding:9px 10px;background:#fff;color:#193a31;font:inherit; }
  289. .category-actions { display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 8px; }
  290. .muted-text { color:#98a7a2; }
  291. .reconciliation-card .header-actions { display:flex;align-items:center;gap:8px; }
  292. .reconciliation-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px; }
  293. .reconciliation-summary article { padding:16px 18px;border:1px solid #dce7e3;border-radius:14px;background:#f8fbfa; }
  294. .reconciliation-summary span,.reconciliation-summary strong { display:block; }
  295. .reconciliation-summary span { color:#71837d;font-size:12px;font-weight:700; }
  296. .reconciliation-summary strong { margin-top:7px;color:#176c55;font-size:24px; }
  297. @media (max-width: 1400px) {
  298. .payroll-metrics {
  299. grid-template-columns: repeat(3, 1fr);
  300. }
  301. .payroll-toolbar {
  302. grid-template-columns: 190px 220px minmax(240px, 1fr) auto;
  303. }
  304. .source-chip {
  305. grid-column: 1 / -1;
  306. justify-self: start;
  307. }
  308. }
  309. @media (max-width: 900px) {
  310. .standards-summary,.category-grid,.reconciliation-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  311. .standard-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  312. .payroll-header {
  313. align-items: stretch;
  314. flex-direction: column;
  315. }
  316. .payroll-toolbar {
  317. grid-template-columns: repeat(2, minmax(0, 1fr));
  318. }
  319. .payroll-toolbar .search-field {
  320. grid-column: 1 / -1;
  321. }
  322. .query-action {
  323. justify-self: start;
  324. }
  325. }
  326. @media (max-width: 700px) {
  327. .standards-summary,.category-grid,.standard-editor .form-grid { grid-template-columns:1fr; }
  328. .standards-nav { overflow-x:auto; }
  329. .payroll-header .header-actions {
  330. display: grid;
  331. grid-template-columns: 1fr 1fr;
  332. }
  333. .payroll-tabs {
  334. display: grid;
  335. grid-template-columns: repeat(3, max-content);
  336. width: 100%;
  337. overflow-x: auto;
  338. }
  339. .payroll-toolbar {
  340. grid-template-columns: 1fr;
  341. padding: 15px;
  342. }
  343. .payroll-toolbar .search-field,
  344. .source-chip {
  345. grid-column: auto;
  346. }
  347. .query-action,
  348. .source-chip {
  349. width: 100%;
  350. justify-self: stretch;
  351. justify-content: center;
  352. }
  353. .payroll-metrics {
  354. grid-template-columns: repeat(2, minmax(0, 1fr));
  355. gap: 10px;
  356. }
  357. .payroll-metrics article {
  358. min-height: 118px;
  359. padding: 16px;
  360. border-radius: 16px;
  361. }
  362. .payroll-metrics strong {
  363. font-size: 25px;
  364. }
  365. .content-card > header {
  366. align-items: stretch;
  367. flex-direction: column;
  368. }
  369. .create-payroll-action {
  370. width: 100%;
  371. }
  372. .payroll-drawer {
  373. width: 100vw;
  374. }
  375. .payroll-drawer .panel .form-grid {
  376. grid-template-columns: 1fr;
  377. }
  378. .payroll-drawer footer {
  379. display: grid;
  380. grid-template-columns: 1fr;
  381. }
  382. }
  383. @media (max-width: 420px) {
  384. .payroll-header .header-actions,
  385. .payroll-metrics {
  386. grid-template-columns: 1fr;
  387. }
  388. }