.main2 {
    margin: 3px;
    padding: 3px;
    height: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
}

.main2>header {
    height: inherit;
    flex: 1 1 auto;
    margin: 3px;
    padding: 3px;
    border-radius: 3pt;
}

.main2>.homebtn,
.main2>.reguser {
    height: inherit;
    flex: 0 0 auto;
    margin: 3px;
    padding: 3px;
    border-radius: 3pt;
}

.vmessage {
    padding-left: 10px;
}

footer {
    display: block;
    margin: 4px;
    padding: 5px;
    min-height: 50px;
    border-radius: 3pt;
}

footer a {
    text-align: right;
    background-color: #ffffd3;
}

body {
    font: 1em Helvetica;
}

.main {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: 6px;
    padding: 6px;
    min-height: 200px;
    }

.main >.title {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    -webkit-align-self: flex-start;
    -ms-flex-item-align: start;
    align-self: flex-start;
    }

.main > .card,
.main3 > .card,
.main > .inputcard,
.main3 > .inputcard {   
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    -webkit-flex: 0 0 20%;
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    -webkit-align-self: stretch;
    -ms-flex-item-align: stretch;
    align-self: stretch;
    border-radius: 3pt;
    min-height: 100px;
    height: auto;
    position: relative;
    }

.main3 {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: 6px;
    padding: 6px;
    min-height: 100px;
    width: 100%;
    border-style: ridge;
    border-radius: 10px;
    border-width: 3px;
    border-color: bisque;
    }
    
.main > .minicard,
.main3 > .minicard {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 0 10%;
    -ms-flex: 0 0 10%;
    flex: 0 0 10%;
    -webkit-align-self: stretch;
    -ms-flex-item-align: stretch;
    align-self: stretch;
    border-radius: 3pt;
    min-height: 1.5em;
    height: 1.5em;
    position: relative;
    }   

.main4 {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: 6px;
    padding: 6px;
    width: 100%;
    border-radius: 10pt;
    }

.main4 > .card {
    -webkit-order: 3;
    -ms-flex-order: 3;
    order: 3;
    -webkit-flex: 4 0 10%;
    -ms-flex: 4 0 10%;
    flex: 4 0 10%;
    -webkit-align-self: stretch;
    -ms-flex-item-align: stretch;
    align-self: stretch;
    }

.card {
    border-radius: 3pt;
    padding: 6px;
    margin: 6px;
    min-height: 1.5em;
}

.main4 > .title {
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    -webkit-flex: 1 1 20%;
    -ms-flex: 1 1 20%;
    flex: 1 1 20%;
    margin: 0.7%;
    padding: 1%;
}

.main4 > .time {
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    -webkit-flex: 0 0 130px;
    -ms-flex: 0 0 130px;
    flex: 0 0 130px;
    margin: 0.7%;
    padding: 1%;
    border-radius: 3pt;
}

.card > .card_footer {
    position: absolute;
    bottom: 0;
    right: 0;
}

.card > .card_subfooter {
    position: absolute;
    bottom: 0;
    left: 0;
}
        
.buttons_group {
    top: 0;
}

.main > .title,
.main > .card,
.main3 > .card,
.main3 > .minicard,
.menu > .minicard,
.main > .inputcard,
.main3 > .inputcard,
.card > .card_footer,
.card > .card_close,
.inputcard > .card_close,
.main4 > .card {
    margin: 0.7%;
    padding: 1%;
}

.card > .card_subfooter {
    margin: 0.7%;
    padding: 1%;
}

.card > .card_close,
.inputcard > .card_close,
.minicard > .card_close {
    position: absolute;
    top: 0;
    right: 0;
}

.cards_area, .objdesc {
    width: 100%; 
}

table {
    border-spacing: 0;
    border-collapse: collapse;
    background-repeat: no-repeat;
}

table,
td,
th {
    border-width: 2px;
    border-style: outset;
    padding: 0.1em 0.1em 0.1em 0.1em;
}

