/* Styles for the /tools page. Loaded by the /tools route only. */

#tools-container {
    display: flex;
}

/* Facebook tab: the search-type sections and filter blocks (shown one at a time by tools.js) */
.fb_search_category,
#fb-filter-keywords,
#fb-filter-dates,
#fb-final-buttons,
#fb-current-filters {
    margin: 10px;
}

/* Result tables (Email Validate, Text->Selectors, File Tool, GeoIP): header filter dropdown and footer line (fillTable/tableFilter in tools.js) */
/* cell borders and paddings as the previous table renderer drew them */
.toolsTable {
    border: 1px solid var(--ix-border);
    border-collapse: collapse;
    margin-bottom: 0;
    color: var(--ix-text);
    table-layout: fixed;
    width: 100%;
}

.toolsTable thead th,
.toolsTable tbody td {
    border-top: none;
    border-bottom: 1px solid var(--ix-border);
    border-left: 1px solid var(--ix-border);
    padding: 2px 2px 2px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolsTable thead th {
    padding: 5px;
    line-height: 14px;
    overflow: visible;
}

.toolsTable thead th .toolsTableHeaderText {
    display: block;
    white-space: nowrap;
}

/* the arrow comes first in the header cell and floats right, so the label's block shortens beside it */
.toolsTable thead th .dropdown-filter-dropdown {
    float: right;
    margin-left: 2px;
    line-height: 14px;
}

.toolsTable thead th .arrow-down {
    margin-left: 2px;
    margin-right: 2px;
}

.toolsTable thead th:first-child,
.toolsTable tbody td:first-child {
    border-left: none;
}

.toolsTable tbody tr:last-child td {
    border-bottom: none;
}

.toolsTableEmpty {
    text-align: center;
}

.toolsTableFooter {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 10px 0;
}

.toolsTableFooter .toolsTableDownload {
    padding-right: 5px;
    color: var(--ix-text);
}

/* Error line under the File Tool / PDF Image Extraction download links (filled by tools.js) */
.toolsError {
    text-align: center;
    color: var(--ix-error);
}

/* Twitter tab: latitude/longitude/distance fields, drawn like a form-control */
.twitterGeoInput {
    font-size: 1rem;
    padding: .375rem .75rem;
    border: 1px solid var(--ix-border-form);
    width: 95%;
}

.dropdown-filter-dropdown {
    float: right;
}

.dropdown-filter-icon:hover {
    cursor: pointer;
}

.checkbox-container {
    max-height: 400px;
    overflow-y: scroll;
}

.dropdown-filter-content {
    position: absolute;
    background-color: var(--ix-bg-raised);
    width: 200px;
    box-shadow: 0px 8px 16px 0px var(--ix-shadow);
    z-index: 1;
    padding: 5px;
    transform: translateX(-180px);
}

.dropdown-filter-content div {
    margin: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-filter-content .checkbox-container div {
    overflow: hidden;
}

.dropdown-filter-content div.dropdown-filter-search {
    margin-bottom: 10px;
    margin-top: 10px;
}

.dropdown-filter-content div.dropdown-filter-sort {
    padding-top: 5px;
    padding-bottom: 5px;
}

.dropdown-filter-content div.dropdown-filter-sort:hover {
    background-color: var(--ix-bg-active);
    cursor: pointer;
}

.dropdown-filter-content div.dropdown-filter-sort span {
    margin: 5px;
    color: var(--ix-text);
}

.arrow-down {
    border: solid var(--ix-text);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-right: 5px;
    margin-left: 5px;
    transform: translateY(-50%) rotate(45deg);
}

/* Page frame, tab menu and upload zones (moved from custom1.css) */
#toolSubmenu {
  width: 250px;
  padding: 20px;
  list-style: none;
}

#toolSubmenu li {
  width: 100%;
}

.uploadZone {
  position: relative;
  width: 300px;
  height: 80px;
  border: 2px dashed var(--ix-link);
}

