/*
 * Variables
 */

:root {
  --theme-color1: #4472c4;
  --theme-color2: #a6a6a6;
  --theme-color3: #ebf0f9;
  --theme-color4: #f2f2f2;
  --theme-color5: #182c4e;
  --theme-color6: #c4d3ed;
  --theme-color7: #add8e6;
  --warning-red: #f44336;
  --success-green: #4CAF50;
  --border-radius: 4px;
}

/*
 * Animations
 */

@keyframes shake {
  0% { margin-left: 0rem; }
  25% { margin-left: 0.5rem; }
  75% { margin-left: -0.5rem; }
  100% { margin-left: 0rem; }
}

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

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

/*
 * Standard HTML/pseudo-elements
 */

::placeholder {
  color: gray;
  opacity: 0.9;
}

*,
*:focus,
*:hover {
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
label.switch:focus,
button:not(.edit):not(.trash):not(.duplicate):not(.save):not(.cancel):focus {
  box-shadow: 0 0 3px var(--theme-color1);
}

body {
  background-color: var(--theme-color3);
  font-family: Verdana, sans-serif;
  font-size: 14px;
  padding: 0px;
  margin: 0px;
}

h3 {
  color: navy;
  margin-left: 20px;
}

a {
  color: var(--theme-color1);
  cursor: pointer;
}

label {
  font-size: 12px;
  font-family: Verdana, sans-serif;
  text-decoration: none;
  padding-right: 5px;
}

input[type="submit"] {
  background-color: DodgerBlue;
  color: #fff;
  cursor: pointer;
}

input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/*
 * Classes / IDs
 */

/* home.html / client.js / forgot_password.js */

img#header_logo {
  width: auto;
  height: 40px;
  float: left;
  margin-right: 20px;
  z-index: 2;
  position: relative;
}

img#header_logo_login {
  width: auto;
  height: 40px;
  margin-left: 40px;
  margin-bottom: 20px;
}

div#login_form_container {
  width: 300px;
  height: 360px;
  border: 1px solid var(--theme-color6);
  border-radius:10px;
  padding: 50px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -230px;
  margin-left: -200px;
}

div#login_form_header {
  display: table;
  width: 100%; /*Optional*/
  table-layout: fixed; /*Optional*/
  font-size: 18px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 30px;
}

div.login_form_row {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  margin-top: 5px;
}

input.login_form_input {
  width: 97%;
  height: 40px;
  margin-top: 5px;
  font-size: 16px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 5px;
  padding-right: 0px;
  max-width: 100%;
  float: none;
  border-radius: var(--border-radius);
  border: 1px solid var(--theme-color6);
}

/* Snackbar */

#snackbar {
	visibility: hidden;
	width: 100%;
	background-color: var(--theme-color1);
	color: #fff;
	text-align: center;
	border-radius: 2px;
	padding-top: 16px;
	position: fixed;
	z-index: 1;
	bottom: 0px;
	font-size: 17px;
	padding-bottom: 16px;
}

#snackbar.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 5s;
}

#snackbar.success{
    background-color: var(--success-green);
}

/* Tooltips */

#tooltip-rectangle {
  z-index: 10;
  position: absolute;
  background-color: var(--theme-color5);
  padding: 6px;
  border-radius: 6px;
  color: #ffffff;
  box-sizing: border-box;
  transform: translateY(-100%) translateY(-6px); /* allows setting y-coordinate (top) of the rectangle to the same y-coord as the target element in JS (triangle height factored in) */
}

#tooltip-triangle {
  z-index: 10;
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 0 solid transparent;
  border-top: 6px solid var(--theme-color5);
  transform: translateY(-100%); /* allows setting y-coordinate (top) of the rectangle to the same y-coord as the target element in JS */
}

.tooltip-right {
    position: relative;
    display: inline-block;
}

.tooltip-right .tooltiptext {
  visibility: hidden;
  min-width: 32px;
  white-space: nowrap;
  background-color: var(--theme-color5);
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 3;
  left: 100%;
  top: calc(25% + 5px);
}

