/**********
 * COLORS (imported from Sails)
 *********/
:root {
    --formBorder: #63a6e9;
    --lightGray: #ececec;
}

.accordion {
    --bs-accordion-active-bg: rgb(250, 250, 250);
    --bs-accordion-active-color: var(--bs-accordion-color);
}

fieldset.add-to-folder-group {
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
}

.below-nav-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 50px;

    display: flex;
}

body {
    font-family:
        Open Sans,
        Arial,
        sans-serif;
    padding-bottom: 40px;
    visibility: hidden;
}

.breadcrumb {
    margin-top: 10px;
}

.btn {
    border-radius: 0px;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type='file'] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.btn-group.open .dropdown-toggle.dropdownBtn {
    background-color: #003366;
}

.btn-group.open .dropdown-toggle.exchange-secondary {
    box-shadow: none;
}

.burger-icon {
    position: absolute;
    display: inline-block;

    background-image: url(/images/burger-icon.svg);
    background-repeat: no-repeat;
    background-position: center;

    top: 9px;
    right: 16px;

    height: 32px;
    width: 32px;

    cursor: pointer;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.center-text {
    text-align: center;
}

.chart {
    height: 30vw;
}

.container-fluid > .navbar-collapse,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container > .navbar-header {
    margin-left: 0px !important;
}

.container-fluid > .navbar-header.header-left-shift {
    margin-left: -30px !important;
}

.container.info-text h4,
.container.info-text h5,
.container.info-text p,
.container.info-text hr {
    margin: auto;
    width: 600px;
    max-width: 90%;
}

.container.info-text h1 {
    text-align: center;
}

.container.info-text h4 {
    font-size: 18px;
}

.container.info-text h5 {
    margin-top: 10px;
}

.container.info-text hr {
    margin: 20px auto;
}

.content-box {
    min-height: -webkit-min-content;
    display: flex;
    /* to size correctly in IE11
     https://github.com/philipwalton/flexbugs#flexbug-1 */
    flex-shrink: 0;
    flex-basis: auto;
}

.custom-logo-img {
    height: 100%;
}

[data-model='folder'] {
    cursor: pointer;
}

[data-model='folder']:hover,
[data-model='folder']:hover td {
    background: #f5f5f5 !important;
}

.dataTables_wrapper li.paginate_button.active > a {
    background-color: #003366;
}

.definition-box {
    display: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
    height: 90%;
    background: none;
    overflow-y: scroll;
    overflow-x: hidden;

    /* To hide scrollbar in Firefox: https://stackoverflow.com/questions/20997183/how-to-hide-scrollbar-in-firefox */
    scrollbar-width: none;

    /* To hide scrollbar in Edge: https://css-tricks.com/snippets/css/hide-scrollbar-in-edge-ie-1011/ */
    -ms-overflow-style: none;
}

.definition-box::-webkit-scrollbar {
    width: 0;
}

.definition-content {
    width: 90%;
}

.definition-content h3 {
    margin-top: 0;
    font-size: 28px;
    text-align: center;
}

.definition-content img {
    display: block;
    margin: 30px auto;
    width: 30%;
}

.definition-content .long-definition {
    width: 90%;
    margin-left: 5%;
    margin-top: 15px;
    font-size: 18px;
}

.definition-content .short-definition {
    margin: 10px 5px 15px 5px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.definition-link {
    float: right;
}

/* Modified from https://www.w3schools.com/howto/howto_css_overlay.asp */
.definition-overlay {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);

    z-index: 1001;
}

.definition-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: calc(-40vh + 25px) 0 0 -40vw;
    height: 80vh;
    width: 80vw;
    max-width: 90%;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
}

/* Special class for integrating overlays with burger bar */
.definition-wrapper-burger {
    margin: calc(-35vh + 25px) 0 0 -40vw !important;
    height: 70vh !important;
}

.desc-full {
    display: none;
    position: absolute;
    width: 296px;
    padding: 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    text-align: left;
    z-index: 100;
}

.desc-link {
    cursor: pointer;
}

.desc-snippet {
    position: relative;
    min-height: 60px;
    text-align: center;
}

