/* globals */

body,html{
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  /* font: 76%/1.5em Helvetica, Verdana, Arial, sans-serif; */
  font: 76%/1.5em Verdana, Arial, Helvetica, sans-serif;
  background: white url("../images/top-gradient.gif") repeat-x;
  margin: 0 0 80px;
  padding: 0;
  text-align: center;
}

table {
  font-size: 100%;
  height: 1px; /* https://limebrains.com/blog/2021-03-02T13:00-heigh-100-inside-table-td/ */
}

td {
  /* font-size: 12px; */
}

td.smaller{
  font-size: 0.8em;
}


/* layout */
#wrapper {
  text-align: left;
  margin: 0px 0px 0px 10px;
  white-space: nowrap;
}

#left {
  width: 170px;
  margin-right: 20px;
  display: inline-block !important;
  zoom: 1;
  *display: inline;
}

#main {
  margin: 0;
  padding: 0;
  display: inline-block !important;
  vertical-align: top;
  zoom: 1;
  width: 84%;
  *display: inline;
}


/*
#wrapper{
  text-align: left;
  width: 100% !important;
  margin: 0px 0px 0px 10px;
  background: white; url("/images/top-gradient.gif") left top repeat-x;

}*/

#hdr_outer{
  /* width: 800px; */
  border-bottom: 1px solid black;
  margin: 0 0 10px;
}

#loginwrapper {
  text-align: center;
  margin: 100px 0 0;
}

/*
#left{
  width: 170px;
  float: left;
  margin-right: 20px;
}
*/
#emptyleft{
  width: 150px;
  background: none;
}
/*
#main{
  float: left;
  margin: 0;
  padding: 0;
}
*/
#topnav{
  margin: 0 0 0 195px;
  padding: 8px 20px;
  font-size: 0.85em;
  line-height: 24px;
  vertical-align: middle;
  border-top: 1px solid black;
}

#footer{
  clear: both;
  text-align: left;
  padding-top: 15px;
  padding-left: 120px;

}

#hdr_outer {
  margin: 10px 0 0;
}

#collectorlogo{
  float: left;
  margin: 0 30px 0 10px;
}

#collectorname{
  margin: 10px 0 20px 10px;
}

/* Menu styles */
.menu-section-label {
  margin-bottom: 0.5rem;
}

.menu-section {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item a,
.menu-item a:visited {
  color: #000;
  text-decoration: none;
}

.menu-item a:hover,
.menu-item a.current-menu-item {
  color: #22a5d9;
  font-weight: 700;
}

/* alerts */
.success {
  color: #0c5da1;
  font-weight: 700;
}

.success::before {
  content: "\2713";
  display: inline-block;
  margin-right: 8px;
  color: #28a10c;
}

.alert {
  color: #bd2126;
  font-weight: 700;
}

.warning,
.error {
  color: #dc3545;
  font-weight: 700;
}

/* typography */
h1 {
  font-size: 1.8em; /* site name */
}

h2 {
  font-size: 1.5em; /* section name */
}

.page-title {}

.page-title-detail {
  font-size: 0.6em;
}

h3 {
  font-size: 1.2em; /* page name */
}

h4 {
  font-size: 1.0em; /* page section */
}

hr {
  margin: 15px 25px 7px 2px;
  border: 2px solid #ccc;
}

/* links */
a:link {
  color: black;
}

a:hover {
  color: #aaa;
}
a:visited {
  color: #777;
}

.inputmedium {
  width: 300px;
}

.inputwide {
  width: 475px;
}

.areabig {
  width: 475px;
  height: 130px;

}

#pagination a {
  margin-left: 5px;
}

b#current {
  margin-left: 5px;
}


/* modifiers */
.floatleft {
    float: left;
}

.floatright {
    float: right;
}

.clearboth {
    clear: both;
}

.fieldmedium {
    width: 180px;
}

.fieldnarrow {
    width: 90px;
}

.fieldshort {
    width: 45px;
}



/* begin table */