.tooltip-right .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 25%;
  left: 0;
  margin-left: -10px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--theme-color5) transparent transparent;
}

.tooltip-right:hover .tooltiptext {
  visibility: visible;
}

/* Warning Icon */

.icon-warning {
  display: inline-flex;
  height: 0;
  width: 0;
  padding: 0;
  margin: 0;
  margin-left: 4px;
  border-top: 0 solid transparent;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #ffdd33;
  color: #000000;
  justify-content: center;
  font-weight: bold;
}

.icon-warning.yellow {
  border-bottom-color: #ffdd33;
  color: #000000;
}

.icon-warning.red {
  border-bottom-color: var(--warning-red);
  color: #ffffff;
}

.icon-warning::after {
  content: "!";
  font-size: 10px;
  margin-top: 0.375em;
  font-family: sans-serif;
}

/* Barcode modal */

#modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  padding-bottom: 40px;
  padding-top: 30px;
  padding-right: 40px;
  padding-left: 40px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 700px;
  border-radius: var(--border-radius);
  margin: auto;
  max-height: 100vh; /* Set a maximum height equal to the viewport height */
  overflow-y: auto; /* Enable vertical scrolling if the content exceeds the maximum height */
}

#modal-path{
    font-size: 12px;
    line-height: 1rem;
}

#modal-details{
    font-size: 12px;
    line-height: 2rem;
}

.modal-details-row {
    display: flex;
    flex-direction: row;
    margin-top: 5px;
}

.modal-details-key {
    min-width: 25%;
}

#close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: start;
  }

#close-modal:hover,
#close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modal-codes {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top:40px;
  margin-bottom: 40px;
}

/* Toggle buttons */

label.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  padding-right: 1px;
}

label.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

span.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

span.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + span.slider {
  background-color: var(--theme-color1);
}

input:focus + span.slider {
  box-shadow: 0 0 1px var(--theme-color1);
}

input:checked + span.slider:before {
  transform: translateX(26px);
}

span.slider.round {
  border-radius: 34px;
}

span.slider.round:before {
  border-radius: 50%;
}

/* Autocomplete */

input.keyword-input {
  background-color: #fff;
  padding: 10px;
  font-size: 16px;
  height: 60px;
  box-sizing: border-box;
  width: 100%;
  border-radius: var(--border-radius);
  border: 1px solid var(--theme-color6);
}

.search-button {
	background: transparent;
	border: none;
	outline: none;
	margin-left: -33px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.search-button img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

div#clean-button-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 15px;
  cursor: pointer;
}

div#clean-button{
  display: inline-block;
  /* content: "\00d7"; This will render the 'X' */
  font-size: 20px;
}

div.clean_button_container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 15px;
  cursor: pointer;
}

div.clean_button{
  display: inline-block;
  /* content: "\00d7"; This will render the 'X' */
  font-size: 20px;
}

/* Closeable container */

div.closeable_div {
  display:flex;
  flex-direction:row;
  justify-content: space-between;
  border: 1px solid var(--theme-color2);
  border-radius:25px;
  padding:5px;
}

div.closeable_div_content {
  width:350px;
  padding:5px;
  font-size: 12px;
}

div.closeable_div_button {
  width:20px;
  text-align: right;
  padding-right:5px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

/* Folding */

.location_table_fold {
  font-size: 14px;
  color: var(--theme-color1);
  min-width:24px;
  height:24px;
  display: inline-block;
}

.fold_action {
  cursor: pointer;
}

.fold_arrow_down {
  background-image: url("/img/chevron-down.svg");
  background-repeat: no-repeat;
  background-position:center;
}

.fold_arrow_right {
  background-image: url("/img/chevron-right.svg");
  background-repeat: no-repeat;
  background-position:center;
}

.fold_arrow_up {
    background-image: url("/img/chevron-up.png");
    background-repeat: no-repeat;
    background-position:center;
  }

.row_fold_div {
  display:flex;
  flex-direction: row;
  align-items: center;
}

/* View header */

div.view_header {
  font-size: 18px;
  height: 30px;
  color: var(--theme-color1)
}

div.view_header_panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  height: 50px;
}

