/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --primary: #111111;
  --success: #20c997;
  --danger: #dc3545;
}

html {
  font-size: 16px;
}

* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

a {
  text-decoration: none;
  color: var(--primary);
}

body {
  width: 100%;
  max-width: 992px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

header {
  margin-top: 1.5rem;
  height: 5rem;
}
.menu-item {
  font-size: .875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  color: var(--primary);
}
.menu-item:not(:first-child) {
  margin-left: 0.5rem;
}
.menu-item:hover {
  background-color: #f5f5f5;
}
.menu-item.active {
  background-color: var(--primary);
  color: #fff;
}


#voucher-container {
  margin-top: 8.5rem;
}

#voucher-redemptions-container {
  margin-top: 2.5rem;
}

.form-control label {
  font-weight: bold;
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* Style the input elements and the submit button */
input, button[type=submit] {
  width: 100%;
  padding: 1.25rem;
  margin: 0 0 1rem;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 1rem;
}

/* Style the submit button */
button[type=submit] {
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  padding: 1.25rem 2.5rem;
  margin-top: 0.5rem;
}
button[type=submit]:hover {
  cursor: pointer;
  opacity: 0.9;
}
button[type=submit]:disabled {
  opacity: 0.5;
}

/* Style the message */
.alert {
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.alert label {
  margin-right: 0.5rem;
  font-weight: bold;
}
.alert > div:first-child {
  margin-bottom: 0.75rem;
}
.alert-success {
  border: 1px solid var(--success);
  color: var(--success);
  background-color: rgba(32, 201, 151, .1);
}
.alert-danger {
  border: 1px solid var(--danger);
  color: var(--danger);
  background-color: rgba(220, 53, 69, .1);
}

/* Style the table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
  background-color: var(--primary);
  color: #ffffff;
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 12px 15px;
}.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
  background-color: #f5f5f5;
}
.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--primary);
}
.styled-table .success {
  color: var(--success);
}
.styled-table .failure {
  color: var(--danger);
}

/* Style the pagination */
.pagination {
  font-size: 0.85em;
  margin-top: 1.25rem;
}
.pagination > span a,
.pagination > span.current {
  border: 1px solid #dddddd;
  background-color: #f5f5f5;
  padding: 4px 8px;
  border-radius: 0.25rem;
  text-align: center;
}
.pagination > span:not(:last-child) {
  margin-right: 2px;
}
.pagination > span.current {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
  margin-right: 5px;
}
.pagination > span:not(:last-child).current {
  padding-right: 5px;
}
.pagination .first,
.pagination .last,
.pagination .prev,
.pagination .next {
  display: none;
}

/* Class helpers */
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.flex-1 {
  flex: 1 1 0%;
}
.nowrap {
  white-space: nowrap;
}