table {
  border-spacing: 1px;
  background-color: #E7E7E7;
  color: #444;
}

.page-detail-table {
  margin-bottom: 24px;
}

td, th {
  vertical-align: top;
}

thead th {
  text-align: center;
  background: #F5F5F5;
  color: #888;
  border: 1px solid #FFF;
  text-transform: uppercase;
  word-wrap: break-word;
}

tbody th {
  font-weight: bold;
}

tbody tr    {
  background-color: #FFF;
  text-align: left;
}
tbody tr.odd   {
  background: #f9f9f9;
  border-top: 1px solid #FFF;
}

/* Use to hide rows, like 'Job Number' in the job/add view */
tbody tr.row-hidden {
  display: none;
}

tbody th a:link, tbody th a:visited{
  color: #96D030;
  background: url(http: //www.tripledogs.com/images/layout.gif) no-repeat;
  padding: 3px 0px 0px 18px;
}

tbody th a:hover{
  color: #ccc;
}

tbody tr td {
  background: #FFF;
  border: 1px solid #FFF;
  word-wrap: break-word;
}

table.tablesorter td {
  padding: 6px;
  font-size: 12px;
  transition: all 1s;
}

table.tablesorter td:has( div.editable ) {
  padding: 0;
  background: #f5f6f7;
}

table.tablesorter td:has( div.editing ),
table.tablesorter td:has( div.editable ):hover {
  padding: 0;
  background: #c4c5c6;
}

table.tablesorter th {
  vertical-align: middle;
}

tbody tr.odd td{
  background: #f9f9f9;
  border-top: 1px solid #FFF;
}

table td a:link, table td a:visited {
  color: #1975D7;
  text-decoration: none;
}

table td a:hover {
  color: #ccc;
  border-bottom: 2px solid #8FD5FF;
  text-decoration: none ;
}

tbody td a[href="http: //www.tripledogs.com"] {
  margin: 0 auto;
  height: 15px;
  background: url(http: //www.tripledogs.com/images/ok.gif) no-repeat;
  border-bottom: 0;
  padding: 3px 0px 0px 18px;
  font-weight: bold;
  color: #FF8601;
}

table a[title^="Download"] {
  background: url(http: //www.tripledogs.com/images/down.gif) no-repeat center;
  padding: 20px 0px 0px 15px;
}

tfoot th, tfoot td {
  background-color: #E7E7E7; padding: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
  border-bottom: 3px solid #CCC;
  border-top: 1px solid #DFDFDF;
}

table.noborder{
  border: 0px;
}

table.noborder tr{
  border: 0px;
}

table.noborder td{
  border: 0px;
}

.editable {
  cursor: pointer;
  height: 100%;
}

.editable,
.editing {
  padding: 6px;
  box-sizing: border-box;
}

/* Editor styles */
.editing input,
.editing select {
  display: block;
  margin-bottom: 6px;
  padding: 6px;
  width: 100%;
  min-width: 172px;
}

.editing .quick-save {
  margin-right: 8px;
}


#loginwrapper table {
  border: none;
  background-color: none;
  font-size: 1.2em;
  font-weight: bold;
  color: black;
  border-spacing: 0;
}

/* nav table */
#left table {
  border: none;
  border-spacing: 0;
  background-color: none;
}
#left tr {
  border: none;
  border-spacing: 0;
  background-color: none;
}
#left td {
  border: none;
  border-spacing: 0;
  background-color: none;
}
#left th {
  border: none;
  border-spacing: 0;
  background-color: none;
}

/* Generic form declarations  */
label{
  display: block;
  font-weight: bold;
  font-style: italic;
}

input, select, textarea {
  border: 1px solid #cccccc;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
}

input:hover {
  cursor: pointer;
}

/* Move this into form-control-module? */
input[type="submit"],
a.btn,
table td a.btn,
.editing button {
  display: inline-block;
  margin: 1rem 0;
  padding: 6px 12px;
  vertical-align: middle;
  color: #006699;
  font-size: 12px;
  line-height: 1.42857143;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  background-image: none;
  border: 1px solid #006699;
  border-radius: 4px;
  background-color: #ededed;
}

