@use '_color.scss' as *;
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,600,700,800");

@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 100;
  src: url("../fonts/Avenir-Light.ttf");
}


@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Avenir-Roman.ttf");
}

@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Avenir-Heavy.ttf");
}

@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/Avenir-Black.ttf");
}

body,
input,
button,
textarea {
  font-family: "Avenir";
  color: $neutral-7;
  margin: 0px;
}

a,
div,
input,
svg,
button {
  transition: all .3s;
}

a {
  text-decoration: none;
  color: unset;
}

p {
  margin-block-start: 0em;
  margin-block-end: 0em;
}

hr {
  margin: 0px;
  border-top: none;
  border-color: #D4D7DB;
}

.text-bold {
  font-weight: 700;
}
.text-regular {
  font-weight: 400;
}
.text-capitalize {
  text-transform: capitalize;
}


// BOX SIZING
.box-border {
  box-sizing: border-box;
}
.box-content {
  box-sizing: content-box;
}

// DISPLAY
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.inlie-table {
  display: inline-table;
}
.table-caption {
  display: table-caption;
}
.table-cell {
  display: table-cell;
}
.table-column {
  display: table-column;
}
.table-column-group {
  display: table-column-group;
}
.table-footer-group {
  display: table-footer-group;
}
.table-header-group {
  display: table-header-group;
}
.table-row-group {
  display: table-row-group;
}
.table-row {
  display: table-row;
}
.flow-root {
  display: flow-root;
}
.grid {
  display: grid;
}
.inline-grid {
  display: inline-grid;
}
.contents {
  display: contents;
}
.list-item {
  display: list-item;
}
.hidden {
  display: none;
}

// FLOATS
.float-right {
  float: right;
}
.float-left {
  float: left;
}
.float-none {
  float: none;
}

// CLEAR
.clear-left {
  clear: left;
}
.clear-right {
  clear: right;
}
.clear-both {
  clear: both;
}
.clear-none {
  clear: none;
}

// OBJECT FIT
.object-contain {
  object-fit: contain;
}
.object-cover {
  object-fit: cover;
}

// OBJECT POSITION
.object-bottom {
  object-position: bottom;
}
.object-center {
  object-position: center;
}
.object-left {
  object-position: left;
}
.object-left-bottom {
  object-position: left bottom;
}
.object-left-top {
  object-position: left top;
}
.object-right {
  object-position: right;
}
.object-right-bottom {
  object-position: right bottom;
}
.object-right-top {
  object-position: right top;
}
.object-top {
  object-position: top;
}

// OVERFLOW
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-clip {
  overflow: clip;
}
.overflow-visible {
  overflow: visible;
}
.overflow-scroll {
  overflow: scroll;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
.overflow-x-clip {
  overflow-x: clip;
}
.overflow-y-clip {
  overflow-y: clip;
}
.overflow-x-visible {
  overflow-x: visible;
}
.overflow-y-visible {
  overflow-y: visible;
}
.overflow-x-scroll {
  overflow-x: scroll;
}
.overflow-y-scroll {
  overflow-y: scroll;
}

// POSITION
.static {
  position: static;
}
.relative {
  position: relative
}
.absolute {
  position: absolute
}
.fixed {
  position: fixed
}
.sticky {
  position: sticky;
}

// TOP / RIGHT / BOTTOM / LEFT
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.inset-x-0 {
  left: 0px;
  right: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
$sizes: 50;
@for $i from 0 through $sizes {
  .top-#{$i} {
    top: #{$i}px;
  }
}
@for $i from 0 through $sizes {
  .left-#{$i} {
    left: #{$i}px;
  }
}
@for $i from 0 through $sizes {
  .right-#{$i} {
    right: #{$i}px;
  }
}
@for $i from 0 through $sizes {
  .bottom-#{$i} {
    bottom: #{$i}px;
  }
}

// VISIBILITY
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}

// Z-INDEX
$indexs: 10;
@for $i from 0 through $indexs {
  .z-#{$i} {
    z-index: #{$i};
  }
}
.z-auto {
  z-index: auto;
}

