@import url(https://fonts.googleapis.com/css?family=Raleway);

/*Reset*/
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}

body {
  line-height: 1;
  font-size: 0.8em;
  font-family: Arial;
}
body.mobile {
  /*max-height: 100%;*/
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

nav ul {
  list-style: none;
}
li {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
ul.ul {
  list-style-type: disc;
  margin-left: 2em;
  line-height: 1.1em;
}
ul.ul li {
  list-style: disc;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
}
a {
  color: #444;
}
a:hover {
  color: #999;
}
a:active {
  color: #ca3;
}
/* change colours to suit your needs */
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

/* change colours to suit your needs */
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}
hr.thin {
  margin: 0.4em 0;
}
input,
select {
  vertical-align: middle;
  font-family: Arial;
  font-size: 1.1em;
}
textarea {
  font-family: Arial, sans-serif;
}
/***
  Global Styles
***/
html {
  height: 100%;
}
body {
  color: #666;
  background-color: #193c6f;
  background: #193c6f -webkit-linear-gradient(#294c7f, #193c6f);
  background: #193c6f linear-gradient(#294c7f, #193c6f);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100%;
}
.hide {
  display: none;
}
.clear {
  clear: both;
}
.left {
  float: left;
}
.right {
  float: right;
}
.ar {
  text-align: right;
}
.ac {
  text-align: center;
}
.blockac {
  margin-left: auto;
  margin-right: auto;
}
.vm {
  vertical-align: middle;
}
.vb {
  vertical-align: top;
}
.space {
  padding: 0.25em;
}
.margin {
  margin: 0.25em;
}
.cf {
  overflow: auto;
}
.sm {
  font-size: 0.75em;
}

.slider {
  width: 100%;
}
.relative {
  position: relative;
}

h1 {
  font-size: 1.75em;
  color: #5599ee;
  font-family: Raleway, sans-serif;
  font-weight: normal;
  margin: 0 0 0.75em;
}
h1.light {
  margin: 0.25em 0;
  color: #5bf;
}
h1.small {
  font-size: 1.6em;
}
h1.short {
  margin-bottom: 0;
}
h1 span {
  color: #aaddff;
}
h2 {
  font-size: 1.25em;
  color: #294c7f;
  font-family: Raleway, sans-serif;
  font-weight: normal;
  margin: 0 0 0.35em;
}
h3 {
  color: #aaddff;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 5px;
}
td small {
  display: table-caption;
  min-width: 100px;
}
small {
  font-size: 0.85em;
  color: #777;
}
body.tiny #bodyWrap.content h1 {
  margin-left: 0.15em;
}

.content {
  width: 500px;
}
.content.center {
  margin: 0 auto;
}
body.tiny .content {
  width: 100%;
}

#bodyWrap {
  padding: 1em;
  position: relative;
}
body.tiny #bodyWrap {
  box-sizing: border-box;
  padding-left: 0.35em;
  padding-right: 0.35em;
}
#modal {
  background-color: #001;
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  z-index: 5;
  top: 0;
  left: 0;
  display: none;
}
#modal.high {
  z-index: 40;
}
#modal > div {
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 40%;
  width: 480px;
  margin-left: -240px;
  font-size: 2.75em;
  color: #fff;
  text-align: center;
}
.modalAlert {
  background-color: #fafafa;
  position: fixed;
  z-index: 50;
  text-align: center;
  width: 500px;
  margin-left: -250px;
  left: 50%;
  min-height: 100px;
  padding-bottom: 20px;
}
body.mobile #modalAlert {
  width: 100%;
  margin-left: -50%;
}

.modalAlert p {
  margin: 1em 0;
}
.modalAlert .container {
  text-align: left;
  padding: 2em;
  padding-bottom: 1em;
  font-size: 1.1em;
}
.modalAlert button,
.modalAlert input[type="submit"] {
  padding: 0.5em 0.75em;
  font-size: 1.1em;
}

.modalAlert a.cancel {
  position: absolute;
  right: 5px;
  top: 5px;
  color: #000;
  font-weight: bold;
}

.modalAlert > button {
  position: absolute;
  left: 50%;
  bottom: 5px;
  margin-left: -40px;
  width: 80px;
}
.tiny .modalAlert {
  width: 300px;
  margin-left: -150px;
  font-size: 0.9em;
}
@keyframes modal {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}
.modal {
  background-color: #001;
  position: fixed;
  opacity: 0.7;
  z-index: 5;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  animation-name: modal;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
}
.modal.fade {
  transition: opacity 0.5s;
  opacity: 0;
}

.note_text {
  width: 100%;
  height: 8em;
  margin: 0.5em 0;
  box-sizing: border-box;
}

#ajax_processing {
  position: fixed;
  right: 0px;
  top: 0px;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 200;
}

button,
input[type="submit"],
a.button {
  background-color: #3377cc;
  padding: 0.25em 0.5em;
  border: 1px solid transparent;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 1em;
  box-sizing: border-box;
}
a.button {
  display: inline-block;
}

button.spaced,
a.button.spaced {
  margin: 0 0.25em;
}
a.button.round,
button.round {
  border-radius: 30px;
  padding: 0.3em 0.5em;
}
a.button.round {
  padding: 0.1em 0.5em;
}
a.button.small,
button.small {
  font-size: 0.8em;
}

button.check,
a.button.check {
  padding-left: 0.5em;
}
button.check.checked,
a.button.check.checked {
  background-color: #fff;
  color: #b83;
  border: 1px dotted #c93;
  outline: none;
}

button.check::before,
a.button.check::before {
  content: "\02713";
  position: relative;
  line-height: 0.5em;
  vertical-align: middle;
  left: -0.1em;
  top: -0.05em;
  font-size: 1.15em;
  background-color: #66aadd;
  color: #66aadd;
  padding: 0.1em 0.25em;
  margin-right: 0.5em;
}
button.check.checked::before,
a.button.check.checked::before {
  content: "\02713";
  background-color: #eee;
  color: #a83;
}

button:hover,
input[type="submit"]:hover,
a.button:hover {
  background-color: #5599dd;
}
button.green,
input[type="submit"].green,
a.button.green {
  background-color: #44cc44;
}
button.red,
input[type="submit"].red,
a.button.red {
  background-color: #cc4444;
}
button.grey,
input[type="submit"].grey,
a.button.grey {
  background-color: #bbbbbb;
}
button[disabled] {
  background-color: #ccc;
  color: #eee;
}
button[disabled]:hover {
  cursor: default;
  /*border: 0 none;*/
}

.alert_red {
  color: #d33;
}

/****
Header Styles
****/
body > header {
  width: 100%;
  /*background-color: #3360A0;*/
  background-color: #1c4979;
  border-bottom: 1px solid #39598f;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 1.25em;
  z-index: 4;
  position: relative;
}

body > header > ul li {
  float: left;
}
body > header > ul li:hover {
  background-color: #ee9e00;
}
body > header > ul li.small {
  font-size: 0.75em;
}

body > header a,
body > header a:hover {
  display: block;
  padding: 10px 0.75em;
  color: #fff;
}
body > header > ul li.small a {
  padding: 12px 0.75em;
}

