@import url('./ajloading.css');
@import url('./ajcards.css');
/*@import url('./ajtables.css'); Not needed right now as we are loading this in the JS module */


@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(./fonts/MaterialIcons-Regular.otf) format('otf'),
    url(./fonts/MaterialIcons-Regular.ttf) format('truetype');
}


:root {
 --basehue: 240;
 --comphue: calc( var(--basehue) + 180 );
 --trihue1: calc( var(--basehue) + 120 );
 --trihue2: calc( var(--basehue) - 120 );
 --basesaturation: 50%;
 --baselightness: 50%;
 --basealpha: 1;
 --lite: hsl(var(--basehue),92%,98%);
 --dark: hsl(var(--basehue),10%,10%);
 --basecolor:  hsl(var(--basehue),var(--basesaturation),var(--baselightness));
 --compcolor:  hsl(var(--comphue),var(--basesaturation),var(--baselightness));
 --tricolor1:  hsl(var(--trihue1),var(--basesaturation),var(--baselightness));
 --tricolor2:  hsl(var(--trihue2),var(--basesaturation),var(--baselightness));
 --highlightfg: hsl(var(--basehue),80%,20%);
 --highlightbg: hsla(var(--basehue),var(--basesaturation),70%,0.25);
 --secondary_highlightbg: hsla(var(--basehue),var(--basesaturation),80%,0.25);
 --headerbg: hsla(var(--basehue),var(--basesaturation),var(--baselightness),var(--basealpha));
 --headerfg: hsla(var(--basehue),98%,98%);
 --bg: hsl(var(--basehue),98%,99%);
 --boarderheadingcolor: hsla(var(--basehue),50%,30%,1);
 --color-1: #6e40aa;
 --color-2: #4c6edb;
 --color-3: #AA0008;
 --color-4: #1ac7c2;
 --color-5: #1ddea3;
 --fontsize: 16px;
 --dropshadow: 0 .2em .4em hsla(0, 0%, 0%, 0.25);

}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  display: inline-block;
  line-height: 1.5em;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  text-align:center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}


.material-icons-inline {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  display: inline-block;
  line-height: 1.5em;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  text-align:left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-size: clamp(14px, 2.5vmin, 28px);
  font-family: Roboto, sans-serif;
  font-weight: normal;
  width: 100vw;
  background-color: var(--lite);
  color: var(--dark);
}

h1, h3, h4 , h5, h6 {
  margin: .1em 0;
  padding: .1em .5em .1em .5em;
}

.simple_error {
  margin: 10px;
  display: block;
  width: 100%;
  font-size: 16px;
  text-align: center;
  text-decoration: underline;
}

.simple_message {
  margin: 10px;
  display: block;
  width: 100%;
  text-align: center;
}


#login_main_wrapper  a,
#main_wrapper a {
  font-weight: normal;
  text-decoration: underline;
  width: max-content;
  padding: .25em;
}

#login_main_wrapper a:hover,
#main_wrapper a:hover {
  background-color:  var(--headerbg);
  color: var(--lite);
  text-decoration: underline;
  text-decoration-color: var(--compcolor);
  text-shadow: 0 1px hsla(0, 0%, 0%, 0.25);
  border-radius: .2em;
}



#login_main_wrapper  ul > li {
  font-weight: normal;
  padding: .1em 0;
}

#login_main_wrapper  ul ,
#main_wrapper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}


#login_main_wrapper > header,
#main_wrapper > header {
  font-weight: normal;
  grid-area: header;
  padding: 0 .5em ;
  background-color: var(--headerbg);
  color: var(--headerfg);
}

#login_main_wrapper > header > h1,
#main_wrapper > header > h1 {
  font-size: 1.4em;
  text-overflow: clip;
  overflow: visible;
  word-break: keep-all;
  width: max-content;
}


#login_wrapper {
  grid-area: login;
  margin: 0 auto;
  margin-top: 1em;
}

.v_flex_container {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly

}

.flex_container {
  display: flex;
  max-width: 25em;
  flex-flow: column nowrap;
  row-gap: .2em;
  column-gap: .2em;
}

#login_wrapper fieldset {
  display:  block;
  position: relative;
  box-sizing: border-box;
  border: 2px solid ;
  border-radius: .4em;
  padding: 0;
  margin: 0;
  box-shadow: var(--dropshadow);
  background-color: var(--highlightbg);
  padding-bottom: 1em;
}


