Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

658 wiersze
15 KiB

  1. @use '../atoms/variables' as *;
  2. @use '../atoms/mixins' as *;
  3. // ─── Page ─────────────────────────────────────────────────────────────────────
  4. .report-page {
  5. @include page-shell;
  6. }
  7. // ─── Header ──────────────────────────────────────────────────────────────────
  8. .report-header {
  9. @include section-header;
  10. padding: $space-4 $space-6;
  11. }
  12. .report-header__title {
  13. font-size: $font-size-xl;
  14. font-weight: $font-weight-bold;
  15. color: var(--header-text);
  16. }
  17. .report-header__right {
  18. display: flex;
  19. align-items: center;
  20. gap: $space-4;
  21. }
  22. // ─── Account-Name Anzeige ────────────────────────────────────────────────────
  23. .report-account-name {
  24. display: inline-flex;
  25. align-items: center;
  26. gap: $space-2;
  27. padding: $space-2 $space-4;
  28. font-size: $font-size-sm;
  29. font-weight: $font-weight-medium;
  30. color: var(--header-text);
  31. background: var(--header-overlay);
  32. border: 1px solid var(--header-overlay);
  33. border-radius: $radius-pill;
  34. backdrop-filter: blur(6px);
  35. -webkit-backdrop-filter: blur(6px);
  36. white-space: nowrap;
  37. &__icon {
  38. width: 16px;
  39. height: 16px;
  40. flex-shrink: 0;
  41. }
  42. }
  43. // ─── Disabled Tab ────────────────────────────────────────────────────────────
  44. .account-tab--disabled {
  45. opacity: 0.45;
  46. pointer-events: none;
  47. cursor: default;
  48. }
  49. // ─── Content ─────────────────────────────────────────────────────────────────
  50. .report-content {
  51. flex: 1;
  52. max-width: 1200px;
  53. width: 100%;
  54. margin: $space-6 auto;
  55. padding: 0 $space-6;
  56. }
  57. // ─── Karte ───────────────────────────────────────────────────────────────────
  58. .report-card {
  59. @include card;
  60. overflow: hidden;
  61. }
  62. // ─── Toolbar ─────────────────────────────────────────────────────────────────
  63. .report-toolbar {
  64. display: flex;
  65. align-items: center;
  66. justify-content: space-between;
  67. padding: $space-3 $space-5;
  68. border-bottom: 1px solid $color-border;
  69. }
  70. .report-toolbar__left {
  71. display: flex;
  72. align-items: center;
  73. gap: $space-6;
  74. }
  75. .report-toolbar__right {
  76. display: flex;
  77. align-items: center;
  78. gap: $space-2;
  79. }
  80. .report-toolbar__export {
  81. @include icon-btn(30px, $radius-sm);
  82. color: $color-text-light;
  83. svg { width: 18px; height: 18px; }
  84. &:hover {
  85. color: var(--color-primary);
  86. background: rgba(var(--color-primary-rgb), 0.08);
  87. }
  88. }
  89. .report-toolbar__separator {
  90. width: 1px;
  91. height: 18px;
  92. background: $color-border;
  93. margin: 0 $space-1;
  94. }
  95. .report-toolbar__action {
  96. display: inline-flex;
  97. align-items: center;
  98. gap: $space-2;
  99. font-size: $font-size-sm;
  100. font-weight: $font-weight-medium;
  101. color: var(--color-primary);
  102. cursor: pointer;
  103. text-decoration: none;
  104. svg {
  105. width: $icon-svg-size;
  106. height: $icon-svg-size;
  107. flex-shrink: 0;
  108. }
  109. &--disabled {
  110. color: $color-text-muted;
  111. pointer-events: none;
  112. cursor: default;
  113. }
  114. }
  115. // ─── Tabelle ─────────────────────────────────────────────────────────────────
  116. .report-table {
  117. width: 100%;
  118. }
  119. .report-table__head,
  120. .report-table__row {
  121. display: grid;
  122. grid-template-columns:
  123. 110px // Datum
  124. 140px // Kunde
  125. 130px // Projekt
  126. 120px // Leistung
  127. 140px // Benutzer
  128. 1fr // Bemerkung
  129. 80px // Stunden
  130. 100px // Umsatz
  131. 88px; // Aktionen
  132. align-items: center;
  133. border-bottom: 1px solid $color-border;
  134. padding: 0 $space-5;
  135. }
  136. .report-table__head {
  137. padding-top: $space-2;
  138. padding-bottom: $space-2;
  139. .report-table__cell {
  140. font-size: $font-size-xs;
  141. font-weight: $font-weight-bold;
  142. color: $color-text-base;
  143. text-transform: uppercase;
  144. letter-spacing: 0.03em;
  145. line-height: 1.3;
  146. }
  147. }
  148. .report-table__row {
  149. padding-top: $space-3;
  150. padding-bottom: $space-3;
  151. transition: background $transition-fast;
  152. &:hover {
  153. background: rgba(var(--color-primary-rgb), 0.05);
  154. .report-action-btn { opacity: 1; }
  155. }
  156. &--invoiced .report-table__cell {
  157. &--date, &--client, &--project, &--service,
  158. &--user, &--note, &--duration, &--revenue {
  159. color: $color-text-light;
  160. }
  161. }
  162. &--editing {
  163. background: rgba(var(--color-primary-rgb), 0.05);
  164. .report-table__cell--actions { visibility: hidden; }
  165. }
  166. &:last-child { border-bottom: none; }
  167. }
  168. .report-table__cell {
  169. font-size: $font-size-base;
  170. color: $color-text-base;
  171. padding-right: $space-3;
  172. line-height: 1.4;
  173. min-width: 0;
  174. &--duration,
  175. &--revenue {
  176. text-align: right;
  177. padding-right: $space-4;
  178. white-space: nowrap;
  179. font-variant-numeric: tabular-nums;
  180. }
  181. &--actions {
  182. display: flex;
  183. align-items: center;
  184. justify-content: flex-end;
  185. gap: $space-1;
  186. padding-right: 0;
  187. }
  188. &--note {
  189. color: $color-text-muted;
  190. font-size: $font-size-sm;
  191. @include text-truncate;
  192. }
  193. }
  194. .report-table__sort-icon {
  195. margin-left: 2px;
  196. font-size: $font-size-xs;
  197. }
  198. .report-table__summary {
  199. display: block;
  200. font-size: $font-size-xs;
  201. font-weight: $font-weight-regular;
  202. color: $color-text-muted;
  203. margin-top: 1px;
  204. }
  205. .report-table__empty {
  206. padding: $space-10 $space-5;
  207. text-align: center;
  208. color: $color-text-muted;
  209. font-size: $font-size-sm;
  210. }
  211. // ─── Aktions-Buttons (Edit / Delete) ─────────────────────────────────────────
  212. .report-action-btn {
  213. @include icon-btn(26px, $radius-sm);
  214. opacity: 0;
  215. color: $color-text-light;
  216. svg { width: $icon-svg-size; height: $icon-svg-size; }
  217. &:hover {
  218. color: $color-text-muted;
  219. background: rgba($color-text-dark, 0.06);
  220. }
  221. &--delete:hover {
  222. color: $color-error;
  223. background: rgba($color-error, 0.08);
  224. }
  225. }
  226. // ─── Schloss-Button ──────────────────────────────────────────────────────────
  227. .report-lock {
  228. @include icon-btn(24px, $radius-sm);
  229. color: $color-text-light;
  230. svg { width: $icon-svg-size; height: $icon-svg-size; }
  231. &:hover {
  232. color: $color-text-muted;
  233. background: rgba($color-text-dark, 0.06);
  234. }
  235. &--invoiced {
  236. color: $color-text-dark;
  237. &:hover {
  238. color: $color-text-dark;
  239. background: rgba($color-text-dark, 0.06);
  240. }
  241. }
  242. }
  243. // ─── Inline-Edit-Formular ────────────────────────────────────────────────────
  244. .report-row__edit {
  245. grid-column: 1 / -1;
  246. padding: $space-4 0;
  247. background: rgba(var(--color-primary-rgb), 0.04);
  248. border-top: 1px solid $color-border;
  249. }
  250. .report-row__edit-grid {
  251. display: grid;
  252. grid-template-columns: 140px 1fr;
  253. gap: $space-3 $space-5;
  254. align-items: center;
  255. max-width: 680px;
  256. }
  257. .report-row__edit-label {
  258. @include form-label;
  259. }
  260. .report-row__edit-field {
  261. display: flex;
  262. align-items: center;
  263. gap: $space-2;
  264. &--selects {
  265. gap: $space-3;
  266. .select {
  267. flex: 1;
  268. min-width: 160px;
  269. }
  270. }
  271. .textarea {
  272. width: 100%;
  273. }
  274. }
  275. .report-row__edit-actions {
  276. grid-column: 2;
  277. display: flex;
  278. gap: $space-3;
  279. padding-top: $space-2;
  280. }
  281. // ─── Pagination-Footer ────────────────────────────────────────────────────────
  282. .report-pagination {
  283. display: grid;
  284. grid-template-columns: 1fr 80px 100px 88px;
  285. align-items: center;
  286. padding: $space-3 $space-5;
  287. border-top: 1px solid $color-border;
  288. font-size: $font-size-sm;
  289. color: $color-text-muted;
  290. }
  291. .report-pagination__limits {
  292. display: flex;
  293. align-items: center;
  294. gap: $space-2;
  295. a {
  296. color: var(--color-primary);
  297. text-decoration: underline;
  298. cursor: pointer;
  299. &:hover { color: var(--color-primary-dark); }
  300. }
  301. strong {
  302. color: $color-text-dark;
  303. font-weight: $font-weight-bold;
  304. }
  305. }
  306. .report-pagination__duration,
  307. .report-pagination__revenue {
  308. text-align: right;
  309. padding-right: $space-4;
  310. font-weight: $font-weight-medium;
  311. color: $color-text-muted;
  312. font-variant-numeric: tabular-nums;
  313. white-space: nowrap;
  314. }
  315. .report-pagination__lock-spacer {
  316. // Platzhalter – hält Spalten-Ausrichtung mit der Tabelle
  317. }
  318. // ─── Toolbar-Button (klickbar) ────────────────────────────────────────────────
  319. button.report-toolbar__action {
  320. background: none;
  321. border: none;
  322. cursor: pointer;
  323. font-family: $font-family-base;
  324. padding: $space-1 $space-3;
  325. margin: (-$space-1) (-$space-3);
  326. border-radius: $radius-pill;
  327. transition: background $transition-fast, color $transition-fast;
  328. &--active {
  329. background: $color-text-dark;
  330. color: $color-white;
  331. svg path,
  332. svg circle {
  333. stroke: $color-white;
  334. }
  335. }
  336. }
  337. // ─── Filter-Panel ─────────────────────────────────────────────────────────────
  338. .report-filter {
  339. background: $color-card;
  340. border-bottom: 1px solid $color-border;
  341. padding: $space-5 $space-5 0;
  342. }
  343. .report-filter__body {
  344. display: flex;
  345. gap: $space-10;
  346. }
  347. .report-filter__col {
  348. flex: 1;
  349. min-width: 0;
  350. max-width: 66%;
  351. }
  352. .report-filter__heading {
  353. font-size: $font-size-xs;
  354. font-weight: $font-weight-bold;
  355. color: $color-text-muted;
  356. text-transform: uppercase;
  357. letter-spacing: 0.06em;
  358. margin-bottom: $space-3;
  359. }
  360. // ─── Filter-Row ───────────────────────────────────────────────────────────────
  361. .filter-row {
  362. display: grid;
  363. grid-template-columns: 160px 1fr;
  364. align-items: flex-start;
  365. gap: $space-3;
  366. padding: $space-2 0;
  367. border-bottom: 1px solid rgba($color-border, 0.6);
  368. &:last-child { border-bottom: none; }
  369. &--inactive {
  370. .filter-select,
  371. .filter-note-input,
  372. .filter-period-select,
  373. .filter-radio {
  374. opacity: 0.5;
  375. }
  376. .filter-select,
  377. .filter-note-input,
  378. .filter-period-select {
  379. color: $color-text-muted;
  380. }
  381. .filter-row__add,
  382. .filter-neg {
  383. opacity: 0.4;
  384. }
  385. .filter-neg {
  386. pointer-events: none;
  387. }
  388. }
  389. }
  390. .filter-row__label {
  391. display: flex;
  392. align-items: center;
  393. gap: $space-2;
  394. cursor: pointer;
  395. font-size: $font-size-sm;
  396. color: $color-text-base;
  397. padding-top: 7px;
  398. user-select: none;
  399. }
  400. .filter-row__checkbox {
  401. width: 14px;
  402. height: 14px;
  403. cursor: pointer;
  404. flex-shrink: 0;
  405. accent-color: var(--color-primary);
  406. }
  407. // ─── Body: Controls + Meta nebeneinander ────────────────────────────────────
  408. .filter-row__body {
  409. display: flex;
  410. align-items: flex-start;
  411. gap: $space-3;
  412. }
  413. .filter-row__controls {
  414. display: flex;
  415. flex-direction: column;
  416. gap: $space-2;
  417. min-width: 0;
  418. flex: 1;
  419. }
  420. .filter-row__control-group {
  421. display: flex;
  422. align-items: center;
  423. gap: $space-2;
  424. .filter-select,
  425. .filter-note-input {
  426. width: 300px;
  427. max-width: 100%;
  428. }
  429. &--period {
  430. flex-direction: column;
  431. align-items: flex-start;
  432. gap: $space-2;
  433. }
  434. &--radio {
  435. padding-top: 7px;
  436. gap: $space-4;
  437. }
  438. }
  439. // ─── Meta: Plus-Button + Negativfilter ──────────────────────────────────────
  440. .filter-row__meta {
  441. display: flex;
  442. align-items: center;
  443. gap: $space-3;
  444. padding-top: 7px;
  445. flex-shrink: 0;
  446. white-space: nowrap;
  447. &--no-add {
  448. padding-left: calc(22px + #{$space-3});
  449. }
  450. }
  451. // ─── Plus- und Minus-Button ───────────────────────────────────────────────────
  452. .filter-row__add {
  453. @include icon-btn(22px, $radius-sm);
  454. border: 1px solid $color-input-border;
  455. background: $color-white;
  456. font-size: $font-size-md;
  457. line-height: 1;
  458. color: $color-text-muted;
  459. &:hover {
  460. border-color: var(--color-primary);
  461. color: var(--color-primary);
  462. }
  463. }
  464. .filter-row__remove {
  465. @include icon-btn(20px, $radius-sm);
  466. font-size: $font-size-md;
  467. line-height: 1;
  468. color: $color-text-light;
  469. &:hover {
  470. color: $color-error;
  471. background: rgba($color-error, 0.08);
  472. }
  473. }
  474. // ─── Zeitraum: Custom-Datumsfelder ───────────────────────────────────────────
  475. .filter-custom-dates {
  476. display: flex;
  477. flex-direction: column;
  478. gap: $space-2;
  479. margin-top: $space-2;
  480. }
  481. .filter-date-group {
  482. display: flex;
  483. align-items: center;
  484. gap: $space-2;
  485. }
  486. .filter-date-label {
  487. font-size: $font-size-sm;
  488. color: $color-text-muted;
  489. width: 26px;
  490. flex-shrink: 0;
  491. }
  492. .filter-date-select {
  493. width: auto;
  494. display: inline-block;
  495. &--sm {
  496. padding-right: $space-6;
  497. min-width: 60px;
  498. }
  499. &--month {
  500. padding-right: $space-6;
  501. min-width: 100px;
  502. }
  503. }
  504. // ─── Radio-Filter (Abgeschlossen?) ────────────────────────────────────────────
  505. .filter-radio {
  506. display: inline-flex;
  507. align-items: center;
  508. gap: $space-1;
  509. font-size: $font-size-sm;
  510. color: $color-text-base;
  511. cursor: pointer;
  512. user-select: none;
  513. accent-color: var(--color-primary);
  514. }
  515. // ─── Filter-Footer ────────────────────────────────────────────────────────────
  516. .report-filter__footer {
  517. display: flex;
  518. align-items: center;
  519. gap: $space-4;
  520. padding: $space-4 0;
  521. }
  522. .filter-footer__link {
  523. background: none;
  524. border: none;
  525. padding: 0;
  526. cursor: pointer;
  527. font-family: $font-family-base;
  528. font-size: $font-size-sm;
  529. color: $color-text-muted;
  530. text-decoration: underline;
  531. text-underline-offset: 2px;
  532. transition: color $transition-fast;
  533. &:hover { color: $color-text-base; }
  534. }
  535. // ─── Negativfilter-Checkbox ───────────────────────────────────────────────────
  536. .filter-neg {
  537. display: inline-flex;
  538. align-items: center;
  539. gap: $space-1;
  540. font-size: $font-size-sm;
  541. color: $color-text-muted;
  542. cursor: pointer;
  543. user-select: none;
  544. white-space: nowrap;
  545. input[type="checkbox"] {
  546. width: 13px;
  547. height: 13px;
  548. cursor: pointer;
  549. accent-color: $color-warning;
  550. flex-shrink: 0;
  551. }
  552. &:has(input:checked) {
  553. color: $color-warning;
  554. font-weight: $font-weight-medium;
  555. }
  556. }