/** -----------------------------------------------------------------------------------------------------
 * 
 * sections.css file
 *
 * @author Szincsák András <andras@szincsak.hu>
 * @copyright Copyright (c) 2021, Szincsák András
 * ------------------------------------------------------------------------------------------------------ */

.layout-userbox {
  height: 100%;
}

.userbox {
  background: #d1dfec
}

.userbox2 {
  height: 100%;
  background: url(../images/stat.jpg);
  background-size: cover;
  opacity: .97;
  background-position: center center;
}

header#topHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  z-index: 50;
  border-bottom: 1px solid #ccc
}

header .form-control {
  padding: 7px 15px;
  height: inherit;
  font-size: 1em;
}

header #searchBlock {
  display: inline-block;
  width: 50%
}

header #searchBlock input {
  border: 1px solid #ccc;
  border-radius: 5px;
  ;
  padding: 5px;
  width: 100%;
  outline: none !Important;
}

header #searchBlock input::placeholder {
  font-size: .9em;
  color: #ccc
}

aside {
  position: fixed;
  top: 59px;
  ;
  width: 200px;
  z-index: 81;
  overflow: hidden;
  padding: 0;
  height: 100%;
  background: #5d5d5d;
  ;
  padding: 5px;
  border-right: 1px solid #ccc;
  transition: all .3s ease-in-out
}

main {
  padding: 15px 15px 60px 15px;
  margin: 60px 0 0 200px;
  ;
  min-height: 80vH;
  background: #fafafa;
}

body.minimalized aside {
  width: 50px;
  transition: all .3s ease-in-out;
}

body.maximalized aside {
  width: 200px;
  transition: all .3s ease-in-out;
}

body.maximalized main {
  margin: 60px 0 0 200px;
}

body.minimalized aside:hover {
  overflow: unset;
}

body.minimalized main {
  margin: 60px 0 0 40px;
}

main .container,
main .container-fluid {
  max-width: 100% !Important
}

main main {
  margin: 0 !Important;
  padding: 0 !Important
}

#sectionMain {
  margin-bottom: 3vh;
  min-height: 80vh
}

#sectionPopup {
  position: relative
}

#sectionPopup #sectionMain {
  margin: 10px 0
}

#sectionPopup h1 {
  position: sticky;
  top: 0;
  Z-INDEX: 777;
  margin-bottom: 0;
  display: block;
  width: 100%;
  font-size: 20px;
  padding: 5px;
  background: #3a6792;
  color: #fff;
  margin-bottom: 10px
}

#sectionPopup h1.offline {
  background: #DC3543;
  color: #fff;
}

#sectionPopup.framed h1 .float-right {
  position: absolute;
  top: 23px;
  right: -5px;
  min-width: 125px
}

#sectionPopupFull h1 {
  margin-bottom: 0;
  display: block;
  width: 100%;
  font-size: 20px;
  padding: 5px;
  background: #3a6792;
  color: #fff;
}


.keditor-editable h1,
.keditor-editable h2 {
  position: static !Important;
  background: none !Important;
  color: inherit !Important;
  padding: 0 !Important;
  margin: 5px 0 !Important;
}

#sectionPopup h1.time {
  text-align: center
}

#sectionPopup h1 small {
  margin-left: 5px;
  font-size: 1.3em;
  display: block;
}

#sectionPopup form.bigHeader {
  padding: 5px 0 70px 0;
}

#sectionPopup h1 a {
  color: #eee;
  float: right;
  margin: 0 20px;
  text-align: right
}

#sectionPopup .DyTab .tab-content {
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px
}

#sectionPopup h1 a b {
  display: block;
  color: #fff;
  font-size: .8em
}

@media (max-width: 360px) {
  #sectionPopup h1 a {
    display: none
  }
}


#sectionPopupMain {
  padding: 5px 10px;
  min-height: 80vh
}

#sectionPopupMain .DyTab {
  margin-top: 30px;
}

