/*
 * Responsive vertical tabs for Bootstrap 4
 *
 * Copyright (c) 2020 Tromgy (tromgy@yahoo.com)
 *
 * This stylesheet is what is fed into the node-scss compiler
 *
 * This software is supplied under the terms of the MIT License, a
 * copy of which should be located in the distribution where this
 * file was obtained (LICENSE.txt). A copy of the license may also be
 * found online at https://opensource.org/licenses/MIT.
 *
 */
/*
 * Responsive vertical tabs for Bootstrap 4
 *
 * Copyright (c) 2020 Tromgy (tromgy@yahoo.com)
 *
 * Custom variable definitions. You can change these variables
 * to suit your needs without messing with the main stylesheet.
 *
 * This software is supplied under the terms of the MIT License, a
 * copy of which should be located in the distribution where this
 * file was obtained (LICENSE.txt). A copy of the license may also be
 * found online at https://opensource.org/licenses/MIT.
 *
 */
/*
 * Responsive vertical tabs for Bootstrap 4
 *
 * Main stylesheet. @import "custom-variables.sccss" before
 * this file to compile into final CSS
 *
 * Copyright (c) 2020 Tromgy (tromgy@yahoo.com)
 *
 * This software is supplied under the terms of the MIT License, a
 * copy of which should be located in the distribution where this
 * file was obtained (LICENSE.txt). A copy of the license may also be
 * found online at https://opensource.org/licenses/MIT.
 *
 */
.left-tabs.sideways-tabs,
.right-tabs.sideways-tabs {
  border: none;
  margin-bottom: 0;
  margin-top: 5rem;
  position: relative;
}

.left-tabs.nav-tabs,
.right-tabs.nav-tabs,
.left-tabs.sideways-tabs,
.right-tabs.sideways-tabs {
  flex-direction: column;
  height: 100%;
}

.left-tabs.nav-tabs {
  border-bottom: none;
  border-right: 1px solid #cbd5e1;
}

.left-tabs .nav-link {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0;
  margin-right: -5px;
  text-align: right;
}

.left-tabs .nav-link:hover {
  color: #3e766d;
  fill: #3e766d;
}

.left-tabs .nav-link.active {
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  border-right: 5px solid #3e766d;
  border-top: 1px solid transparent;
}

.left-tabs.sideways-tabs {
  border-right: none;
  left: -3.2rem;
}

@media (min-width: 26em) and (max-width: 48em) {
  .left-tabs.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    flex-direction: row;
    left: auto;
    margin-top: auto;
    min-width: 100%;
  }
  .left-tabs .nav-link {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    margin-bottom: -1px;
    margin-right: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 8rem;
  }
  .left-tabs .nav-link.nav-link:hover {
    border-bottom-color: transparent;
    border-right-color: #dee2e6;
  }
  .left-tabs .nav-link.active {
    border-bottom-color: transparent;
    border-left-color: #dee2e6;
    border-right-color: #dee2e6;
    border-top-color: #dee2e6;
  }
  .sideways-tabs.left-tabs .nav-item,
  .sideways-tabs.right-tabs .nav-item {
    height: auto;
    margin-bottom: 0;
    transform: none;
    width: auto;
  }
  .right-tabs.nav-tabs {
    border-left: none;
    border-right: none;
    border-top: 1px solid #dee2e6;
    flex-direction: row;
    margin-top: auto;
    min-width: 100%;
    right: auto;
  }
  .sideways-tabs.right-tabs .nav-link,
  .right-tabs .nav-link {
    border-bottom-color: transparent;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-left: 0;
    margin-top: -1px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 8rem;
  }
  .right-tabs .nav-link:hover {
    border-bottom-color: #e9ecef;
    border-left-color: #dee2e6;
    border-top-color: transparent;
  }
  .sideways-tabs.right-tabs .nav-link.active,
  .right-tabs .nav-link.active {
    border-bottom-color: #dee2e6;
    border-left-color: #dee2e6;
    border-right-color: #dee2e6;
    border-top-color: transparent;
  }
}

@media (max-width: 26em) {
  .left-tabs.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    flex-direction: row;
    left: auto;
    margin-top: auto;
    min-width: 100%;
    padding-bottom: 0.25rem;
  }
  .right-tabs.nav-tabs {
    border-left: none;
    border-right: none;
    border-top: 1px solid #dee2e6;
    flex-direction: row;
    margin-top: auto;
    min-width: 100%;
    padding-top: 0.25rem;
    right: auto;
  }
  .sideways-tabs.left-tabs .nav-item,
  .sideways-tabs.right-tabs .nav-item {
    height: auto;
    margin-bottom: 0;
    transform: none;
    width: auto;
  }
  .sideways-tabs.left-tabs .nav-link,
  .sideways-tabs.right-tabs .nav-link,
  .nav-tabs .nav-link {
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 0.25rem;
    border-right-color: transparent;
    border-top-color: transparent;
    margin: 0.25rem;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 8rem;
  }
  .sideways-tabs.nav-tabs .nav-link:hover,
  .nav-tabs .nav-link:hover {
    border: 1px solid #e9ecef;
    border-bottom-color: #e9ecef;
    border-left-color: #e9ecef;
    border-right-color: #e9ecef;
    border-top-color: #e9ecef;
  }
  .sideways-tabs.nav-tabs .nav-link.active,
  .left-tabs .nav-link.active,
  .right-tabs .nav-link.active {
    border-bottom-color: #dee2e6;
    border-left-color: #dee2e6;
    border-right-color: #dee2e6;
    border-top-color: #dee2e6;
  }
}

.tab-content {
  padding: 0;
}
