/*html.disable-scroll{
    overflow: hidden;
}*/

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
}

/*body {
    position: static;
    overflow-y:auto;
}*/

.disable-scroll{
    //position: fixed;
    overflow-y: scroll;
    overflow-x: hidden;
    width: calc(100% + 17px);
    box-sizing: border-box;
}

.disable-scroll header{
    position: static;
    height: 0;
}

html {
    overflow-y: scroll;
}
.purchasing-block, .search-agreements{
	font-size: 0;
}

.purchasing-block h3{

	padding: 0.5em 1%;
	font-size: 20px;
	background-color: rgb(28, 75, 122);
	color: white;
	transition: all .2s ease;
}

.purchasing-block h3:hover{
	background-color: rgb(41, 105, 169);
	cursor: pointer;
}

.purchasing-block .lot{
	font-size: 16px;
	display: inline-block;
	width: 98%;
    margin: 0 1% 1em;
	background-color: rgb(244,244,244);
}

.purchasing-block .lot-title{
	font-size: 18px;
	padding: 0.5em;
	background-color: rgb(233,233,233);
	font-weight: bold;
	border-bottom: solid 1px rgb(66,66,66);
}

.purchasing-block .agreement, .search-agreements .agreement,
.purchasing-block .inst-agreement, .search-agreements .inst-agreement{
	width: 100%;
	display: inline-block;
	padding: 0.5em 1em;
	margin: 0.5em 0;
	vertical-align: top;
	box-sizing: border-box;
	font-size: 16px;
	-webkit-transition: background-color .2s ease;
	transition: background-color .2s ease;
}

.agreement .title, .agreement .end-date,.agreement .contact,.agreement .start-date,.agreement .title,.agreement .reference,
.inst-agreement .title, .inst-agreement .end-date,.inst-agreement .contact,.inst-agreement .start-date,.inst-agreement .title,.inst-agreement .reference{
	display: inline-block;
	width: 15%;
	vertical-align: middle;
	padding: 0.5em;
	box-sizing: border-box;
}

.agreement .title{

  width: 40%;
}

.inst-agreement .title{
  width: 50%;
}


.inst-agreement .reference{
  width: 20%;
}

.purchasing-block .notes{
	display: none;
}

.purchasing-block .agreement:hover,.purchasing-block__comodities--search .agreement:hover,
.purchasing-block .inst-agreement:hover,.purchasing-block__comodities--search .inst-agreement:hover{
	background-color: rgb(233,233,233);
	cursor: pointer;
}

.purchasing-block__comodities{
	display: none;
}

.purchasing-block__comodities--search{
	display: block;
}

.contracts{
	font-size: 0;
}

.agreements {
    width: 25%;
    display: inline-block;
    font-size: 16px;
    vertical-align: top;
}
/*
.categories {
	//width: 75%;
	width: 100%;
	display: inline-block;
	font-size: 16px;
	vertical-align: top;
	padding: 0 0.5em;
	box-sizing: border-box;
    -webkit-box-sizing: border-box;
}*/

.agreements h3 {
    /* background-color: dimgrey; */
    border-right: 1px solid rgb(199,199,199);
    font-size: 16px;
    padding: 1em 0.5em;
    margin: 0;
    box-sizing:  bordr-box;
    -webkit-box-sizing: border-box;
    text-overflow: ellipsis;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}

.agreements h3:hover{
	background-color: rgb(244,244,244);
}

.search {
    width: 100%;
    font-size: 0;
    text-align: right;
    padding: 0 8px;
    box-sizing: border-box;
}

.search .reset{
	display: inline-block;
    width: 25%;
    box-sizing: border-box;
    padding: 0.7em 0.5em;
    border: none;
    font-size: 18px;
    background-color: rgb(36, 70, 119);
    transition: all .2s ease;
    border-right: solid 2px rgb(222,222,222);
    color: white;
    text-align: center;
    transform-origin: right;
    transform: rotateY(90deg);
    transition: all .2s ease-in;
    vertical-align: bottom;
}

.search .reset:hover{
	cursor: pointer;
	background-color: rgb(77,77,77);
}

.search .reset.open{
	transform: rotateY(0deg);
}

.search input {
    display: inline-block;
    width: 50%;
    margin: 0;
    padding: 0.7em 0.5em;
    box-sizing: border-box;
    /*border: none;*/
	border-left: 1px solid #939393;
	border-top: 1px solid #939393;
	border-bottom: 1px solid #939393;
   	background-color: rgb(238, 238, 238);
    font-size: 18px;
}

.search button {
    display: inline-block;
    width: 25%;
    box-sizing: border-box;
    padding: 0.7em 0.5em;
    border: none;
    font-size: 18px;
    background-color: rgb(7, 75, 148);
    transition: all .2s ease;
	border-left: 1px solid #939393;
	border-top: 1px solid #939393;
	border-bottom: 1px solid #939393;
    border-left: solid 1px rgb(222,222,222);
}

