/*****************************************************************
Emoikkunan ylläpitoelementit. 
Linkattu myös ylläpidon popup-ikkunoiden headiin. Esimerkiksi
yläpalkin tyyliluokat ovat käytössä myös popup-headissa.

Huom! Muutokset myös cui/styles_print_common.css:ään!

HW200723:
YLLÄPIDON LAYOUT V2
Uudistetun ulkoasun saa käyttöön lisäämällä
halutun projektin apprunner.xml-tiedostoon rivin
<setprop name="apprunner::admin_layout_v2">1</setprop>

Huom! Tarkista projektin ylläpitonäkymät käyttöönoton yhteydessä.
******************************************************************/

:root {
  --bgcolor: #fff;
  --font-family: 'albert sans', arial, helvetica, sans-serif;
  --text-size: 1.4rem;
  --small-text-size: 1.25rem;
  --text-color: #000;
  --link-color: #006dcc;
  --toolbar-bgcolor: #f0f0f0;
  --toolbar-text-color: #000000;
  --toolbar-bgcolor-hover: #dddddd;
  --toolbar-border-dark: #dddddd;
  --toolbar-border-semilight: #e0e0e0;
  --toolbar-border-light: #fafafa;
  --toolbar-border-light-hover: #f0f0f0;
  --line-color: #cccccc;
  --table-border-color: #808080;
  --table-header-bgcolor: #4784c1;
  --table-header-sel-bgcolor: #70A1D0;
  --table-header-text-color: #ffffff;
  --table-hl-bgcolor: #f2f2f2;
  --table-row-sel-bgcolor: #fff2f2;
  --table-pass-bgcolor: #f0f0f0;
  --button-bgcolor: #f5f5f5;
  --button-bgcolor-hover: #f0f0f0;
  --button-border-color: #dadada;
  --button-border-color-hover: #bbbbbb;
  --button-text-color: #006dcc;
  --button-text-color-hover: #006dcc;
  --button-att-bgcolor: #4784c1;
  --button-att-bgcolor-hover: #3370ad;
  --button-att-border-color-hover: #244e78;
  --button-att-text-color: #ffffff;
  --button-att-text-color-hover: #ffffff;
  --button-pass-bgcolor: #e5e5e5;
  --button-pass-text-color: #333333;
  --input-bgcolor: #ffffff;
  --input-border-color: #cccccc;
  --input-hov-outline: #4c9ced; 
  --editor-tab-border-color: #dddddd;
  --editor-tab-bgcolor: #f5f5f5;
  --editor-tab-border-color-hover: #bbbbbb;
  --editor-tab-bgcolor-hover: #e5e5e5;
  --line-color: #cccccc;
}

html { font-size: 62.5%; }

.mobile-only { display: none; }
.only-responsive,
.only-responsive-inline,
.only-responsive-tablerow { display: none; }

div.foggy { overflow: hidden; }

/*----- Keltapohjaiset ylläpitolinkit -----*/

.admin-linkset,
.admin-link-pup-single {
  background-color: #fdf69e;
  border: 1px solid #dbdbdb;
  padding: 4px 8px 4px 4px;
  font-family: var(--font-family);
  font-size: var(--text-size);
  line-height: 1em;
  white-space:nowrap;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-link-pup-single {
 display: inline-flex;
 margin-right: 5px;
 margin-bottom: 15px;
}

.admin-link-pup-single a {
  display: flex;
  align-items: center;
  gap: 4px;
}


.admin-linkset * { flex-shrink: 0; }

.admin-linkset .material-icons { margin-bottom: 0px; }

div.liftbox div.admin-linkset { padding: 4px; }
div.liftbox div.admin-linkset a { padding: 0 !important; }
div.liftbox div.admin-linkset.rowmode {
  width: 74px !important;
  top:34px !important;
}

img.admin-icon { vertical-align: middle; }

.admin-linkset a,
a.admin,
a.admin:visited,
.admin-link-like {
  color: black !important;
  font-family: var(--font-family);
  font-size: var(--text-size);
  text-decoration:none;
}

.admin-linkset a:hover,
a.admin:hover,
a.admin:visited:hover,
.admin-link-like:hover {
  opacity: 1;
  text-decoration: none;
  /* outline: 1px dotted black;
  outline-offset: 4px; */
}

/*----- Yleiskäyttöinen huomiolaatikko -----*/

/*****************************************************************
MP030608: Yleiskäyttöinen laatikko, aikasemmin "kehys" ja "huomio".
tr = transparent, ei taustaväriä
info = harmaa laatikko
att = attention (keltainen laatikko)
Käytössä sekä emoikkunassa että popupissa.



MP061108: Box-luokkien värit ja fontit ylimäritellään styles_admin.css:ssä.

box-admin-wrapper > admin-css
******************************************************************/

.box-tr, .box-info, .box-att,
.box-tr a, .box-info a, .box-att a,
.box-tr a:visited, .box-info a:visited, .box-att a:visited {
  color: black !important;
  font-family: var(--font-family);
  font-size: var(--text-size);
  line-height: 1.2em;
  text-decoration:none;
}

.box-tr {
  border:1px solid #808080;
  padding:6px;
  color:black;
}

.box-info {
  border:1px solid #808080;
  background-color:white;
  padding:6px;
  color:black;
}

.box-att {
  background-color:#ffecbf;
  padding:6px;
  color:black;
}

.box-tr.small, .box-info.small, .box-att.small,
.box-tr.small a, .box-info.small a, .box-att.small a,
.box-tr.small a:visited, .box-info.small a:visited, .box-att.small a:visited { font-size: var(--small-text-size); }

.box-tr a, .box-info a, .box-att a, .box-tr a:visited, .box-info a:visited, .box-att a:visited { text-decoration:underline !important; }

.shadow {
  -webkit-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  -moz-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
}

/*****************************************************************
MP030608: Ylläpitopalkki (emoikkunan toolbar ja yp-popupin head)
toolbar-thememenu* -> yläpalkin teemalinkkivalikko
MP231008: Samoja taustoja ja värejä käytössä myös login/logout!
******************************************************************/

div.toolbarWrapper {
  width:100%;
  position:fixed;
  z-index:200000;
  text-align:right;
  top:-44px;
  left:0px; 
  line-height: 1;
}

div.toolbarWrapper.visible {
  top:0px;
  left:0px;
}

table.toolbarContainer {
  width:100%;
  height:44px;
  font-family: var(--font-family);
  -webkit-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.4);
  -moz-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.4);
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.4);
}

