﻿

/* .search-form-control { border-radius: .25rem; } */

/*  
    ====================
        Table
    ====================
*/

.table {
  color: #515365;
  border-collapse: separate;
  border-spacing: 0;

  th .form-check, td .form-check {
    margin-right: 0;
    display: inline-flex;
    margin-bottom: 0;
  }

  .form-check-input {
    background-color: #bfc9d4;
    border-color: #bfc9d4;
  }
  
  thead {
    color: #515365;
    letter-spacing: 1px;

    tr {
      th {
        text-align: left;
        color: white;
        border: none;
        background: #000;
        padding: 10px 21px 10px 21px;
        vertical-align: middle;
        font-weight: 500;
      }

      &.table-row-hidden {
        border: none;
      }
    }
  }

  &:not(.dataTable) thead tr th {
    &:first-child {
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
    }

    &:last-child {
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
    }

    &.checkbox-area {
      width: 5%;
    }
  }
  
  tbody {
    border: none;

    tr {
      th {
        border: none;
      }

      td {
        border: none;
        padding: 10px 21px 10px 21px;
        vertical-align: middle;
        letter-spacing: normal;
        white-space: nowrap;
        font-weight: 400;
      }
    }
  }

  > :not(:first-child) {
    border: none;
  }

  &:not(.dataTable) tbody tr td svg {
    width: 17px;
    height: 17px;
    vertical-align: text-top;
    color: $primary;
    stroke-width: 1.5;
  }

  tbody tr td .table-inner-text {
    margin-left: 5px;
  }

  > tbody {
    > tr > td {
      .usr-img-frame {
        background-color: #e0e6ed;
        padding: 2px;
        width: 38px;
        height: 38px;

        img {
          width: 38px;
          margin: 0;
        }
      }

      .progress {
        width: 135px;
        height: 6px;
        margin: auto 0;
      }
    }

    .media {}

    .action-btns {
      .action-btn {
        svg {
          width: 20px;
          height: 20px;
          color: #888ea8;
          stroke-width: 2;
        }

        &:hover svg {
          color: #bfc9d4;
        }
      }

      .btn-delete {
        svg {
          color: #f8538d;
        }

        &:hover svg {
          color: $danger;
        }
      }
    }
  }
}

/*

    Hover

*/

.table-hover > tbody > tr:hover td {
  --bs-table-accent-bg:transparent;
  color: #515365;
  background-color: #ebedf2;
  cursor: pointer;

  &:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  &:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

/* 
    Hover and Striped
*/

.table-striped {
  &.table-hover > tbody > tr:hover td {
    background-color: #ebedf2;
  }

  &:not(.dataTable) > tbody > tr:nth-of-type(odd) td {
    --bs-table-accent-bg:transparent;
    color: $dark;
    background-color: #f1f2f3;

    &:first-child {
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
    }

    &:last-child {
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
    }
  }
}

/* 

    Striped

*/

/* 
    Striped and Bordered
*/

.table {
    width:100%;
  &:not(.dataTable) {

    &.table-bordered {
      &.table-striped > tbody > tr {
        &:nth-of-type(odd) td {
          &:first-child {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
          }
    
          &:last-child {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
          }
        }
    
        &:first-child td {
          &:first-child {
            border-top-left-radius: 0;
          }
    
          &:last-child {
            border-top-right-radius: 0;
          }
        }
    
        &:last-child td {
          &:first-child {
            border-bottom-left-radius: 10px;
          }
    
          &:last-child {
            border-bottom-right-radius: 10px;
          }
        }
      }
    
      thead tr th {
        border: 1px solid #ebedf2;
        background: transparent;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
      }
    
      > tbody > tr {
        td {
          border: 1px solid #ebedf2;
        }
    
        &:last-child td {
          &:first-child {
            border-bottom-left-radius: 10px;
          }
    
          &:last-child {
            border-bottom-right-radius: 10px;
          }
        }
      }
    
      &.table-hover > tbody > tr:hover {
        td {
          &:first-child {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
          }
    
          &:last-child {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
          }
        }
    
        &:first-child td {
          &:first-child {
            border-top-left-radius: 0;
          }
    
          &:last-child {
            border-top-right-radius: 0;
          }
        }
    
        &:last-child td {
          &:first-child {
            border-bottom-left-radius: 10px;
          }
    
          &:last-child {
            border-bottom-right-radius: 10px;
          }
        }
      }
    }

  }

}

/* 

    Bordered

*/

/* 
    Bordered and Hover
*/

.statbox .widget-content {
  &:before, &:after {
    display: table;
    content: "";
    line-height: 0;
    clear: both;
  }
}

.nav-tabs > li > a {
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  border-radius: 0 !important;
}

.nav-link {
  color: $dark;

  &:hover {
    color: #515365;

    svg {
      color: #515365;
    }
  }
}

.btn-toolbar {
  margin-left: 0px;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
  }
}