// FLEX BASIS
$basis: 10;
@for $i from 0 through $basis {
  .basis-#{$i} {
    flex-basis: #{$i * 0.25}rem;
  }
}

// FLEX GAP
$gaps: 100;
@for $i from 0 through $gaps {
  .gap-#{$i} {
    gap: #{$i}px;
  }
}
// FLEX DIRECTION
.flex-row {
  flex-direction: row;
}
.flex-row-reverse {
  flex-direction: row-reverse;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}

// FLEX WRAP
.flex-wrap {
  flex-wrap: wrap;
}
.flex-wrap-reverse {
  flex-wrap: wrap-reverse;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

// FLEX
.flex-1 {
  flex: 1 1 0%;
}
.flex-auto {
  flex: 1 1 auto;
}
.flex-initial {
  flex: 0 1 auto;
}
.flex-none {
  flex: none;
}

// FLEX GROW 
.grow {
  flex-grow: 1;
}
.grow-0 {
  flex-grow: 0;
}

// FLEX SHRINK
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}

// ORDER
$order: 10;
@for $i from 0 through $order {
  .order-#{$i} {
    order: #{$i};
  }
}
.order-first {
  order: -9999;
}
.order-last {
  order: 9999;
}
.order-none {
  order: 0;
}

// JUSTIFY CONNTENT
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-evenly {
  justify-content: space-evenly;
}

// JUSTIFY ITEMS
.justify-items-start {
  justify-items: start;
}
.justify-items-end {
  justify-items: end;
}
.justify-items-center {
  justify-items: center;
}
.justify-items-stretch {
  justify-items: stretch;
}

// JUSTIFY SELF
.justify-self-auto {
  justify-self: auto;
}
.justify-self-start {
  justify-self: start;
}
.justify-self-end {
  justify-self: end;
}
.justify-self-center {
  justify-self: center;
}
.justify-self-stretch {
  justify-self: stretch;
}

// ALIGN CONTENT
.content-center {
  align-content: center;
}
.content-start {
  align-content: start;
}
.content-end {
  align-content: end;
}
.content-between {
  align-content: space-between;
}
.content-around {
  align-content: space-around;
}
.content-evenly {
  align-content: space-evenly;
}

// ALIGN ITEMS
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.items-stretch {
  align-items: stretch;
}

// ALIGN SELF
.self-auto {
  align-self: auto;
}
.self-start {
  align-self: flex-start;
}
.self-end {
  align-self: flex-end;
}
.self-center {
  align-self: center;
}
.self-stretch {
  align-self: stretch;
}
.self-baseline {
  align-self: baseline;
}

// PLACE CONTENT
.content-center	 {
  align-content: center;
}
.content-start {
  align-content: flex-start;
}
.content-end {
  align-content: flex-end;
}
.content-between {
  align-content: space-between;
}
.content-around {
  align-content: space-around;
}
.content-evenly {
  align-content: space-evenly;
}

// PADDING & MARGIN
$maxSize: 50;
@for $i from 0 through $maxSize {
  .p-#{$i} {
    padding: #{$i * 4}px;
  }
  .px-#{$i} {
    padding-left: #{$i * 4}px;
    padding-right: #{$i * 4}px;
  }
  .py-#{$i} {
    padding-top: #{$i * 4}px;
    padding-bottom: #{$i * 4}px;
  }
  .pt-#{$i} {
    padding-top: #{$i * 4}px;
  }
  .pr-#{$i} {
    padding-right: #{$i * 4}px;
  }
  .pl-#{$i} {
    padding-left: #{$i * 4}px;
  }
  .pb-#{$i} {
    padding-bottom: #{$i * 4}px;
  }
  
  .m-#{$i} {
    margin: #{$i * 4}px;
  }
  .mx-#{$i} {
    margin-left: #{$i * 4}px;
    margin-right: #{$i * 4}px;
  }
  .my-#{$i} {
    margin-top: #{$i * 4}px;
    margin-bottom: #{$i * 4}px;
  }
  .mt-#{$i} {
    margin-top: #{$i * 4}px;
  }
  .mr-#{$i} {
    margin-right: #{$i * 4}px;
  }
  .ml-#{$i} {
    margin-left: #{$i * 4}px;
  }
  .mb-#{$i} {
    margin-bottom: #{$i * 4}px;
  }
}

