/*
  @project: monepi/administrateur
  @create: 8 Oct 2020
  @description: Main stylesheet
*/

/* ----------------------------------------------------------------------------- == SUMMARY */
/*
  0. Import
  1. Global
  2. Overlay
  3. Opacity
  4. Typo
*/

/* ----------------------------------------------------------------------------- == Import */
@import url(./utils/fonts.css);
@import url(./utils/variables.css);
@import url(./utils/extend-BS5.css);
@import url(./utils/extend-nav-BS5.css);
@import url(./utils/extend-table-BS5.css);

@import url(./Block/Box.css);
@import url(./Block/Form.css);
@import url(./Block/Nav.css);
@import url(./Block/Product.css);

/* ----------------------------------------------------------------------------- == [BS5] */

table.datatable {
    font-size: .75rem;
    border-collapse: collapse;

    .form-select, .form-control {
        font-size: .75rem;
    }

    .btn {
        --bs-btn-font-size : .8rem;
    }

    legend {
        font-size: calc((1.275rem + .3vw) * .8);
    }
}

.duration-input {
    text-align: right;
}

/* ----------------------------------------------------------------------------- == Global */

body.responsive {
  min-width: 320px;
}

hr.separ {
  border-color: var(--white);
  border-width: 1px;
  opacity: 0.5;
  width: 50px;
  margin: 1rem auto;
}

hr.dark {
  border-color: var(--grey-600);
}

a {
  text-decoration: underline;
  transition: opacity 150ms;
  transition-timing-function: var(--ease-in);
}

a.btn {
  text-decoration: inherit;
}

a.light {
  color: var(--white);
}

a.conceal {
  color: currentColor;
}

a:hover {
  opacity: 0.75;
}

.fancy-widget {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

@media (max-width: 768px) {
  .fancy-widget {
    display: none;
  }
}

.password-eye,
.password-eye-off {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.password-eye:hover,
.password-eye-off:hover {
  cursor: pointer;
  color: #ff4754;
}

input,
textarea,
select {
  border: initial;
  color: initial;
  background: initial;
  margin-bottom: initial;
  margin-top: initial;
  padding: initial;
  vertical-align: initial;
  width:initial;
}

label {
  font-weight: initial;
}

/* Force bootstrap label to be aligned to middle, cause conflict with reset.css in some case 
label.col-form-label {
  padding-top: calc(.375rem + 1px) !important;
  padding-bottom: calc(.375rem + 1px) !important;
}
*/


/* ----------------------------------------------------------------------------- == SVG colors */

.svg-white {
  fill: #fff !important;
  color: #fff !important;
}

.svg-grey {
  fill: #717171 !important;
  color: #717171 !important;
}

.svg-pink {
  fill: var(--color-pink);
  color: var(--color-pink);
}

.svg-blue {
  fill: var(--color-blue);
  color: var(--color-blue);
}


/* ----------------------------------------------------------------------------- == SVG sizes */
.svg-xlarge {
  width: 40px;
  height: 40px;
}

.svg-large {
  width: 34px;
  height: 34px;
}

.svg-medium {
  width: 30px;
  height: 30px;
}

.svg-small {
  width: 24px;
  height: 24px;
}

.svg-tiny {
  width: 20px;
  height: 20px;
}

.svg-mini {
  width: 16px;
  height: 16px;
}

.modal .close svg {
  height: 20px;
  width: 20px;
  color: #797373;
}

/* ----------------------------------------------------------------------------- == Typo color */
.color-blue {
  color: var(--blue-800) !important;
}

.color-red {
  color: var(--red-700) !important;
}

/* ----------------------------------------------------------------------------- == Background color */
.light-bleu {
  background-color: #e8f1f1;
}

.pointer {
  cursor: pointer;
}

/* -------------------------------------------- == User top navbar */
.navbar.navbar-user {
  background: #fff;
  border-radius: 0 0 10px 10px;
}

.navbar-user .navbar-btn-return svg {
  color: var(--green-600);
}

.navbar-user .navbar-content {
  color: var(--green-600);
  font-size: 1.5rem;
}

.monepi-spinner {
  position: fixed;
  z-index: 65000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .6);

  .spinner-border {
      width: 3rem;
      height: 3rem;
  }
}

/* par défaut, la liste d'aide est limitée à 200px. (trop petit pour les listes d'articles par exemple) */
.select2-results > ul {
    max-height: 50vh !important;
}