.editing button {
  margin: 0;
}

input[type="submit"]:hover,
a.btn:hover,
table td a.btn:hover,
.editing button:hover {
  background-color: #cccccc;
}

input.disabled{
  background-color: #cccccc;
  border: 1px solid #cccccc;
  color: #333333;
}


/*  */

/* Declarations for tables wrapping forms */
.form-table {}

.form-table-job {}


/* Row label declarations */
.row-label {
  display: block;
  padding: 8px;
  font-weight: 700;
  text-align: left;
}

.row-label-default {}

.row-label-required {
  color: #dc3545;
}

.row-label-inline {
  display: inline;
  margin-right: 16px;
}

/* Use to print a hidden version of the fieldname */
.row-label-hidden {
  display: none;
}

/* Data in detail / edit view declarations */
pre,
p.detail-text,
pre.detail-text {
  padding: 8px;
  font-family: inherit;
  white-space: pre-line;
}

/* Generic wrapper for various types of inputs */
.form-module {
  padding: 8px;
  display: flex;
  align-items: center;
}

.form-module-combo { /* text and radio buttons */
  flex-direction: column;
  align-items: flex-start;
}

.input-wrap {
  display: flex;
  align-items: center;
  margin-right: 24px;
}

.form-module-combo .input-dropdown { /* Multiple selects */
  margin-bottom: 16px;
}

.form-module-combo .input-dropdown:last-of-type { /* Multiple selects */
  margin-bottom: 0;
}

.input-checkbox {
  margin-right: 0;
}

.input-wrap input,
.input-wrap textarea {
  padding: 8px;
}

.input-hidden {
  display: none;
}

/* spans in i.e. date modules */

/* Compound module: mixed types of form controls in a single container */
.compound-form-module {
  margin-bottom: 32px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.compound-form-module input[type="submit"],
.compound-form-module .nav-module {
  margin-top: 0px;
  margin-bottom: 0px;
  vertical-align: inherit;
}

.compound-module { /* Add to outer nested divs */
  margin-right: 16px;
}

.compound-form-module *:last-child,
.compound-form-module .compound-module *:last-child {
  margin-right: 0;
}

/* Date module */
.form-module-date {}

.form-module-date .smallsupport { /* Formatted date block */
  margin-right: 16px;
}

.input-date {}

.input-date button {
  padding: 4px 8px;
  margin-right: 24px;
}

/* Dropdown module */
.form-module-dropdown {}

.input-dropdown {}

.input-dropdown select,
.filter-module-form select,
.week-select select {
  background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 96% 50%;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0 8px 0 0;
  padding: 8px 24px 8px 8px;
  border-radius: 6px;
}


/* Textarea module */
.form-module-textarea {}

.input-textarea {}


/* Text module */
.form-module-text {}

.input-text {}

.form-module-combo .input-text { /* text and radio buttons */
  margin-bottom: 8px;
}



/* Submit module */
.form-module-submit {}

.form-module-submit button,
.form-module-submit input[type="submit"] {
  margin-right: 24px;
}


/* form controls */
.form-control {}

.form-control-submit {}

.form-control-button {}

th .form-control-button { /* Timestamp button in row label columns */
  margin: 8px;
}

/* Filter modules, select input defined in dropdown module */
.filter-module,
.filter-module > div,
.week-select form,
.week-select > div {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
}

.filter-module > div {
  padding: 0 32px 0 0;
}

.filter-module-title h2,
.week-select h2 {
  margin: 0;
}

.week-select h2 {
  font-size: 12px;
}

.filter-module-form form,
.week-select form {
  margin: 0;
}

.week-select-label {
  padding: 0 8px 0 0;
}

/* Nav modules */
.nav-module {
  margin-bottom: 24px;
}

.nav-module-links {}

.nav-module-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-module-buttons a.btn,
.nav-module-buttons form {
  margin: 0 16px 0 0;
}