body.mobile header {
  /*font-size: 1.25em;*/
}

/***********
Login Styles
************/
.passShort {
  color: #ee2222;
}
.passClose {
  color: #fa951e;
}
.passOk {
  color: #33bb33;
}
/****
Visit Box Styles
****/
li.optVisit {
  display: block;
  margin-right: 0;
  border: 0 none;
  text-align: left;
  padding: 0.25em 0;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  white-space: nowrap;
  background: none;
  border-top: 1px solid #eee;
  border-right: 1px solid #eee;
  transition: background-color 0.4s;
  /*border-bottom: 1px solid #EEE;*/
}
li.optVisit:last-child {
  margin-bottom: 0;
}
li.optVisit:first-child {
  border-top: 0 none;
}
li.optVisit:hover {
  background-color: #fcfcfc;
}
li.optVisit.sec {
  font-size: 0.9em;
}
li.optVisit .ui-button-text {
  font-size: 1.1em;
  margin-top: 0.1em;
  padding: 0.5em 0.35em;
  z-index: 3;
  position: relative;
  cursor: pointer;
}
li.optVisit label {
  margin-left: 1.25em;
  transition: transform 0.25s;
  -webkit-transition: -webkit-transform 0.25s;
  display: inline-block;
}
li.optVisit.vSelect label {
  /*margin-left: 1.75em;*/
  transform: translateX(0.75em);
  -webkit-transform: translateX(0.75em);
}
li.optVisit.vSelect {
  color: #ffffff;
  /*font-weight: bold;*/
  border-color: #4466cc;
  background-color: #3377cc;
}
li.optVisit.vSelect.vSelGreen {
  background-color: #33cc33;
  border-color: #44cc66;
}
li.optVisit.vSelect.vSelRed {
  border-color: #cc6666;
  background-color: #dd3333;
}
li.optVisit.vSelect.vSelGrey {
  background-color: #555555;
  border-color: #474747;
}
li.optVisit.vSelect.vSelYellow {
  background-color: #b88b3a;
  border-color: #b88b3a;
}
li.optVisit input {
  display: none;
}

li.optVisit::before {
  content: "";
  display: block;
  width: 2em;
  height: 2em;
  background-color: rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 1;
  left: -0.1em;
  top: 50%;
  margin-top: -1em;
  box-sizing: border-box;
}
li.optVisit.vSelect::before {
  opacity: 0.75;
}
li.optVisit.vSelect::after {
  background-color: rgba(255, 255, 255, 0.8);
  content: "\2713";
  display: block;
  width: 1.5em;
  height: 1.5em;
  position: absolute;
  top: 50%;
  left: -0.1em;
  margin-top: -0.75em;
  box-sizing: border-box;
  opacity: 0.9;
  z-index: 2;
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
}
li.optVisit.vRadio::before,
li.optVisit.vRadio.vSelect::after {
  border-radius: 50%;
}
li.optVisit.vRadio.vSelect::after {
  content: "\02717";
}

li.optVisit::after {
  color: #3377cc;
}
li.optVisit.vSelGreen::after {
  color: #33cc33;
}
li.optVisit.vSelRed::after {
  color: #dd3333;
}
li.optVisit.vSelGrey::after {
  color: #555555;
}
li.optVisit.vSelYellow::after {
  color: #997722;
}

.optVisitGroup {
  float: left;
  width: 100%;
  box-sizing: border-box;
}

.mobile #visitNavMobile {
  display: block;
}
#visitNavMobile {
  padding: 0 0.35em;
  width: 100%;
}
#visitNavMobile.show {
  top: 0;
}
#visitNavWrap > div {
  width: 30%;
  background-color: #3360a0;
  color: #93c0f0;
  padding: 0.15em 0.5em;
  font-size: 1.75em;
  cursor: pointer;
  margin: 0.15em 1%;
  text-align: center;
  font-weight: bold;
  overflow: hidden;
}
#visitNavWrap > div:last-of-type {
  width: 34%;
}
#visitNavWrap > div:hover {
  background-color: #497cbf;
  color: #f9f9f9;
}

#visitNavWrap > div.disabled {
  color: #bbb;
  background-color: #ddd !important;
  cursor: initial;
}

#visitNavWrap > div span {
  position: relative;
  display: block;
}

#visitSectionHome {
}

#visitBox {
  display: none;
  z-index: 15;
  border-top: 1px solid #ddd;
  position: fixed;
  margin-top: -1px;
  top: 0;
  transition: top 0.5s;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
}

#visitBox.none {
  transition: none !important;
}

#visitBox::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #112233;
}

#visitBox::-webkit-scrollbar {
  width: 5px;
  background-color: #112233;
}

#visitBox::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #3377cc;
}
#visitFunctions {
  opacity: 1;
  transition: opacity 0.5s;
  display: none;
  padding-bottom: 3em;
}
#visitFunctionsButtons {
  background-color: #eee;
}

#visitAdd {
  overflow: hidden;
  background-color: #f9f9f9;
  position: relative;
  display: none;
}
.visitFuncButton {
  font-family: Raleway, sans-serif;
  font-size: 1.25em;
  padding: 0.55em 1.5em;
  margin-top: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: #395c8f;
  color: #fff;
  transition: font-size 0.25s, padding 0.25s, background-color 0.25s;
}

.visitFuncButton:hover {
  background-color: #597caf;
}
#visitAddButton.visitFuncButton {
  background-color: #39ac5f;
}
#visitAddButton.visitFuncButton:hover {
  background-color: #59ac7f;
}
.visitFuncButton.active {
  background-color: #f9f9f9 !important;
  border-bottom: 1px solid #eee;
  color: #395c8f !important;
  font-weight: bold;
  padding-left: 0.35em;
  font-size: 1em;
}
#visitAddButton.visitFuncButton.active {
  color: #39ac5f !important;
}
.visitCount {
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.9em;
  background-color: #fff;
  display: block;
  padding: 0.15em 0.25em 0.35em 0.75em;
  position: absolute;
  right: 0em;
  top: 0em;
  color: #497cbf;
  border-bottom-left-radius: 25px;
}

#visitArchive {
  transition: max-height 0.5s;
  max-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.viewArchive #visitArchive {
  max-height: 500px;
}
body.tiny #visitBox {
  left: 0;
}

.visitBoxLeft {
  float: left;
  width: 40%;
  overflow-x: hidden;
}
.visitBoxRight {
  float: left;
  padding: 0.25em;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  width: 60%;
}
.visitBoxRight button {
  position: relative;
}
.visitDateRow {
  margin-bottom: 0.5em;
}
.visitDateRow input,
.visitDateRow button {
  vertical-align: middle;
}
.addr_date {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1.5em;
  width: 5em;
  text-align: center;
  height: 1.5em;
  z-index: 20;
  position: relative;
  color: #369;
  border: 1px solid #ccc;
}
.addr_date_link {
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  height: 20px;
  padding: 2.5px 0;
}
#visit_done,
#visit_cancel {
  font-size: 1em;
  color: #fff;
  background-color: #33dd33;
  margin: 0.75em 0;
  padding: 0.5em;
  display: block;
  float: left;
}
#visit_cancel {
  float: right;
  background-color: #aaa;
}
#visit_done:active,
#visit_cancel:active {
  background-color: #3333dd;
  border: 1px solid #229;
}

