/*
 * Shared admin-list compatibility styles for the Potwory theme.
 *
 * Views such as Onefourseven.Common/Users/List and Onefourseven.Forms/Form/Index are
 * theme-agnostic, but they were written against AdminKit and use two things that only
 * AdminKit provides: the .badge-*-light palette, and Font Awesome. Without the badge
 * classes a status badge renders with no background and is effectively invisible; the
 * Font Awesome side is handled by requiring OrchardCore's own "font-awesome" resource
 * in Layout.liquid, since the icon-only action buttons collapse to nothing without it.
 *
 * Colours are copied verbatim from AdminKit's app.css so a status badge reads the same
 * on both themes. `color-yiq(...)` in the original is an unresolved Sass call that no
 * browser understands - the literal colour on the following line is what actually
 * applies, so only that is kept here.
 */

.badge-success-light,
a.badge-success-light {
    background-color: rgba(28, 187, 140, .15);
    color: #1cbb8c;
}

.badge-danger-light,
a.badge-danger-light {
    background-color: rgba(220, 53, 69, .15);
    color: #dc3545;
}

.badge-warning-light,
a.badge-warning-light {
    background-color: rgba(252, 185, 44, .15);
    color: #fcb92c;
}

.badge-info-light,
a.badge-info-light {
    background-color: rgba(23, 162, 184, .15);
    color: #17a2b8;
}

/* The theme's global link colour bleeds into table action buttons, so an outline
   button's label takes the link colour instead of its own variant colour. Scope the
   reset to button groups inside a table so ordinary content links are untouched. */
.table .btn-group .btn {
    text-decoration: none;
}