table.toolbarContainer a.admin { font-family: var(--font-family);  }

/*modal layout -> admin-head-inc */

table.toolbarContainer.modal {
 border-top:0;
 margin-top:-6px;
}

td.toolbarData {
  height:44px;
  background: var(--toolbar-bgcolor);
  color: var(--toolbar-text-color);
}

td.toolbarData.left {
  text-align:left;
  padding-left: 10px;
}

td.toolbarData.right {
  text-align:right;
  padding-right: 10px;
}

td.toolbarData.left table,
td.toolbarData.right table { height: 44px; }

div#toolbarButtonWrap {
  position:absolute;
  top:41px;
  left:20px;
}

table#rakennemenu,
table#thememenu,
table#eshopmenu,
table#usermenu { 
 top: 31px;
 border: 1px solid #ccc;
}


div#toolbarButton {
  width:45px;
  height:21px;
  cursor:pointer;
  background: var(--toolbar-bgcolor) top left no-repeat url(/common_ui/embed_ui/img/toolbar/show_hor_v2.png);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: all 300ms ease-in-out 0s;
  filter: grayscale(100%);
  border: 1px solid #ccc;
  border-top: 0;
  margin-top: 3px;
}

div#toolbarButton:focus {
  background-color: var(--toolbar-bgcolor-hover) !important;
}

div#toolbarButton:hover { 
  background: var(--toolbar-bgcolor) top left no-repeat url(/common_ui/embed_ui/img/toolbar/show_hor_v2.png);
 -webkit-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
 -moz-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  transition: all 300ms ease-in-out 0s;
}

div#toolbarButton.hide { 
  background: var(--toolbar-bgcolor) top left no-repeat url(/common_ui/embed_ui/img/toolbar/hide_hor_v2.png);
 -webkit-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
 -moz-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  transition: all 300ms ease-in-out 0s;
}

div#toolbarButton.hide:hover { 
  background: var(--toolbar-bgcolor-hover) top left no-repeat url(/common_ui/embed_ui/img/toolbar/hide_hor_v2.png);
  transition: all 300ms ease-in-out 0s;
}

td.toolbarItem,
td.toolbarItemSmall {
  padding: 2px 10px;
  text-transform: uppercase;
  white-space: nowrap;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
  transition: all 300ms ease-in-out 0s;
}

td.toolbarItemSmall.link { height: 35px; }

td.toolbarItemSmall div#passwd_fields {
 white-space: normal;
}

td.toolbarItemSmall div#passwd_fields td { padding-right: 6px !important; }

td.toolbarItem,
td.toolbarItem a,
td.toolbarItem a:visited,
td.toolbarItemSmall,
td.toolbarItemSmall a,
td.toolbarItemSmall a:visited {
  font-size: 14px;
  color: var(--toolbar-text-color) !important;
  outline: none;
  border: 1px solid transparent;
}

td.toolbarItem:hover {
  background-color: var(--toolbar-bgcolor-hover);
  text-decoration: none;
  border: 1px solid var(--toolbar-bgcolor-hover);
  transition: all 300ms ease-in-out 0s;
}

td.toolbarItem:focus-within {
  background-color: var(--toolbar-bgcolor-hover);
  border: 1px solid var(--toolbar-bgcolor-hover);
  transition: all 300ms ease-in-out 0s;
}
  
td.toolbarItemSmall.link:hover,
td.toolbarItemSmall.link:focus-within {
  background-color: var(--toolbar-bgcolor-hover);
  border: 1px solid var(--toolbar-bgcolor-hover);
  transition: all 300ms ease-in-out 0s;
}

td.toolbarItem a:hover,
td.toolbarItemSmall a:hover { text-decoration: none; }

td.toolbarItem.right { width: 90px; }

td.toolbarItem br,
td.toolbarItemSmall br,
td.toolbarItemSmall.caltimewrap { display: none; }

td.toolbarItem img.admin-icon,
td.toolbarItemSmall img.admin-icon { margin-right: 5px; }

table.toolbar-dropmenu-wrapper,
div.toolbar-dropmenu-wrapper-passwd {
  position: absolute;
  left:-10px;
  background-color: var(--toolbar-bgcolor);
  text-align:left;
  border-collapse: initial !important;
}

table.toolbar-dropmenu-wrapper {
  top: 33px;
  z-index:10;
}

div.toolbar-dropmenu-wrapper-passwd div#passwd_changed { display: none; }

