/*foundation 6 overrides*/
/*top bar*/

.no-js .top-bar {
  display: none; /*hack for preventing fouc in mobile*/
}

@media screen and (min-width: 40em) {
  .no-js .top-bar {
    display: block;
  }

  .no-js .title-bar {
    display: none; /*hack for preventing fouc in desktop*/
  }
}
/*top bar*/
/*reveal*/
.reveal {
    padding:1.875rem;
}
.reveal-title {
    padding-top:1rem;
}
.reveal p, .reveal input[type=text], .reveal textarea {
    font-size: 0.875rem;
}
.close-button {
    font-size: 1.75rem;
    font-weight: bold;
    
}
.close-button:focus {
    outline: none;
}
html.is-reveal-open, html.is-reveal-open body {
    width: 100%;
}											   

/*foundation 6 overrides*/

/*general*/
.required::after {
    content: "*";
    color: red;
}
.fullwidth {
  max-width: 98%;
}
.maxwidth {
  max-width: 100%;
}
.fullheight {
    min-height:inherit;
}
.extrapadding {
    margin-left:2rem;
}
#topcontent {
    background: #0f8790;
    margin-bottom:1em;
}
.footer {
  width: 100%;
}

ul ul {
    list-style-type: none;
}


/*section top bar start*/
.top-bar, .top-bar-left, .top-bar ul,  .topbar-responsive, .topbar-responsive-links, .topbar-responsive .menu, .with-background, .title-bar {
  background: #0f8790;
   color: #fefefe;
}

.topbar-responsive {
  /*background: #0f8790;*/
  padding: 1rem 1.5rem;
}

.topbar-responsive .topbar-responsive-logo {
  color: #fefefe;
  vertical-align: middle;
}

.topbar-responsive .menu {
  /*background: #2c3840;*/
}

.topbar-responsive .menu li:last-of-type {
  margin-right: 1rem;
}

.topbar-responsive .menu li:first-of-type {
  /*display: none;*/
}

/*.top-responsive-links > ul > .divider, .top-bar-section > ul > [role="separator"] {*/
.divider {
    border-right: solid 1px #ffffff;
    /*padding-right: 1rem;*/
    height: 1.6rem;
}
.menu.langmenu a {
    padding: 0;
    color: #fefefe;
    transition: color 0.15s ease-in;
}
.menu.langmenu li:last-of-type {
  margin-right: 1rem;
}

.top-bar-right li:not(.has-form) a.disabled {
        cursor:default;
        color: #ffffff;
    }
@media screen and (max-width: 39.9375em) {
  .divider {
   display: none;
  }
}

.topbar-responsive .menu a {
  color: #fefefe;
  transition: color 0.15s ease-in;
}


@media screen and (max-width: 39.9375em) {
  .topbar-responsive .menu a {
    padding: 0.875rem 0;
  }
}

.topbar-responsive .menu .topbar-responsive-button {
  color: #fefefe;
  border: none;
  /*border-color: #fefefe;
  border-radius: 5px;
  transition: color 0.15s ease-in, border-color 0.15s ease-in;*/
}

.topbar-responsive .menu .topbar-responsive-button:hover {
  color: #c6d1d8;
  border-color: #c6d1d8;
}

@media screen and (max-width: 39.9375em) {
  .topbar-responsive .menu .topbar-responsive-button {
    width: 100%;
    margin: 0.875rem 0;
  }
}

