*
{
    box-sizing: border-box;
}

html
{
    /* Apply it there so that all items will inherit this property, unless
     * explicitly defined */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

hr
{
    background-color: #CCCCCC;
    height: 1px;
    margin: 50px auto;
    width: 80%;
}

textarea
{
    resize: vertical;
}

.hiddenObj
{
    display: none;
}

.tbl
{
    display: table;
}

.tbl-row
{
    display: table-row;
}

.tbl-cell
{
    display: table-cell;
    padding: 5px;
    vertical-align: middle;
}

#mainTbl .tbl-cell span
{
    cursor: pointer;
    left: 10px;
}

.tbl-cell p
{
    margin: 0;
}

.msgBox
{
    position: absolute;
    width: 90%;
    margin: 20px auto;
    top: 0;
    left: 5%;
    text-align: center;
}

.errMsg
{
    /*background-color: red;*/
}

/* --- */

#loginForm, #lostPasswordForm
{
    width: 500px;
    margin: 100px auto;
    padding: 20px;
    position: relative;

    background-color: #D5D5D5;
}

#loginForm input, #loginForm label,
#lostPasswordForm input, #lostPasswordForm label
{
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}

#loginForm input, #lostPasswordForm input
{
    margin-top: 5px;
    margin-bottom: 20px;
    height: 35px;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #3299DB;
}


#loginForm input[type=submit], #lostPasswordForm input[type=submit]
{
    margin-bottom: 0;
    width: 180px;
    /*background-color: #3299DB;*/
}

#loginForm a
{
    position: absolute;
    right: 20px;
    bottom: 20px;
    line-height: 30px;
}

/* --- */

.logoutLink
{
    position: absolute;
    top: 10px;
    right: 10px;
}

h2
{
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

#searchForDeviceForm
{
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 25px;
}

#addDeviceFormBtn
{
    width: 100%;
}

#addDeviceFormBtn button
{
    width: 200px;
    margin: 0 auto;
    display: block;
}

#mainTbl
{
    width: 80%;
    margin: 15px auto;
}

#mainTbl .tbl-row.deviceDataRow:hover
{
    background-color: #CCCCCC;
    cursor: pointer;
}

.tbl-row.table-title
{
    background-color: #3299DB;
}

.tbl-row.table-title p
{
    margin: 0;
    font-weight: 600;
}

.tbl-row.table-title p, .tbl-row.table-title a, .tbl-row.table-title span
{
    height: 20px;
    line-height: 20px;
    vertical-align: top;
    padding: 0;
}

.tbl-row.table-title a
{
    color: #333333;
}

.tbl-row.table-title a:hover
{
    text-decoration: none;
}

.tbl.stats-summary-tbl
{
    /*table-layout: fixed;*/
    width: 100%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 50px;
}

.tbl.stats-summary-tbl p
{
    font-weight: bold;
}

/* --- */

#displayDeviceData_area
{
    width: 600px;
    margin: 50px auto;
}

#displayDeviceData_area .tbl-row:nth-child(even)
{
    background-color: #D5D5D5;
}

#displayDeviceData_area .tbl-row .tbl-cell:nth-child(1)
{
    width: 35%;
    font-weight: 600;
    text-align: right;
    padding-right: 15px;
}

#displayDeviceData_area .tbl-row .tbl-cell:nth-child(2)
{
    width: 90%;
    text-align: left;
    margin: 2px;
    padding-left: 15px;
}

#displayDeviceData_area .tbl-row .tbl-cell:nth-child(2).brand-select-dropdown
{
    padding-left: 0;
}

#backButton
{
    width: 100%;
}

#backButton button.btn
{
    width: 100px;
    margin-left: 50%;
    transform: translateX(-50%);
}

#displayDeviceData_area .tbl-cell.no-cell-display
{
    display: inline-block;
    border-width: 1px;
    padding: 0;
}

#displayDeviceData_area .tbl-cell.no-cell-display > button
{
    width: 100%;
    height: 100%;
    text-align: left;
}

/* -- list components -- */

.brand-select-dropdown button span.caret
{
    position: absolute;
    top: 15px;
    right: 5px;
}

.custom-dropdown-menu
{
    padding: 0;
    width: 100%;
}

.custom-dropdown-menu li.brand-item
{
    padding-left: 15px;
    height: 25px;
    line-height: 25px;
}

.custom-dropdown-menu li.brand-item:hover
{
    background-color: #DFDFDF;
    cursor: pointer;
}

/* NOTE: We use ":not(.overlined-li-item)" to make the CSS transition occur
 * only when the class ".overlined-li-item" is removed, not added
 */
.custom-dropdown-menu li.brand-item.effect-lock:not(.overlined-li-item)
{
    transition: background-color 0.5s linear;
}

.custom-dropdown-menu li.brand-item.effect-lock.overlined-li-item
{
    background-color: #BFBFBF;
}

.custom-dropdown-menu .search-widget
{
    position: relative;
}

.custom-dropdown-menu #delete-search-str
{
    position: absolute;
    right: 5px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #DFDFDF;
    padding: 4px;
    padding-top: 1px;   /* WTF... */
}

.custom-dropdown-menu #delete-search-str span.glyphicon
{
    font-size: 10px;
    top: 0;
    left: 0;
    padding: 2px;
}