/* for download popups */
.download-container {
    display: flex;
    justify-content: space-around;

    .download-item {
        margin-top: 8px;
        width: 40%;
    }

    .thumbnail-wrapper {
        height: auto;
    }

    .thumbnail {
        flex-direction: column;
    }
}

.dropdown-item {
    display: block;
    padding: 5px 0 5px 20px;
    color: black;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #e0e0e0;
    color: black;
    text-decoration: none;
}

.dropdown-menu {
    width: 500px;
}

.dropdown-toggle {
    border-left-style: none;
    margin-left: 2px;
}

.dropdownBtn {
    display: inline-block;
    margin: 0 10px 3px 0;
}

.dataTables_filter {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ── FancyTable bottom bar ── */
.dt-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

.dt-bottom-bar .dataTables_info {
    white-space: nowrap;
    padding-top: 0;
}

.dt-bottom-bar .dataTables_paginate {
    margin: 0;
}

.dt-bottom-bar .page-item.active .page-link {
    background-color: #003366;
    border-color: #003366;
    color: #fff;
}

.dt-bottom-bar .page-item.disabled .page-link {
    color: #6c757d;
    border-color: #dee2e6;
}

.dt-bottom-bar .page-link {
    color: #003366;
    border-color: #003366;
    cursor: pointer;
}

.dt-bottom-bar .page-link:hover {
    color: #fff;
    background-color: #003366;
    border-color: #003366;
}

.dt-bottom-bar .pagination {
    font-size: 0.8em;
    margin: 0;
}

.edit-col {
    max-width: initial;
    min-width: initial;
    margin: initial;
    margin-bottom: 20px;
}

.editor-frame {
    width: 100%;
    height: calc(100% - 52px);
    margin: 0;
    margin-top: -8px;
    border: 0px;
    position: absolute;
    bottom: 0;
}

.ellipsis-cell {
    width: 1px;
}

.exchange-dropdown-menu {
    margin-top: -9px;
    width: 200px;
}

.exchange-form-creation.form-creation,
form.exchange-form-creation.form-creation {
    background: #e0e0e0;
    background-color: #e0e0e0;
    border: none;
}

.exchange-form-creation
    label:not(.checkbox label, .form-check label, #uploadPrompt) {
    font-weight: 700;
}

.exchange-primary,
.navbar-nav > li > a.exchange-primary {
    background-color: #003366;
    color: white !important;
    border: none;
    border-radius: 10px;
    text-shadow: none;
    transition: 0.2s;
}

.exchange-primary:focus,
.exchange-primary:active {
    background-color: #003366;
    color: white;
    border-top: none;
    border-bottom: none;
    border-left-color: white;
    border-right-color: white;
    transition: 0.2s;
}

.exchange-primary:hover {
    background-color: #003366 !important;
    transform: scale(1.08);
}

.exchange-primary.btn-lg:hover {
    transform: scale(1.04);
}

.exchange-secondary,
.exchange-secondary:focus,
.exchange-secondary:active {
    display: inline-block;
    color: black !important;
    background: #e0e0e0;
    padding: 6px 12px;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    text-shadow: none;
    transition: 0.2s;
}

.exchange-secondary:hover {
    background-color: #e0e0e0 !important;
    transform: scale(1.08);
    text-decoration: none;
}

.fas.fa-ellipsis-v {
    display: inline-block;
    margin-right: 10px;
    color: darkgray;
}

.field-error-msg {
    display: none;
    margin-top: -10px;
    color: red;
}

.float-right-block {
    float: right;
}

.folder-breadcrumb {
    height: 36px;
    padding-left: 0;
    background: 0 0;
}

.folder-breadcrumb-image {
    width: 20px;
    height: auto;
}

.folder-list-image {
    width: 30px;
    height: auto;
}

.font-bold {
    font-weight: bold;
}

.font-normal {
    font-weight: normal;
}

.footer {
    font-size: 11px;
}

.form-creation {
    max-width: 30%;
    min-width: 400px;
    padding: 19px 29px 29px;
    margin: 0 auto 20px;
    margin-top: 20px;
    background-color: var(--lightGray);
    border: 1px solid var(--formBorder);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.form-creation h2 {
    text-align: center;
    margin-top: 0px;
}

.form-creation.diagram {
    text-align: center;

    p {
        margin-top: 10px;
    }
}

.form-creation input[type='text'],
.form-creation input[type='password'] {
    font-size: 16px;
    height: auto;
    margin-bottom: 15px;
    padding: 7px 9px;
}

.form-creation.model {
    text-align: center;

    p {
        margin-top: 10px;
    }
}

.form-group .form-control:last-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

form.inline {
    padding: 19px 29px;
    background-color: var(--lightGray);
    border: 1px solid var(--formBorder);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
}

form.inline > * {
    display: inline;
    width: initial;
}

form.inline > input {
    margin-right: 12px;
}

#forgot-password-field {
    margin: 20px 0;
}

.grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.grid > * {
    width: 330px;
    margin-right: 10px;
}

.grid.control-group fieldset {
    padding-left: 20px;
}

div.header-text {
    width: 80%;
    margin: 30px auto 10px auto;
}

h5.header-text {
    width: 80%;
    margin: auto;
    margin-bottom: 20px;
}

.header-text .info-text {
    text-align: center;
}

.header-text-burger {
    margin-top: 20px !important;
}

h4.info-text,
p.info-text,
hr.info-text,
.info-button-wrapper {
    margin: auto;
    width: 600px;
    max-width: 90%;
}

hr.info-text {
    margin: 20px auto;
}

.info-paragraph {
    font-size: 18px;
}

.info-thumbnail {
    display: block;
    margin: 10px auto 20px auto;
    max-width: 200px;
    max-height: 200px;
}

.input-group {
    width: 500px;
    margin-top: 7px;
}

.input-group .dropdown-toggle.exchange-primary {
    border-radius: 0;
    border-right: 1px solid white;
}

.input-group-btn .btn-group {
    display: flex !important;
}

input.description {
    width: 450px;
}

input.upgrade-code {
    display: inline !important;
    margin-left: 12px;
    width: initial !important;
}

.isee-burger {
    width: 180px;
}

.isee-logo {
    width: 220px;
    height: 100%;
    background-image: url(/images/isee-exchange.svg);
    background-repeat: no-repeat;
    background-position: center;

    margin-right: 15px;
}

.jumbotron.homepage {
    background: #fafafa;
    border-radius: 0px;
    padding: 12px 60px;
    width: 100%;
}

.jumbotron.homepage .panel-group {
    text-align: center;
    width: 60%;
    min-width: 305px;
    margin: 0 auto;
}

.jumbotron.homepage .panel-group > .panel {
    margin: 20px 0;
}

.jumbotron.homepage .panel-group > .panel > .panel-body {
    text-align: left;
}

.jumbotron.homepage .panel-group > .panel > .panel-bottom {
    margin-bottom: 20px;
}

.jumbotron.homepage .panel-group > .panel > .panel-heading {
    font-size: 18px;
    font-weight: bold;
}

.jumbotron.homepage h2 {
    font-size: 1.5em;
    letter-spacing: -1px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: normal;
    color: gray;
}

.jumbotron.homepage .title {
    position: relative;
    min-height: 96px;
    text-align: center;
    margin-bottom: 20px;
}

.keyword {
    font-size: 14px;
}

.keyword,
.definition-link,
.vis-definition-link,
.queryBtn-search input[type='submit'] {
    display: inline-block;
    margin-left: 3px;
    margin-top: 3px;
    padding: 2px 10px;
    background-color: #e0e0e0;
    color: black;
    border-radius: 10px;
    font-weight: normal;
    cursor: pointer;
    transition: 0.2s;
}

.keyword:hover,
.definition-link:hover,
.vis-definition-link:hover {
    transform: scale(1.08);
}

.keyword-group {
    margin-top: 5px;
}

label.bold {
    font-weight: bold;
    font-size: 16px;
}

label.plain {
    font-weight: normal;
}

.left-bar {
    position: fixed;
    top: 50px;
    left: -300px;
    height: calc(100vh - 50px);
    width: 300px;
    background-color: #e5e5e5;

    transition: 0.2s;
    z-index: 10;
}

.left-bar {
    width: 250px;
    left: -250px;
}

.left-bar h3,
.left-bar h4 {
    text-align: center;
}

.left-bar img {
    display: block;
    margin: 20px auto;
    width: 120px;
}

.left-bar p {
    margin: 0 10px;
}

.left-bar-burger {
    top: 55px !important;
    height: calc(100vh - 55px) !important;
}

.left-bar-divider {
    width: 90%;
    border: 1px solid #acacac;
}

.left-bar-wrapper {
    height: inherit;
    overflow-y: scroll;

    /* To hide scrollbar in Firefox: https://stackoverflow.com/questions/20997183/how-to-hide-scrollbar-in-firefox
  scrollbar-width: none;

     To hide scrollbar in Edge: https://css-tricks.com/snippets/css/hide-scrollbar-in-edge-ie-1011/
  -ms-overflow-style: none; */
}

.left-bar-wrapper::-webkit-scrollbar {
    width: 0;
}

.left-header {
    margin-left: 0 !important;
    padding: 20px 0;
}

.left-menu-icon {
    display: none;

    background-image: url(/images/left-menu.svg);
    background-repeat: no-repeat;
    background-position: center;

    height: 10px;
    width: 10px;
    padding: 18px 18px;

    margin-right: 35px;
    margin-top: 8px;

    float: left;

    cursor: pointer;

    transition: 0.2s;
}

#link-bar {
    position: static;
    flex: 0 0 250px;
    height: 100%;
}