div.view_header_bottom_margin {
  font-size: 18px;
  margin-bottom:15px;
  margin-top:10px;
  color: var(--theme-color1)
}

/* Buttons */

div.select_button_right{
  display:flex;
  flex-direction: row;
  justify-content: right;
}

.transactions_table_GTIN_button {
  display: inline-block;
  border: 1px solid var(--theme-color2);
  cursor: pointer;
  border-radius: 25px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.inline_buttons {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.inline_buttons > * {
  flex: 1;
  white-space: nowrap;
}

.inline_buttons > .primary_button,
.inline_buttons > :last-child {
  margin-right: 0;
}

button.secondary_button:not(.grayed_out):hover,
button.red_button:not(.grayed_out):hover {
  background-color: #d0d0d7;
}

button.primary_button,
button.secondary_button,
button.red_button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid;
  font-size: 14px;
  font-family: Verdana, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

button.primary_button {
  background-color: var(--theme-color1);
  border-color: var(--theme-color1);
  color: white;
  border-radius: var(--border-radius);
}

button.secondary_button {
  background-color: var(--theme-color3);
  border-color: var(--theme-color1);
  color: var(--theme-color1);
  border-radius: var(--border-radius);
}

button.red_button {
  background-color: var(--theme-color3);
  border-color: #ff0000;
  color: #ff0000;
  border-radius: var(--border-radius);
}

button.grayed_out{
  opacity: 0.3;
  cursor: default !important;
}

button.button {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  border: 1px solid;
  color: white;
  padding: 7px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  cursor: pointer;
  border-radius: 0px;
  margin: 10px;
}

button.common {
  background-color: var(--theme-color1);
  border: 1px solid;
  border-radius: var(--border-radius);
}

button.pointer{
  cursor: pointer;
}

button.margin-right{
  margin-right: 10px;
}

button.csv {
  float:right;
  background-color: var(--theme-color1);
  border: 1px solid;
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.button.csv:before {
  content: '';
  background:  url("/img/Download-Button-PNG2.png");
  background-size: cover;
  width: 38px;
  height: 20px;
  display: inline-block
}

button.update {
  float: left;
  margin-right: 50px;
  background-color: var(--success-green);
  border: 1px solid var(--success-green);
}

button.delete {
  float: right;
  background-color: #d9534f;
  border: 1px solid #d43f3a;
  margin: 0px;
}

button.create {
  float: right;
  background-color: var(--theme-color1);
  border: 1px solid;
  border-radius: var(--border-radius);
}

button.rounded {
  border-radius: 20px;
}

button.wide_button {
  background-color: var(--theme-color1);
  border: 1px solid;
  width: 100%;
  font-family: Verdana, sans-serif;
  color: white;
  padding: 7px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-color: var(--theme-color1);
  margin-top: 20px;
  border-radius: var(--border-radius);
}

button.deactivated {
  background-color: #d3d3d3;
  border: 0px;
  cursor: auto;
  box-shadow: none;
}

button.trash {
  margin: 0px;
  background-image: url("/img/DeleteBlue2.png");
  width: 26px;
  height: 26px;
  background-color: Transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
}

button.save {
  margin: 0px;
  background-image: url("/img/check2-square.svg");
  width: 26px;
  height: 26px;
  background-color: Transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
}

button.cancel {
  margin: 0px;
  background-image: url("/img/box-arrow-left.svg");
  width: 26px;
  height: 26px;
  background-color: Transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
}

button.edit {
  margin: 0px;
  background-image: url("/img/edit2.png");
  width: 26px;
  height: 26px;
  background-color: Transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  /* overflow: hidden; */
  outline: none;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
}

button.duplicate {
  margin: 0px;
  background-image: url("/img/duplicate.png");
  width: 26px;
  height: 26px;
  background-color: Transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  /* overflow: hidden; */
  outline: none;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
}

button.view_details {
  margin: 0px;
  background-image: url("./view_details.png");
  width: 100%;
  height: 26px;
  background-color: Transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
}

button.abort {
  background-color: var(--theme-color1);
  margin: 10px;
}

button.create_grayed_out {
  background-color: #d3d3d3;
  color: white;
  border: 1px solid;
  cursor: default;
}

button.action_button {
  cursor: pointer;
  border-radius: 20px;
  border-color: var(--theme-color1);
  border-width: 1px;
  font-size: 12px;
  color: var(--theme-color1);
  background-color: transparent;
  padding-right: 5px;
  padding-left: 5px;
  height: 25px;
  margin-right: 10px;
  min-width: 75px;
}

button.blue_rounded_corners {
  cursor: pointer;
  border-radius: 20px;
  border-color: var(--theme-color1);
  color: var(--theme-color1);
  background-color: var(--theme-color3);
  padding-right: 5px;
  padding-left: 5px;
  height: 25px;
}

button.common_action {
  cursor: pointer;
  border-radius: 20px;
  border-color: var(--theme-color1);
  border-width: 1px;
  font-size: 12px;
  color: var(--theme-color1);
  background-color: transparent;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 25px;
  margin-top:2px;
  margin-bottom: 2px;
  white-space: nowrap;
}

button.insert {
  background-color: var(--theme-color1);
  border: 1px solid;
  margin-bottom: 0px;
}

button.insert_grayed_out {
  margin-bottom: 0px;
  background-color: #d3d3d3;
  color: white;
  border: 1px solid;
  cursor: default;
}

button.select_button{
  cursor:pointer;
  margin-right: 5px;
  border-radius:20px;
  border: 2px solid var(--theme-color1);
  width:25px;
  height:25px;
  background: var(--theme-color4);
}

button.select_button_selected{
  background: var(--theme-color1);
}

button.select_button:hover{
  background: var(--theme-color7);
}

button.select_button_small{
    cursor:pointer;
    margin-right: 5px;
    border-radius:20px;
    border: 2px solid var(--theme-color1);
    width:20px;
    height:20px;
    background: var(--theme-color4);
  }
  
  button.select_button_small_selected{
    background: var(--theme-color1);
  }
  
  button.select_button_small:hover{
    background: var(--theme-color7);
  }

  button.select_button_small_selected:hover{
    background: var(--theme-color1);
  }

/* Table-related */

span.trash_hd {
  width: 30px;
  display: inline-block;
}

thead.sticky {
  position: sticky;
  top: 0;
  z-index: 1; /* prevents rows with opacity < 1 from blending into the thead ( relevant: https://stackoverflow.com/questions/2837057 ) */
}

table.table {
  font-size: 12px;
  border-collapse: collapse;
  width: 100%;
}

table.auto-width {
  width: 100%;
}

table.table td,
table.table th {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

table.table th {
  cursor: pointer;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  padding-left: 12px;
  padding-right: 12px;
  background-color: var(--theme-color1);
  color: white;
  white-space: nowrap;
}

table.table:not(.wrapped_table) th:first-child{
    border-top-left-radius: var(--border-radius);
}

table.table td:first-child {
    border-top-left-radius: var(--border-radius);
}

table.table th:last-child{
    border-top-right-radius: var(--border-radius);
   
}

table.table td:last-child{
    border-top-right-radius: var(--border-radius);
}

table.table tr:nth-child(even) {
  background-color: #fff;
}

table.table tr.current_day_table_row {
  background-color: #ffffbf;
}

table.table td.recently_created {
  background-color: #FFFFE0;
}

tr.recently_created td {
  background-color: #FFFFE0;
}

tbody.select tr:hover {
  cursor: pointer;
}

td.ellipsis {
  max-width: 100px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

td.link {
  color: #0645ad;
}

td.link:hover {
  color: #0645ad;
  text-decoration: underline;
}

td.print:hover {
  text-decoration: underline;
}

tr.updated_row {
  background-color: yellow;
}

td.grayed_out_table_row {
  opacity: 0.5;
}

table.align_top td,
table.align_top th {
  vertical-align: top;
}

table.align_middle td,
table.align_middle th {
  vertical-align: middle;
}

#common_mobile_sort_menu_container {
  margin-bottom: 7px;
  height: auto;
  display: flex;
  flex-direction: row;
  font-size: 12px;
  margin-left: 0px;
  margin-top: 5px;
  margin-right: 10px;
}

@media only screen and (min-width: 1101px) {
  #common_mobile_sort_menu_container {
      display: none !important;
  }
}

/* Misc. */

#wrapper {
  min-height: 1000px;
  padding-left: 5px;
  padding-right: 5px;
  margin-top: 40px;
}

.asterisk::after {
  display: inline;
  content: '*';
  color: #f00;
  margin-left: 4px;
}

h4.small_margin_bottom {
  margin-bottom: 5px;
}

div.note {
  background-color: #fff1a8;
  font-size: 12px;
  padding: 10px; 
  border: 1px solid #ccc;
  text-align: center;
  color: #222;
  border-radius: var(--border-radius);
}

.flex_vcenter {
  display: flex;
  align-items: center;
}

div.check_mark {
  font-size: 40px;
  color: var(--success-green);
  text-align: center;
}

.pw_hint {
  background-color: #fff3cd;
  border: 1px solid #ffe69c;
  margin-top: 0.5em;
  padding: 0.5em;
  border-radius: 4px;
}

.pw_reveal_btn {
  flex: 1;
  background-color: #dddddd;
  padding: 0 10px;
  cursor: pointer;
  border: 1px solid #96b4e9;
  border-left: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  opacity: 0.5;
}

.input {
  font-size: 14px;
  padding: 5px;
  max-width: 100%;
  cursor: pointer;
  border-radius: var(--border-radius);
  border: none;
  border: 1px solid var(--theme-color6);
}

select.input{
    border: 1px solid var(--theme-color6);
}

.input option:hover {
  background-color: var(--theme-color1);
}

.input:hover {
    cursor: pointer;
}

div#print_div {
  width: 30px;
  height: 30px;
  margin-left:15px;
}

#print_div:hover {
  cursor: pointer;
}