#login_wrapper fieldset > legend {
  box-sizing: border-box;
  max-width: 20em;
  min-width: 3em;
  margin: 0;
  padding: 0 .2em;
  background-color: var(--headerbg);
  border: 2px solid var(--headerbg);
  color: var(--headerfg);
  text-align: center;
  vertical-align: middle;
  line-height: 2em;
  height: 2em;
  border-radius: .2em;
  box-shadow: inset 0 -.2em .1em hsla(0, 0%, 0%, 0.25);
  text-shadow: 0 .1em black;
}


 .flex_container label {
  display: block;
  position: relative;
  font-size: .8em;
  top: .3em;
  left: .6em;
  padding: .1em .2em;
  /*background-color: var(--headerbg);*/
  /*border: 2px solid var(--headerbg);*/
  /*box-shadow: 0 .1em .1em 0 hsla(0, 0%, 0%, 0.25);*/
  /*border-radius: .2em;*/
  /*color: var(--headerfg);*/
  width: max-content;
}


.flex_container > input[type="email"],
.flex_container > input[type="password"],
.flex_container > input[type="text"],
.flex_container > input[type="number"],
.flex_container > button {
  position: relative;
  display: block;
  font-family: Roboto, sans-serif;
  font-style: normal;
  height: 1.8em;
  padding: 0 .8em;
  margin: .1em .2em;
  background-color: hsl(360, 90%, 100%);
  box-shadow: 0 .1em .1em 0 hsla(0, 0%, 0%, 0.25);
  border-radius: .2em;
  line-height: 1.2em;
  font-size: 1.2em;
  border-color: var(--headerbg);
}

.flex_container > input[type="email"]:required,
.flex_container > input[type="password"]:required,
.flex_container > input[type="text"]:required,
.flex_container > input[type="number"]:required {
  border-color: hsla(var(--basehue),var(--basesaturation),var(--baselightness),var(--basealpha));
  box-shadow: 0 .1em .1em 0 hsla(0, 0%, 0%, 0.25);
  background-color: hsl(360, 90%, 100%);
}


.input_error {
  border-color: hsla(120,var(--basesaturation),var(--baselightness),1);
  box-shadow: 0 .1em .1em 0 hsla(120, 50%, 50%, 0.25);
}


.flex_container > div {
  padding: 0;
  text-align: center;
  color: var(--headerbg);
}

.flex_container a {
  margin:  0 1em;
}

.flex_container a:hover {
  font-weight: bold;
}

.flext_container > label + input:focus {
  background-color: red;
}

#backlink {
  display: block;
  position:absolute;
  right: 1em;
  top: 1em;
}

#login_main_wrapper {
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2em auto 2em;
  grid-template-areas:
    "header "
    "login"
    "footer";
  background: bottom / contain repeat-x url('../images/townbackground.svg');
}


#login_main_wrapper header,
#main_wrapper header {
  padding: 0;
  margin: 0;
}

#login_main_wrapper {
z-index: -9;
}


#main_wrapper > main {
  grid-area: main;
  padding: 0;
  overflow-y: auto;
}

#main_wrapper > main > aside {
  grid-area: sidebar;
  padding: .2em
}

#main_wrapper > main > article {
  grid-area: hero;
  padding: .2em;
}

#login_main_wrapper > footer,
#main_wrapper > footer {
  grid-area: footer;
  font-size: 50%;
  padding: .2em .5em;
  text-align: right;
}

#main_wrapper {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: max-content auto min-content;
  grid-template-areas:
    "header "
    "main"
    "footer";
}

#main_wrapper > main {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  grid-template-areas:
    "hero";
  align-items: stretch;
  margin: 0;
  padding: 0;
}

#main_wrapper > main.has_aside {
grid-template-columns: auto 15em;
grid-template-areas:
  "hero sidebar";
}

#main_wrapper > header {
  display: grid;
  /*grid-template-columns:  min-content auto*/;
  grid-template-columns: repeat(auto-fit, minmax(20em,1fr));
  grid-template-rows: auto;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

#main_wrapper > header > nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-start;
  justify-content: flex-end;
  align-items: center;
  gap: .5em;
  padding: .2em 1em ;
}

#main_wrapper > header > nav select
 {
    border: none;
    font-size: 1.2em;
    color: var(--lite);
    background-color: transparent;
}

#main_wrapper > header > nav select option {
  border: none;
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--lite);;
}

#main_wrapper > main > aside
#main_wrapper > main > article {
  padding: 0;
  margin: 0;
}

#main_wrapper > main > aside > section {
  border: 1px solid var(--boarderheadingcolor);
  margin-bottom: .5em;
  box-shadow: 0 1px 3px 2px rgba(0,0,0,0.2);
  font-size: 80%;
  overflow: hidden;
  word-wrap: break-word;
}