#link-bar .left-bar-wrapper h3 {
    margin-top: 30px;
}

#link-bar .left-bar-wrapper a {
    text-decoration: none;
}

.link-bar-entry-expand,
.link-bar-entry-no-expand {
    width: 100%;
    padding: 10px 0 10px 12%;
    color: rgb(51, 51, 51);
    cursor: pointer;
}

.link-bar-entry-expand:hover,
.link-bar-entry-no-expand:hover {
    background: #acacac;
}

.link-bar-entry-expand.active {
    background: #acacac;
}

.link-bar-expansion {
    display: none;
    position: absolute;
    left: 250px;
    background: #acacac;
    color: rgb(51, 51, 51);
    /* Mostly the same shadow as Bootstrap navbar */
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);

    text-decoration: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    z-index: 1000;
}

.link-bar-expansion a,
.link-bar-expansion-mobile a {
    display: block;
    width: 220px;
    padding: 10px 0 10px 12%;
    color: rgb(51, 51, 51);
    text-decoration: none;
}

.link-bar-expansion a:hover,
.link-bar-expansion-mobile a:hover {
    background: #999999;
}

.link-bar-expansion a:hover:first-child,
.link-bar-expansion-mobile a:hover:first-child {
    border-radius: 0 6px 0 0;
}

