/**
 * UniFi Device Search tool
 *
 * Copyright © 2024, Art of WiFi, info@artofwifi.net
 *
 * This CSS file is part of the UniFi Device Search tool and is subject to the MIT license that is bundled
 * with this package in the file LICENSE.md.
 *
 * Unauthorized copying of this file via any medium is strictly prohibited
 * Proprietary and confidential
 */
body {
    padding-top: 4.5rem;
    font-size: 14px;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/**
 * fix for DataTables issues with browsers on OSX,
 * needs to be combined with the 100% width tag in the table element
 *
 * NOTE:
 * can cause issues with long content in columns in other browsers
 */
table {
    table-layout: fixed;
}

/**
 * fix for DataTables issues with vertical scoll always showing
 */
.dataTables_scrollBody {
    overflow-y: hidden !important;
}

/**
 * make menus scrollable
 */
.scrollable-menu {
    height: auto;
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/**
 * the back-to-top button
 */
.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display:none;
}

.results_badge {
    font-size: 1rem;
}

/**
 * the copy to clipboard button
 */
#copy_to_clipboard_button {
     position: absolute;
     top: 0;
     right: 0;
}

th, td {
    white-space: nowrap;
}

/**
 * make the dropdown menu scrollable
 */
@media (max-width: 2000px) {
    .scrollable-menu {
        overflow-y: auto;
        max-height: 600px;
        height: auto;
    }
}

@media (max-width: 800px) {
    .scrollable-menu {
        overflow-y: auto;
        max-height: 300px;
        height: auto;
    }
}

/**
 * styling for the nanobar
 */
.nanobar {
    z-index: 999 !important;
}

#tab_content .nanobar .bar {
    background: #00A0DF;
}

/**
 * change font weight for filters
 */
tfoot th {
    font-weight: normal;
}

/**
 * styling for clickable element
 */
.clickable{
    cursor: pointer;
}

/**
 * fix for unreadable dropdowns when using Darkly theme
 */
.select2-dropdown {
    color:#333;
}

/**
 * shorten strings that are too long
 */
.abbreviate {
    text-align: left;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}