#sectionPopupMain .DyTab form {
  padding: 15px 0px;
}

#sectionPopupMainDouble {
  padding: 75px 15px 15px 15px;
  min-height: 80vh
}

#companyDetails {
  display: none;
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #617DA6;
  border-radius: 5px;
}

#companyDetails dl {
  margin-bottom: 0
}

#companyInfo {
  font-size: .8em;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#loadform {
  width: 100%;
  height: 75vH;
  border: 0;
}


/*************************************************/
#sectionInfo {
  display: grid;
  grid-template-columns: 1fr;
}

#sectionBuildings {
  padding: 0px;
  background: #fff;
}

#sectionBuildings .head {
  background: #fafafa;
  padding: 0px;
  border-bottom: 2px solid #fff;
  color: #3a6792;
}

#sectionBuildings .head td {
  padding: 0
}

#sectionBuildings h2 {
  font-size: 1.2em;
  padding: 10px;
  margin: 0;
}

#sectionBuildings h2 b {
  color: inherit
}

#sectionBuildings .info {
  display: block;
  float: right;
  max-width: 50%;
  color: inherit
}

#sectionBuildings .head[aria-expanded="true"] {
  background: #3a6792;
  color: #fff;
}

#sectionBuildings .head {
  background: #eee;
  font-size: .9em;
  padding: 5px 5%
}

#sectionBuildings .owner {
  padding: 1px 8%
}

#sectionBuildings td table .head[aria-expanded="true"] {
  background: #aaa;
  color: #fff;
}

#sectionBuildings .collapse {
  font-size: 1em
}

/*IFRAME*/
#sectionIframe iframe {
  width: 100%;
  border: none !Important;
  height: 80vh;
  background: transparent
}

iframe.clear {
  width: 100%;
  border: none !Important;
  height: 80vh;
  background: transparent
}


#sectionFull {
  padding: 10px 10px 0 0;
  ;
  ;
  min-height: 80vh
}

.CRUDheader {
  margin: -10px 0 20px 0;
}

.CRUDheader .widget .inner {
  background: #fff;
  margin: 2px;
  padding: 5px;
  text-align: center;
  font-size: 1.2em;
  min-height: 90px
}

.CRUDheader .widget .inner h2 {
  margin: 0;
  padding: 0;
  font-size: 1.5em;
}

.CRUDheader .widget .inner h3 {
  font-size: .7em
}

.CRUDheader .widget .inner small {
  display: block;
  line-height: 1em;
  font-size: .7em
}

.CRUDheader .widget .inner.red {
  background: #3a6792;
  color: #fff !Important;
}

.CRUDheader .widget .inner.red h2 {
  color: #fff !Important;
}

.CRUDheader .widget .inner.blue {
  background: #999;
  color: #fff;
}

.CRUDheader .widget .inner.grey {
  background: #ddd;
}

.CRUDheader .widget .inner.yellow {
  background: #f4e9a0;
}

.CRUDheader .widget .inner.bordered {
  background: #28a745;
  color: #fff
}

.CRUDheader.vertical .widget .inner {
  min-height: 135px
}


.messagesform .widget .inner {
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  text-align: center;
  font-size: 1.2em;
  min-height: 90px
}

.messagesform .widget .inner h2 {
  margin: 0;
  padding: 0;
  font-size: 1.5em;
}

.messagesform .widget .inner h3 {
  font-size: .7em
}

.messagesform .widget .inner small {
  display: block;
  line-height: 1em;
  font-size: .7em
}

.messagesform .widget .inner.red {
  background: #617DA6;
  color: #fff;
}

.messagesform .message {
  font-size: .8em;
  line-height: 1.2em;
  margin: 20px 0;
  background: #fff;
  padding: 10px;
  height: 20vh;
  overflow: auto
}

.messagesform .message.large {
  height: 60vh;
}

.messagesform .text {
  font-size: .8em;
  line-height: 1.2em;
  margin: 20px 0;
  background: #fff;
  padding: 10px;
  height: 32px;
  overflow: hidden
}