.addr_time {
  font-family: Arial, sans-serif;
  font-weight: bold;
  display: none;
  font-size: 1.25em;
  color: #666;
  border: 1px solid #ccc;
  height: 1.5em;
  width: 4.5em;
  text-align: center;
}
.addr_time:focus {
  border-color: #ccc;
}
button.addr_time_button {
  display: none;
  width: 1.5em;
  height: 1.5em;
}
.addr_note {
  border: 1px solid #ccc;
  font-family: Tahoma, sans-serif;
  font-size: 1em;
  padding: 3px;
  color: #335;
  width: 95%;
}
.addr_note_label {
  color: #777;
  font-size: 0.9em;
}
.terrSort {
  width: 30px;
  min-height: 40px;
  text-align: center;
  position: absolute;
  height: 100%;
  box-sizing: border-box;
}
.map_num {
  color: #666;
  font-size: 1em;
  font-weight: bold;
  display: block;
  position: absolute;
  top: 8px;
  left: 0px;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}
.terrVisit,
.terrSettings {
  position: absolute;
  width: 40px;
  height: 100%;
  right: 0;
  box-sizing: border-box;
}
.terrVisit {
  right: 39px;
}
.map_button,
.visit_button,
.settings_button {
  background-position: 0 0;
  width: 30px;
  height: 40px;
  cursor: pointer;
  position: relative;
  margin: -20px auto 0;
  top: 50%;
}
.map_button:hover,
.visit_button:hover,
.settings_button:hover {
  background-position: 0 -100% !important;
}

.map_button {
  background-image: url("lib/images/bg_map.svg");
}
.visit_button {
  background-image: url("lib/images/bg_visit_check.svg");
  z-index: 4;
}
.settings_button {
  height: 30px;
  margin-top: -15px;
  background-size: cover;
  background-image: url("lib/images/territory_gear.svg");
}

.map_button.toggle .map_num {
  color: #fff;
}
.map_button.toggle {
  background-position: 67% 0;
}
.visit_button.toggle {
  background-position: 100% 0;
}

.terrOptions {
  position: absolute;
  width: 100%;
  width: calc(100% - 30px);
  padding: 0 0.5em;
  height: 100%;
}
.terrOptions button {
  position: relative;
  font-size: 0.9em;
  font-family: Raleway, sans-serif;
  padding: 0.75em;
  margin: 0 0.75em 0 0;
  box-shadow: 1px 1px 1px #666;
  letter-spacing: 1px;
}

.terrOptSettings {
  background: inherit;
  height: 100%;
  z-index: 3;
  position: relative;
  float: left;
}
.terrOptionsContain {
  padding: 0.5em 1em;
  position: absolute;
  right: 0;
  white-space: nowrap;
}
.terrOptionsContain button {
  padding: 0.75em;
  margin: 0 0.25em;
}
.terrOptions .settings_button {
  margin: 0 1em;
  z-index: 4;
}
.res_name {
  color: #334488;
  font-weight: bold;
  font-size: 1.1em;
  font-family: Raleway, sans-serif;
}

.terrAddress {
  box-sizing: border-box;
  padding: 1em 0.5em;
  margin-left: 30px;
  margin-right: 80px;
  font-size: 1em;
  line-height: 1.35;
}
.terrAddress .notes {
  border: 1px dotted #ccc;
  background-color: #efefef;
  padding: 2px 4px;
  margin-top: 2px;
}
.icon_label {
  width: 0.75em;
  height: 16px;
  display: block;
  position: relative;
}
.visit_icon,
.past_icon {
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("lib/images/visit_home.svg");
  background-position: 0 0;
  background-size: 100%;
}
.past_icon {
  background-image: url("lib/images/past_time.svg");
}
.visit_count {
  color: #999;
  display: block;
  font-size: 0.8em;
  font-weight: bold;
  position: absolute;
  top: 50%;
  margin-top: -0.4em;
  text-align: left;
  width: 100%;
}
.visitNotification {
  position: absolute;
  right: 80px;
  bottom: 0.1em;
}

.lastVisit {
  /*position: absolute;
    top: 0;
    right: 80px;*/
  padding: 0.25em;
  font-size: 0.9em;
  color: #999;
  text-align: right;
}
.lastVisitDate {
  display: inline;
  font-weight: bold;
  color: #334488;
}

.terrList.open .address_break
/*.terrList.open .visitNotification*/ {
  display: none;
}

.terrList.open .terrSort,
.terrList.open .terrSettings {
  padding-top: 0em;
}

#visitArchiveButton {
}
button.addr_toggle .ui-button-text,
button.addr_map .ui-button-text {
  padding: 0;
  width: 30px;
  height: 40px;
  background-image: url("lib/images/bg_visit_check.svg");
  background-repeat: no-repeat;
  background-position: 0px 0px;
}

button.addr_map .ui-button-text {
  background-image: url("lib/images/bg_map.svg");
  background-position: 0 0;
}

button.addr_toggle.visitActive {
  /*border: 1px solid #333399;*/
  border: 0 none;
  background-color: #fdfdfd;
  background-image: none;
}
.addr_toggle.visitActive .ui-button-text {
  background-position: -30px 0px;
}
.terrList.visitActive {
  position: relative;
  z-index: 9;
}

#territoryList .addrEdit {
  background-image: url("lib/images/edit.png");
  display: block;
  width: 32px;
  height: 32px;
  position: absolute;
  bottom: 2px;
  right: 2px;
  display: none;
}
#territoryList .addressButtonCell {
  border-left: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
}
#territoryList .addressButtonHeader {
  text-align: center;
  font-size: 0.85em;
  vertical-align: bottom;
  padding-bottom: 2px;
}

/***
Google Map Styles
****/
#mapHolder {
  margin: 0 5px;
  display: none;
  width: 700px;
  float: left;
  z-index: 12;
  transition: top 0.25s;
  margin-top: 0.35em;
  position: relative;
}
#mapHolder header {
  background-color: #3360a0;
  color: #fff;
  position: relative;
}
#mapHolder header button {
  padding: 0.5em;
  font-size: 0.9em;
}
#mapHolder header button:hover {
  border: 1px solid transparent;
}
#mapHolder.fix {
  position: fixed;
  top: 0;
}
#mapHolder header,
#mapHolder > div {
  z-index: 7;
}
body.mobile #mapHolder {
  width: 100%;
  position: fixed;
  float: none;
  left: 0;
}
body.mobile.tiny #mapHolder {
  width: 100%;
  margin: 0;
}
#map-canvas {
  width: 100%;
  height: 500px;
}
.mapInfo {
  text-align: center;
  min-width: 180px;
  min-height: 60px;
}
.mapLabel {
  text-align: center;
  background-color: #fcfcfd;
  font-size: 1.4em;
  border: 1px solid #bbb;
  position: absolute;
  padding: 3px 4px;
  font-family: Arial;
  opacity: 0.85;
  color: #333;
  border-radius: 2px;
}
#mapHolder.mobile {
  margin: 0;
}
#mapHolder.mobile #map-canvas {
  /*width: 500px;*/
}