.search button:hover {
	background-color: rgba(76, 120, 176) ;
	color: white;
}

.search .search-wrapper {
    font-size: 0;
    display: inline-block;
    width: 100%;
    margin: 0 0 16px 0;
}

.agreement-details{
	position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(66,66,66,0.8);
    top: 0;
    left: 0;
    text-align: center;
    z-index: 99;
    //overflow-y: scroll;
    //overflow-x: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation-name: fadeIn;
    animation-duration: .5s;
    overflow: auto;
    padding: 2rem;
    box-sizing: border-box;
}
.agreement-details:before{
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em; /* Adjusts for spacing */
}

.agreement-details__information{

    display: inline-block;
    vertical-align: middle;
    width: 100%;
    font-size: 16px;
    background-color: white;
    max-width: 900px;

}

.agreement-details__information .header-block{

	background-color: rgb(28, 75, 122);
	color: white;

}

.close{
	float: right;
	padding: 1em;
}

.close:hover{
	background-color: #21588f;
	cursor: pointer;
}

.agreement-title{
	padding: 1em;
    width: 75%;
}

.agreement-ref, .agreement-title{
	display: inline-block;
}

.agreement-details__information .close{
}

.labels, .values{
	font-size: 0;
}

.values{
	margin-bottom: 16px;
}

.labels{
	background-color: rgb(222,222,222);
}

.label, .value{
	font-size: 16px;
    display: inline-block;
    width: 14%;
    padding: .5em 1em;
    box-sizing: border-box;
    text-align: left;
    vertical-align: middle;
}
.value.contact-email a{
	width: 100%;
	font-weight: 400;
}

.notes, .descripiton, .supplier, .keywords{
	font-size: 0;
	background-color: rgb(233,233,233);
}

.agreement-supplier{
    font-size: 16px;
    padding-right: 0.5em;
}

.agreement-supplier:after{
    font-size: 16px;
    content: ",";
}

.agreement-supplier:last-of-type:after{
    content: "";
}

.agreement-keywords{
    font-size: 16px;
    padding-right: 0.5em;
    display: inline-block;
}

.agreement-keywords:after{
    font-size: 16px;
    content: ",";
}

.agreement-keywords:last-of-type:after{
    content: "";
}

.label-value-pair {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-size: 0;
}

.label-value-pair .label {
    width: 40%;
    background-color: rgb(222, 222, 222);
    padding: 1em 0.5em;
    box-sizing: border-box;
    display: inline-block;
    font-size: 16px;
}

.label-value-pair .value {
    width: 60%;
    padding: 1em 0.5em;
    box-sizing: border-box;
    display: inline-block;
    font-size: 16px;
}

.note-label, .descripiton-label, .supplier-label, .keywords-label {
    font-size: 16px;
    display: inline-block;
    box-sizing: border-box;
    text-align: left;
    padding: 0.5em 1em;
    //background-color: rgb(233,233,233);
    vertical-align: top;
    width: 100%;

}

.note-value, .descripiton-value, .supplier-value, .keywords-value {
    font-size: 16px;
    display: inline-block;
    box-sizing: border-box;
    text-align: left;
    padding: 0.5em 1em;
    vertical-align: top;
    background-color: white;
    width: 100%;
    border-top: solid 1px rgb(28, 75, 122);

}

.note {
    background-color: #ffffcc;
    border-left: 6px solid #ffeb3b;
}

.panel {
    padding: 0.01em 16px;
    margin-top: 16px!important;
    margin-bottom: 16px!important;
}

.note-value.double{
    height: 4em;
}

@media only screen and (max-width : 320px) and (max-device-width : 480px){
    .disable-scroll{
        width: 100%;
    }
}

@media (max-width: 620px){

    .agreement-details{
        padding: 15px;
    }

    .disable-scroll{
        width: 100%;
    }

  .purchasing-block h3{
    padding: 1rem;
    font-size: 14px;
  }

  .purchasing-block .inst-agreement, .purchasing-block .agreement{
    font-size: 12px;
  }
}

@media (min-width: 1024px) {

    .agreement-details__information{
        //margin-left: 16px;
    }

    .label-value-pair {
        display: inline-block;
        width: 16.66%;
        vertical-align: top;
    }

    .label-value-pair .label {
        width: 100%;
        background-color: rgb(222, 222, 222);
        padding:  0.5em;
        box-sizing: border-box;
    }

    .label-value-pair .value {
        width: 100%;
        padding: 1em 0.5em;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .note-label, .descripiton-label, .supplier-label, .keywords-label {
        width: 20%;
    }

    .note-value, .descripiton-value, .supplier-value, .keywords-value {
        width: 80%;
        border: none;
        border-left: solid 1px rgb(28, 75, 122);
    }
} 