.eventresults {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.eventresults td{
    text-align: center;
}

.eventresults th{
    height: 4em;
}

label {
  display: inline-block;
  width: 350px;
}

input:invalid+span:after {
    content: '\2713';
    padding-left: 5px;
}

input:valid+span:after {
    content: '\00D7';
    padding-left: 5px;
}

.main > .alert.alert-danger {
    padding: 1px;
}

.inputcard > textarea {
    resize: horizontal ;
    display: block;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 1%;
}

.menu {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: 1em;
    padding: 3px;
    min-height:0px;  
}

.menu > .minicard {
    margin: 3px;
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 3px;
    padding-bottom: 3px;
}

.menu > .minicard {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    border-radius: 3pt;
    min-height: 1.5em;
    height: 1.5em;
    position: relative;
}

.akt_title {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 3px;
}
.category {
    width: 30%;
    float: left;
}
.string {
    float: right;
    width: 70%;
    border-bottom: 1px solid;
}

.wtable {
    width: 100%;
}

.resultsFIO {
    text-align: center;
    color: #FFFF8A;
    background-color: #B3B32B;
}

.resultsSUB {
    text-align: center;
    background-color: #ffff8a;
}

.resultsSUBSUB {
    text-align: center;   
}

.pp td:first-child,
.sumpp td:nth-child(2),
.sumpp td:nth-child(3),
.sumpp td:nth-child(4),
.sumpp td:nth-child(5),
.sumpp td:nth-child(6) {
    text-align: center; 
}

.sumpp td::first-child,
.pp td:nth-child(2),
.pp td:nth-child(3),
.pp td:nth-child(4),
.pp td:nth-child(5) {
    text-align: left; 
}

.btn {
    background: #FFFFE5;
    border-radius: 15px;
    padding: 10px 20px;
    display: inline-block;
    font-family: arial;
    font-weight: bold;
    color:#7f7f7f;
    text-decoration: none;
    text-shadow:0px 1px 0px #fff;
    border:1px solid #A7A37E;
    width:200px;
    margin:0px auto;
    margin:10px 5px;
    box-shadow: 0px 2px 1px white inset, 0px -2px 8px white, 0px 2px 5px rgba(0, 0, 0, 0.1), 0px 8px 10px rgba(0, 0, 0, 0.1);
    transition:box-shadow 0.5s;
    -webkit-transition:box-shadow 0.5s;
}
.btn i{
    float: right;
    margin-top: 2px;
}
.btn:hover{
    box-shadow: 0px 2px 1px white inset, 0px -2px 20px white, 0px 2px 5px rgba(0, 0, 0, 0.1), 0px 8px 10px rgba(0, 0, 0, 0.1);
}
.btn:active{
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5) inset, 0px -2px 20px white, 0px 1px 5px rgba(0, 0, 0, 0.1), 0px 2px 10px rgba(0, 0, 0, 0.1);
    background:-webkit-linear-gradient(top, #d1d1d1 0%,#FFFFE5 100%);
}

.btn.min{
    width:100px;
}

.btn.mid{
    width:300px;
}

.btn.big{
    width:570px;
}

* {
    box-sizing: border-box;
  }

  /*
  * Устройства X-Small (портретные телефоны, менее 576 пикселей)
  * Нет медиа-запроса для `xs`, так как это значение по умолчанию в Bootstrap
  */
  
  .main2 {
    height: 24px;
  }

  .main2 > header, footer {
    background: #FFFFFF;
    display: flex;
}

.main2 > .homebtn, .main2 > .reguser, .main2 > .homebtn > h1, .main2 > .reguser > h1 {
    display: flex;
}

  h1 {
    font-size: 0.8em;
    word-break: break-word;
    margin: 0;
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
  }

  h1 img {
    width: 16px;
    height: auto;
  }

  .main > .card, .main3 > .card, .main > .inputcard, .main3 > .inputcard {
    -webkit-flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
  }

  .reqtable {
    width: 100%;
    border-collapse: collapse;
    border-style: none;
  }

  .reqtable td, .reqtable th {
    padding: 1rem;
    border-collapse: collapse;
    border-style: none;
  }

  .reqtable th {
    background: hsl(0 0% 0% / 0.2);
  }

  .reqtable tr:nth-of-type(2n) {
    background: hsl(0 0% 0% / 0.1);
  }

  .errorcaption {
      height: 3em;
      width: 100%;
      margin: 1em auto 2em auto;
  }

  .errorcaption:before {
    content: "!";
  }

  .errorcaption::first-letter {
        font-size: 3em; /* Размер буквы */
        color: red; /* Цвет буквы */
        float: left; /* Выравнивание по левому краю */
        border-style: outset;
        margin: 0 0.7em 2px 0.7em; /* Отступы вокруг буквы */
  }


  .tooltip {
	border-bottom: 1px dotted #0077AA;
	cursor: help;
}

 .tooltip::after {
	background: #7f7f7f; /* rgba(0, 0, 0, 0.8); */
	border-radius: 8px 8px 8px 0px;
	box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
	color: #FFF;
	content: "ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσςΤτΥυΦφΧχΨψΩω"; /*attr(data-tooltip); Главная часть кода, определяющая содержимое всплывающей подсказки */
	margin-top: -24px;
	opacity: 0; /* Наш элемент прозрачен... */
	padding: 3px 7px;
	position: absolute;
	visibility: hidden;  /* ...и скрыт. */
			
	transition: all 0.4s ease-in-out; /* Добавить плавности по вкусу */
}
		
 .tooltip:hover::after {
	opacity: 0.9; /* Показываем его */
	visibility: visible;
}

.list {
    display: flex;
    justify-content: space-between;
}

  /* Устройства Small (телефоны с горизонтальной ориентацией, 576 пикселей и выше) */
  @media (min-width: 576px) {

    .main2 {
      height: 48px;
    }

    h1 {
      font-size: 1.6em;
      word-break: break-word;
      padding: 0;
    }

    h1 img {
      width: 32px;
      height: auto;
    }

    .main > .card, .main3 > .card, .main > .inputcard, .main3 > .inputcard {
      -webkit-flex: 0 0 48.6%;
      -ms-flex: 0 0 48.6%;
      flex: 0 0 48.6%;
    }
  }

  /* Устройства Medium (планшеты, 768 пикселей и выше) */
  @media (min-width: 768px) {

    .main2 {
      height: 100px;
    }

    h1 img {
      width: auto;
      height: auto;
    }
  }