div.toolbar-dropmenu-wrapper-passwd {
  z-index:5000 !important;
  position: fixed;
  top: 44px;
  left: calc(100vw - 450px);
  width: 350px;
  padding: 20px;
  background-color: var(--toolbar-bgcolor);
  color: var(--toolbar-text-color);
  white-space:normal;
  -webkit-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  -moz-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  border: 1px solid #ccc;
}

div.toolbar-dropmenu-wrapper-passwd.fbinfo {
 display:none;
 z-index:5000;
 padding:0;
 width:450px;
}

div.toolbar-dropmenu-wrapper-passwd.fbinfo .fbinfo-title {
 background: #F1F1F1;
 text-transform: uppercase;
 font-size: 10px;
 color:#333333; 
 padding: 10px 10px 0 10px;
}

div.toolbar-dropmenu-wrapper-passwd.fbinfo .fbinfo-content {
 padding: 10px;
}

div.toolbar-dropmenu-wrapper-passwd.fbinfo .fbinfo-content table {
 margin-bottom: 10px;
}

div.toolbar-dropmenu-wrapper-passwd.fbinfo .fbinfo-content table td.fbuser-info {
 line-height: 17px;
 padding-left: 10px;
 color: #333333;
}

div.toolbar-dropmenu-wrapper-passwd.fbinfo .fbinfo-content table td.fbuser-info a.fbdata-name {
 color: #3B5998; 
 text-decoration: none;
 font-size:14px;
 font-weight: bold;
}

div.toolbar-dropmenu-wrapper-passwd .passwdTitleWrap { 
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

div.toolbar-dropmenu-wrapper-passwd .passwdTitle {
  width: 150px;
  text-transform: none;
  padding-top: 3px;
}

div.toolbar-dropmenu-wrapper-passwd div:last-child { 
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

div.toolbar-dropmenu-wrapper-passwd div:last-child .passwdTitle { display: none; }

xdiv.toolbar-dropmenu-wrapper-passwd div:last-child button.button_admin { width: 154px !important; }

td.toolbar-dropmenu-data {
  min-width: 140px;
  padding: 7px 10px;
  background-color: var(--toolbar-bgcolor);
  text-transform: none;
  transition: all 300ms ease-in-out 0s;
  border-bottom: 1px solid var(--toolbar-border-dark);
  border-top: 1px solid var(--toolbar-border-light);
}

td.toolbar-dropmenu-data:hover { 
  background-color: var(--toolbar-bgcolor-hover);
  transition: all 300ms ease-in-out 0s;
  border-top: 1px solid var(--toolbar-border-light-hover);
}

table#usermenu td.toolbar-dropmenu-data { min-width: 195px; }

td#user_td { position: relative; }

td#user_td img#user_settings_toggler {
 position: absolute;
 top: 0;
 right: 0;
 width: 12px;
 height: 12px;
 cursor: pointer;
}

div#user_settings {
 position: absolute;
 left:-10px;
 border:1px solid #808080;
 background-color:#f1f1f1;
 text-align:left;
 display: none;
 top: 40px;
 padding: 10px;
}

div#user_settings img { margin-right: 5px; }
div#user_settings span#remove_fb:hover { text-decoration: underline; }

.modal_fb_progress {
 position: fixed;
 background-color: #fff;
 display: none;
 width: 420px;
 padding: 15px;
 text-align: center;
 border: 1px solid #333;
 opacity: 0.9;
 max-width: 90% !important;
 left: 50%;
 top: 120px;
 margin-left: -210px;
}

#tiptip_holder { z-index: 1000000; }

/* Yläpalkin salasanan vaihdon kentät */

div.toolbar-dropmenu-wrapper-passwd .passwdTitleWrap input[type="password"] {
  margin-top: 0;
  padding: 5px;
  height: initial;
  font-size: initial;
  background: var(--input-bgcolor);
  border: 1px solid var(--input-border-color);
  transition: all 300ms ease-in-out 0s;
 -webkit-box-sizing: content-box;
 -ms-box-sizing: content-box;
 -moz-box-sizing: content-box;
  box-sizing: content-box;
}

div.toolbar-dropmenu-wrapper-passwd .passwdTitleWrap input[type="password"]:focus {
 outline: none;
 -webkit-box-shadow: 0px 0px 0px 2px var(--input-hov-outline);
 -moz-box-shadow: 0px 0px 0px 2px var(--input-hov-outline);
  box-shadow: 0px 0px 0px 2px var(--input-hov-outline);
  transition: all 300ms ease-in-out 0s;
}

/* Yläpalkin lomakepainikkeet (salasanan vaihto) */

div#passwd_fields table.message-wrapper,
div#passwd_changed table.message-wrapper { height: unset !important; }

div.toolbar-dropmenu-wrapper-passwd .button_admin {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: var(--text-size);
}

div.toolbar-dropmenu-wrapper-passwd .button_admin.cancel { width: 130px !important; }

div.toolbar-dropmenu-wrapper-passwd .button_admin.change,
div.toolbar-dropmenu-wrapper-passwd .button_admin.ok {
 background-color: var(--button-att-bgcolor);
 border-color: var(--button-att-border-color); 
 color: white;
 width: 161px !important; 
}

.button_admin {
  padding-top: 3px;
  padding-bottom: 3px;
  border:1px solid var(--button-border-color);
  background: var(--button-bgcolor);
  color: var(--button-text-color);
 -moz-border-radius: 4px;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: var(--small-text-size);
  cursor:pointer;
  transition: all 300ms ease-in-out 0s;
}