.link-bar-expansion a:hover:last-child,
.link-bar-expansion-mobile a:hover:last-child {
    border-radius: 0 0 6px 0;
}

.link-bar-expansion-mobile a {
    padding-left: 40px;
}

.link-bar-expansion-mobile {
    display: none;
}

.list-group-item > input {
    margin-right: 6px;
}

.logo-img-clickable {
    width: 250px;
    cursor: pointer;
}

.logo-img-isee {
    width: 220px;
    cursor: pointer;
}

.main-header-burger {
    float: none !important;
}

.model-download.btn-success {
    margin: 6px 0;
}

.model-inline-link {
    cursor: pointer;
}

.myuploads-form-creation,
form.myuploads-form-creation {
    max-width: initial;
    min-width: initial;
}

.nav > li > a {
    padding: 6px 12px;
}

.nav.professional > li > a:not(.username):hover:before,
.nav.professional > li.active:not(.username) > a:before {
    border-color: #007a5e;
}

.nav-link-brand {
    color: #003366;
}

.navbar-brand {
    color: #003366 !important;
}

.navbar-brand.custom-logo {
    padding: 5px;
}

.navbar-btn {
    margin-left: 8px;
}

.navbar-collapse-inner {
    padding: 12px;
}

.navbar-default .navbar-nav > li > a {
    color: #337ab7 !important;
}

