/* Small additions to Pico for the admin panel. */

.narrow {
    max-width: 28rem;
    padding-top: 10vh;
}

.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-bar h1 {
    margin-bottom: 0;
}

form.inline {
    display: inline;
    margin: 0;
}

button.small,
[role="button"].small {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    margin: 0;
    width: auto;
}

.notice {
    padding: 0.6rem 1rem;
    border-left: 4px solid var(--pico-ins-color);
    background: var(--pico-card-background-color);
}

.error {
    color: var(--pico-del-color);
}

p.error {
    padding: 0.6rem 1rem;
    border-left: 4px solid var(--pico-del-color);
    background: var(--pico-card-background-color);
}

mark.off,
mark.sandbox {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

mark.off {
    background: var(--pico-muted-border-color);
    color: var(--pico-muted-color);
}

mark.sandbox {
    background: #f3d36b;
    color: #3b2f00;
}

mark.status {
    font-size: 0.8rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

mark.status.sent { background: #b8e6c4; color: #0b3d1a; }
mark.status.failed { background: #f5b9b9; color: #4a0b0b; }
mark.status.queued,
mark.status.sending { background: #c9dcf5; color: #0b2a4a; }

tr.inactive td {
    color: var(--pico-muted-color);
}

.created-key {
    border: 2px solid var(--pico-ins-color);
}

code.secret {
    word-break: break-all;
    user-select: all;
    font-size: 0.95rem;
}

th.meter {
    width: 30%;
}

table.messages td {
    font-size: 0.875rem;
    vertical-align: top;
}

table.messages details {
    margin: 0.25rem 0 0;
}

.pager {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.htmx-request button,
button.htmx-request {
    opacity: 0.6;
}