.table .resenditem svg {
  color: #28a745
}

.table .removeitem svg {
  color: #f00
}

div.leftUser {
  margin-top: 20px
}

div.leftUser .widget {
  max-width: 100%;
  flex: 100%;
}

div.leftUser [class*=offset-] {
  margin: 30px 0px 0 0
}

/*BOX */
.box {
  background: #fff;
  border-radius: 5px;
  padding: 10px;
  margin: 15px
}

.box .textBlock {
  white-space: break-spaces;
  margin: 0 0 20px 0;
  background: #e4eded;
  padding: 15px 10px;
  border: 1px solid #ccc;
}

.box .formbox {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: all .3s ease-in-out;
}

.box .formbox.active {
  max-height: 100%;
  padding: 10px 0
}

.box .alert {
  min-height: 50px;
}

.box .edit {
  margin-right: 10px;
  color: #a8a8a8;
  cursor: pointer
}

.box textarea {
  font-size: .8em
}

/* WHITEBOARD*/

.whiteboard {
  margin-top: -10px;
  background: #fff;
  height: 100vh;
  padding: 20px;
}

.whiteboard h1 {
  margin: 20px;
  text-align: center
}


.stocks .box {
  padding: 10px;
  border: 1px solid #ccc
}

.stocks .title {
  width: 50%;
  display: inline-block;
  vertical-align: text-bottom;
  color: #3a6792
}

.stocks .title h2 {
  display: inline-block;
  font-size: 1.4em;
  margin-left: 20px;
}

.stocks .tile {
  padding: 5px;
  text-align: center;
  display: inline-block
}

.stocks .tile span {
  display: block
}

.stocks .tile svg {
  font-size: 1.5em;
  opacity: .5;
}

.stocks .action {
  width: 20vw;
  max-width: 90px;
  ;
  margin: auto;
  padding: 15px;
  border: 1px solid #ccc;
}

.stocks .action:hover {
  box-shadow: 0px 0px 2px #bbb;
}

.stocks .action:hover svg {
  opacity: 1;
}

.stocks .box .tile:nth-child(2) svg {
  color: #3a6792;
}

.stocks .box .tile:nth-child(3) svg {
  color: #009c44;
}

.stocks .box .tile:nth-child(4) svg {
  color: #970c0c;
}

.stockType {
  margin: -15px;
  padding: 15px;
}

.stockType-1 {
  background: #b1d3c7
}

.stockType-2 {
  background: #d3ceb1
}

.stockType-3 {
  background: #ea8f8f
}


.scroll80 {
  height: 80vh;
  overflow: scroll;
  padding-bottom: 1vh
}

@media (max-width: 390px) {
  main {
    padding: 15px 15px 0px 15px;
  }

  .scroll80 {
    height: 72vh
  }
}

.box-widget-container{
  background: #f7f7f7;
  padding: 10px 0;
  margin: 0 0 5px 0px;

}

.box-widget {
  box-shadow: 1px 1px 3px #ccc;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  margin: 5px 0;
  min-height:14vh;
  background: #fff;

}


.box-widget h3 {
  font-size: 1em;
  text-align: center;
  padding:4px 0;
}
@media (max-width: 1187px) {
  .box-widget {
    min-height: 16vh;
  }
  .box-widget h3 {
    font-size: .8em;
  }
  .box-widget br{display: none;}
}

@media (max-width: 987px) {
  .box-widget {
    min-height: 6vh;
  }
  .box-widget h3 {
    font-size: .8em;
  }
  .box-widget br{display: none;}
}

.box-widget .badge {
  width: 40px
}

.box-widget p {
  display: inline-block;
  margin: 0;
}

.box-widget small {
  font-size: .8em;
  display: block;
  line-height: .7em;
  text-align: center;
}

.box-widget hr {
  margin: 6px -5px;
  border-color: #f1f1f1;
}
.box-widget svg{    color: #617da6;
  font-size: 1.2em;}