#main_wrapper > main > aside > section > * {
  margin: .4em;
}

#main_wrapper > main > aside > section > header {
  background-color: var(--boarderheadingcolor);
  color: var(--lite);
  padding: .4em;
  margin: 0;
}

#main_wrapper > main > article {
  display: grid;
  /*grid-template-columns: 1fr 1fr 1fr 1fr;*/
  grid-template-columns: repeat(auto-fill, minmax(25em, 1fr));
  grid-template-rows: auto;
  grid-auto-flow: dense;
  grid-gap: .2em;
  align-items: stretch;
  justify-items: stretch;
  padding: .5em;
}


#main_wrapper > main > article > section {
  box-sizing: border-box;
  padding: .2em 0;
  /*margin: 0 1vw;*/
  /*overflow: hidden;*/
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 90vh;
  border-bottom: 2px solid var(--boarderheadingcolor);;
}

#main_wrapper > main > article > section > header {
  border-bottom: 2px solid var(--boarderheadingcolor);;
  margin-bottom: .2em;
}

#main_wrapper > main > article > section > header > h2 {
  color: var(--dark);
  margin: .1em 0;
  padding: .1em .5em .1em .5em;
  font-weight: 400;
  font-size: 1.4rem;
}

#main_wrapper > main > article > section > div h3{
  font-weight: 300;
  font-size: 100%;
  margin: .1em 0;
  padding: .1em .5em .1em 0em;
  text-decoration: underline;
}

#acctinfo_con {
  grid-area: accnt;
  background-color: var(--highlightbg);
}

#linkinfo_con {
  grid-area: links;   
}

    #linkinfo_con > a {
       line-height: 30px;
       font-weight: bold;
    }

    #linkinfo_con a:link,
    #linkinfo_con a:visited {
        background-color: white;
        color: blue;
        
    }

    #linkinfo_con a:hover {
        background-color: blue;
        color: white;
        text-decoration: underline;
        text-decoration-color: orange;
        text-shadow: 0 1px hsla(0, 0%, 0%, 0.25);
        border-radius: .2em;
    }



#unmeterserv_con {
  grid-area: utrd;
}

#meterserv_con {
  grid-area: mtrd;
}

#mailaddr_con {
  grid-area: maddr;
}

#servaddr_con {
  grid-area: saddr;
}

#account_summary_section > span,
#account_summary_section > div,
#account_summary_section > address,
#account_summary_section > ul {
  padding: .1em 1em;
  border-radius: .3em;
}

#account_summary_section > address.container::before,
#account_summary_section > ul.container::before {
  font-size: 1.3rem;
  display: block;
  content: attr(title);
  font-weight: 300;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  line-height: 1.5em;
  border-bottom: 1px solid var(--basecolor);
}

#account_summary_section > address > div.item,
#account_summary_section > li.item,
#account_summary_section > ul > li.item {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2rem;
  margin: .3em auto;
  padding: 0 .2em ;
  text-align: right;
}


#account_summary_section > address > div.item::before,
#account_summary_section > li.item::before,
#account_summary_section > ul > li.item::before
{
  display: block;
  font-size: 1rem;
  content: attr(title) ": ";
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  width: max-content;
  word-break: keep-all;
}



#account_summary_section > address > div.bold,
#account_summary_section > li.bold,
#account_summary_section > ul > li.bold {
  font-weight: bold;
}

#account_summary_section > address > div.bold::before,
#account_summary_section > li.bold::before,
#account_summary_section > ul > li.bold::before {
  font-weight: bold;
}

#account_summary_section > address > div.big,
#account_summary_section > li.big,
#account_summary_section > ul > li.big {
  font-size: 110%;
}


#account_summary_section  {
  font-size: 1.2rem;
  display: grid;
  align-items: start;
  justify-items: stretch;
  justify-content: space-around;
  align-content: space-between;
  row-gap: .2em;
  column-gap: .2em;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  grid-template-areas:
  "accnt  maddr "
  "accnt  saddr "
  "mtrd   utrd  "
  "links  links ";
}

#user {
  position: relative;
}




ul.ui_ul_menu {
  display: none;
  opacity: 1;
  position:absolute;
  right: 0;
  top: 1.8em;
  width: max-content;
  border-radius: .2em;
  padding: .3em;
  background: var(--lite);
  color: var(--dark);
  z-index: 400;
  box-shadow: var(--dropshadow);
}