@keyframes sortProgressFull {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#sortProgress {
  text-align: center;
  width: 300px;
  display: none;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  position: absolute;
  border-radius: 0;
  border: 0 none;
  box-sizing: border-box;
}

#sortProgress .label {
  position: absolute;
  display: block;
  text-align: center;
  width: 5em;
  margin-left: -2.5em;
  left: 50%;
  font-size: 0.8em;
  white-space: nowrap;
}
#sortProgress .ui-progressbar-value {
  border-radius: 0;
  border: 0 none;
  height: 100%;
  margin: 0 !important;
}
#sortProgress.full .ui-progressbar-value {
  background: #11bb33;
  background-image: linear-gradient(
    to right,
    #11bb33 0%,
    #119922 25%,
    #11bb33 50%,
    #119922 75%,
    #11bb33 100%
  );
  background-size: 200% 100%;
  animation-timing-function: linear;
  animation-name: sortProgressFull;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}
#sortProgress.full .label {
  color: #fff;
  font-weight: bold;
}
.sortingButton,
#sortSave {
  display: none;
}
body.tiny #sortProgress {
  float: left;
  width: 40%;
}

/****
Main Territory List Styles
****/
section,
aside {
  position: relative;
}

section#terrList {
  float: left;
  position: relative;
  width: 100%;
}

#terrListModal {
  background-color: #000;
  position: absolute;
  width: 480px;
  opacity: 0.4;
  z-index: 5;
  top: 0;
  left: 0;
}
.terrList {
  position: relative;
  margin-top: 0.35em;
  width: 100%;
  z-index: 3;
}
.terrList.fixed {
  margin-top: 0em;
  z-index: 15;
  /*box-shadow: 0px 0px 25px #000;*/
}
.terrList .container {
  transition: box-shadow 0.5s, -moz-box-shadow 0.5s, -webkit-box-shadow 0.5s;
}
.terrList.changed .container {
  background-color: #ffffcc;
}
.terrList.selected .container {
  /*border: 2px solid #ef9d0f;*/
  -webkit-box-shadow: inset 0px 0px 20px 1px rgba(239, 157, 15, 1);
  -moz-box-shadow: inset 0px 0px 20px 1px rgba(239, 157, 15, 1);
  box-shadow: inset 0px 0px 20px 1px rgba(239, 157, 15, 1);
  color: #b77e0f;
}

.terrSide {
  position: relative;
}
.terrFlip {
  background-color: #fefefe;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.flip .terrFlip {
}
.trash .terrFlip {
  border: 2px dashed #333;
  color: #111;
}
.terrAddressToggle {
  content: "";
  position: absolute;
  right: 80px;
  top: 0;
  margin-top: 2px;
  margin-right: 1px;
  width: 20px;
  height: 20px;
  padding-top: 4px;
  border: 1px dotted #aaa;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
}
.selected .terrAddressToggle {
  border-color: #ef9d0f;
}
.selected .terrAddressToggle::before {
  content: "\02713";
}

.trash .territorySec_fade {
  background: transparent;
}
.trash .res_name {
  color: #000;
}

.container {
  position: relative;
  background-color: inherit;
  z-index: 1;
  transition: transform 0.25s;
  -webkit-transition: -webkit-transform 0.25s;
  transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
}
.territoryRow .container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.flip .container {
  transform: rotateX(-90deg);
  -webkit-transform: rotateX(-90deg);
}

.containerFlip {
  background-color: #f0f0f0;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  transition: top 0.25s, transform 0.25s;
  -webkit-transition: top 0.25s, -webkit-transform 0.25s;
  transform-origin: 0 100%;
  -webkit-transform-origin: 0 100%;
  transform: rotateX(90deg);
  -webkit-transform: rotateX(90deg);
}
.territoryRow .containerFlip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.flip .containerFlip {
  top: 0;
  transform: rotateX(0deg);
  -webkit-transform: rotateX(0deg);
}

.terrEmpty {
  background-color: #395c8f;
  text-align: center;
  padding: 0.75em;
  font-size: 1.15em !important;
  font-family: Raleway, sans-serif;
  color: #adf;
  height: auto !important;
}

.terrListDupe {
  margin-top: 0.35em;
}

.terrNotes {
  position: absolute;
  padding: 0.2em 0.5em;
  border: 1px dotted #eee;
  min-height: 1.5em;
  width: 50%;
}

.myAccount .save {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: none;
}
.myAccount hr {
  width: 80%;
  margin: 0.5em auto;
}
section.terrList.myAccount .container {
  padding: 1em 0em;
  background-color: #f0f0f0;
  position: relative;
}
.optionLabel {
  float: left;
  width: 25%;
  border-right: 1px solid #ccc;
  padding: 0.5em 0.5em 0.5em 0;
  color: #999;
  text-align: right;
}
.optionData {
  float: left;
  padding: 0 0 0 1em;
  margin: 0 0 0.5em;
  color: #999;
  width: 60%;
}
.optionData input,
.optionData select {
  background-color: #f9f9f9;
  border: 1px solid #bbb;
  color: #666;
  font-size: 0.9em;
  padding: 0.15em;
  vertical-align: middle;
}
.optionData select {
  width: 60%;
}
.optionData button {
  vertical-align: middle;
  padding: 0.1em 7px;
}
.optionData .changed {
  background-color: #ffffdd;
}
.optionData .sec {
  margin-top: 2px;
  display: none;
}
.optionData .error {
  box-shadow: 0px 0px 3px #f00;
}
.territoryRow .nocheckout {
  padding: 15px;
  font-size: 1.25em;
  text-align: center;
  color: #888;
  font-style: italic;
}
input.hidden {
  background-color: #ddd;
  color: #dedede;
}
input.hidden:focus {
  color: #333;
  background-color: #eee;
}
input.hidden.changed {
  color: #ffd;
}
input.hidden.changed:focus {
  background-color: #ffe;
  color: #222;
}
ul#sharePartners {
  width: 70%;
  margin: 0.5em auto;
}
ul#sharePartners li {
  background-color: #f9f9f9;
  padding: 5px;
  border: 1px solid #bbb;
  color: #294c7f;
  margin: 4px 0;
}
ul#sharePartners li span {
  color: #777;
  font-size: 0.85em;
}
.removePartner {
  font-family: Verdana;
  color: #aaa;
  display: inline-block;
  margin: 0 0 0 5px;
  font-size: 1.1em;
}