div.toolbar-dropmenu-wrapper-passwd .button_admin.change:hover,
div.toolbar-dropmenu-wrapper-passwd .button_admin.change:focus,
div.toolbar-dropmenu-wrapper-passwd .button_admin.ok:hover,
div.toolbar-dropmenu-wrapper-passwd .button_admin.ok:focus {
  background-color: var(--button-att-bgcolor-hover);
  border-color: var(--button-att-border-color-hover); 
}

.button_admin:hover,
.button_admin:focus {
  border:1px solid var(--button-border-color-hover);
  background: var(--button-bgcolor-hover);
 x-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.33);
 x-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.33);
 xbox-shadow: 2px 2px 5px 0px rgba(0,0,0,0.33);
  transition: all 300ms ease-in-out 0s;
}

/* Develin debug-infolaatikko, toolbar.inc */

div#debugInfo {
 display:none;
 position:fixed;
 top:45px;
 right:15px;
 margin:0;
 z-index:10000009;
 line-height:140%;
 background-color: transparent;
 color: #ffffff !important;
 opacity: 90%;
 font-family: var(--font-family);
 font-size: var(--text-size);
 white-space:nowrap;
}

div.debugInfoWrap {
 display: flex; 
 flex-wrap: wrap;
 background-color: #323232;
 border-radius: 4px;
}

div.debugInfoCol { 
 flex: 1 1 10%;
 padding: 15px;
}

div#debugInfo span.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ffffff;
}

/* Toolbarin kalenteri */

input#toolbar_cal {
 position: absolute;
 margin-left: -130px;
 visibility: hidden;
}

#ui-datepicker-div.toolbar { top: 46px !important; }

#ui-datepicker-div.toolbar .ui-state-default,
#ui-datepicker-div.toolbar .ui-state-hover {
  cursor: default;
  border: 1px solid #d3d3d3;
  background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
  font-weight: normal;
  color: #555555;
  opacity: 1;
}

#ui-datepicker-div.toolbar .ui-state-highlight { background-color: #bbb; }

#ui-datepicker-div.toolbar .ui-priority-primary, 
#ui-datepicker-div.toolbar .ui-widget-content .ui-priority-primary, 
#ui-datepicker-div.toolbar .ui-widget-header .ui-priority-primary { 
 font-weight: normal; 
}

#ui-datepicker-div.toolbar .ui-datepicker-current { width: 1px; display: none; }
#ui-datepicker-div.toolbar .ui-datepicker-close { width: 98% !important; }


/* Ohjeartikkeli-laatikko, toolbar.inc */

div#helpTexts {
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--text-size);
  display: none;
  position: fixed;
  top: 44px;
  xright: 10px;
  left: 150px;
  margin: 0;
  width: 500px;
  min-height: 100px;
  max-height: 85%;
  padding: 15px 0 0 0;
  z-index: 300000;
  background: var(--toolbar-bgcolor);
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid #ccc;
  -webkit-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  -moz-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.4);
}

div#helptexts_close {
  position: fixed;
  display: none;
  z-index: 300100;
  width: 500px;
  max-width: calc(100vw - 170px);
  height: 20px;
  xright: 10px;
  left: 150px;
  top: 45px;
  background: var(--toolbar-bgcolor);
  border: 1px solid #ccc;
  border-bottom: 0;
}

div#helptexts_close img {
  margin-top: 3px;
  margin-right: 3px;
  float: right;
}

div#quickHelp {
 text-align: left;
 display: block;
 position: absolute;
 top: 150px;
 left: 50%;
 margin-left: -225px;
 width: 450px;
 z-index: 1000;
 line-height: 140%;
 border-top: 3px solid #059;
 border-left: 1px solid #808080;
 border-right: 1px solid #808080;
 background: #eaeaea left bottom repeat-x url(/common_ui/embed_ui/img/toolbar/bg.gif);
}

div#quickHelp a,
div#quickHelp a:visited,
div#quickHelp p {
  font-family: verdana,arial,helvetica,Sans-serif;
  font-size: 9pt;
}

div.helptext_group {
  border-bottom: 1px solid var(--line-color) !important;
  background: var(--toolbar-bgcolor);
  padding: 0;
}

div.helptext_group_title {
  background: var(--toolbar-bgcolor);
  padding: 10px;
}

div.helptext_group a.groupLink {
  font-family: var(--font-family);
  font-size: var(--small-text-size);
  text-decoration: none !important;
  outline: 0;
  border: 0;
  text-transform: uppercase;
}

div.helptext_group div.groupCont { display: none; }

div.helptext_group div.articleLink { 
  margin: 0 !important;
  padding: 7px 10px 7px 25px; 
  border-top: 1px dashed var(--line-color);
}

div.helptext_group div.articleLink a { text-decoration: none !important; }

div.helptext_group div.articleLink a,
div.helptext_group div.articleLink a:visited {
  color: var(--link-color) !important;
  font-family: var(--font-family);
  font-size: var(--text-size);
}

div.helptext_group div.articleLink a:hover { text-decoration: underline !important; }

div.helptext_group div.articleCont {
  display: none;
  margin: 0 10px 0 25px;
}

div.helptext_group div.articleCont p { margin: 0 0 1em 0; }

div#quickhelp_content div.helptext_group div.articleCont { margin: 0 10px 0 10px; }

div#quickhelp_content div.helptext_group div.articleLink { padding: 7px 10px 7px 10px; }


/*************** Passiiviset/julkaisemattomat tietueet (esim. kpalsta + sivulista) *******************/