.spin {
  -webkit-animation: spin 2s infinite linear;
  animation: spin 2s infinite linear;
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.toast-primary {
  background: $primary;
}

.toast-header {
  background: $primary;
  color: #fff;
  border-bottom: 1px solid rgba(33, 150, 243, 0.3411764706);

  .meta-time {
    color: #f1f2f3;
  }

  .btn-close {
    color: #f1f2f3;
    opacity: 1;
    text-shadow: none;
    background: none;
    padding: 0;
    margin-top: -2px;
  }
}

.toast-body {
  padding: 16px 12px;
  color: #fff;
}

/*  
    ==========================
        Background Colors  
    ==========================
*/

/*  
    Default  
*/

.bg-primary {
  background-color: #4361ee !important;
  border-color: $primary;
  color: #fff;
}

.bg-success {
  background-color: #00ab55 !important;
  border-color: #00ab55;
  color: #fff;
}

.bg-info {
  background-color: #2196f3 !important;
  border-color: $info;
  color: #fff;
}

.bg-warning {
  background-color: #e2a03f !important;
  border-color: $warning;
  color: #fff;
}

.bg-danger {
  background-color: #e7515a !important;
  border-color: $danger;
  color: #fff;
}

.bg-secondary {
  background-color: #805dca !important;
  border-color: $secondary;
  color: #fff;
}

.bg-dark {
  background-color: #3b3f5c !important;
  border-color: $dark;
  color: #fff;
}

/*  
    Light Background  
*/

.bg-light-primary {
  background-color: #eceffe !important;
  border-color: #eceffe;
  color: $info;
}

.bg-light-success {
  background-color: #ddf5f0 !important;
  border-color: #ddf5f0;
  color: #00ab55;
}

.bg-light-info {
  background-color: #e6f4ff !important;
  border-color: #e6f4ff;
  color: $info;
}

.bg-light-warning {
  background-color: #fcf5e9 !important;
  border-color: #fcf5e9;
  color: $warning;
}

.bg-light-danger {
  background-color: #fbeced !important;
  border-color: #fbeced;
  color: $danger;
}

.bg-light-secondary {
  background-color: #f2eafa !important;
  border-color: #f2eafa;
  color: $secondary;
}

.bg-light-dark {
  background-color: #eaeaec;
  border-color: #eaeaec;
  color: #fff;
}

/*  
    Progress Bar
*/

.progress {
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  background-color: #ebedf2;
  margin-bottom: 1.25rem;
  height: 16px;
  box-shadow: none;

  &.progress-bar-stack .progress-bar:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .progress-bar {
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 69, 255, 0.15), 0 8px 16px rgba(0, 69, 255, 0.2);
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 100;
  }

  &:not(.progress-bar-stack) .progress-bar {
    border-radius: 16px;
  }
}

.progress-sm {
  height: 4px;
}

.progress-md {
  height: 10px;
}

.progress-lg {
  height: 20px;
}

.progress-xl {
  height: 25px;
}

.progress-striped .progress-bar {
  background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}