// WIDTH & HEIGHT
$maxSize: 50;
@for $i from 0 through $maxSize {
  .w-#{$i} {
    width: #{$i * 4}px; // multiple 0.25 rem or 4px
  }
  .h-#{$i} {
    height: #{$i * 4}px; // multiple 0.25 rem or 4px
  }
}
.w-250 {
  width: 250px;
}
.w-300 {
  width: 300px;
}
.w-350 {
  width: 350px;
}
.w-400 {
  width: 400px;
}
.w-500 {
  width: 500px;
}
.w-600 {
  width: 600px;
}
.w-700 {
  width: 700px;
}
.w-800 {
  width: 800px;
}
.w-auto {
  width: auto;
}
.w-1\/2 {
  width: 50%;
}
.w-1\/3 {
  width: 33.333333%;
}
.w-2\/3 {
  width: 66.666667%;
}
.w-1\/4 {
  width: 25%;
}
.w-2\/4 {
  width: 50%;
}
.w-3\/4 {
  width: 75%;
}
.w-1\/5 {
  width: 20%;
}
.w-2\/5 {
  width: 40%;
}
.w-3\/5 {
  width: 60%;
}
.w-4\/5 {
  width: 80%;
}
.w-1\/6 {
  width: 16.666667%;
}
.w-2\/6 {
  width: 33.333333%;
}
.w-3\/6 {
  width: 50%;
}
.w-4\/6 {
  width: 66.666667%;
}
.w-5\/6 {
  width: 83.333333%;
}
.w-1\/12 {
  width: 8.333333%;
}
.w-2\/12 {
  width: 16.666667%;
}
.w-3\/12 {
  width: 25%;
}
.w-4\/12 {
  width: 33.333333%;
}
.w-5\/12 {
  width: 41.666667%;
}
.w-6\/12 {
  width: 50%;
}
.w-7\/12 {
  width: 58.333333%;
}
.w-8\/12 {
  width: 66.666667%;
}
.w-9\/12 {
  width: 75%;
}
.w-10\/12 {
  width: 83.333333%;
}
.w-11\/12 {
  width: 91.666667%;
}
.w-full {
  width: 100%;
}
.w-screen {
  width: 100vw;
}
.w-min {
  width: min-content;
}
.w-max {
  width: max-content;
}
.w-fit {
  width: fit-content;
}
.h-screen {
  height: 100vh;
}

// MIN-WIDTH
$maxSize: 50;
@for $i from 0 through $maxSize {
  .min-w-#{$i} {
    min-width: #{$i * 4}px;
  }
}
.min-w-0 {
  min-width: 0px;
}
.min-w-full {
  min-width: 100%;
}
.min-w-min {
  min-width: min-content;
}
.min-w-max {
  min-width: max-content;
}
.min-w-fit {
  min-width: fit-content;
}

// MAX-WIDTH
$maxSize: 50;
@for $i from 0 through $maxSize {
  .max-w-#{$i} {
    max-width: #{$i * 4}px;
  }
}
.max-w-0 {
  max-width: 0px;
}
.max-w-full {
  max-width: 100%;
}
.max-w-min {
  max-width: min-content;
}
.max-w-max {
  max-width: max-content;
}
.max-w-fit {
  max-width: fit-content;
}

// MIN-HEIGHT
$maxSize: 50;
@for $i from 0 through $maxSize {
  .min-h-#{$i} {
    min-height: #{$i * 4}px;
  }
}
.min-h-0 {
  min-height: 0px;
}
.min-h-full {
  min-height: 100%;
}
.min-h-min {
  min-height: min-content;
}
.min-h-max {
  min-height: max-content;
}
.min-h-fit {
  min-height: fit-content;
}