.passive-data,.passiivinen {
  filter:alpha(opacity=30);
 -moz-opacity:.30;
  opacity:.30;
  background: var(--table-pass-bgcolor);
}

.data.passiivinen {
  border-left: 1px solid var(--table-pass-bgcolor);
  border-right: 1px solid var(--table-pass-bgcolor);
}

a.addthis_counter, a.addthis_counter a { color: #000 !important; }

/*****************************************************************
MP130608: Teeman esikatselusivun maskaus 
******************************************************************/

div#theme-preview-mask {
 width:100%;
 height:100%;
 position:absolute;
 top:0;
 left:0;
 z-index:50;
 background-color:white;
 filter:alpha(opacity=0);
 -moz-opacity:.0;
 opacity:.0;
}

/*****************************************************************
MP130608: Teemaeditorin (iframen) asemointi esikatselusivulla.
Itse teemaeditorin luokat -> style_admin.css -> te* -luokat.
******************************************************************/

div.themebarWrapper {
 width:651px;
 position:absolute;
 top:70px;
 left:-630px;
 height:88%;
 z-index:5000;
}

div.themebarWrapper.visible { left:0px; }

/*rt#190*/

.jqToggle { cursor:pointer; }

iframe.themebarContainer {
  border:0;
  border-top: 1px solid var(--line-color);
  height:100%;
  width:628px;
  overflow:auto;
  float:left;
  background-color: var(--toolbar-bgcolor);
 -webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.4);
 -moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.4);
}

td#themebarButtonWrap {
 vertical-align:top;
 width:21px;
 padding-top:12px;
}

div#themebarButton {
  width:21px;
  height:45px;
  cursor:pointer;
  background: var(--toolbar-bgcolor-hover) top left no-repeat url(/common_ui/embed_ui/img/toolbar/show_ver_v2.png);
 -webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.4);
 -moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.4);
  box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.4);
  border-top: 1px solid var(--line-color);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: all 300ms ease-in-out 0s;
  filter: grayscale(100%);
}

div#themebarButton:hover {
  background: var(--toolbar-bgcolor) top left no-repeat url(/common_ui/embed_ui/img/toolbar/show_ver_v2.png);
  transition: all 300ms ease-in-out 0s;
}

div#themebarButton.hide {
  background: var(--toolbar-bgcolor) top left no-repeat url(/common_ui/embed_ui/img/toolbar/hide_ver_v2.png);
  transition: all 300ms ease-in-out 0s;
}

div#themebarButton.hide:hover {
  background: var(--toolbar-bgcolor-hover) top left no-repeat url(/common_ui/embed_ui/img/toolbar/hide_ver_v2.png);
  transition: all 300ms ease-in-out 0s;
}

body.body-teeman-muokkaus { 
 background: var(--toolbar-bgcolor); 
 overflow-y: scroll;
}

body.body-teeman-muokkaus .jPicker.Container {
 position: fixed !important;
 top: 60px !important;
 left: 35px !important;
}

/*****************************************************************
TO291010: Tooltipin muotoilut.
******************************************************************/
.toolTip {
    cursor: help; 
    position: relative;
}
 
.toolTipWrapper {
    width: auto;
    min-width: 250px;
    position: absolute;
    top: 10px;
    display: none;
    color: #FFF;
    font-weight: normal;
    border: 1px solid #888888;
    -moz-box-shadow: 0 0 10px #000;
    -webkit-box-shadow: 0 0 10px #000;
    z-index: 9999;
}

.toolTipContent {
    font-size: 12px; 
    margin: 2px;
    padding: 5px 10px;
    background-color: #000000;
    border: 1px solid #000000;
    color: white;
    opacity: .8;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
    filter: alpha(opacity=80);
    text-align: left;
}



/*****************************************************************
TO091110: jQueryn Tools-tooltipin muotoilut.
******************************************************************/
.jqTip:hover,
.jqTipLayout:hover {
    cursor: help;
}

.jqTipLayout {
    background-color: #ffffff;
    padding: 10px;
    width: auto;
    display: none;
    border: 1px solid #888888;
    -moz-box-shadow: 0 0 5px #888;
    -webkit-box-shadow: 0 0 5px #888;
    background-color: white;
    color: black;
    opacity: .9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
    z-index: 99999;
}
 

/*****************************************************************
TO28082015: Tooltipsterin oletusmuotoilu
******************************************************************/

.tooltipster-netland-theme {
border-radius: 5px; 
border: 1px solid #aaaaaa;
box-shadow: 2px 2px 2px 0 #cccccc;
background: #ffffff;
color: #000000;
margin: 10px;
}
/* Use this next selector to style things like font-size and line-height: */
.tooltipster-netland-theme .tooltipster-content {
font-family: Arial, sans-serif;
font-size: 13px;
line-height: 1.2em;
padding: 15px;
}

/*****************************************************************
TO030212: koko sivun kokoinen modaali
******************************************************************/
#pagemask-white {
 display: none;
 position: fixed;
 left: 0px;
 top: 45px;
 width: 100%;
 height: 100%;
 z-index: 9000;
 background-color: #ffffff;
 opacity:0.7;
 filter:alpha(opacity=70);
}

#pagemask-black {
 display: none;
 position: fixed;
 left: 0px;
 top: 45px;
 width: 100%;
 height: 100%;
 z-index: 12000;
 background-color: #000000;
 opacity:0.7;
 filter:alpha(opacity=70);
}