img#print_img {
  width: 30px;
  height: auto;
}

div.grayed_out {
  /* opacity:0.5;*/
  display: none;
}

div.setting-label {
  padding-top: 10px;
  border: 0px solid green;
  margin-right: 10px;
  font-size: 12px;
}

div.form_label {
  font-size: 12px;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

.form_header {
  display: table;
  width: 100%; /*Optional*/
  table-layout: fixed; /*Optional*/
  font-size: 18px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.form_row {
  display: table;
  width: 100%; /*Optional*/
  table-layout: fixed; /*Optional*/
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 40px;
}

div.centered_form,
form.centered_form {
  margin-left: auto;
  margin-right: auto;
  width: 400px;
  margin-top: 2rem;
}

div.left_form {
  margin-top: 15px;
  min-width: 400px;
  margin-left: 50px;
  margin-right: 25px;
}

input.form_input {
  width: 100%;
  height: 40px;
  margin-top: 0px;
  font-size: 16px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 5px;
  padding-right: 0px;
  float: none;
  border: 1px solid var(--theme-color6);
  box-sizing: border-box;
  border-radius: var(--border-radius);
}

div.form_input_flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

select.form_input {
    cursor: pointer;
}

input.red_frame {
  animation: shake 0.2s ease-in-out 0s 2;
  box-shadow: 0 0 0.5em var(--warning-red);
}

.red_text {
  color: var(--warning-red);
  font-weight: 500;
}

.expires_soon_text {
  color: orangered;
}

div.empty_table {
  margin-top: 100px;
  font-size: 12px;
  color: var(--theme-color2);
  display:flex;
  flex-direction:row;
  justify-content:center;
}

/* The Select Columns Modal (background) */
.common_modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
  }
 
 .common_modal_close {
   color: #aaa;
   float: right;
   font-size: 28px;
   margin-right: 8px;
   font-weight: bold;
   cursor: pointer;
   margin-left: -100%;
 }
 
 /* Modal Content/Box */
.common_modal_content {
   background-color: #fefefe;
   margin: 5% auto; /* 15% from the top and centered */
   padding: 20px;
   border: 1px solid #888;
   width: 80%; /* Could be more or less, depending on screen size */
   max-width:700px;
   border-radius: var(--border-radius);
}

.common_modal_content_small{
    max-width: 400px;
}

/* #modal-barcode-canvas, #modal-barcode-svg, #modal-qrcode{
    display: none;
}  */

.action_info_btn {
    margin-right: 4px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--theme-color1);
  }

  .action_info_btn_big {
    margin-right: 4px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--theme-color1);
  }

  .table-with-padding td,
  .table-with-padding th {
    padding-right: 30px; /* Adjust the value as needed */
  }

  div.custom_articles_panel{
    display: flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
    padding-left: 5px;
    padding-right: 5px;
}