.userModal {
  position: fixed;
  top: 5%;
  width: 480px;
  left: 50%;
  margin-left: -240px;
  background-color: #fcfcfc;
  padding: 15px;
  z-index: 13;
  display: none;
  font-size: 1.1em;
}
body.mobile .userModal {
  width: 90%;
  margin-left: -45%;
}
.userModal h5 {
  font-weight: normal;
  margin-bottom: 0.75em;
}
.userModal label {
  color: #37c;
}
.userModal input {
  border: 1px solid #37c;
  vertical-align: baseline;
}
.userPublisherList {
  display: none;
}
.userPublisherList > ul {
  padding: 0 10px;
  margin: 0 auto;
  max-height: 10em;
  overflow-y: auto;
  box-sizing: content-box;
}
.tiny .userPublisherList > ul {
  max-height: 7.5em;
}
.userPublisherList li {
  display: block;
  font-size: 1.1em;
  margin: 0.25em 1.5%;
  padding: 0.75em 0.5em;
  float: left;
  width: 40%;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  box-sizing: content-box;
  white-space: nowrap;
  cursor: pointer;
}
.tiny .userPublisherList li {
  font-size: 0.75em;
}
.userPublisherList li b {
  color: #333;
}
.userPublisherList li.foundPub:hover {
  background-color: #fff;
  border: 1px solid #333;
}
.userPublisherList li.none {
  font-style: italic;
  border: 1px solid transparent;
  background-color: transparent;
  font-size: 1.15em;
}
.userPublisherList .foundPub.selected {
  border: 1px solid #ffa011;
  background-color: #fffbea;
}
.userPublisherList li.foundPub:hover.selected {
  background-color: #fffbea;
}
.userPublisherList .foundPub.disabled,
.userPublisherList .foundPub.disabled:hover {
  cursor: auto;
  background-color: #ccddff;
  border-color: #7788aa;
  color: #7788aa;
}
.pinInput {
  margin: 4px 0 0;
  text-align: center;
}
.pinInput input[type="password"] {
  font-size: 3em;
  width: 2.5em;
  font-family: monospace;
}
.pinInput input {
  vertical-align: middle;
}
.pinFeedback {
  padding: 4px 0;
  color: #ff0000;
}
#getSharePin,
#getShareTerritories,
#get_submit {
  display: none;
}
#search_territory_use {
  font-size: 1.5em;
  font-family: Raleway, sans-serif;
  padding: 5px;
  margin: 5px;
  border: 1px solid #ea3;
}

#shareDuration {
  display: none;
}
.durationInput {
  margin: 0 auto;
  width: 85%;
}
.durationInput .ui-slider-range {
  background-color: #679bff;
  background-image: none;
}
.durationInput .ui-slider-handle {
  width: 3em;
  height: 2em;
  top: -0.75em;
}
.durationLabel {
  margin: 5px;
  font-size: 1.15em;
  color: #3366cc;
  font-family: Verdana;
  text-align: center;
}
#share_submit {
  display: none;
}
.shareInfo {
  margin: 10px;
  display: none;
  text-align: center;
  color: #68b;
}

.terrDiv {
  margin-bottom: 1em;
  box-shadow: 1px 1px 10px #023;
}
.terrDiv header {
  display: none;
}
.terrDiv.positive header {
  background-color: #88cc99;
}
.terrDiv.novisit header {
  background-color: #eeaaaa;
}
/****************
  Visited Address Styles
***************/
.terrList.addrPos .container,
.terrList.addrPos .territorySec_fade {
  background: #deffde;
}
.terrList.addrPos .res_name,
.terrList.addrPos .lastVisitDate {
  color: #559955;
}

.terrList.addrNeg .container,
.terrList.addrNeg .territorySec_fade {
  background: #dfdfdf;
}
.terrList.addrNeg .res_name,
.terrList.addrNeg .lastVisitDate {
  color: #666;
}

.terrList.addrNoVisit .container,
.terrList.addrNoVisit .territorySec_fade {
  background: #f9e0e0;
}
.terrList.addrNoVisit .res_name,
.terrList.addrNoVisit .lastVisitDate {
  color: #883333;
}

#menuOpen {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  z-index: 30;
  cursor: pointer;
  border-top-left-radius: 60px;
  background-color: #3377cc;
  background-image: url("lib/images/menuopen.svg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
#menuOpen:hover {
  background-color: #ff9f00 !important;
}
#menuOpen.open {
  background-color: #1155aa;
}
#saveAll {
  z-index: 15;
}
.menuButton {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 50px;
  z-index: 20;
  cursor: pointer;
  border-top-right-radius: 60px;
  background-color: #3377cc;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  font-family: Raleway;
  box-sizing: border-box;
  padding: 23px 3px 0px 6px;
  font-size: 1.1em;
  color: #fff;
}
.menuButton:hover {
  background-color: #ff9f00;
}
.menuButton.green {
  background-color: #33cc33;
}
.menuButton.center {
  left: 50%;
  margin-left: -30px;
  border-top-left-radius: 50px;
  width: 60px;
  text-align: center;
}
.icon_menu {
  background-image: url("lib/images/bg_map.svg");
  background-position: 100% 0;
  background-size: 100px;
  width: 25px;
  height: 35px;
  margin-top: -10px;
}

#saveAll {
  display: none;
}

#switchList {
  display: none;
}

#territoryMenu {
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  background-color: #e9e9e9;
  color: #666;
  z-index: 25;
  font-size: 1.3em;
  box-shadow: 1px 1px 10px #000;
  width: 400px;
  display: none;
}
body.mobile #territoryMenu {
  width: 95%;
}
#territoryMenu .container {
  padding: 3px 10px;
  position: relative;
  min-height: 18px;
  height: 100%;
  overflow-y: auto;
}
#territoryMenu .container.saveOpen {
  margin-left: 70px;
}
#territoryMenu .container button {
  font-size: 1em;
}
#hideAddressToggle input[type="radio"] {
  display: none;
}
#territoryMenuOptions {
  padding: 4px 0;
}
#territoryMenuOptions input {
  vertical-align: baseline;
}
#territoryMenuClose {
  background-color: #ccc;
}
#territoryMenuClose:hover {
  background-color: #bbb;
}

#territoryMenu .ui-icon {
  position: absolute;
  left: 50%;
  margin-left: -8px;
  background-image: url("lib/images/ui-icons_222222_256x240.png");
}

#territory_manage .button,
#territory_manage button {
  display: inline-block;
  width: 70%;
  margin: 0.35em 0;
  padding: 0.35em 0;
  font-family: Raleway;
}

.optionButtonSet {
  text-align: center;
}
.optionButtonSet label {
  border-radius: 0 !important;
  width: 85%;
  border-bottom-width: 0;
  font-size: 0.75em;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  padding-left: 1em;
}
.optionButtonSet label:last-of-type {
  border-bottom-width: 1px;
}

.optionButtonSet label .ui-button-text:before {
  content: "\025EF";
  position: relative;
  width: 1em;
  left: -0.5em;
  color: #666;
  font-size: 1.25em;
}
.optionButtonSet label.ui-state-active .ui-button-text:before {
  content: "\02713";
  color: #33aa33;
}
/***
Territory Visit Row Styles
****/
.visit_date {
  color: #58c;
  font-size: 1.1em;
}
.visit_pNum,
.visit_aNum,
.visit_pending {
  color: #555;
}
.visit_pending {
  color: #996;
}