/*****************************************************************
TO27092012: autocomplete-muotoilut
HW22112016: lisätty .ui-autocomplete -alkuisia tyylejä
******************************************************************/
.autocomplete_input {
 outline: none;
}

.autocomplete-results ul.ui-menu,
.ui_autocomplete-results ul.ui-menu {
 border: 1px solid #c8c8c8;
 width: auto !important;
 text-align: left;
 z-index: 140 !important;
}

.autocomplete-results ul.ui-menu,
.autocomplete-results ul.ui-menu li.ui-menu-item,
.ui_autocomplete-results ul.ui-menu,
.ui_autocomplete-results ul.ui-menu li.ui-menu-item,
.ui-autocomplete li.ui-menu-item {
 background: #ffffff;
 font-size: 100%;
}

.autocomplete-results ul.ui-menu li.ui-menu-item a,
.ui_autocomplete-results ul.ui-menu li.ui-menu-item a,
.ui-autocomplete li.ui-menu-item a {
 border: 1px solid transparent;
}

.autocomplete-results ul.ui-menu li.ui-menu-item a:hover,
.ui_autocomplete-results ul.ui-menu li.ui-menu-item a:hover,
.ui-autocomplete li.ui-menu-item a:hover {
 border: 1px solid transparent;
}

.autocomplete-results ul.ui-menu .ui-menu-item:hover,
.ui_autocomplete-results ul.ui-menu .ui-menu-item:hover {
 background: #aaaaaa;
 cursor: pointer;
}

.autocomplete-results ul.ui-menu .ui-menu-item a,
.ui_autocomplete-results ul.ui-menu .ui-menu-item a {
 color: #666666;
}

.autocomplete-results ul.ui-menu .ui-menu-item a b,
.ui_autocomplete-results ul.ui-menu .ui-menu-item a b,
.autocomplete-results ul.ui-menu .ui-menu-item a strong,
.ui_autocomplete-results ul.ui-menu .ui-menu-item a strong {
 color: #222222;
}

.autocomplete-results ul.ui-menu .ui-menu-item a.ui-state-hover,
.autocomplete-results ul.ui-menu .ui-menu-item a.ui-state-active,
.ui_autocomplete-results ul.ui-menu .ui-menu-item a.ui-state-hover,
.ui_autocomplete-results ul.ui-menu .ui-menu-item a.ui-state-active,
.ui-autocomplete .ui-menu-item a.ui-state-hover,
.ui-autocomplete .ui-menu-item a.ui-state-active {
 font-weight: normal;
 margin: 0;
 color: #000000;
}

.ui-autocomplete a.ui-state-hover,
.ui-autocomplete .ui-menu-item a.ui-state-active {
 border: 0;
}

.ui-autocomplete-loading {
  background-image: url('/common_ui/embed_ui/img/loader/indicator.gif');
  background-position: right 5px center;
  background-repeat: no-repeat;
}

.autocomplete-results .ac-no-results,
.ui_autocomplete-results .ac-no-results {
 display: none;
 color: black;
 border: 1px solid #C8C8C8 !important;
 background-color: white;
 -moz-border-radius: 5px;
 -webkit-border-radius: 5px;
 -khtml-border-radius: 5px;
 border-radius: 5px;
 line-height: 1.5;
 padding: 5px;
}

.ac-search-help,
.autocomplete-no-results {
 display: none;
 margin-right: 4px;
 left: 0;
 float: right;
 text-align: left;
 padding: 2px 5px;
 color: black;
 border: 1px solid #C8C8C8;
 width: 200px;
 background-color: white;
 line-height: 1.5;
 position: absolute;
 z-index: 100000;
 -moz-border-radius: 5px;
 -webkit-border-radius: 5px;
 -khtml-border-radius: 5px;
 border-radius: 5px;
}

.ac-search-help p {
 margin-top: 0;
}

.ui-datepicker-trigger { 
 margin-top: 7px; 
 cursor: pointer;
}

.toolbarContainer .ui-datepicker-trigger { margin-top: 0; }


/*****************************************************************
HW131113: lomakkeiden tyhjennä-rasti
******************************************************************/
img.clearvalue {
 cursor: pointer;
 position: absolute;
 top: 3px;
 right: 5px;
 display: block;
}

/*****************************************************************
TO20150513: Jos Flexsliderissa vain yksi kuva, niin näytetään se.
******************************************************************/
div.flexslider ul.slides.onlyone li { display: block; }


div#search-wrap input { outline: none; }

/*****************************************************************
TO20160531: table2div - taulukoiden muuntaminen diveiksi
******************************************************************/
/* div.resp-table {  } */

div.resp-table div.resp-item { 
 display: table; 
 width: 100%;
 padding: 20px 10px;
}