.navbar-default .navbar-nav > li > a:focus {
    background-color: #003366;
    color: white !important;
}

.navbar-default .navbar-nav.professional > li > a {
    color: #007a5e !important;
}

.navbar-fixed-top {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    border-bottom: none;
}

.navbar-right-burger {
    float: none !important;
    margin: auto !important;
    text-align: center;
}

.new-folder-wrapper {
    margin-bottom: 15px;
    /*margin-top: -57.25px;*/
}

.no-hover:hover {
    background: rgb(229, 229, 229);
    cursor: auto;
}

.non-bar-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 10px 0 20px 0;

    overflow-y: auto;
}

#options-toggle {
    display: none;
}

.overlay-x {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 16px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.panel-title {
    margin: auto;
    max-width: 250px;
}

.preview-url {
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
    font-size: 14px;
}

.producer-option {
    color: black;
    border-radius: 10px;
    text-shadow: none;
    outline: none;
    box-shadow: none;
    transition: 0.2s;
}

.producer-option:hover {
    color: black;
    transform: scale(1.08);
}

.producer-option.btn-danger,
.producer-option.btn-danger:hover,
.producer-option.btn-danger:focus,
.producer-option.btn-danger:active {
    color: black;
    background-color: #f2d6d5;
    border-color: #f2d6d5;
    box-shadow: none;
}

.producer-option.btn-primary,
.producer-option.btn-primary:hover,
.producer-option.btn-primary:focus,
.producer-option.btn-primary:active {
    color: black;
    background-color: #d5dfe8;
    border-color: #d5dfe8;
    box-shadow: none;
}

.producer-option.btn-success,
.producer-option.btn-success:hover,
.producer-option.btn-success:focus,
.producer-option.btn-success:active {
    color: black;
    background-color: #deeade;
    border-color: #deeade;
    box-shadow: none;
}

.producer-option.btn-warning,
.producer-option.btn-warning:hover,
.producer-option.btn-warning:focus,
.producer-option.btn-warning:active {
    color: black;
    background-color: #f4e3cd;
    border-color: #f4e3cd;
    box-shadow: none;
}

.queryBtn-search {
    display: inline-block;
}

.queryBtn-search input[type='submit'] {
    border: none;
}

.rank-hidden {
    display: none;
}

.result-info {
    margin-top: 10px;
    height: 158px;
    max-height: 158px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

#search {
    float: left;
}

#search .dropdown-toggle-split {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

#search > .input-group {
    margin-top: 0px;
}

#search [type='submit'] {
    border-right: 1px solid white;
    margin-right: 1px;
}

.search-result .panel-title {
    margin-bottom: 5px;
    text-align: center;
    font-size: 21px;
}

select#folder,
select#category {
    padding: 5.5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* spinner for assemblies directory */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 2s linear infinite;
}

.stella-online-color {
    color: hsl(166, 100%, 24%);
}

.stella-online-label {
    font-weight: bold;
}