@media screen and (max-width: 39.9375em) {
  .topbar-responsive {
    padding: 0.75rem;
  }
  .topbar-responsive .top-bar-title {
    position: relative;
    width: 100%;
  }
  .topbar-responsive .top-bar-title span {
    position: absolute;
    right: 0;
    border: 1px solid #fefefe;
    border-radius: 5px;
    padding: 0.25rem 0.45rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
  }
  .topbar-responsive .top-bar-title span .menu-icon {
    margin-bottom: 4px;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes slideDown {
  0% {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  100% {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes slideDown {
  0% {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  100% {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@media screen and (max-width: 39.9375em) {
  .topbar-responsive-links {
    -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
    -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
    width: 100%;
    -webkit-animation: fadeIn 1s ease-in;
            animation: fadeIn 1s ease-in;
  }
}

/*top bar navi*/
ul.header-subnav {
    float: left;
    position: relative;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
  }
.header-subnav li {
    float: left;
    display: inline-block; 
  }
.header-subnav li.right {
    float: right;
}
.header-subnav li a {
  padding: 0.9rem 1rem 0.75rem;
  /*font-size: 0.875rem;*/
  color: #fff;
  /*text-transform: uppercase;*/
  display: block; 
}
.header-subnav li a.is-active {
  background: rgba(250, 250, 250, 0.7);
  color: #333; 
}

ul.header-subnav li a:hover,
ul.menu_tabbed li a:hover {
    /*padding: 14px 14px 10px 14px;*/
    text-decoration: underline;
}
ul.menu_tabbed li a:active, a:focus, input {
    outline: 0;
    outline-style:none;
    outline-width:0;
}
ul.header-subnav li a.selected,
ul.menu_tabbed li a.selected {
    color:#FFFFFF;
    padding: 14px 14px 10px 14px;
    text-decoration: underline;
}

.menu.langmenu {
    align-items:center;
    display:flex;
}

.menu.langmenu li + li {
    margin-left: 1rem;
}

/*top-bar view selector*/
.f6ViewSelector {
    /*height: 2.4375rem;
     margin: 0 0 1rem;
    padding: 0.5rem;*/
    border: none;
    /*border-radius: 3px;*/
    background-color: #0f8790;
    background-image: url('../Images/caret-white.png');
    /*font-family: inherit;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;*/
    color: #fefefe;
    /*background-origin: content-box;
    background-position: right -1rem center;
    background-repeat: no-repeat;*/
    background-size: 12px 12px;
    /*padding-right: 1.5rem;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;*/
}


.f6ViewSelector:focus {
  background-color: #0f8790;
  outline: 0px dotted #0f8790;
  box-shadow: none;
}

.f6ViewSelector option {
    background: #0f8790;
    color: #fefefe;
}
/*section top bar end*/
.footer {
    bottom: 0;
    clear: both;
    height: 5rem;
    width: 100%;
    color: #FFFFFF;
    text-align: center;
    padding: auto;
}
#footer_cols {
  height: inherit;
  vertical-align: baseline;
}
#footer_cols p {
  padding-top: 2rem;
}


/* section forms*/
fieldset legend {
    font-weight: bold;
}
.editButtons, .editButtons_edited {
    text-align:right;
}
.editButtons a, .editButtons_edited a {
        margin-left: 1rem;
}
.editButtons_edited a#clearsearch {
    display:none;
}
#readybox {
    margin-left: 1rem;
}

/*section forms end*/

/*section reveal*/
.buttonrow {
    padding-top:2em;
}

/*section reveal end*/

/*browser user agent stylesheet overrides*/
.reveal:focus {
            outline:none;
        }
    
/*form element overrides*/
textarea {
    resize:vertical;
}
.textarea.labelheader {
    font-size:1rem;
}

p.inputtextfield {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    background-color: #fff;
    font-family: inherit; /* or monospace */
    font-size: 1rem;
    line-height: 1.4;
    white-space: pre-wrap; /* preserves line breaks */
    word-wrap: break-word;
}


/*estimateform layouts*/
.fieldset.evaform {
    margin:0;
    padding:0;
    border:none;
}
.evaformcontainer {
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 2rem;
}
tr.mainheaderrow th {
    padding: .5rem .625rem .625rem;
}
.center {
    text-align:center;
}
.commentlabels {
    font-size:1rem;
}
.row.empty {
    height:1rem;
}
table.factorTable,
table.detailsTable {
    border-collapse: inherit;
    margin: 0;
}
table.factorTable th,
table.factorTable td,
table.detailsTable th,
table.detailsTable td,
table.faktori-results th,
table.faktori-results td {
    text-align: center;
    width: 10%;
    /*padding: 2px 2px 5px 2px;*/
    /*font-size: 100%;*/
}
body table.factorTable tr td:first-child,
body table.factorTable th:first-child,
body table.detailsTable tr td:first-child,
body table.detailsTable th:first-child,
table.faktori-results th:first-child,
table.faktori-results td:first-child {
    text-align: left;
    width: 100%;
}
body table.factorTable tr td a,
body table.factorTable tr th a,
body table.detailsTable tr td a {
    float: right;
}
body table.changelog th {
    text-align:left;
}
.button.showestimate {
    margin-bottom:0;
}
.hidden {
    /*display:none;*/
    color: white;
    visibility: collapse;
}

.hidden a#clearsearch {
    color: #2ba6cb;
    visibility:visible;
    float:right;
}

table.factorTable tbody tr:nth-child(even) {
    border-bottom: 0;
    background-color: inherit;
}

/*green vs blue jopi overrides*/
.legacy_blue {
    display:none;
}

/*hide print elements*/
@media only screen {
    .print_jdb {
        display: none;
    }
}

/*changelog table*/
table.changelog {
	
}

table.changelog tbody tr:nth-child(even) {
    background-color: transparent;
}

/*typeahead styling*/
@font-face {
  font-family: Prociono;
  src: url(../font/Prociono-Regular-webfont.ttf);
}
.title,
.example-name {
  font-family: Prociono;
}

/*p + p {
  margin: 30px 0 0 0;
}*/

/* site theme */
/* ---------- */

.title {
  margin: 20px 0 0 0;
  font-size: 64px;
}

.example {
  padding: 30px 0;
}

.example-name {
  margin: 20px 0;
  font-size: 32px;
}

.typeahead,
.tt-query,
.tt-hint {
  width: 100%;
  height: 30px;
  padding: 4px 6px;
  /*line-height: 30px;*/
  border: 2px solid #ccc;
  -webkit-border-radius: 8px;
     -moz-border-radius: 8px;
          border-radius: 8px;
  outline: none;
  vertical-align: middle;
}

.typeahead {
  background-color: #fff;
}

.typeahead:focus {
  border: 2px solid #0097cf;
}

.tt-query {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
  color: #999;
  visibility: hidden;
}

.tt-dropdown-menu {
    width: 330px;
    /*width: 100%;*/
    cursor: pointer;
    margin-top: 12px;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion {
  padding: 3px 20px;
  font-size: 18px;
  line-height: 24px;
}

.tt-suggestion.tt-cursor {
  color: #fff;
  background-color: #0097cf;

}

.tt-suggestion p {
  margin: 0;
}
#multiple-datasets .league-name {
  margin: 0 20px 5px 20px;
  padding: 3px 0;
  border-bottom: 1px solid #ccc;
}

/*#scrollable-dropdown-menu .tt-dropdown-menu {
  max-height: 150px;
  overflow-y: auto;
}*/

#typeahead-container{
  height:auto;
}

/*typeahead styling end*/

/*DataTables overrides, fixes*/
div.dt-buttons.button-group {
    float: right;
    margin-left: 20px;
}
.dtfilterselect {
    font-weight:700;
}

/*login form*/
.log-in-form {
    border: 1px solid #cacaca;
    padding: 1rem;
    border-radius: 0;
}
.logo-text {
    padding: 0.7rem 1rem;
    font-weight: bold;
    line-height: 1;
    color: inherit;
}

.label-wrapper {
    text-align: left;
}

.forgotpwd {
    float: right;
}
.loginformrow {
    padding-top:5rem;
}

/*foundation fonts*/
.fi-info {
    font-size:x-large;
}

/*forms overrides*/
.grid-container {
    display: grid;
    grid-template-columns: 3ch 1fr;
    align-items: baseline;
}

    .grid-container input {
        grid-column-start: 1;
    }

    .grid-container label {
        grid-column-start: 2;
    }

