:root { --font-size: 16px; --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: var(--font-size); font-family: var(--font-family); } body { padding: 2rem; color: rgb(108, 108, 108); background-color: rgb(245, 245, 245); } h1, h2, h3, h4, h5 { color: rgb(30, 30, 30); } div#admin-container { max-width: 1280px; margin: 0 auto; padding: 1rem; } header { margin-bottom: 2rem; } main { display: flex; gap: 2rem; margin-bottom: 2rem; } main > nav { flex: 0 0 auto; } main > section { flex: 1; } table { width: 100%; border-collapse: collapse; outline-width: none; font-family: var(--font-family); border: 1px solid rgba(0, 0, 0, 0.1); & > caption { margin: 1rem; } & :is(td,th) { border: 1px solid rgba(0, 0, 0, 0.4); padding: 0.5rem 1rem; } & thead tr { background: rgba(0, 0, 0, 0.1); } & tbody tr:nth-of-type(even) { background: rgba(0, 0, 0, 0.1); &:hover { background: rgba(0, 0, 0, 0.2); } } td:hover { color: white; background: rgba(0, 0, 0, 0.1); } tr:hover { background: rgba(0, 0, 0, 0.2); } } .table-wrapper { width: 100%; /* Ensure the wrapper takes 100% of the parent's width */ max-height: 300px; /* Set the desired height limit */ overflow-x: auto; /* Enable horizontal scrolling if the table overflows */ overflow-y: auto; /* Enable vertical scrolling if needed */ display: block; /* Ensure block-level behavior */ -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */ } a { color: #015df7; text-decoration: none; cursor: pointer; &:hover { color: hsl(218, 99%, 29%); text-decoration: underline; } } .small { font: 10px verdana; } .highlight { color: red; } .light { color: #999999; } .title { border: solid 1px black; background-color: #eeeeee; font-weight: bold; padding: 5px; margin: 3px; } footer { display: flex; justify-content: space-around; font-size: 0.8rem; padding: 0.5rem; margin: 2rem 0; }