.stella-online-logo {
    width: 220px;
    background-image: url(/images/stella-online-exchange.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.stella-professional-color {
    color: hsl(228, 63%, 51%);
}

.stella-professional-logo {
    width: 270px;
    background-image: url(/images/stella-professional-exchange.svg);
    background-repeat: no-repeat;
    background-position: center;
}

/* ── FancyTable cell sizing ── */
table.fancy th,
table.fancy td {
    max-width: 175px;
    white-space: normal;
    word-wrap: break-word;
}

/* ── FancyTable sort icons (mirrors DataTables sort-arrow rules) ── */
table.fancy thead > tr > th.sorting,
table.fancy thead > tr > th.sorting_asc,
table.fancy thead > tr > th.sorting_desc,
table.fancy thead > tr > td.sorting,
table.fancy thead > tr > td.sorting_asc,
table.fancy thead > tr > td.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 26px;
}

table.fancy thead > tr > th.sorting:before,
table.fancy thead > tr > th.sorting:after,
table.fancy thead > tr > th.sorting_asc:before,
table.fancy thead > tr > th.sorting_asc:after,
table.fancy thead > tr > th.sorting_desc:before,
table.fancy thead > tr > th.sorting_desc:after,
table.fancy thead > tr > td.sorting:before,
table.fancy thead > tr > td.sorting:after,
table.fancy thead > tr > td.sorting_asc:before,
table.fancy thead > tr > td.sorting_asc:after,
table.fancy thead > tr > td.sorting_desc:before,
table.fancy thead > tr > td.sorting_desc:after {
    position: absolute;
    display: block;
    opacity: 0.125;
    right: 10px;
    line-height: 9px;
    font-size: 0.8em;
}

table.fancy thead > tr > th.sorting:before,
table.fancy thead > tr > th.sorting_asc:before,
table.fancy thead > tr > th.sorting_desc:before,
table.fancy thead > tr > td.sorting:before,
table.fancy thead > tr > td.sorting_asc:before,
table.fancy thead > tr > td.sorting_desc:before {
    bottom: 52%;
    content: '▲';
}

table.fancy thead > tr > th.sorting:after,
table.fancy thead > tr > th.sorting_asc:after,
table.fancy thead > tr > th.sorting_desc:after,
table.fancy thead > tr > td.sorting:after,
table.fancy thead > tr > td.sorting_asc:after,
table.fancy thead > tr > td.sorting_desc:after {
    top: 52%;
    content: '▼';
}

table.fancy thead > tr > th.sorting_asc:before,
table.fancy thead > tr > td.sorting_asc:before {
    opacity: 0.6;
}

table.fancy thead > tr > th.sorting_desc:after,
table.fancy thead > tr > td.sorting_desc:after {
    opacity: 0.6;
}

table.fancy thead > tr > th:active,
table.fancy thead > tr > td:active {
    outline: none;
}

/* for nested assembly tables */
.table.copy-me {
    display: none;
}

.table.nested {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.table.nested td,
.table.nested th {
    border: none;
    background-color: rgb(247, 247, 247);
}

.table.nested tbody tr {
    border-top: 1px solid rgb(221, 221, 221);
}

table.nested > thead > tr {
    background: #e6ebee;
}

.table.nested,
tr.row-container,
tr.row-container::after {
    background: #f7f7f7;
}

.text-capitalize-item {
    text-transform: capitalize;
}

.thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
    margin-bottom: 0px !important;
}

.thumbnail > h3 {
    width: 100%;
    text-align: center;
}

.thumbnail > img {
    height: auto;
    max-height: 128px;
    width: auto;
    max-width: 195px;
}

/* For result boxes on directory search/profile page */
.thumbnail-wrapper {
    margin: 15px auto;
    max-width: 70%;
    height: 138px;
}

.title-number {
    position: absolute;
    display: inline-block;
    top: 4px;
    left: 4px;
    font-size: 16px;
    font-weight: bold;
}

ul,
ol {
    list-style-type: none;
}

.upload-btn {
    border-radius: 10px;
    transition: 0.2s;
}

.upload-btn:hover {
    transform: scale(1.03);
}

.upload-btn.btn-danger,
.upload-btn.btn-danger:hover,
.upload-btn.btn-danger:focus,
.upload-btn.btn-danger:active {
    background-color: #d9534f;
    border-color: #d9534f;
    box-shadow: none;
}

.upload-btn.btn-primary,
.upload-btn.btn-primary:hover,
.upload-btn.btn-primary:focus,
.upload-btn.btn-primary:active {
    background-color: #337ab7;
    border-color: #337ab7;
    box-shadow: none;
}

.upload-btn.btn-success,
.upload-btn.btn-success:hover,
.upload-btn.btn-success:focus,
.upload-btn.btn-success:active {
    background-color: #5cb85c;
    border-color: #5cb85c;
    box-shadow: none;
}

.upload-btn.btn-warning,
.upload-btn.btn-warning:hover,
.upload-btn.btn-warning:focus,
.upload-btn.btn-warning:active {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    box-shadow: none;
}

.upper-border-burger {
    display: block;
    float: none !important;
    margin: auto !important;
    width: 100%;
    padding-top: 5px;
    border-top: 1px solid #dfdfdf;
    text-align: center;
}

.upper-border-burger ul {
    width: 100%;
}

.upper-border-burger ul > li {
    float: none;
}

h4.upgrade-code {
    display: inline;
}

.uppercase {
    text-transform: uppercase;
}

.wide {
    width: calc(100% - 70px) !important;
}

.wide-form-creation {
    max-width: 60%;
}

.wide-form-creation div {
    margin: 10px 0;
}

/* ── Media queries: largest breakpoint first ── */

@media (min-width: 1540px) {
    .container {
        width: 1510px;
    }
}

@media (max-width: 1200px) {
    .input-group {
        width: 400px;
    }

    #search {
        width: 400px;
    }
}

