/* == General Elements ==================================== */
table,
th,
td {
  color: #eee;
  white-space: nowrap;
  font-family: Sans-Serif;
  text-align: auto;
  padding: 0px;
  margin: 0px;
  top: 0;
}

table,
th,
td,
select,
.compact {
  font-size: 12px;
}

th,
td {
  padding-bottom: 2px;
  padding-right: 1px;
  margin-right: 2px;
  padding-left: 2px;
}

input[type="checkbox"] {
  appearance: checkbox !important;
  margin: 0;
  margin-right: 1px;
  vertical-align: middle;
  position: relative;
  top: 0px;
}

/* input[type="checkbox"]:checked {
  appearance: checkbox !important;
} */

select {
  appearance: none;
  border-radius: 6px;
  text-indent: 0.2px;
  text-overflow: "";
  padding: 2px;
  padding-right: 3px;
  background-color: darkgreen;
  color: #ff0;
  cursor: pointer;
}
select:focus {
  outline: none;
}

select:hover {
  border-color: #fff;
}

select:disabled {
  border: 1px solid #333;
  background-color: #000;
  color: #aaa;
  outline: none;
}

select option {
  margin: 40px;
  background: #000;
  color: #eee;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  appearance: none;
  border-radius: 8px;
  text-indent: 0.2px;
  text-overflow: "";
  text-align: right;
  padding: 5px;
}

select option:focus {
  color: #f00;
}

option:disabled {
  color: #666;
}

/* == Layout ============================================== */

body.roster {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  margin: 0;
  padding: 0;

  background-color: black;
  white-space: nowrap;

  overflow: auto;
}

#MainCallRoster {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

#MainCallRoster header {
  flex: 0;
}

#MainCallRoster main {
  flex: 1;
}

#MainRosterControls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 2px;
  justify-content: space-evenly;
  align-items: center;
}

#MainRosterControls > div {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#MainRosterControls label {
  margin-right: 4px;
}

#AwardWantedList {
  overflow: auto;
  overflow-x: hidden;
  max-height: 142px;
}

#RosterControls.normal #ShowFewerControlsLink {
  display: none;
}
#RosterControls.normal #ShowMoreControlsLink {
  display: block;
}
#RosterControls.normal #SecondaryRosterControls {
  display: none;
}

#RosterControls.extended #ShowFewerControlsLink {
  display: block;
}
#RosterControls.extended #ShowMoreControlsLink {
  display: none;
}
#RosterControls.extended #SecondaryRosterControls {
  display: block;
}

/* == Other Elements ====================================== */

#txrxdec {
  width: 100px;
}

.link {
  cursor: hand;
  color: #ffffaa;
}

.link:hover {
  color: #ffff00;
  text-decoration: underline;
}

.controlItem {
  appearance: none;
  margin: 0;
  padding: 0;
  padding-top: 1px;
  margin-top: 1px;
  margin-bottom: 1px;
  border-width: 1px;
  border-color: #aaa;
  border-style: inset;
  border-radius: 4px;
  display: inline-block;
  transition: border-color;
  vertical-align: top;
}

table.awardTableCSS {
  border-collapse: collapse;
  border: 0px solid #888;
  background-color: black;
  text-align: center;
}
table.awardTableCSS td,
table.awardTableCSS th {
  border: 1px solid #888;
  padding: 2px 4px;
  border-left: none;
  border-right: none;
}

table.awardTableCSS thead {
  border-bottom: 0px solid #888;
}
table.awardTableCSS thead th {
  font-weight: bold;
  text-align: center;
  border-left: none;
}
table.awardTableCSS thead th:first-child {
  border-left: none;
}

.awardTableCSS tr:hover td {
  box-shadow: inset 0px 11px 6px -8px #888, inset 0px -11px 6px -8px #888;
}

table.rosterTable {
  border-collapse: collapse;
  border: 1px solid #555;
  background-color: black;
  text-align: center;
  width: 100%;
}

table.rosterTable td,
table.rosterTable th {
  border: 1px solid #555;
  padding: 2px 4px;
}

table.rosterTable thead {
  border-bottom: 1px solid #555;
}
table.rosterTable thead th {
  font-weight: bold;
  text-align: center;
  border-left: 1px solid #555;
  top: -1px;
  position: sticky;
  background-color: #000000ff;
}

table.rosterTable thead th:first-child {
  border-left: none;
}

.rosterTable tr:hover td {
  box-shadow: inset 0px 11px 6px -8px #555, inset 0px -11px 6px -8px #555;
}

.oneByOne {
  background-clip: content-box;
  box-shadow: 0 0 8px 3px inset #fff;
  background-color: #000;
  color: #ff0;
}

.dxCaller {
  background-clip: content-box;
  box-shadow: 0 0 4px 4px inset #0f0;
  background-color: #000;
  color: #ff0;
}

.dxCalling {
  background-clip: content-box;
  box-shadow: 0 0 4px 4px inset #f00;
  background-color: #000;
  color: #ff0;
}

.compact {
  cursor: pointer;
  margin: 0px;
  padding: 0px;
  margin-right: 2px;
  margin-bottom: 2px;
  border-width: 2px;
  border-color: #999;
  border-style: outset;
  min-width: 9em;
  min-height: 2em;
  display: inline-block;
  color: #eee;
  transition: border-style;
  border-radius: 4px;
}

.compact:active {
  border-style: inset;
}

.compact:hover {
  border-color: #fff;
}

.compactCallsign {
  padding: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.compactDXCC {
  padding: 2px;
  max-width: 9em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rosterTable tr:hover td {
  box-shadow: inset 0px 11px 6px -8px #888, inset 0px -11px 6px -8px #888;
}
