@use "sass:map"; @use "src/css/quasar.variables.scss"; .softpar-table { padding-left: 16px !important; padding-right: 16px !important; .body--dark & { --table-bg-color: #{map.get($colors-dark, "surface")}; // Using our dark background --table-border-color: #{map.get($colors-dark, "surface-light")}; // Darker border --table-header-color: #{map.get($colors-dark, "text")}; // Light text for dark mode } .body--light & { --table-bg-color: #{map.get($colors, "surface")}; // Light background --table-border-color: #{map.get($colors, "surface-light")}; // Border color --table-header-color: #{map.get($colors, "text")}; // Dark text for light mode } :deep(.q-table) { thead tr:first-child th { background-color: $primary !important; } thead tr th { text-transform: uppercase; position: sticky; z-index: 1; } thead tr:first-child th { top: 0; } &.q-table--loading thead tr:last-child th { top: 48px; } } tr { background-color: var(--table-bg-color) !important; } .q-table__middle { border: 0.5px solid var(--table-border-color); box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15); border-radius: 4px; } .q-table__top { padding-top: 16px; padding-left: 0px; padding-right: 0px; padding-bottom: 16px; } .q-table th { font-weight: normal; font-family: "Roboto"; font-style: normal; font-weight: 500; font-size: 14px; line-height: 16px; letter-spacing: 0.1px; color: var(--table-header-color); } } .ativo { justify-content: center; padding: 5px 12px; gap: 10px; border-radius: 24px; width: fit-content; margin-right: auto; margin-left: auto; .body--dark & { background: none; border: 1px solid #{map.get($colors, "positive-1")}; } .body--light & { background: #{map.get($colors, "positive-1")}; border: none; } } .inativo { justify-content: center; padding: 5px 12px; gap: 10px; border-radius: 24px; width: fit-content; margin-right: auto; margin-left: auto; .body--dark & { background: none; border: 1px solid #{map.get($colors, "negative-1")}; } .body--light & { background: #{map.get($colors, "negative-1")}; border: none; } } .rejeitado { justify-content: center; padding: 5px 12px; gap: 10px; border-radius: 24px; width: fit-content; margin-right: auto; margin-left: auto; .body--dark & { background: none; border: 1px solid #{map.get($colors, "negative-1")}; } .body--light & { background: #{map.get($colors, "negative-1")}; border: none; } } .gerado { justify-content: center; padding: 5px 12px; gap: 10px; border-radius: 24px; width: fit-content; margin-right: auto; margin-left: auto; .body--dark & { background: none; border: 1px solid #{map.get($colors, "primary-1")}; } .body--light & { background: #{map.get($colors, "primary-1")}; border: none; } } .pendente { justify-content: center; padding: 5px 12px; gap: 10px; border-radius: 24px; width: fit-content; margin-right: auto; margin-left: auto; .body--dark & { background: none; border: 1px solid #{map.get($colors, "warning")}; } .body--light & { background: #{map.get($colors, "warning")}; border: none; } } .table-bottom { .q-table__top { .body--light & { background: #{map.get($colors, "page")}; } .body--dark & { background: #{map.get($colors, "background-3")}; } } .q-table__bottom { .body--light & { background: #{map.get($colors, "page")}; } .body--dark & { background: #{map.get($colors, "background-3")}; } } } .q-table__grid-item-card { .body--light & { background: #{map.get($colors, "dark")}; } .body--dark & { background: #{map.get($colors, "background-3")}; } }