div.resp-table div.resp-item.even { background-color: #f4f4f4; }

div.resp-table div.resp-item div.resp-row { display: table-row; }

div.resp-table div.resp-item div.resp-col { 
 display: table-cell; 
 padding-top: 3px;
 padding-bottom: 3px;
 vertical-align: top;
}

div.resp-table div.resp-item div.resp-col.resp-col-rowed { 
 display: block; 
 padding-top:0;
 padding-bottom:0;
}

div.resp-table div.resp-item div.resp-col.resp-col-rowed.col-value { margin-bottom: 20px; }
 
div.resp-table div.resp-item div.col-title { 
 width: 1%;
 text-transform: uppercase;
 padding-right: 40px;
 white-space: nowrap;
}

.vis-rolling-mode-btn { 
 background-image: url(/common_ui/embed_ui/img/icons_google/action/ic_home_white_36dp.png);
 background-repeat: no-repeat;
 background-position: 2px 2px;
 z-index: 10;
}

.vis-rolling-mode-btn:before { content: initial; }

.vis-item .vis-item-content { 
 white-space: normal; 
}

.vis-item.vis-readonly { cursor: pointer; }

div.timeline-item div.maximized { display: none; }

div.timeline-item h2 { margin: 0; }

div.timeline-item div.ingressi { max-width: 300px; }

div#timeline-zoom div {
 width: 20px;
 height: 20px;
 background-color: #ffffff;
 background-repeat: no-repeat;
 background-position: center center;
 border: 1px solid #cccccc;
 cursor: pointer;
 border-radius: 2px;
 box-shadow: 0 1px 4px rgba(0,0,0,0.3);
 position: absolute;
 right:5px;
 z-index: 999;
 opacity: 0.5;
}

div#timeline-zoom div#zoomIn { 
 bottom: 24px;
 background-image: url(/common_ui/embed_ui/img/icons_google/content/ic_add_grey600_18dp.png); 
}

div#timeline-zoom div#zoomOut {
 bottom: 5px;
 background-image: url(/common_ui/embed_ui/img/icons_google/content/ic_remove_grey600_18dp.png);
}

div#timeline-moveLeft {
 opacity: 0.5;
 border-radius: 0 8px 8px 0;
 width: 30px;
 height: 60px;
 background-color: #ffffff;
 background-repeat: no-repeat;
 background-position: center center;
 border: 1px solid #cccccc;
 cursor: pointer;
 position: absolute;
 left: 0;
 top: 50%;
 margin-top: -30px;
 z-index: 999;
 background-image: url(/common_ui/embed_ui/img/icons_google/navigation/ic_chevron_left_grey600_36dp.png);
}

div#timeline-moveLeft:hover {
 background-image: url(/common_ui/embed_ui/img/icons_google/navigation/ic_chevron_left_black_36dp.png);
}

div#timeline-moveRight {
 opacity: 0.5;
 border-radius: 8px 0 0 8px;
 width: 30px;
 height: 60px;
 background-color: #ffffff;
 background-repeat: no-repeat;
 background-position: center center;
 border: 1px solid #cccccc;
 cursor: pointer;
 position: absolute;
 right: 0;
 top: 50%;
 margin-top: -30px;
 z-index: 999;
 background-image: url(/common_ui/embed_ui/img/icons_google/navigation/ic_chevron_right_grey600_36dp.png);
}

div#timeline-moveRight:hover {
 background-image: url(/common_ui/embed_ui/img/icons_google/navigation/ic_chevron_right_black_36dp.png);
}

div#visualization:hover div#timeline-moveRight,
div#visualization:hover div#timeline-moveLeft,
div#visualization:hover div#zoomIn,
div#visualization:hover div#zoomOut {
 opacity: 1;
}

div#timeline-zoom div#zoomIn:hover {
 background-image: url(/common_ui/embed_ui/img/icons_google/content/ic_add_black_18dp.png) !important; 
}

div#timeline-zoom div#zoomOut:hover {
 background-image: url(/common_ui/embed_ui/img/icons_google/content/ic_remove_black_18dp.png) !important; 
}

div#timeline-zoom div:hover,
div#timeline-moveLeft:hover,
div#timeline-moveRight:hover {
 border: 1px solid #999999;
 background-color: #f0f0f0;
}

div.devel_basic_pagepath_ { display: none !important; }

div#devel_basic_pagepath.hidepagepath {
 opacity: 0 !important;
}

div#devel_basic_pagepath.hidepagepath:hover {
 border-top: 1px dotted #cacdd1;
 border-left: 1px dotted #cacdd1;
 opacity: 1;
 color: transparent;
 background: transparent;
}

div.devel_basic_pagepath_1,
div.devel_basic_pagepath_11 {
 cursor: default;
 position: fixed;
 right: 0;
 bottom: 0;
 background: #f1f3f4;
 color: #5f6368;
 padding: 6px;
 z-index: 10001;
 font-family: system-ui;
 font-size: 12px;
 border-top: 1px solid #cacdd1;
 border-left: 1px solid #cacdd1;
 line-height: 1;
}

#develribbon {
 display: none;
 position: fixed;
 left: -10px; 
 top: -10px;
 z-index: 99999999;
 overflow: hidden;
 width: 280px; 
 height: 280px;
 text-align: right;
}

#develribbon span {
 font-size: 25px;
 font-weight: bold;
 color: #FFF;
 text-transform: uppercase;
 text-align: center;
 line-height: 40px;
 transform: rotate(-45deg);
 -webkit-transform: rotate(-45deg);
 width: 375px;
 display: block;
 background: #79A70A;
 background: linear-gradient(#9BC90D 0%, #79A70A 100%);
 box-shadow: 0 2px 24px -2px rgba(0, 0, 0, 1);
 position: absolute;
 top: 99px;
 left: -67px;
}

#develribbon span::before {
 content: "";
 position: absolute; left: 0px; top: 100%;
 z-index: -1;
 border-left: 3px solid #79A70A;
 border-right: 3px solid transparent;
 border-bottom: 3px solid transparent;
 border-top: 3px solid #79A70A;
}

#develribbon span::after {
 content: "";
 position: absolute; right: 0px; top: 100%;
 z-index: -1;
 border-left: 3px solid transparent;
 border-right: 3px solid #79A70A;
 border-bottom: 3px solid transparent;
 border-top: 3px solid #79A70A;
}


