/*
 * General style for the web app. It is messy here... lot of it should go to
 * archive.css
 */

.spacious_input {
   width: 98%;
}

.l-box {
    padding: 1em;
}

.spacious_list li {
    padding-bottom: 15px;
}

.login {
    line-height: 12px;
    font-size: 10pt;
    margin-top: 1px;
    margin-right: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.login a:link {
	color: #999;
}

.login a:visited {
	color: #999;
}

.logout_button {
   width: 15px;
  background: none!important;
  border: none;
  padding: 0!important;
  font: inherit;
  /*input has OS specific font-family*/
  background-color: transparent;
  color: #999;
  cursor: pointer;
}

.logout_form_floatright {
   float: right;
}

/* Todo: this one can go out? */
.centered_content {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}


.centered_login {
    position: fixed;
    top: 10%;
    left: 5%;
    width: 500px;
    height: 600px;
}

.centered {
   text-align: center;
}

@media screen and (min-width: 35.5em) {

   .centered_login {
       position: fixed;
       top: 50%;
       left: 50%;
       width: 500px;
       margin-left: -250px;
       height: 600px;
       margin-top: -200px;
   }

}

.slightly_off_button {
	transform: translateY(-5px);
}

.provider-button {
   width: 100%;
   margin: 5px;
   background: #b3c6ff;
}

.impersonated {
   color: red;
}

.login-icon {
   color: grey;
   text-decoration: none;
}

.login-icon a:visited {
   color: grey;
   text-decoration: none;
}

table.simple_table td { padding:5px; }
table.simple_table th { padding:5px; }

/*
 * On-Off switch
 */

 /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*
 * multiselect using a fixed-height CheckboxSelectMultiple
 */

div.mm_select {
  overflow: scroll;
  height: 9em;
  width: 95%;
  border: 2px solid #ddd;
  padding: 5px;
  border-radius:5px;
  background-color: #fff;
}

div.mm_select_l {
  height: 18em;
}

div.mm_select div {
   overflow: hidden;
   word-break: keep-all;
   line-height: 0.1em;
}

div.mm_select label {
   font-weight: normal;
   overflow: hidden;
   word-break: keep-all;
   margin-top: 7px;
}

/*
 * Indicators showing current status
 */

.attention_needed {
    color: #090063;

}

.content_background {
   background: url(/data/site/img/logo.svg);
   background-size: 100%;
   background-origin: content-box;
   background-clip: content-box;
   background-repeat: repeat-y;
   min-height: 100%;
  /* background-attachment: fixed; */
}

/*
 Alignment in footers
 */

.footer_value {
	text-align: right !important;
}

/*
 * Pure CSS overrides
 */

.pure-form-message {
	color:#888;
	font-size:.700em;
}

.pure-control-group {
    padding: 5px 0px;
}

.pure-control-group label {
}

.pure-control-group input {
  font-style: oblique;
}

/*
 * SVG inside (small) button
 */

.color-button {
  width: 30.6px;
  height: 30.6px;
}

.color-button svg {
  width: 25px;
  height: 25px;
  transform: translate(-11px, -6px);
}

/*
 * Buttons with icon which temporarily change color after click
 */

.subtle_click_icon {
  cursor: pointer;
  color: #ccc;
}

.click_icon_highlight {
	color: blue;
}

/*
 * For DataTable: adjust selected color so that it overrides other background overrides
 */

.selected td {
    background-color: #acbad4 !important;
}

/*
 * for DataTable
 */
table.url_linking_tableclass tbody tr {
  cursor: pointer;
}

td.dt-detail-control {
  cursor: pointer;
  text-align:center;
  color:  #66cc66;
}

tr.shown td.dt-detail-control {
  color:  #ff6666;
}

table.dataTable .dtrg-start {
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: bold;
  font-style: italic;
}

button::-moz-focus-inner {
  border: 0;
}

.click_field {
   cursor: pointer;
}

/*
 * Used for icons in some Datatables
 */

.click_icon {
	cursor: pointer;
	color: #777;
}

.hidden {
	display: none;
}

.blueish {
 color: #ccddff;
}

/*
 * These two are for two divs to show next to each other, the right one
 * filling the width
 */

div.left {
	display: table-cell;
}

div.right {
	display: table-cell;
	width: 100%;
	text-align: right;
    vertical-align: top;
}

span.right {
 float: right;

}

/*
Similar. https://stackoverflow.com/questions/6632340/
Used in default_form_dynamic_errors
*/

.d-table {
  display:table;
}

.d-table-cell {
  display:table-cell;
}

.d-table-row {
  display:table-row;
}

.w-100 {
  width: 100%;
}


.image_button {
	cursor: pointer;
}

/*
 * These are layout-classes both in site.html and site_base.html
 */

.content-wrapper {
   /* These styles are partly overridden in site_home.css for the "scroll-over"
    * effect on the home page
    */
   top: 5%;
   width: 100%;
   min-height: 600px;
   z-index: 2;
   background: white;
   /* for footer positioning */
   flex: 1 0 auto;
   position: relative;
   transform: translateZ(0);
   display: flex;
}

.content {
   margin: 0 auto;
   padding: 0 2em;
   max-width: 1000px;
   margin-bottom: 50px;
   line-height: 1.6em;
   flex: 1;
   overflow: auto;
}

/*
 * For collapsible elements, see https://www.w3schools.com/howto/howto_js_collapsible.asp
 * and js/collapsible.js
 */

.collapsible {
}

.collapsible_content {
  padding: 15px;
  overflow: hidden;
  display: none;
//  transition: max-height 0.2s ease-out;
  margin:15px 0px 15px 0px;
  box-sizing: border-box;
}

.solid_collapsible_content {
  padding: 15px;
  overflow: hidden;
  display: none;
/*  transition: max-height 0.2s ease-out; */
  outline: 1px solid #ccc;
  outline-offset: -1px;
  background-color:#FFF;
  margin:15px 0px 15px 0px;
  box-sizing: border-box;
}

.collapsible::after {
  content: "\f067"; /* fontawesome "plus" sign (+) */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  display: inline-block;
  float: right;
  margin-left: 5px;
}

.active::after {
  content: "\f068"; /* font awesome "minus" sign (-) */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/*
 * drag/drop
 */

.hoverDrop {
	background-color: red;
}

/*
 * Editing/viewing flat text files
 */

.flat_textfield {
   font-size: 0.6em;
   width: 100%;
}

.low_textfield {
   font-size: 0.6em;
   width: 100%;
   height: 15em;
}

/*
 * thumbnail
 */


.photo-comment {
  font-size: 120%;
}

/*
 * charts
 */

.chart-container {
  position: relative;
  height: 100%;
  width: 100%;
}


/*
 * Sizes for pure-buttons
 */

.button-xsmall {
	font-size: 70%;
    margin: 1px;
}

.button-small {
	font-size: 85%;
    margin: 2px;
}

.button-large {
	font-size: 110%;
    margin: 3px;
}

.button-xlarge {
	font-size: 125%;
    margin: 3px;
}

.button-error {
   background: rgb(202, 60, 60);
	color: white;
   /* this is a maroon */
}

.button-warning {
	background: rgb(223, 117, 20);
	color: white;
	/* this is an orange */
}

.button-purple {
	background: #6900cc;
	color: white;
}

.button-green {
	background: green;
	color: white;
}

.button-orange {
	background: orange;
	color: white;
}

/* Derived from 11, 33, 97 using https://htmlcolorcodes.com/color-picker/
 */

.button-blueish1 {
	background: #67749c;
	color: white;
}

.button-blueish2 {
	background: #485989;
	color: white;
}
.button-blueish3 {
	background: #2A3D75;
	color: white;
}

@media only screen and (max-width : 480px) {
 .pure-form button[type="submit"] {
     margin: 0 0 0;
 }
}

/*
 * messages
 */

.messages {
  width: 100%;
  padding: 2px;
  margin-top: 3px;
  margin-bottom: 3px;
  color: #222222;
  border-radius: 5px;
}

.idle_message {
  display: none;
}

.inprogress {
  border:0px;
  background-color: transparent;
  display: block;
  font-size: smaller;
}
.success {
  border:2px solid #9fdf9f;
  background-color: #9fdf9f;
  display: block;
  font-size: smaller;
}

/* This one is not used anymore in messages below tables, etc
   (ab)using error_place now */
.error {
  border:2px solid #b30000;
  background-color: #ff3333;
  color: #111111;
  display: block;
}

.info {
  background-color: #a0a0ff;
  color: white;
}

.warning {
  background-color: #ffc300;
  color: white;
}

/*
 * Other colors
 */

.attention_bg {
	background-color: #cce6ff;
}
.attention_icon {
	color: #004f99;
	font-size: 90px;
}

/*
 * Simple layout thingies
 */
.inline_block {
  display: inline-block;
}

/*
 * Showing errors in forms
 */

.errorlist {
  list-style-type: none;
  padding: 0px;
  color: red;
  font-weight: bold;
  font-size: smaller;
}

.field_in_error {
  background-color: #F8E0E0;
  border:1px solid red;
}

.error_place {
	color: red;
	font-weight: bold;
	font-size: smaller;
}

/*
 * Recommendation to login (used in some subscription pages)
 */
.login_recommend {
	clear: both;
}

.recommendation_l {
	background-color: #eee;
	font-size: smaller;
}

.recommendation_r {
	background-color: #eee;
}

<!--
/*
 * Tooltip container
 */

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 1s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
-->

#tooltip {
   position: absolute;
   z-index: 3000;
   border: 1px solid #111;
   background-color: #eee;
   padding: 5px;
   opacity: 0.85;
}

#tooltip h3, #tooltip div { margin: 0; }

form p label {
   display: inline-block;
   width: 9em;
}

.ui-tooltip {
   width: 300px;
   border: 5px solid white;
   padding: 10px 20px;
}

/*
 * Modal dialog styles (Floating windows like: editing comments, tags, sharing albums, ..)
 */

.dialog_icon {
   float: left;
   margin: 12px 12px 20px 0;
}

.modaldialog_frame {
   margin:15px 15px 15px 15px;
}

.modaldialog_outlinebox {
	margin:15px 0px 15px 0px;
	padding:5px 5px 5px 5px;
	border:2px solid #777777;
}

/*
 * jquery ui 'extension'
 */

.highlighted {
       background: #fefb08;
}

.very_highlighted {
       background: #b4fe70;
}

/* --------------------------
 * Footer Module Styles
 * --------------------------
 */
-
.footer {
    border-top: 1px solid #eee;
   /* margin-top: 3.4286em; */
    padding: 1.1429em;
    background: rgb(250, 250, 250);
}

.legal {
    line-height: 1.6;
    text-align: center;
    margin: 0 auto;
}

    .legal-license {
        margin-top: 0;
    }
    .legal-links {
        list-style: none;
        padding: 0;
        margin-bottom: 0;
    }
    .legal-copyright {
        margin-top: 0;
        margin-bottom: 0;
    }
@media screen and (min-width: 35.5em) {

    .legal-license {
        text-align: left;
        margin: 0;
    }
    .legal-copyright,
    .legal-links,
    .legal-links li {
        text-align: right;
        margin: 0;
    }

}

/*
 * Used for the logo/title/subtitle combo in the archive pages
 */

  .my_titlediv {
	padding: 5px;
	display: inline-block;
  }

  .my_headingbox {
    text-align:center;
  }

  .my_titlesbox {
    margin-top:auto;
    margin-bottom:auto;
    text-align:center;
  }

/*
 * doDialog()
 */

.dodialog {
   border: 0px;
   width: 100%;
   height: 100%;
}

/*
 *   For use in datatable rows
 */

.line_with_error {
	color: red;
}

/*
 * Force the datepicker to be on top
 */

.ui-datepicker { z-index: 9999 !important;}
.calculator-popup { z-index: 9999 !important;}

body {
   font-size: 13px;
}

@media (min-width: 48em) {

    body {
        font-size: 16px;
    }
}

/* vim: set nowrap sw=3 sts=3 et fdm=marker : */