.terrVisitHolder,
.terrVisitHolderArchive,
.terrChangesHolder {
  display: none;
  position: relative;
  background-color: #f9f9f9;
  width: 100%;
}
.terrVisitPast {
  padding: 0.5em;
  box-sizing: border-box;
}
#visitArchive .terrVisitPast {
  background: -moz-linear-gradient(top, #aaa 0%, #ccc 10%);
  background: -webkit-linear-gradient(top, #aaa 0%, #ccc 10%);
  background: -o-linear-gradient(top, #aaa 0%, #ccc 10%);
  background: -ms-linear-gradient(top, #aaa 0%, #ccc 10%);
  background: linear-gradient(to bottom, #aaa 0%, #ccc 10%);
}
.terrVisitPast .publisher {
  color: #333;
  margin: 0 0 0.15em 0.15em;
  font-size: 0.9em;
}
.terrVisitPast.temp {
  background-color: #fff6cc;
  border-bottom: 1px solid #664;
}

.terrVisitNone {
  font-size: 0.8em;
  color: #aaa;
  text-align: center;
  padding: 0.75em;
}
.visit_marked {
  color: #348;
  margin-right: 0.5em;
  font-weight: bold;
}
.visit_marked.date {
  font-weight: normal;
}
.visit_note {
  color: #666;
  font-size: 0.9em;
}

.duration {
  font-size: 0.9em;
}

.headerButton {
  background-color: #3377cc;
  color: #fff;
  font-size: 1.1em;
  font-family: "Raleway", sans-serif;
  height: 1em;
  padding: 0.5em 1em 0.5em;
}
.headerButton:hover {
  background-color: #f99e2c;
  color: #fff;
}

/*****
  Request Checkout
*****/
#terrTypeRequest {
  margin: 10px auto;
  text-align: center;
  color: #fff;
  font-size: 1.25em;
  font-family: "Raleway", sans-serif;
  display: none;
}
#terrTypeRequest header {
  margin: 1em 0;
  padding: 0 1em;
}

#terrTypeRequest div {
  margin: 6px 0;
  padding: 0.75em 0;
  background-image: none;
  background-color: #3d81c7;
  border: 0 none;
  width: 70%;
  color: #fff;
  font-size: 1.2em;
  font-family: "Raleway", sans-serif;
  display: inline-block;
  cursor: pointer;
}
#terrTypeRequest div:hover {
  background-color: #4488ff;
}
#terrTypeRequest div:active {
  background-color: #ff9f22;
}
.tiny #terrTypeRequest div {
  width: 90%;
}
#terrTypeRequest .terrType[data-active="0"] {
  background-color: #416396;
}
#terrTypeRequest .terrType[data-active="0"]:hover {
  background-color: #89a;
}

.terrRequest {
  margin: 15px auto 0 auto;
  color: #ffffff;
}
.terrRequest header div {
  background-color: #6699ff;
  float: left;
  width: 50%;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-size: 1.5em;
  color: #ffffff;
}
.terrRequest header div:hover {
  background-color: #4488dd;
  cursor: pointer;
}

.terrRequest header div span {
  display: block;
  margin: 8px 10px;
}
.terrRequest header div.selected {
  background-color: #3377cc;
}
.terrRequest header div.disabled {
  cursor: default !important;
  background-color: #aaa !important;
}
#terrRequestWrap {
  display: none;
}
#searchOptions {
  padding: 0.5em;
}
.terrRequestBody .territoryRow {
  background-color: transparent;
}
.terrRequestBody .territoryRow .container {
  /*height: 4em;*/
}
.terrRequestBody .territoryRow .container > div,
.terrRequestBody .territoryRow .containerFlip > div {
  position: relative;
  /*height: 100%;*/
}
.territoryRow .container > div.right {
  float: right;
}
.terrRequestBody .territoryRow .containerFlip {
  background-color: #ededed;
}
.territoryRowNotes {
  color: #665511;
  position: absolute;
  font-style: italic;
  font-size: 0.9em;
  display: inline-block;
  padding: 0.5em;
  max-width: 60%;
  top: 0;
  right: 0;
  text-align: right;
}
.terrRequestBody {
  background-color: transparent;
  color: #666;
  margin: 0.5em auto 0;
  display: none;
}

.terrRequestBody.search {
  font-size: 1.25em;
}
.terrRequestBody.search label {
  font-size: 0.75em;
  vertical-align: baseline;
  margin-right: -0.5em;
}
.terrRequestBody.search label span {
  padding: 0.4em 0.5em;
}
.terrRequestBody.search label.ui-state-default {
  background-image: none;
  background-color: #eee;
  color: #bbb;
}
.terrRequestBody.search label.ui-state-default:hover {
  color: #333;
}
.terrRequestBody.search label.ui-state-active {
  color: #4567ab;
  background-color: #fbfbfb;
  border: 1px solid #ffcc44;
}

.terrRequestBody section.terrList:hover {
  background-color: #fff;
}
.terrRequestBody section.terrList .checkout {
  height: 2.5em;
}
.terrRequestBody section.terrList {
  border-bottom: 1px dotted #aaa;
  width: 100%;
}
.terrRequestBody.map {
  width: 100%;
}
.terrRequestBody.map .container {
  text-align: center;
}
.terrRequestBody #map-canvas {
  width: 100%;
}
.terrRequestBody .options {
  display: none;
  border-top: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}
.terrRequestBody .options a {
  padding: 4px;
  margin: 0 0 0 6px;
  display: block;
  float: left;
  border: 1px solid #3377cc;
  background-color: #3377cc;
  color: #fff;
}
.terrRequestBody .checkout a.button {
  padding: 10px 8px;
}
.terrRequestBody .options a.green {
  background-color: #44cc44;
  border-color: #44cc44;
}
.terrRequestBody .options a:hover {
  border: 1px solid #333;
}
.terrRequestBody .options a:active {
  background-color: #ee9e00;
}
.terrRequestBody .slider {
  width: 100px;
  margin: 3px 5px 1px 10px;
}
.terrRequestBody .optSearch {
  font-size: 0.9em;
  margin-right: 5px;
  color: #999;
  position: relative;
}
.terrRequestBody .optSearch label,
.terrRequestBody .optSearch input {
  border: 1px solid #ddd;
  background-color: #ddd;
  height: 12px;
  padding: 6px;
}
.terrRequestBody .optSearch label {
  display: block;
  float: left;
}
.terrRequestBody .optSearch input {
  border-left: 0 none;
  vertical-align: baseline;
  background-color: #eee;
}
.terrRequestBody .optSearch label:hover {
  border-color: #000;
  cursor: pointer;
}
.terrRequestBody .optSearch label.selected {
  background-color: #3377cc;
  color: #fff;
}

#map-canvas .territoryRow {
  width: 400px;
  margin: 0.5em;
}
.tiny #map-canvas .territoryRow {
  width: 300px;
}
#map-canvas .terrFlip .container,
#map-canvas .terrFlip .containerFlip {
  border: 1px solid #ccc;
}

