summaryrefslogtreecommitdiff
path: root/templates/css/admin.css
blob: 446b083057b720a22fbb90447d48efd4fb5ffde1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Admin page specific container */
.admin-container {
    max-width: 95%;
    width: 1200px;
    margin: 2rem auto;
}

/* Responsive wrapper for the table */
.table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Admin Table */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Prevent table from becoming too cramped */
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* Prevent content from wrapping */
}

tr:last-child td {
    border-bottom: none;
}

th {
    background-color: #f7f7f7;
    font-weight: 600;
}

td button {
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    width: auto; /* Override common button width */
    font-size: 0.875rem;
}

td select {
    padding: 0.25rem 0.5rem;
}

button.delete {
    background-color: #dc3545;
    border-color: #dc3545;
}
button.delete:hover {
    background-color: #c82333;
}