/* select.makediv muotoilut, kts embed_ui.js "Muutetaan select divirakenteeksi" */

div.makediv-opt-sel-cont { 
 position: relative; 
 display: inline-block;
}

div.makediv-opt-sel-wrapper { 
 height: 100%; 
 min-width: fit-content;
}

div.makediv-opt-sel-wrapper.disabled div.makediv-sel-opt,
div.makediv-opt-sel-wrapper.disabled div.makediv-opts {
  opacity: 0.5; 
  cursor: default;
}

div.makediv-sel-opt { 
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  height: 100%;
  width: fit-content;
  min-width: 200px;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 7px 15px;
  padding-right: 40px !important;
  text-align: left;
  white-space: nowrap;
  background: #ffffff no-repeat right center url(/common_ui/embed_ui/img/icons_google/navigation/ic_arrow_drop_down_black_36dp.png);
  border: 1px solid #cccccc;
  color: #000;
}

div.makediv-sel-opt.multiple { width: 100%; } 

div.makediv-sel-opt:focus,
div.makediv-sel-opt:active { 
 border: 1px solid #000000; 
}


div.makediv-sel-opt.opened { 
  background: #ffffff no-repeat right center url(/common_ui/embed_ui/img/icons_google/navigation/ic_arrow_drop_up_black_36dp.png);
  border: 1px solid #000000;
}

div.makediv-opt-search {
 padding: 5px;
 border-left: 1px solid #808080;
 border-right: 1px solid #808080;
 border-top: 1px solid #808080;
 border-bottom: 1px solid #808080;
 display: none;
 position: absolute;
 z-index: 999;
 background-color: #fff;
}

div.makediv-opt-search input { 
 padding: 0 10px 0 30px;
 width: calc( 100% - 40px ); 
}

div.makediv-opt-search div.makediv-opt-search-icon,
div.makediv-opt-search div.makediv-opt-clear-search {
 position: absolute;
 color: #808080;
 line-height: 1em;
 margin-top: -3px;
 top: 13px;
 left: 10px;
}

div.makediv-opt-search div.makediv-opt-clear-search { 
 left: unset;
 right: 10px;
 top: 15px;
 cursor: pointer;
}

div.makediv-opt-search div.makediv-opt-search-icon span.material-icons { 
 font-size: 20px;
}

div.makediv-opt-search input::placeholder { 
 color: #808080;
 font-style: italic;
}

div.makediv-opts-no-results { 
  padding: 7px 30px 7px 15px;
  text-align: left;
}

div.makediv-opts { 
  display: none;
  position: absolute;
  left: 0;
  z-index: 100;
  margin-top: -1px;
  background: #ffffff;
  border: 1px solid #808080;
  overflow: auto;
 -webkit-box-sizing: border-box;
 -ms-box-sizing: border-box;
 -moz-box-sizing: border-box;
  box-sizing: border-box;
}

div.makediv-opts div.makediv-opt {
  color: #000;
  border: 1px solid transparent;
  border-bottom: 1px solid #cccccc;
  padding: 7px 30px 7px 15px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
 -webkit-touch-callout: none;
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
 -webkit-box-sizing: border-box;
 -ms-box-sizing: border-box;
 -moz-box-sizing: border-box;
  box-sizing: border-box;
 background-color: #ffffff; 
 position: relative;
}

div.makediv-opts.multiple div.makediv-opt::after {
 font-family: 'Material Icons';
 font-size: 20px;
 position: absolute;
 right: 0px;
 color: #404040;
 background: #ffffff;
 border: 5px solid #ffffff;
 line-height: 1em;
 top: 50%;
 margin-top: -15px;
 content: '\E835';
}

div.makediv-opts.multiple div.makediv-opt.selected::after { 
  background: #e2e2e2;
  border: 5px solid #e2e2e2;
  content: '\E834';
}

div.makediv-opts div.makediv-opt:last-of-type { border-bottom: 0; }

div.makediv-opts div.makediv-opt:hover,
div.makediv-opts div.makediv-opt.selected:hover,
div.makediv-opts div.makediv-opt:focus { 
 border: 1px solid #333; 
}

div.makediv-opts div.makediv-opt.selected { background: #e2e2e2; }

div.makediv-opt-sel-wrapper:focus div.makediv-sel-opt { 
  border: 1px solid #333;
}

div.makediv-opt-sel-wrapper.focused { 
 outline: auto 1px Highlight;
 outline: auto 1px -webkit-focus-ring-color;
}

div.makediv-opts div.makediv-opt.selected.remove { 
  background-image: url(/common_ui/embed_ui/img/icons_google/content/ic_clear_white_18dp.png);
  background-position: 95.5% center;
  background-position: -webkit-calc(100% - 8px) center; 
  background-position: right 8px center;
  background-repeat: no-repeat;
}

div.makediv-opts div.makediv-opt.disabled { 
  color: #d0d0d0; 
  cursor: default;
}

div.makediv-opts div.makediv-opt.filtered-hide { display: none !important; }

div.makediv-opts div.makediv-opt.filtered-show { display: block !important; }

a.makediv_update_grouplink { 
 display: block; 
 width: fit-content;
}

a.makediv_update_grouplink button { margin-top: -3px; }

/*****************************************************************
Piilotetaan elementti ruudulta, mutta pidetään edelleen saatavilla
ruudunlukijoille (saavutettavuustekijä).
*****************************************************************/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  }