.ui_ul_menu:before {
	content: '';
	display: block;  
	position: absolute;
	right: 2em;
	bottom: 100%;
	width: 0;
	height: 0;
	border-bottom: 10px solid var(--lite);
	border-top: 10px solid transparent;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
  z-index: 299;
}

ul.ui_ul_menu > li {
  padding: .2em;
}

ul.ui_ul_menu > li:hover {
  background-color: var(--highlightbg);
  color: var(--highlightfg);
}

ul.menu_open {
  display: block;
  opacity: 1;
}



.help_icon_list {
  margin: 0;
}


.help_icon_list > div {
  margin: .2em;
}

.help_icon_list dt:after {
  content: ': ';
}


.help_icon_list dt {
  margin: .2em;
  margin-inline-start: .2em;

}

.help_icon_list dd {
  margin-left: 1em;
  margin-inline-start: 2em;
}


.ui_controls_box {
  background-color: var(--basecolor);
  padding: .4em;
  display: flex;

}

.ui_controls_box select {
  font-size: 1rem;
}

.ui_controls_box select > options{
  font-size: 1rem;
  min-height: 1.1rem;
}



/* Data Format Section */

.citystatezip span:nth-child(1):after {
  content: ", ";
}

.citystatezip span:nth-child(2):after {
  content: " ";
}

div.title {
  display: inline-block;
  font-size: 140%;
  font-weight:bold;
}

div.bold > *{
  font-weight:bold;
}

.vlight {
  color: var(--highlightfg);
  text-shadow: 1px 0px 1px var(--highlightbg), 0 0 0.5em #ffffff;
}

.vlight[data-value] {
  font-weight: 700;
}

.currency,
.number {
  text-align: right;
}

.hidethis {
  display: none;
}

#mainnav .iconbutton {
  color: var(--lite);
}



address > div {
  font-style: italic;
  font-weight: 400;
}



[data-format="currencyformat"] {
  text-align: right;
}





@supports (grid-template-rows: masonry) {
  #main_wrapper > main > article {
    grid-template-rows: masonry;
  }
}



@media only screen and (max-width: 1279px) {
/*
  #main_wrapper > main > article {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: max-content;
    
    align-items: start;
    justify-items: stretch;
  }
*/

  .col2 {
    grid-column: auto;
  }

}


@media only screen and (max-width: 720px) {

  #main_wrapper > main {
    font-size : 1rem;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas:
      "hero";
    max-width: 100vw;
    padding: 0;
    margin: 0;
  }

  #main_wrapper > main > article {
    grid-template-columns: 1fr;
  }

  #main_wrapper > main > aside  ,
  #main_wrapper > main > article  {
  padding: 1em;
  }

  #main_wrapper > main > aside > section {
    margin: .1em;
    padding: 0;

  }


  #main_wrapper > main > article > section {
    max-height: max-content;

  }


  #account_summary_section  {
    width: auto;
    justify-items: stretch;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
    " flname flname"
    " accnt accnt"
    " maddr saddr"
    " mtrd  utrd ";

    overflow: hidden;
  }

  #account_summary_section > span,
  #account_summary_section > div,
  #account_summary_section > address,
  #account_summary_section > li,
  #account_summary_section > ul {
    display: inline-block;
    margin: .2em 0;
    border-radius: 0;
  }

  #account_summary_section > span::before,
  #account_summary_section > div::before,
  #account_summary_section > address::before,
  #account_summary_section > li::before,
  #account_summary_section > ul::before {
    display: inline;
  }

}

@media only screen and (max-width: 400px) {
  #account_summary_section  {
    grid-template-columns: 1fr;
    grid-template-areas:
    " accnt "
    " maddr "
    " saddr "
    " mtrd  "
    " utrd  "
    " links ";
  }

  #account_summary_section > span,
  #account_summary_section > div,
  #account_summary_section > address,
  #account_summary_section > ul {
    padding: .2em 0;
    border-radius: 0;
    width: 100%;
  }


}




@media print {
  body { font-size: 12pt; }

  #main_wrapper > main > article {
    grid-template-columns: auto;
    overflow: visible;
  }

  .col2 {
    grid-column: auto;
  }

  #main_wrapper > main {
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas:
      "hero"
      "sidebar";
    padding: 0;
    margin: 0;
    overflow: visible;
  }


  #main_wrapper > main > article > section {
    margin: .1em;
    padding: 0;
    overflow: visible;
    break-after: always;
  }

  #main_wrapper > main > aside > section {
    margin: .1em;
    padding: 0;
    overflow: visible;
  }

}
