@import url('https://fonts.googleapis.com/css?family=Open+Sans');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
    --base-color: #b82b22;
    --color-berry: #8f2011;
    --color-lady-bug: #be311e;
    --color-poppy: #ff424b;
}

body {
	background-image: url("../img/paper.png");
	background-position: left top;
	background-repeat: repeat;
	font-family: "Open Sans", sans-serif;
}

a {
  color: var(--base-color);
}

.navbar {
    background: var(--base-color);
}

.navbar-brand,
.navbar-nav > li > a,
.navbar .d-flex {
    color: white !important;
}

.navbar-nav .nav-link.active {
    font-weight: bold;
}

.navbar-toggler {
    color: white;
    border-width: 1px;
    border-color: white;
}

.navbar-toggler-icon
{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28256, 256, 256, 1.0%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    box-shadow: white 0px 0px 0px 1px;
}

.navbar a:hover {
    text-decoration: underline;
    text-underline-offset: 12px;
}

.btn-primary, .btn-primary:focus {
    background-color: var(--base-color);
    border-color: var(--base-color);
}

.btn-primary:focus {
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0px 0px 0px 2px var(--color-poppy);
}

.btn-primary:hover {
    background-color: var(--color-berry);
    border-color: var(--color-berry);
}

.btn-primary:active {
    background-color: var(--color-berry) !important;
    border-color: var(--color-berry) !important;
}

input:focus {
    outline: 2px solid var(--color-poppy);
}

.form-select:focus {
    border: 1px solid black;
    box-shadow: 0px 0px 0px 2px var(--color-poppy);
}

.card-header .bi {
  transition: .3s transform ease-in-out;
}
.card-header .collapsed .bi {
  transform: rotate(90deg);
}

.row {
    margin-top: 1em;
}

.card-header > a {
  text-decoration: none;
}

form th {
    width: 15%;
}

.page-link {
    color: var(--base-color);
}

.active > .page-link {
    background-color: var(--base-color);
    border-color: var(--base-color);
}

.page-link:hover {
    color: var(--base-color);
}

/* TABLE SORTING */
.table-sortable > thead > tr > th {
  position: relative;
}

.table-sortable > thead > tr > th > a {
  text-decoration: none;
}

.table-sortable > thead > tr > th:after {
  content: ' ';
	position: absolute;
  height: 0;
  width: 0;
  right: 10px; /* (right padding / 2) - arrow width */
  top: 16px; /* ((padding * 2) + line height) - arrow height */
  /** As pointed out by Dave Everitt in
   * https://css-tricks.com/snippets/css/css-triangle/
   * The arrow is not an equilateral triangle.
   * the height is 86.6% of the width.
   * Notice the above code does not subract the border
   * width exactly. It is subtracting
   * (rounded) border width * 86.6%
   **/
}

/* Default sortable indicator */
.table-sortable > thead > tr > th:after {
  border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #ccc;
  border-bottom: 0px solid transparent;
}
/* !Default */

/* Default sortable indicator:hover */
.table-sortable > thead > tr > th:hover:after {
	border-top: 5px solid #888;
}
/* !Default:hover */

/* Ascending sortable indicator */
.table-sortable > thead > tr > th.asc:after {
  border-left: 5px solid transparent;
	border-right: 5px solid transparent;
  border-top: 0px solid transparent;
	border-bottom: 5px solid #333;
}
.table-sortable > thead > tr > th.asc:hover:after {
	border-bottom: 5px solid #888;
}
/* !Ascending */

/* Descending sortable indicator */
.table-sortable > thead > tr > th.desc:after {
  border-left: 5px solid transparent;
	border-right: 5px solid transparent;
  border-top: 5px solid #333;
	border-bottom: 5px solid transparent;
}
/* !Descending */

/* END TABLE SORTING */

.select2, input[type="text"], input[type="email"], input[type="password"]{
  min-width: 100%;
}

.select2-container {
  min-width: 100%
  max-width: 100%;
}

.select2-selection {
  outline: 0;
  max-width: 100%;
}