// MAX-HEIGHT
$maxSize: 50;
@for $i from 0 through $maxSize {
  .max-h-#{$i} {
    max-height: #{$i * 4}px;
  }
}
.max-h-0 {
  max-height: 0px;
}
.max-h-full {
  max-height: 100%;
}
.max-h-min {
  max-height: min-content;
}
.max-h-max {
  max-height: max-content;
}
.max-h-fit {
  max-height: fit-content;
}

// OPACITY
.opacity-0{
  opacity: 0;
}
.opacity-1{
  opacity: 1;
}

// TYPOGRAPHY
$maxSize: 50;
@for $i from 0 through $maxSize {
  .font-#{$i} {
    font-size: #{$i}px;
  }
}
.italic {
  font-style: italic;
}
.not-italic {
  font-style: normal;
}
.font-thin {
  font-weight: 100;
}
.font-light {
  font-weight: 300;
}
.font-medium {
  font-weight: 500;
}
.font-bold {
  font-weight: 700;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}

$lineH: 10;
@for $i from 0 through $lineH {
  .leading-#{$i} {
    line-height: #{$i * 4}px;
  }
}

.list-none {
  list-style-type: none;
}
.list-disc {
  list-style-type: disc;
}
.list-decimal {
  list-style-type: decimal;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}
.text-start {
  text-align: start;
}
.text-end {
  text-align: end;
}
.underline {
  text-decoration-line: underline;
}
.overline {
  text-decoration-line: overline;
}
.line-through {
  text-decoration-line: line-through;
}
.no-underline {
  text-decoration-line: none;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}
.normal-case {
  text-transform: none;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-ellipsis {
  text-overflow: ellipsis;
}
.text-clip {
  text-overflow: clip;
}
.break-normal {
  overflow-wrap: normal;
  word-break: normal;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.list-none {
  list-style-type: none;
}
.list-disc {
  list-style-type: disc;
}
.list-decimal {
  list-style-type: decimal;
}

.bg-white {
  background-color: $white-1;
}

// CURSOR
.cursor-auto {
  cursor: auto;
}
.cursor-default {
  cursor: default;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-wait {
  cursor: wait;
}
.cursor-text {
  cursor: text;
}
.cursor-move {
  cursor: move;
}
.cursor-help {
  cursor: help;
}
.cursor-not-allowed {
  cursor: not-allowed;
}

// TOOLTIP
.library-tooltip {
  position: relative;
  z-index: 99;
}
.library-tooltip:before,
.library-tooltip:after {
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate3d(0,-10px,0);
  transition: all .15s ease-in-out;
}
.library-tooltip:after {
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0,0,0,.75); 
  border-left: 6px solid transparent;
  content: "";
  height: 0;
  top: 20px;
  left: 20px;
  width: 0;
}
.library-tooltip:before {
  background: rgba(0,0,0,.75);
  border-radius: 2px;
  color: #fff;
  content: attr(data-title);
  font-size: 14px;
  padding: 6px 10px;
  top: 26px;
  max-width: 300px;
  width: max-content;
  font-weight: 300;
}
.library-tooltip:hover::after,
.library-tooltip:hover:before {
  opacity: 1;
  transform: translate3d(0,0,0);
}

// BOS-SHADOW
.box-shadow {
  box-shadow: 0px 0px 5px -2px rgba(0,0,0,1);
  -webkit-box-shadow: 0px 0px 5px -2px rgba(0,0,0,1);
  -moz-box-shadow: 0px 0px 5px -2px rgba(0,0,0,1);
}

// BADGE
.tstatus {
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;

  &-grey {
    background: #b3b3b4;
    color: #FFFFFF;
  }

  &-yellow {
    background: #ffa000;
    color: #FFFFFF;
  }

  &-blue {
    background: #3e7dc0;
    color: #FFFFFF;
  }

  &-red {
    background: #d32f2f;
    color: #FFFFFF;
  }

  &-green {
    background: #43A047;
    color: #FFFFFF;
  }
}

// Define a mixin to generate border styles
@mixin border($width, $color) {
  border: #{$width} solid #{$color};
}

.border-1-DDDDDD {
  @include border(1px, #DDDDDD);
}

.border-2-AAAAAA {
  @include border(2px, #AAAAAA);
}

.bg-white {
  background-color: #FFFFFF;
}