@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,900;1,300&display=swap");

:root {
  --primary: #3d5a96;
  --secondary: #00afef;
  --tertiary: #353531;
  --green: #2ea44f;
  --red: #d63d3d;
  --yellow: #efb618;
  --light-text: #878787;
  --text-color: #222;

  --input-border-color: #d4d4d4;

  --danger-color: #721c24;
  --danger-bg: #f8d7da;
  --danger-border-color: #f5c6cb;

  --success-color: #155724;
  --success-bg: #d4edda;
  --success-border-color: #c3e6cb;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  color: var(---text-color);
  font-size: 14px;
  line-height: initial;
  background-color: var(--full-page-container-bgcolor);
}

b,
strong {
  font-weight: bold !important;
}

em {
  font-style: italic;
}

button {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input:focus,
button:focus,
select:focus,
textarea:focus {
  /* outline-color: var(--secondary); */
  outline: none;
}

/* FONTS */
.font-monospace {
  font-family: monospace !important;
}

/* COLORS */

.color-green {
  color: var(--green) !important;
}
.color-red {
  color: var(--red) !important;
}

.bg-green {
  background-color: var(--green) !important;
}
.bg-red {
  background-color: var(--red) !important;
}

.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.logo h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
}

.logo.logo-sm h1 {
  font-size: 30px;
}

.logo.logo-sm img {
  width: 90px;
}

.full-page-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--full-page-container-bgcolor);
}

/* CONTAINERS */

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* DISPLAYS */

.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}

/* PADDINGS */