.uploadZone.state-over {
  background-color: var(--ix-bg-filter);
}

.uploadZone.state-over::after {
  content: 'Drop here to upload';
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background-color: var(--ix-border-news);
  color: var(--ix-text-inverse);
  z-index: 2;
  margin: 0 auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.uploadZone label {
  display: flex;
  margin: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  word-break: break-all;
}

.toolsPage {
  width: calc(100% - 250px);
  padding: 20px;
}

.toolsPage pre {
  position: relative;
  min-height: 100px;
  overflow-y: auto;
  margin-bottom: 0;
  white-space: pre-wrap;
}

.centerMsg {
  position: absolute;
  margin: 0 auto;
  top: 50%;
  width: 100%;
  text-align: center;
}

#emailVerifyTable .emailHeader {
  width: 25%;
  overflow: auto;
}

#emailVerifyTable .domainHeader {
  width: 15%;
  overflow: auto;
}

#emailVerifyTable .tldHeader {
  width: 10%;
  overflow: auto;
}

#emailVerifyTable .userHeader {
  width: 15%;
  overflow: auto;
}

#emailVerifyTable .statusHeader {
  width: 15%;
  overflow: auto;
}

#emailVerifyTable .infoHeader {
  width: 20%;
  overflow: auto;
}

#geoIPTable .ipHeader {
  width: 10%;
}

#geoIPTable .cityHeader {
  width: 10%;
}

#geoIPTable .countryHeader {
  width: 10%;
}

#geoIPTable .countryCodeHeader {
  width: 5%;
}

#geoIPTable .timezoneHeader {
  width: 15%;
}

#geoIPTable .latitudeHeader {
  width: 15%;
}

#geoIPTable .longitudeHeader {
  width: 15%;
}

#geoIPTable .ASHeader {
  width: 20%;
}

.nav2 > .nav-link.active {
  border-top: 1px solid var(--ix-bg-active);
  border-left: 1px solid var(--ix-bg-active);
  border-right: 1px solid var(--ix-bg-active);
  border-bottom: 1px solid var(--ix-bg-active);
  color: var(--ix-text);
  border-radius: 0;
  background: none;
}

.nav-pills .nav-link {
  border-radius: 0;
}

/* Search rows: one text input with its Search button, the option checkboxes below and the per-engine forms */
.tool-search {
    padding: 10px 0;
}

.tool-search-tight {
    padding-bottom: 0;
}

.tool-search .form-control,
.tool-search .btn,
.tool-btn {
    font-size: 1rem;
}

.tool-btn-spaced {
    font-size: 1rem;
    margin-bottom: 10px;
}

.tool-option {
    margin: 10px 0;
    display: inline-block;
}

.tool-option-160 { width: 160px; }
.tool-option-200 { width: 200px; }
.tool-option-240 { width: 240px; }
.tool-option-250 { width: 250px; }

.tool-option .custom-control-label {
    width: 100%;
}

.tool-engine {
    display: inline-block;
}

.selectAll,
.selectAll11,
.selectAll12 {
    margin: 10px 0;
}

.tool-btn-compact {
    padding: 0 12px;
}

.tool-btn-60 {
    width: 60px;
}

.tool-btn-36 {
    height: 36px;
    margin-bottom: 0;
}

.tool-btn-200 {
    width: 200px;
}

.tool-divider {
    margin-top: 0;
}

/* File Tool: supported-file-types table */
.tg {
    border-collapse: collapse;
    border-spacing: 0;
}

.tg td {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 5px;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    word-break: normal;
    border-color: var(--ix-text);
}

.tg th {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    padding: 10px 5px;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    word-break: normal;
    border-color: var(--ix-text);
}

.tg .tg-cly1 {
    text-align: left;
    vertical-align: middle
}

.tg .tg-baqh {
    text-align: center;
    vertical-align: top
}

.tg .tg-0lax {
    text-align: left;
    vertical-align: top
}