.pagination_container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 50px;
    max-width: 100vw;
    position: sticky;
    left: 0;
}

.pagination_container button{
    margin: 10px;
}

.comment_input{
    resize: vertical; /* Allow vertical resizing only */
    min-height: 100px; /* Set a minimum height */
    max-height: 200px; /* Set a minimum height */
    width: 100%; /* Set a width */
    margin-top: 0px;
    font-size: 12px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 5px;
    padding-right: 0px;
    border: 1px solid var(--theme-color6);
    box-sizing: border-box;
    border-radius: var(--border-radius);
    font-family: Verdana, sans-serif;
}

div.custom_articles_table_container{ /* merchandise_articles, merchandise_products */
    padding: 0px;
    flex-grow: 1;
}

div.custom_articles_table_wrapper { /* merchandise_articles, merchandise_products */
    display:flex;
    flex-direction: row;
}

div.custom_articles_left_selector { /* merchandise_articles, merchandise_products */
    min-width:67px;
    max-width:67px;
    background:var(--theme-color3);
}
  
div.custom_articles_left_selector_header { /* merchandise_articles, merchandise_products */
    background-color: var(--theme-color1);
    height: 42px;
    border-top-left-radius: var(--border-radius);
}

div.custom_articles_search_box { /* Used in medicine_articles, medicine_products and merchandise_articles */
    display: flex;
    flex-direction: row;
}

