body {
    font-family: 'Nunito', sans-serif !important;
}

.login #container {
    border-radius: 0 !important;
}

#header,
.module h2,
.module caption,
.inline-group h2 {
    background-color: #473db4;
}

.button, input[type=submit], input[type=button], .submit-row input, a.button {
    background-color: #473db4;
    border-radius: 0 !important;
}

input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
input[type=tel],
textarea,
select,
.vTextField {
    border-radius: 0 !important;
}

div.breadcrumbs,
.selector-chosen h2 {
    background-color: #414178 !important;
    color: white;
}

.button.default, input[type=submit].default, .submit-row input.default {
    background-color: #b9457c !important;
}

a.deletelink:link, a.deletelink:visited {
    border-radius: 0 !important;
}

.inline-group .tabular tr.has_original td {
    padding-top: 10px !important;
}

.inline-group .tabular td.original p {
    display: none;
}

.button:active, input[type=submit]:active, input[type=button]:active, .button:focus, input[type=submit]:focus, input[type=button]:focus, .button:hover, input[type=submit]:hover, input[type=button]:hover {
    background: #6e7071 !important;
}

.order-pictures img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
    display: inline-block;
}

#header, .module caption {
    background: #342bcc;
    background: -webkit-linear-gradient(to left, #3a4788, #342bcc);
    background: linear-gradient(to left, #3a4788, #342bcc);
}

.module caption {
    border-radius: 0;
}

#branding h1, #branding h1 a:link, #branding h1 a:visited {
    color: white;
}

#content-related {
    border-radius: 0;
}

.select2-container--admin-autocomplete .select2-selection--single {
    border-radius: 0 !important;
}

.btn-admin {
    border-radius: 0;
    padding: 5px 10px;
    border: 1px solid #3a4788;
    color: #3a4788 !important;
}

.vIntegerField[name='quantity'] {
    width: 120px;
}

.djn-group-nested .inline-related.tabular {
    border-left: 2px solid #3a4788;
    border-right: 2px solid #3a4788;
    margin-bottom: 10px;
}

.text-muted {
    color: #888;
}

.small-text {
    font-size: 12px;
}

.btn-primary {
    border-radius: 4px;
    border: 1px solid #444;
    display: inline-block;
    padding: 3px 6px;
    background-color: #444;
    color: white !important;
    font-size: 11px;
    line-height: 1.3;
}

.btn-danger {
    border-radius: 4px;
    border: 1px solid red;
    display: inline-block;
    padding: 3px 6px;
    background-color: darkred;
    color: white !important;
    font-size: 11px;
    line-height: 1.3;
}

.image-captioned {
    position: relative;
    width: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.image-captioned img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.image-captioned span {
    position: absolute;
    left: 0;
    background-color: white;
    opacity: 0.8;
    font-size: 10px;
    width: 100%;
    padding: 0;
}

.image-captioned span.header {
    top: 0;
    text-align: center;
}

.image-captioned span.footer {
    bottom: 0;
}

.btn-secondary {
    border-radius: 4px;
    border: 1px solid #444;
    display: inline-block;
    padding: 3px 6px;
    background-color: white;
    color: #444 !important;
    font-size: 11px;
    line-height: 1.3;
}

.btn-success {
    border-radius: 4px;
    border: 1px solid darkgreen;
    display: inline-block;
    padding: 3px 6px;
    background-color: darkgreen;
    color: white !important;
}

.archive-image-box {
    position: relative;
    display: inline-block;
    border-radius: 11px;
}

.archive-image-box.new-item {
    box-shadow: 0px 0px 8px rgba(255, 0, 0, 0.8);
    border: 2px solid rgba(255, 0, 0, 0.8);
}

.archive-image-box.old-item {
    box-shadow: 0px 0px 8px rgba(100, 100, 100, 0.8);
    border: 2px solid rgba(100, 100, 100, 0.8);
}

.archive-image-box img {
    object-fit: cover;
    display: inline-block;
    border-radius: 8px;
}

.archive-image-box .caption {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.archive-image-box .note {
    position: absolute;
    top: 0px;
    left: 0;
    width: calc(100% - 10px);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding-left: 5px;
    padding-right: 5px;
}

td, th {
    font-size: 13px;
    line-height: 16px;
    border-bottom: 1px solid var(--hairline-color);
    vertical-align: middle;
    padding: 8px;
}

.aligned .form-row input:not([type="checkbox"]) {
    width: 245px;
}

.field-state select {
    width: 260px;
}

.djn-fieldset.module {
    border: 1px solid #a44172 !important;
}

.inline-group div.add-row, .inline-group .tabular tr.add-row td {
    border-bottom: none !important;
}

.djn-stacked .djn-group-nested {
    margin-bottom: 10px !important;
}

.djn-stacked .djn-group-nested h2 {
    background-color: #3a4788 !important;
}

.inline-group {
    overflow: initial !important;
}

.chip {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 7px;
    padding-left: 8px;
    padding-right: 8px;
    border: 1px solid purple;
    color: purple;
    transition: all 300ms ease-in-out;
}

.chip:hover {
    color: white;
    background-color: purple;
    cursor: pointer;
}

.submit-row {
    direction: rtl;
}

.submit-row a.deletelink {
    margin-left: 0 !important;
    margin-right: auto;
    background: var(--delete-button-bg) !important;
    border-radius: 4px;
}

.action-checkbox .action-select {
    width: 16px;
    height: 16px;
}

.copy-to-clipboard {
    border: 1px solid #555;
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 11px;
    margin-left: 10px;
    margin-right: 10px;
    transition: all 300ms ease-in-out;
}

.copy-to-clipboard:hover {
    color: white;
    background: #555;
    cursor: pointer;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.checkbox-row {
    display: flex;
    flex-direction: row;
}

.checkbox-row input {
    margin-left: 10px;
}

.checkbox-row .vCheckboxLabel {
    order: -1;
    padding-left: 0 !important;
}

select[multiple] {
    width: 100%
}
