@import "./icon-font/style.scss";

.sof-height-100vh { height: 100vh; }
.sof-width-25 { width: 25%; }
.sof-width-50 { width: 50%; }
.sof-width-75 { width: 75%; }
.sof-width-100 { width: 100%; }

.sof-shadow { box-shadow: 0 0 2px 0 #ccc; }
.sof-no-border { border: 0; }
.sof-margin-auto { margin: auto; }
.sof-mr-1 { margin-right: .5em; }
.sof-mr-2 { margin-right: 1em; }
.sof-mr-3 { margin-right: 1.5em; }
.sof-ml-1 { margin-left: .5em; }
.sof-ml-2 { margin-left: 1em; }
.sof-ml-3 { margin-left: 1.5em; }
.sof-mt-1 { margin-top: .5em; }
.sof-mt-2 { margin-top: 1em; }
.sof-mt-3 { margin-top: 1.5em; }
.sof-mb-1 { margin-bottom: .5em; }
.sof-mb-2 { margin-bottom: 1em; }
.sof-mb-3 { margin-bottom: 1.5em; }

.sof-light-background { background: #e0e0e0 !important; }
.sof-primary-background { background: #16A4D8 !important; }

.sof-text-light { color: #ffffff !important; }
.sof-text-gray { color: #999999 !important; }
.sof-text-dark { color: #000000 !important; }
.sof-text-danger { color: #ba1239 !important; }
.sof-text-center { text-align: center; }
.sof-text-bold { font-weight: bold; }

.sof-card {
  display: flex;
  flex-direction: column;
  border-radius: 1em;
}
.sof-card-header {
  background: #1181aa;
  color: white;
  padding: 1em;
  border-radius: 1em 1em 0 0;
}
.sof-card-body {
  flex-grow: 1;
  border-radius: 0 0 1em 1em;
  padding: 1em;
}
.sof-login-card-header {  }

.sof-button {
  padding: .5em;
  border: 1px solid;
  border-radius: .5em;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  &:hover {
    background: #e0e0e0;
  }
}
.sof-button-primary {
  background: #16A4D8;
  color: white;
  border-color: #128dba;
  &:hover {
    background: #128dba;
  }
}
.sof-button-secondary {
  background: #1181aa;
  color: white;
  border-color: #128dba;
  &:hover {
    background: #128dba;
  }
}
.sof-button-light {
  background: #e0e0e0;
  border: none;
}
.sof-button-login {  }
.sof-button-danger {
  background: #aa112d;
  color: white;
  border-color: #ba1239;
  &:hover {
    background: #ba1226;
  }
}
.sof-button-warning {
  background: #aa7a11;
  color: white;
  border-color: #85690e;
  &:hover {
    background: #85690e;
  }
}

.sof-alert {
  padding: 1em;
  border: 1px solid;
  border-radius: .5em;
  text-align: left;
}
.sof-alert-danger {
  background: #ff979b;
  color: #550509;
}

.sof-login-client-w-image {  }

.sof-table {
  width: 100%;
  & > tbody {
    vertical-align: inherit;
    tr {
      td {
        padding: .5em 1em;
        background: #eeeeee;
        border: 2px solid #e0e0e0;
      }
    }
  }
  & > thead { vertical-align: bottom; font-weight: bold; background: #cccccc; }
}

.sof-form-control {
  display: block;
  width: 100%;
  padding: .5em 1em;
  background-clip: padding-box;
  border: 1px solid;
  border-radius: .2em;
  box-shadow: none;

  &[type="file"] {
    overflow: hidden;
    &:not(:disabled):not([readonly]) { cursor: pointer; }
  }

  &:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
  }

  &:disabled {
    color: #c0c0c0;
    background-color: #e0e0e0;
    border-color: #aaaaaa;
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sof-spinner {
  /* change color here */
  color: #1c4c5b
}

.sof-spinner:before {
  @extend .sof-icon, .sof-icon-loader;
  display: inline-block;
  font-size: 2em;
  margin-right: 1rem;
  animation: rotate 1.2s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.sof-hidden {
  display: none;
}

.sof-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: #999999;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .5em;
}

