/* BOOTSTRAP LEGACY */

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::-ms-expand {
  background-color: transparent;
  border: 0;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::-moz-placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-control:disabled, .form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}

select.form-control:not([size]):not([multiple]) {
  height: calc(2.25rem + 2px);
}

select.form-control:focus::-ms-value {
  color: #495057;
  background-color: #fff;
}

.form-control-file,
.form-control-range {
  display: block;
  width: 100%;
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-heading {
  color: inherit;
}

.alert-link {
  font-weight: 700;
}

.alert-dismissible {
  padding-right: 4rem;
}

.alert-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  color: inherit;
}

.alert-primary {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.alert-primary hr {
  border-top-color: #9fcdff;
}

.alert-primary .alert-link {
  color: #002752;
}

.alert-secondary {
  color: #383d41;
  background-color: #e2e3e5;
  border-color: #d6d8db;
}

.alert-secondary hr {
  border-top-color: #c8cbcf;
}

.alert-secondary .alert-link {
  color: #202326;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-success hr {
  border-top-color: #b1dfbb;
}

.alert-success .alert-link {
  color: #0b2e13;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-info hr {
  border-top-color: #abdde5;
}

.alert-info .alert-link {
  color: #062c33;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-warning hr {
  border-top-color: #ffe8a1;
}

.alert-warning .alert-link {
  color: #533f03;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-danger hr {
  border-top-color: #f1b0b7;
}

.alert-danger .alert-link {
  color: #491217;
}

.alert-light {
  color: #818182;
  background-color: #fefefe;
  border-color: #fdfdfe;
}

.alert-light hr {
  border-top-color: #ececf6;
}

.alert-light .alert-link {
  color: #686868;
}

.alert-dark {
  color: #1b1e21;
  background-color: #d6d8d9;
  border-color: #c6c8ca;
}

.alert-dark hr {
  border-top-color: #b9bbbe;
}

.alert-dark .alert-link {
  color: #040505;
}

/* END BOOTSTRAP LEGACY */

.form-group label input[type="checkbox"] {
  float: left;
  display: inline-block;
  width: auto;
  margin-right: 5px;
  margin-top: 5px;
}

.model-admin .header {
  margin-bottom: 30px;
}

.model-admin .table {
  width: 100%;
}

.model-admin .table th.actions {
  min-width: 200px;
}

.model-admin .relation-list .table th.actions {
  min-width: 150px;
}

.model-admin .table tr td {
  text-align: center;
  padding: 7px;
}

.model-admin .table tbody tr:nth-child(odd) {
  background: #ececec;
}

.model-admin .table .delete-model-form {
  display: inline-block;
}

.delete-model-form .confirm-delete-button {
  float: none;
}

.delete-model-form .delete-button-text-input {
  width: 123px;
  margin-left: 5px;
  display: none;
}

.btn {
  border-radius: 0.3em;
  display: inline-block;
  padding: 4px 7px;
  cursor: pointer;
}

.btn.btn-success {
  background-color: #3f9e43;
  color: #ffffff;
}

.btn.btn-danger {
  background-color: #bd3e35;
  color: #ffffff;
}

.btn.btn-warning {
  background-color: #FF9800;
  color: #ffffff;
}

.btn.btn-secondary {
  background-color: #525252;
  color: #fff;
}

.btn.btn-info {
  background-color: #1976d2;
  color: #ffffff;
}

.btn.btn-pink {
  background-color: #d21966;
  color: #ffffff;
}

.model-admin .header {
  min-height: 32px;
}

.model-admin .table .btn, .model-admin .header .btn {
  margin-left: 5px;
}

.model-admin .table .btn,
.model-admin .table .delete-model-form,
.model-admin .header .btn,
.model-admin .header .delete-model-form {
  float: right;
}

.model-admin .relation-list {
  margin-top: 20px;
}

.model-admin .relation-list h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 15px;
  border-bottom: 1px solid #ececec;
}

.model-admin nav[role='navigation'] {
  margin-top: 25px;
}

.model-admin fieldset legend {
  font-size: 18px;
  color: #424242;
  border-bottom: 1px solid #ccc;
  width: 100%;
  font-weight: 600;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.add-related-items {
  margin-top: 30px;
}

.add-related-items h3 {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 15px;
}

.add-related-items form {
  text-align: center;
}

.add-related-items form select, .model-admin fieldset select {
  min-width: 300px;
}

.model-admin table tr.out-of-stock {
  background-color: #ffaeae;
}

.model-admin table tr.out-of-stock:nth-child(odd) {
  background-color: #ffcece;
}

.model-admin table tr.in-stock {
  background-color: #ebfbe4;
}

.model-admin table tr.in-stock:nth-child(odd) {
  background-color: #d2f1c2;
}

.table-loading {
  padding:50px;
}

.visually-hidden {
  position: absolute;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.welcome-panel {
  width: 100%;
  padding: 30px;
}

.welcome-panel .welcome-header {
  margin-bottom: 30px;
}

.welcome-panel .family-section, .welcome-panel .figures-section {
  display: inline-block;
  min-height: 170px;
}

.welcome-panel table.family-table thead, .welcome-panel table.figures-table thead  {
  background-color: #017101;
  color: #fff;
}

table.family-table thead th, table.figures-table thead th {
  padding: 2px 10px;
}

table.family-table tbody .color-name {
  background-color: #919292;
  color: #ffffff;
  font-weight: 600;
  padding:0 5px;
}

table.family-table tbody .negative-stock {
  background-color: #ffa18e;
}

table.family-table tbody td, table.figures-table tbody td {
  text-align: center;
  border: 1px solid #ccc;
}

table.figures-table tbody td {
  padding: 2px 10px;
}