| 1 |
/* -------------------------------------------------------------------------- |
| 2 |
Table card (white card wrapping table + footer) |
| 3 |
-------------------------------------------------------------------------- */ |
| 4 |
.wpsubs-table-card { |
| 5 |
background: var(--wpsubs-surface); |
| 6 |
border: 1px solid var(--wpsubs-border); |
| 7 |
border-radius: var(--wpsubs-radius); |
| 8 |
} |
| 9 |
|
| 10 |
/* -------------------------------------------------------------------------- |
| 11 |
Table |
| 12 |
-------------------------------------------------------------------------- */ |
| 13 |
.wpsubs-table { |
| 14 |
width: 100%; |
| 15 |
border-collapse: separate; |
| 16 |
border-spacing: 0; |
| 17 |
font-size: 13.5px; |
| 18 |
margin: 0; |
| 19 |
} |
| 20 |
|
| 21 |
/* Header */ |
| 22 |
.wpsubs-table thead { |
| 23 |
background: var(--wpsubs-surface-muted); |
| 24 |
} |
| 25 |
|
| 26 |
.wpsubs-table thead th { |
| 27 |
padding: 13px 18px; |
| 28 |
text-align: left; |
| 29 |
font-size: 11px; |
| 30 |
font-weight: 600; |
| 31 |
color: var(--wpsubs-text-muted); |
| 32 |
text-transform: uppercase; |
| 33 |
letter-spacing: 0.07em; |
| 34 |
white-space: nowrap; |
| 35 |
background: transparent; |
| 36 |
border: none; |
| 37 |
border-bottom: 1px solid var(--wpsubs-border); |
| 38 |
box-shadow: none; |
| 39 |
vertical-align: middle; |
| 40 |
} |
| 41 |
|
| 42 |
/* Round the thead top corners so they follow the card's border-radius */ |
| 43 |
.wpsubs-table thead tr:first-child th:first-child { |
| 44 |
border-top-left-radius: calc(var(--wpsubs-radius) - 1px); |
| 45 |
} |
| 46 |
.wpsubs-table thead tr:first-child th:last-child { |
| 47 |
border-top-right-radius: calc(var(--wpsubs-radius) - 1px); |
| 48 |
} |
| 49 |
|
| 50 |
/* Column modifiers */ |
| 51 |
.wpsubs-col--check { |
| 52 |
width: 20px !important; |
| 53 |
padding-right: 4px !important; |
| 54 |
} |
| 55 |
.wpsubs-col--actions { |
| 56 |
width: 44px; |
| 57 |
text-align: right !important; |
| 58 |
} |
| 59 |
.wpsubs-col--nowrap { |
| 60 |
white-space: nowrap; |
| 61 |
} |
| 62 |
|
| 63 |
/* Body rows */ |
| 64 |
.wpsubs-table tbody tr { |
| 65 |
transition: background 0.1s; |
| 66 |
background: transparent; |
| 67 |
} |
| 68 |
|
| 69 |
.wpsubs-table tbody tr:hover { |
| 70 |
background: var(--wpsubs-surface-muted); |
| 71 |
} |
| 72 |
|
| 73 |
.wpsubs-table tbody tr.wpsubs-row--selected { |
| 74 |
background: var(--wpsubs-brand-light); |
| 75 |
} |
| 76 |
|
| 77 |
/* Cells — border on td instead of tr (required for border-collapse: separate) */ |
| 78 |
.wpsubs-table td { |
| 79 |
padding: 18px; |
| 80 |
color: var(--wpsubs-text); |
| 81 |
vertical-align: middle; |
| 82 |
border: none; |
| 83 |
border-bottom: 1px solid var(--wpsubs-border); |
| 84 |
box-shadow: none; |
| 85 |
} |
| 86 |
|
| 87 |
.wpsubs-table tbody tr:last-child td { |
| 88 |
border-bottom: none; |
| 89 |
} |
| 90 |
|
| 91 |
/* Keep the card's rounded bottom corners visible on last-row hover. */ |
| 92 |
.wpsubs-table tbody tr:last-child td:first-child { |
| 93 |
border-bottom-left-radius: var(--wpsubs-radius); |
| 94 |
} |
| 95 |
|
| 96 |
.wpsubs-table tbody tr:last-child td:last-child { |
| 97 |
border-bottom-right-radius: var(--wpsubs-radius); |
| 98 |
} |
| 99 |
|
| 100 |
.wpsubs-table td.wpsubs-col--check { |
| 101 |
padding-right: 4px; |
| 102 |
} |
| 103 |
|
| 104 |
.wpsubs-table td.wpsubs-cell--muted { |
| 105 |
color: var(--wpsubs-text-muted); |
| 106 |
font-size: 12.5px; |
| 107 |
} |
| 108 |
|
| 109 |
.wpsubs-table td.wpsubs-cell--actions { |
| 110 |
width: 1%; |
| 111 |
white-space: nowrap; |
| 112 |
padding: 0 10px 0 4px; |
| 113 |
} |
| 114 |
|
| 115 |
/* -------------------------------------------------------------------------- |
| 116 |
Avatar — light bg + dark text, 8 deterministic colors |
| 117 |
-------------------------------------------------------------------------- */ |
| 118 |
.wpsubs-customer { |
| 119 |
display: flex; |
| 120 |
align-items: center; |
| 121 |
gap: 10px; |
| 122 |
min-width: 0; |
| 123 |
} |
| 124 |
|
| 125 |
.wpsubs-customer__info { |
| 126 |
min-width: 0; |
| 127 |
} |
| 128 |
|
| 129 |
.wpsubs-customer__name { |
| 130 |
font-weight: 400; |
| 131 |
color: var(--wpsubs-text); |
| 132 |
font-size: 13.5px; |
| 133 |
line-height: 1.3; |
| 134 |
white-space: nowrap; |
| 135 |
overflow: hidden; |
| 136 |
text-overflow: ellipsis; |
| 137 |
text-decoration: none; |
| 138 |
display: block; |
| 139 |
} |
| 140 |
|
| 141 |
a.wpsubs-customer__name:hover { |
| 142 |
color: var(--wpsubs-brand); |
| 143 |
text-decoration: none; |
| 144 |
} |
| 145 |
|
| 146 |
.wpsubs-customer__sub { |
| 147 |
font-size: 12px; |
| 148 |
color: var(--wpsubs-text-muted); |
| 149 |
line-height: 1.3; |
| 150 |
white-space: nowrap; |
| 151 |
overflow: hidden; |
| 152 |
text-overflow: ellipsis; |
| 153 |
display: block; |
| 154 |
} |
| 155 |
|
| 156 |
.wpsubs-avatar { |
| 157 |
width: 36px; |
| 158 |
height: 36px; |
| 159 |
border-radius: 50%; |
| 160 |
display: flex; |
| 161 |
align-items: center; |
| 162 |
justify-content: center; |
| 163 |
font-size: 11px; |
| 164 |
font-weight: 700; |
| 165 |
flex-shrink: 0; |
| 166 |
text-transform: uppercase; |
| 167 |
letter-spacing: 0.03em; |
| 168 |
user-select: none; |
| 169 |
background: var(--wpsubs-surface-muted); |
| 170 |
color: var(--wpsubs-text-muted); |
| 171 |
} |
| 172 |
|
| 173 |
.wpsubs-avatar[data-color="0"] { |
| 174 |
background: #dbeafe; |
| 175 |
color: #1d4ed8; |
| 176 |
} |
| 177 |
.wpsubs-avatar[data-color="1"] { |
| 178 |
background: #d1fae5; |
| 179 |
color: #065f46; |
| 180 |
} |
| 181 |
.wpsubs-avatar[data-color="2"] { |
| 182 |
background: #fce7f3; |
| 183 |
color: #9d174d; |
| 184 |
} |
| 185 |
.wpsubs-avatar[data-color="3"] { |
| 186 |
background: #e0e7ff; |
| 187 |
color: #4338ca; |
| 188 |
} |
| 189 |
.wpsubs-avatar[data-color="4"] { |
| 190 |
background: #fef3c7; |
| 191 |
color: #92400e; |
| 192 |
} |
| 193 |
.wpsubs-avatar[data-color="5"] { |
| 194 |
background: #fee2e2; |
| 195 |
color: #991b1b; |
| 196 |
} |
| 197 |
.wpsubs-avatar[data-color="6"] { |
| 198 |
background: #f3e8ff; |
| 199 |
color: #6b21a8; |
| 200 |
} |
| 201 |
.wpsubs-avatar[data-color="7"] { |
| 202 |
background: #ccfbf1; |
| 203 |
color: #134e4a; |
| 204 |
} |
| 205 |
|
| 206 |
/* -------------------------------------------------------------------------- |
| 207 |
Cell: product title + id below |
| 208 |
-------------------------------------------------------------------------- */ |
| 209 |
.wpsubs-cell-title { |
| 210 |
font-weight: 400; |
| 211 |
color: var(--wpsubs-text); |
| 212 |
font-size: 13.5px; |
| 213 |
line-height: 1.3; |
| 214 |
white-space: nowrap; |
| 215 |
overflow: hidden; |
| 216 |
text-overflow: ellipsis; |
| 217 |
text-decoration: none; |
| 218 |
display: block; |
| 219 |
} |
| 220 |
|
| 221 |
a.wpsubs-cell-title:hover { |
| 222 |
color: var(--wpsubs-brand); |
| 223 |
text-decoration: none; |
| 224 |
} |
| 225 |
|
| 226 |
.wpsubs-cell-id { |
| 227 |
font-size: 12px; |
| 228 |
color: var(--wpsubs-text-muted); |
| 229 |
line-height: 1.3; |
| 230 |
display: block; |
| 231 |
} |
| 232 |
|