@media (max-width: 991px) {
    .btn.navbar-btn {
        width: 125.4px;
        display: inline-block;
        margin-top: 4px;
    }

    .definition-content h3 {
        font-size: 24px;
    }

    .definition-content img {
        margin: 20px auto;
        width: 40%;
    }

    .definition-content .long-definition {
        font-size: 16px;
    }

    .definition-content .short-definition,
    .definition-content .long-definition {
        font-size: 16px;
    }

    .definition-wrapper {
        margin: calc(-35vh + 57px) 0 0 -40vw;
        height: 70vh;
    }

    .form-creation.exchange-form-creation:not(
            .container .exchange-form-creation
        ) {
        margin-top: 80px;
    }

    .input-group {
        width: 710px;
        max-width: 90vw;
    }

    #link-bar {
        display: none;
    }

    .navbar-header {
        display: inline-block;
    }

    .navbar-nav {
        display: inline-block;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .navbar-right {
        float: right;
    }

    .nav > li {
        display: inline-block;
    }

    #options-toggle {
        display: inline-block;
    }

    #search {
        margin: auto;
        margin-top: 10px;
        float: none;
        width: 710px;
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    .dataTables_filter {
        margin-top: 10px;
    }

    .dataTables_wrapper {
        max-width: 100%;
    }

    .dt-table-scroll {
        overflow-x: auto;
    }

    .grid > * {
        width: 100%;
        max-width: 325px;
        margin-right: 10px;
    }

    .jumbotron {
        padding: 12px 12px;
    }

    .navbar-brand {
        margin-left: -15px;
    }

    .new-folder-wrapper {
        text-align: center;
    }

    .new-folder-wrapper a {
        margin-bottom: 10px;
    }

    #search {
        margin-top: 0;
    }

    .table.fancy {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 630px) {
    .dropdown-menu.dropdown-menu-right {
        width: 400px;
        margin-right: -80px;
    }
}

@media (max-width: 608px) {
    .definition-content h3 {
        font-size: 19px;
    }

    .definition-content img {
        margin: 10px auto;
        width: 40%;
    }

    .definition-content .long-definition {
        font-size: 13px;
    }

    .definition-content .short-definition,
    .definition-content .long-definition {
        font-size: 13px;
    }

    .definition-wrapper {
        margin: calc(-30vh + 97px) 0 0 -40vw;
        height: 60vh;
    }

    .form-creation.exchange-form-creation:not(
            .container .exchange-form-creation
        ) {
        margin-top: 130px;
    }

    li > .btn {
        width: 200px;
        display: block;
    }

    .navbar .container {
        text-align: center;
    }

    .navbar .container > .navbar-header,
    .navbar .container-fluid > .navbar-header {
        display: inline-block;
    }

    .navbar-nav {
        float: none;
        display: block;
        margin: auto;
        text-align: center;
    }

    .navbar-right {
        float: none;
        margin: auto;
    }

    .nav > li {
        margin: auto;
    }
}

@media (max-width: 520px) {
    .dropdown-menu.dropdown-menu-right {
        width: 300px;
    }

    .panel-title {
        max-width: 170px;
    }
}