#map-canvas .myTerritoryRow {
  border: 1px solid #aaa;
}
.sliderLabel {
  font-size: 0.9em;
  color: #666;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 2px 4px;
}
.input_holder {
  padding: 2px 5px 2px 2px;
  border: 1px solid #ddd;
  border-left: 0 none;
  background-color: #eee;
  height: 20px;
  position: relative;
}
#searchOptions button {
  padding: 4px 6px;
  border: 1px solid transparent;
  color: #fff;
}
#searchOptions button:hover {
  border: 1px solid #000;
  cursor: pointer;
}
.optSearch .field {
  display: none;
}
.optSearchFind {
  background-color: #44cc44;
  display: none;
}
.optMapAll {
  display: none;
  background-color: #3377cc;
}

#terrRequestWrap #map-canvas section.terrList {
  /*min-width: 500px;*/
  white-space: nowrap;
}
body.mobile #map-canvas section.terrList {
  font-size: 0.8em;
}
body.mobile #terrRequestWrap #map-canvas section.terrList {
  min-width: 0;
}
#map-canvas section.terrList .options {
  position: relative;
}
#map-canvas.windowList section.terrList .options {
  position: absolute;
}
.windowList section.terrList {
  min-width: 260px;
}

/*#mapContainer {
  display: none;
  float: left;
  width: 640px;
  margin: 0 1em;
  z-index: 6;
}*/
#mapContainer {
  display: none;
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  margin: 0;
  z-index: 6;
}
#mapContainer .ac {
  background-color: #3377cc;
}
#territoryTypeSelect {
  margin: 0.25em;
  font-size: 1.75em;
  font-family: Raleway, sans-serif;
  text-align: center;
  background-color: #fff;
  color: #349;
}
#territoryTypeSelect option {
  text-align: center;
}

#terrRequest {
  background-color: #fff;
  width: 420px;
  position: fixed;
  z-index: 8;
  color: #888;
  display: none;
  margin-left: -210px;
  left: 50%;
}
.tiny #terrRequest {
  width: 320px;
  margin-left: -160px;
}
#terrRequest h4 {
  color: #3377cc;
  font-size: 2em;
  font-family: Raleway, sans-serif;
}
#terrRequest .confirm_text {
  font-size: 1.15em;
  text-align: center;
  margin: 20px 0;
}
#terrRequest .confirm_text .terr_id {
  color: #000;
  font-weight: bold;
}
#terrRequest .container {
  padding: 2em;
}
#terrRequest button {
  background-color: #3377cc;
  padding: 5px 7px;
  border: 1px solid transparent;
  color: #fff;
}
#terrRequest button:hover {
  border: 1px solid #000;
}
#terrRequest .notes {
  font-size: 0.8em;
  margin-bottom: 0.15em;
}
#terrRequest .inputNotes {
  width: 100%;
  height: 4em;
  font-family: Verdana;
  font-size: 0.8em;
  color: #555;
}

#territoryTurnIn {
}
.checkout.mobile {
  min-width: 200px;
  height: auto !important;
}

.checkout.mobile .info {
  width: 100%;
}

.checkout.mobile .info div {
  width: 50%;
  text-align: center;
}