.p-0 {
  padding: 0 !important;
}
.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* MARGINS */
.m-0 {
  margin: 0 !important;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.mb-5 {
  margin-bottom: 5rem;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-4 {
  margin-top: 4rem;
}
.mt-5 {
  margin-top: 5rem;
}

/* FORMS */

form .form-section {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.form-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-section-title h1 {
  color: var(--tertiary);
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
}

.form-section-title h2 {
  color: var(--tertiary);
  font-size: 14px;
  font-weight: 700;
}

.form-section-title svg {
  width: 30px;
  height: 30px;
  color: var(--tertiary);
  margin-right: 10px;
  opacity: 0.7;
}

.form-limited {
  max-width: 800px;
}

.form-item {
  position: relative;
  margin-bottom: 20px;
}

.form-item > label {
  display: inline-block;
  font-size: 15px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  display: block;
  padding: 10px;
  line-height: 18px;
  border: 1px solid var(--input-border-color);
  width: 100%;
  min-height: 40px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

textarea.form-control {
  resize: vertical;
}

.form-control::-webkit-input-placeholder {
  color: #ccc;
}

.form-control::-moz-placeholder {
  color: #ccc;
}

.form-control:-ms-input-placeholder {
  color: #ccc;
}

.form-control::-ms-input-placeholder {
  color: #ccc;
}

.form-control::placeholder {
  color: #ccc;
}

.form-item > small {
  display: block;
  font-size: 10px;
  line-height: 13px;
  margin: 5px 0;
  color: #878787;
}

.form-item > small > a {
  font-weight: 600;
}

.form-password-control {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.form-password-control input {
  flex: 1;
  border-radius: 4px 0 0 4px;
  -webkit-border-radius: 4px 0 0 4px;
  -moz-border-radius: 4px 0 0 4px;
  -ms-border-radius: 4px 0 0 4px;
  -o-border-radius: 4px 0 0 4px;
}

.form-password-control button[type="button"] {
  padding: 5px 10px;
  min-height: 40px;
  border-radius: 0 4px 4px 0;
  -webkit-border-radius: 0 4px 4px 0;
  -moz-border-radius: 0 4px 4px 0;
  -ms-border-radius: 0 4px 4px 0;
  -o-border-radius: 0 4px 4px 0;
  background-color: #ccc;
  border: 1px solid #a9a9a9;
  border-left-width: 0;
}

.form-password-control button[type="button"] img {
  width: 20px;
  opacity: 0.5;
}

.form-item-radio {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.form-item-radio > input[type="radio"] {
  margin-right: 5px;
}

.form-item-radio.input-less {
  margin: 0;
}

.form-item-radio.input-less input[type="radio"] {
  display: none;
}

.form-item-radio.input-less input[type="radio"] + label {
  display: inline-block;
  padding: 0 12px;
  line-height: 35px;
  font-size: 12px;
  background: #ddd;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  margin-right: 5px;
  transition: 0.2s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
}

.form-item-radio.input-less input[type="radio"]:checked + label {
  color: #fff;
  background-color: var(--green);
}

.form-item-radio.input-less input[type="radio"].checked-red:checked + label {
  background-color: var(--red);
}

.form-item-radio.input-less input[type="radio"].checked-black:checked + label {
  background-color: #333;
}

.form-control-money {
  display: flex;
  align-items: center;
}

.form-control-money .icon {
  min-width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #ccc;
  border: 1px solid var(--input-border-color);
  color: #666;
  font-weight: 500;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  -webkit-border-radius: 5px 0 0 5px;
  -moz-border-radius: 5px 0 0 5px;
  -ms-border-radius: 5px 0 0 5px;
  -o-border-radius: 5px 0 0 5px;
}
.form-control-money.right .icon {
  border-right: 1px;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  -webkit-border-radius: 0 5px 5px 0;
  -moz-border-radius: 0 5px 5px 0;
  -ms-border-radius: 0 5px 5px 0;
  -o-border-radius: 0 5px 5px 0;
}

.form-control-money .form-control {
  border-radius: 0 5px 5px 0;
  -webkit-border-radius: 0 5px 5px 0;
  -moz-border-radius: 0 5px 5px 0;
  -ms-border-radius: 0 5px 5px 0;
  -o-border-radius: 0 5px 5px 0;
}

.form-control-money.right .form-control {
  text-align: right;
  border-radius: 5px 0 0 5px;
  -webkit-border-radius: 5px 0 0 5px;
  -moz-border-radius: 5px 0 0 5px;
  -ms-border-radius: 5px 0 0 5px;
  -o-border-radius: 5px 0 0 5px;
}

/* BUTTONS */

.btn {
  position: relative;
  display: inline-block;
  padding: 13px 20px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  transition: 0.2s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
}
button:disabled {
  background: #ccc;
  color: #888;
  pointer-events: none;
}
.btn:hover {
  opacity: 0.8;
}

.btn.btn-sm {
  font-size: 12px;
  padding: 12px 15px;
}

.btn-tertiary {
  background-color: var(--tertiary);
  color: rgba(255, 255, 255, 0.8);
}

.btn-submit {
  background-color: var(--secondary);
  color: #fff;
}

.btn-new {
  background-color: var(--green);
  color: #fff;
}

.btn-danger {
  background-color: var(--red);
  color: #fff;
}

button.sending {
  position: relative;
  color: transparent;
  pointer-events: none;
  opacity: 0.8;
}

button.sending::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: btn-loading 1s ease infinite;
  -webkit-animation: btn-loading 1s ease infinite;
}

@-webkit-keyframes btn-loading {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
    -moz-transform: translate(-50%, -50%) rotate(0deg);
    -ms-transform: translate(-50%, -50%) rotate(0deg);
    -o-transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
    -moz-transform: translate(-50%, -50%) rotate(360deg);
    -ms-transform: translate(-50%, -50%) rotate(360deg);
    -o-transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes btn-loading {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
    -moz-transform: translate(-50%, -50%) rotate(0deg);
    -ms-transform: translate(-50%, -50%) rotate(0deg);
    -o-transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
    -moz-transform: translate(-50%, -50%) rotate(360deg);
    -ms-transform: translate(-50%, -50%) rotate(360deg);
    -o-transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* FORM MESSAGE */
.form-message {
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.form-message.error {
  background-color: var(--danger-bg);
  color: var(--danger-color);
  border-color: var(--danger-border-color);
}

/* ROW AND COLUMNS */

.form-row,
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.form-row {
  margin-left: -10px;
  margin-right: -10px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding: 0 15px;
}

.col-2,
.col-md-2 {
  flex: 0 0 16.66666%;
  max-width: 16.66666%;
  padding: 0 15px;
}

.col-3,
.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

.col-4,
.col-md-4 {
  flex: 0 0 33.33333%;
  max-width: 33.33333%;
  padding: 0 15px;
}

.col-5,
.col-md-5 {
  flex: 0 0 41.666666%;
  max-width: 41.666666%;
  padding: 0 15px;
}

.col-6,
.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-7,
.col-md-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
  padding: 0 15px;
}

.col-8,
.col-md-8 {
  flex: 0 0 66.66666%;
  max-width: 66.66666%;
  padding: 0 15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

.form-row [class^="col-"] {
  padding: 0 10px;
}

.form-system-message {
  padding: 15px 20px;
  margin-bottom: 30px;
  border: 1px solid;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.form-system-message p {
  font-size: 12px;
}

.form-system-message.success {
  background-color: var(--success-bg);
  color: var(--success-color);
  border-color: var(--success-border-color);
}

.form-system-message.error {
  background-color: var(--danger-bg);
  color: var(--danger-color);
  border-color: var(--danger-border-color);
}

.delete-item-form {
  margin-bottom: 20px;
}

[draggable] {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -khtml-user-drag: element;
  -webkit-user-drag: element;
}

/* RESIZE */

[resize-text] {
  position: relative;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-10%, 0, 0);
  -webkit-transform: translate3d(-10%, 0, 0);
  -moz-transform: translate3d(-10%, 0, 0);
  -ms-transform: translate3d(-10%, 0, 0);
  -o-transform: translate3d(-10%, 0, 0);
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
}

[resize-text].active {
  opacity: 1;
  pointer-events: all;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
}

/* RESPONSIVE */

@media (max-width: 991px) {
  [class*="col-md"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hide-in-mobile {
    display: none !important;
  }
}
