.pricing-layout { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; column-gap: 1rem; } .forfait-price, .move-price { font-weight: bold; } .operations-container { grid-column: 2/5; } .operations-mosaic { columns: 2; grid-gap: 1rem; } .operations-category { page-break-inside: avoid; } .operations-table { // card border: 1px solid black; border-radius: 5px; width: 100%; border-collapse: separate; background: lighten($background-dark, 8%); padding-bottom: .2rem; th { opacity: 0.6; text-align: left; padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 1px solid gray; } tr:nth-child(even) { background-color: $background-dark; } td, th { padding: .5rem 1rem; } .operation-price { text-align: right; min-width: 4rem; // prevent collapse of the prices } td.operation-price { color: $primary; } } @media (max-width: $md-breakpoint) { .pricing-layout { grid-template-columns: 1fr; } .operations-container { grid-column: initial; } .operations-mosaic { columns: initial; } .operations-category { margin-bottom: 1rem; } } @media (min-width: $lg-breakpoint) { .operations-mosaic { columns: 3; } }