.valign_mid {
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
.container .valign_mid,
.containerFlip .valign_mid {
  transform: none;
  -webkit-transform: none;
  -ms-transform: none;
  top: 0;
}

.titleRow {
  color: #eee;
  width: 100%;
  font-size: 1em;
  margin: 0.75em 0 0;
  clear: both;
}

.territoryTitle {
  float: left;
  width: 20%;
  font-size: 0.75em;
  font-family: Verdana, sans-serif;
  text-align: center;
  box-sizing: border-box;
  height: 2em;
}
.territoryTitle select {
  border: 1px solid rgba(230, 200, 160, 0.9);
  box-sizing: border-box;
  font-size: 0.9em;
  font-family: Verdana, sans-serif;
  width: 100%;
  height: 100%;
  margin: 0;
  display: none;
}
.territoryTitle select option {
  color: #000;
}
.territoryTitle span,
.territoryTitle a {
  color: #fff;
  padding-top: 0.5em;
  display: block;
}

.territoryTitle a:hover {
  color: #999;
}
.territoryRow {
  font-size: 1em;
  /*background-color: #FDFDFD;*/
  /*height: 4em;*/
}
.territoryRow:not(:first-of-type) {
  margin: 0.35em 0 0;
}
.territoryRow .container > div {
  position: relative;
  overflow: hidden;
  min-height: 4em;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.territorySection_main {
  width: 50%;
  width: calc(60% - 5em);
  align-items: flex-start;
  padding: 0.5rem;
  flex: 1;
}
.territoryRow br.clear {
  display: none;
}

.territorySection_req {
  width: 50%;
  position: relative;
  padding: 0.5rem;
  align-items: flex-start;
}
.containerFlip .territorySection_req {
  padding-left: 0.5em;
  flex: 1;
}
.containerFlip .territorySection_req > a,
.containerFlip .territorySection_req > button {
  position: relative;
  display: block;
  float: left;
  margin: 0 0.25em;
  padding: 0.75em;
  font-family: Raleway, sans-serif;
  font-size: 1.15em;
}
.territorySection_reqOptions {
  max-width: 40%;
  padding: 0.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.territorySection_addr,
.territorySection_co,
.territorySection_time {
  text-align: center;
  padding: 0.75em;
  position: relative;
}
.territorySection_addr,
.territorySection_co {
  width: 15%;
}
.territorySection_time {
  width: 20%;
}
.territorySec_fade {
  background: #dbdbdb;
  background: -webkit-linear-gradient(left, #ddd 0%, #f8f8f8 10%);
  background: -o-linear-gradient(left, #ddd 0%, #f8f8f8 10%);
  background: -ms-linear-gradient(left, #ddd 0%, #f8f8f8 10%);
  background: linear-gradient(to right, #ddd 0%, #f8f8f8 10%);
  overflow: hidden;
}
.territorySec_fade.short {
  background: -webkit-linear-gradient(left, #ddd 0%, #f8f8f8 20%);
  background: -o-linear-gradient(left, #ddd 0%, #f8f8f8 20%);
  background: -ms-linear-gradient(left, #ddd 0%, #f8f8f8 20%);
  background: linear-gradient(to right, #ddd 0%, #f8f8f8 20%);
}

.terrStat {
  font-size: 1.35em;
  color: #458;
  display: block;
}
.mobile .terrStat.small {
  font-size: 1.15em;
  margin-top: -0.15em;
}
.terrStat.never {
  position: relative;
  font-style: italic;
  color: #999;
}
.terrStat.late {
  color: #d00;
  text-shadow: 0px 0px 10px #f66;
}
.duration {
  color: #afafaf;
  font-size: 0.8em;
}
.territoryNumber {
  font-size: 1.5em;
  font-family: Raleway, sans-serif;
  float: left;
  color: #349;
  position: relative;
  display: block;
  white-space: nowrap;
}
.territoryNumber.nonAlign {
  top: auto;
  transform: none;
  -webkit-transform: none;
  -ms-transform: none;
}
.territoryPub {
  display: block;
  font-family: Raleway, sans-serif;
  line-height: 1.5;
}
.territorySlider {
  width: 100%;
  height: 100%;
  display: none;
}
.territorySlider.active {
  display: block;
}

.territoryRow .territoryOptions {
  /*position: absolute;
    right: 0;*/
  padding: 0 1em;
  box-sizing: border-box;
  width: 5em;
  white-space: nowrap;
  background-color: #f3f3f3;
  position: relative;
  display: flex;
  align-items: center;
}
.territoryRow .containerFlip .territoryOptions {
  width: 100%;
}
.territoryOptions button,
.territorySubOption button {
  border-radius: 2px;
  width: 3em;
  height: 3em;
  position: relative;
}
.territoryOptions button:hover,
.territorySubOption button:hover {
  border: 1px solid #000;
}
.territoryOptions button.text {
  width: auto;
}
.territoryOptions button {
  margin: 0 0.2em;
  background-color: #f6f6f6;
  /*border: 1px solid #CCC;*/
  color: #aaa;
}
.territoryOptions button:hover {
  border-color: #000;
  background-color: #fff;
}
.territoryOptButton {
  background-color: transparent;
  background-image: url("lib/images/territory_gear.svg");
  background-size: 100% 200%;
  /*border: 1px solid #DDD;*/
  outline: 0;
  display: block;
}

.territoryOptButton:hover {
  background-position: bottom;
  background-color: transparent !important;
  border: 1px solid transparent !important;
}
.territoryOptButton:active {
  border-color: #ffcc33;
}
.containerFlip .territoryOptButton {
  margin-left: auto;
  right: -0.25em;
}
.territoryOptionLabel {
  position: absolute;
  font-family: Raleway, sans-serif;
  font-size: 2.5em;
  opacity: 0.2;
  margin-left: 0.25em;
}

.terrButton_Map {
  background-image: url("lib/images/territory_map.svg");
  background-size: 100% 200%;
}

.terrButton_Share {
  background-image: url("lib/images/territory_share.svg");
  background-size: 100% 200%;
}
.terrButton_Print {
  background-image: url("lib/images/territory_print.svg");
  background-size: 100% 200%;
}
.terrButton_Notes {
  background-image: url("lib/images/territory_notes.svg");
  background-size: 100% 200%;
}
.terrButton_Turnin {
  background-image: url("lib/images/territory_turnin.svg");
  background-size: 100% 200%;
}

.terrButton_Map:hover,
.terrButton_Share:hover,
.terrButton_Print:hover,
.terrButton_Notes:hover,
.terrButton_Turnin:hover {
  background-position: 0% 100%;
}
.labelButton {
  position: relative;
  top: -4px;
}
.labelButton::after {
  content: attr(data-label);
  display: block;
  position: absolute;
  background-color: #eee;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 10px;
  padding: 2px;
  color: #999;
  font-size: 10px;
  text-align: center;
  opacity: 1;
}
.territoryNotes {
  box-sizing: border-box;
  border: 0 none;
  background-color: #efefef;
  font-size: 0.85em;
  height: 0;
  transition: height 1s;
  overflow: hidden;
}
.territoryNotes.open {
  height: 2.7em;
  border-top: 1px solid #ddd;
}
.territoryNotes.full {
  height: auto;
}

.territoryNotes > div {
  padding: 0.2em;
}
.territoryNotes input,
.territoryNotes textarea {
  border: 1px solid transparent;
  font-family: Verdana;
  font-size: 0.9em;
  width: 98%;
  resize: none;
  background-color: transparent;
  padding: 0.5em 0.25em;
  outline: none;
  color: #777;
}
.territoryNotes input:focus,
.territoryNotes textarea:focus {
  border: 1px solid #ddd;
  background-color: #fff;
}
.territoryNotes input.changed,
.territoryNotes textarea.changed {
  background-color: #fed;
  border-color: #edc;
}
.territoryNotes input.changed:focus,
.territoryNotes textarea.changed:focus {
  background-color: #fff;
  background-color: #fff9f0;
}
.territoryNotes textarea {
  height: 3em;
  border: 1px solid #ddd;
  padding: 0.35em 0.25em;
}
.territoryShares {
  border-top: 1px solid #ccc;
}
.territoryShares > div {
  padding: 0.35em;
  font-size: 0.85em;
  background-color: #eee;
  color: #999;
}
.notice {
  display: block;
  padding: 0.5em 0.5em 0.25em;
  font-style: italic;
  font-size: 0.9em;
  color: #777;
}
.notice.red {
  color: #d22;
}

#headerHomeButton {
  display: none;
  box-sizing: border-box;
  padding: 6px 6px 0;
}
#headerHomeButton:active {
  background-color: #2c5989;
}
#headerHomeButton img {
  width: 36px;
  height: 36px;
}
#headerHomeButton path {
  fill: #ffffff;
}
#headerMenuButton {
  display: none;
  padding: 5px 4px 2px;
  transition: background-color 0.25s;
}
.tiny #headerMenuButton {
  display: block;
}
.tiny #headerHomeButton {
  display: block;
}
.open #headerMenuButton {
  background-color: #2c5989;
}
.tiny #headerMenu {
  position: absolute;
  top: 100%;
  background-color: #2c5989;
  transform: rotateZ(90deg);
  -webkit-transform: rotateZ(90deg);
  transform-origin: 0% 0% 0;
  -webkit-transform-origin: 0% 0% 0;
  transition: transform 0.25s;
  -webkit-transition: transform 0.25s;
  transition-timing-function: cubic-bezier(0, 1.5, 0.5, 1);
  -webkit-transition-timing-function: cubic-bezier(0, 1.5, 0.5, 1);
  z-index: 3;
}
.open #headerMenu {
  -webkit-transform: rotateZ(0deg);
}
.tiny #headerMenu li {
  float: none;
  padding: 0.25em 2em 0.5em 0;
}

.width-50 {
  width: 50%;
}

.groupTerrList {
  padding: 0 8px;
}
.groupInfoList {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0.5em;
  line-height: 1.2em;
  margin: 6px 0;
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
}
.groupReminder {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
}
.otherGroupContainer {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 5px 8px;
  border-radius: 5px;
}
.map-request-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 0 0px #000, 0 0 3px #000, 0 0 5px #000, 0 0 10px #000;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0) 60%
  );
}
.map-request-label .heading {
  font-weight: bold;
  font-size: 13px;
}

.tag-label {
  display: inline-block;
  padding: 3px;
  border-radius: 3px;
  margin: 2px;
  font-size: 12px;
}

.confirm-label {
  background-color: #088b0a;
  color: #fff;
}
.bus-label {
  background-color: #b88b3a;
  color: #fff;
}
.gate-label {
  background-color: #888890;
  color: #fff;
}

.corner-ribbon {
  display: none;
  width: 200px;
  background: #666;
  position: absolute;
  top: 15px;
  right: -70px;
  text-align: center;
  line-height: 30px;
  letter-spacing: 1px;
  min-height: 20px;
  color: #fff;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  z-index: 10;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  font-size: 11px;
}
.newAddrCount {
  font-size: 10px;
  color: #088b0a;
  font-weight: bold;
}