tr.custom_articles_merchandise_article_row{ /* merchandise_articles, merchandise_products */
    height: 50px;
    cursor: default !important;
}

button.custom_articles_navigate_button{ /* merchandise_articles, merchandise_products */
     cursor: pointer;
     padding: none;
     opacity: 0.5;
}

td.custom_articles_closeable_div_key{ /* Used in medicine_articles and merchandise_articles */
    padding-right:15px;
    vertical-align:top;
}

div.custom_articles_edit_custom_article_container{ /* Used in medicine_articles and medicine_products */
    margin: auto;
    margin-top:60px;
}

div.custom_articles_autocomplete_product { /* Used in medicine_articles and merchandise_articles */
    position: relative;
    margin-left: 0px;
    max-width: 750px;
}

div.custom_articles_autocomplete_stakeholder { /* Used in medicine_products and merchandise_articles */
    position: relative;
    margin-left: 0px;
    max-width: 750px;
}

.blue_link{
    text-decoration: underline;
    cursor: pointer;
    color: var(--theme-color1);
}

#password_strength_meter {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-top: 3px;
}

#password_strength_meter > :not(#password_strength_feedback) {
  flex: 1;
  height: 6px;
  border-radius: 5px;
  background-color: #ebf0f9;
  border: 1px solid #c0d1f0;
}

#password_strength_meter > #password_strength_feedback {
  min-width: 85px;
  font-size: 9px;
  margin-top: -2px;
  color: #656565;
  text-align: center;
}

#password_strength_meter > #strength_1 {
  background-color: #ffe5e5;
}

#password_strength_meter > #strength_2 {
  background-color: #fdefcd;
}

#password_strength_meter > #strength_3 {
  background-color: #f7f7c8;
}

#password_strength_meter > #strength_4 {
  background-color: #ddf4dd;
}