.progress {
  .progress-title {
    display: flex;
    justify-content: space-between;
    padding: 15px;

    span {
      align-self: center;
    }
  }

  .progress-bar {
    &.bg-gradient-primary {
      background-color: $primary;
      background: linear-gradient(to right, #0081ff 0%, #0045ff 100%);
    }

    &.bg-gradient-info {
      background-color: $primary;
      background-image: linear-gradient(to right, #04befe 0%, #4481eb 100%);
    }

    &.bg-gradient-success {
      background-color: $primary;
      background-image: linear-gradient(to right, #3cba92 0%, #0ba360 100%);
    }

    &.bg-gradient-warning {
      background-color: $primary;
      background-image: linear-gradient(to right, #f09819 0%, #ff5858 100%);
    }

    &.bg-gradient-secondary {
      background-color: $primary;
      background-image: linear-gradient(to right, #7579ff 0%, #b224ef 100%);
    }

    &.bg-gradient-danger {
      background-color: $primary;
      background-image: linear-gradient(to right, #d09693 0%, #c71d6f 100%);
    }

    &.bg-gradient-dark {
      background-color: $primary;
      background-image: linear-gradient(to right, #2b5876 0%, #4e4376 100%);
    }
  }
}

/* 
    =====================
        BreadCrumbs
    =====================
*/

.page-meta {
  margin-top: 25px;

  .breadcrumb .breadcrumb-item {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;

    a {
      vertical-align: inherit;
    }

    &.active {
      font-weight: 500;
    }
  }
}

.breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
}

.breadcrumb-wrapper-content {
  background-color: #f1f2f3;
  padding: 13px 23px;
  border-radius: 8px;
  box-shadow: 0 0 40px 0 rgb(94 92 154 / 6%);
}

.breadcrumb .breadcrumb-item {
  a {
    color: #888ea8;
    vertical-align: text-bottom;
    vertical-align: text-top;
  }

  &.active a {
    color: #515365;
  }

  a {
    svg {
      width: 19px;
      height: 19px;
      vertical-align: sub;
      stroke-width: 1.4px;
    }

    .inner-text {
      margin-left: 10px;
    }
  }

  span {
    vertical-align: text-bottom;
  }

  &.active {
    color: $dark;
    font-weight: 600;
  }
}

/*
    Style Two
*/

.breadcrumb-style-two .breadcrumb-item + .breadcrumb-item::before {
  content: '.';
  position: relative;
  top: -9px;
  font-size: 21px;
  height: 7px;
}

/*
    Style Three
*/

.breadcrumb-style-three .breadcrumb-item + .breadcrumb-item::before {
  content: '-';
}

/*
    Style Four
*/

.breadcrumb-style-four .breadcrumb-item + .breadcrumb-item::before {
  content: '|';
}

/*
    Style Five
*/

.breadcrumb-style-five .breadcrumb-item + .breadcrumb-item::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-right' style='color: %23888ea8;'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  color: #6E6B7B;
  margin-right: 0.6rem;
  background-size: 12px;
  height: 20px;
}

.br-0 {
  border-radius: 0 !important;
}

.br-4 {
  border-radius: 4px !important;
}

.br-6 {
  border-radius: 6px !important;
}

.br-8 {
  border-radius: 8px !important;
}

.br-30 {
  border-radius: 30px !important;
}

.br-50 {
  border-radius: 50px !important;
}

.br-left-30 {
  border-top-left-radius: 30px !important;
  border-bottom-left-radius: 30px !important;
}

.br-right-30 {
  border-top-right-radius: 30px !important;
  border-bottom-right-radius: 30px !important;
}

.bx-top-6 {
  border-top-right-radius: 6px !important;
  border-top-left-radius: 6px !important;
}

.bx-bottom-6 {
  border-bottom-right-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
}

/*      Badge Custom      */

.badge.counter {
  position: absolute;
  z-index: 2;
  right: 0;
  top: -10px;
  font-weight: 600;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  padding: 2px 0px;
  font-size: 12px;
}

/*-------text-colors------*/

.text-primary {
  color: #4361ee !important;
}

.text-success {
  color: #00ab55 !important;
}

.text-info {
  color: #2196f3 !important;
}

.text-danger {
  color: #e7515a !important;
}

.text-warning {
  color: #e2a03f !important;
}

.text-secondary {
  color: #805dca !important;
}

.text-dark {
  color: #3b3f5c !important;
}

.text-muted {
  color: #888ea8 !important;
}

.text-white {
  color: #fff !important;
}

.text-black {
  color: #000 !important;
}

/*-----border main------*/

.border {
  border: 1px solid !important;
}

.border-bottom {
  border-bottom: 1px solid !important;
}

.border-top {
  border-top: 1px solid !important;
}

.border-right {
  border-right: 1px solid !important;
}

.border-left {
  border-left: 1px solid !important;
}

.border-primary {
  border-color: #4361ee !important;
}

.border-info {
  border-color: #2196f3 !important;
}

.border-warning {
  border-color: #e2a03f !important;
}

.border-success {
  border-color: #00ab55 !important;
}

.border-danger {
  border-color: #e7515a !important;
}

.border-secondary {
  border-color: #805dca !important;
}

.border-dark {
  border-color: #3b3f5c !important;
}

/*-----border style------*/

.border-dotted {
  border-style: dotted !important;
}

.border-dashed {
  border-style: dashed !important;
}

.border-solid {
  border-style: solid !important;
}

.border-double {
  border-style: double !important;
}

/*-----border width------*/

.border-width-1px {
  border-width: 1px !important;
}

.border-width-2px {
  border-width: 2px !important;
}

.border-width-3px {
  border-width: 3px !important;
}

.border-width-4px {
  border-width: 4px !important;
}

.border-width-5px {
  border-width: 5px !important;
}

.border-width-6px {
  border-width: 6px !important;
}

/*-----transform-position------*/

.position-absolute {
  position: absolute;
}

.position-static {
  position: static;
}

.position-fixed {
  position: fixed;
}

.position-inherit {
  position: inherit;
}

.position-initial {
  position: initial;
}

.position-relative {
  position: relative;
}