@font-face {
  font-family: 'Roboto-Regular';
  font-weight: 300;
  src: url("fonts/Roboto-Regular.ttf") format('truetype');
}
@font-face {
  font-family: 'Roboto-Medium';
  font-weight: 300;
  src: url("fonts/Roboto-Medium.ttf") format('truetype');
}
@font-face {
  font-family: 'Roboto-Light';
  font-weight: 300;
  src: url("fonts/Roboto-Light.ttf") format('truetype');
}

body {
	overflow: hidden;
}

#loadingscreen {
    position: fixed;
    top: 0;
    bottom: 0;
	left:0;
    width: 100%;
    background: gray;
    z-index: 9999999;
    opacity: 0.9;
}
#loadingscreen > div.modal {
    opacity: 1;
}

div#send-to-dynasty-modal > div.modal-dialog {
	top: 30%;
}
div.after-hide:after {
	display:none;
}
.lfr-search-container {
	width: 100%;
}
.btn.sidosAddButton {
	width: auto;
}
#portlet_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet, #portlet_sidonnaisuusviewer_WAR_sidonnaisuusrekisteriportlet{
	-webkit-font-smoothing: antialiased;
	background: #FFFFFF;
	width: 100%;
	font-family:Roboto-Reqular;
	font-size:16px;
	font-weight: 300;
	color:#444444;

	.roleContainer label:not(.field-label) {
		display: inline-block;
	}
	.aui.nav.nav-tabs {
		display: flex;
		flex-wrap: wrap;
		width: 100% !important;
	}
	.li.aui.tab {
		border-left: none;
	}
	.editcity-button-row, .editcityboard-button-row {
		float: left;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		button:not(.btn-danger), input.aui.button-input {
			margin-left: 0px;
			margin-right: 10px;
			color: #6b6c7e;
			background: transparent;
			border: 1px solid #999 !important;
		}
		button:hover, input.aui.button-input:hover {
			border: 1px solid #000 !important;
		}
	}
	
	
	.portlet-body{
		margin-top: 30px;
		h1 {
			font-family:Roboto-Medium;
			font-weight: 300;
			font-size:36px;
			color:#444444;
			padding-bottom: 10px;
			margin-bottom: 0;
		}
		h2{
			font-family:Roboto-Medium;
			font-weight: 300;
			font-size:28px;
			color:#444444;
			text-align:left;
			margin-bottom: 0px;
		}
		h3 {
			font-family:Roboto-Medium;
			font-size:24px;
			font-weight: 300;
			color:#444444;
			text-align:left;
		}
		h4 {
			font-family:Roboto-Medium;
			font-size:20px;
			font-weight: 300;
			color:#444444;
			text-align:left;
		}
		div, p, span, label, textarea, input  {
			font-family:Roboto-Medium;
			font-size:16px;
			font-weight: 300;
		}
		hr.big {
			padding:0;
		}
		strong{
			font-weight: normal;
		}
	}
	div.backContainer{
		padding-bottom: 50px;
	}
	a.backToPrev{
		background-image: url("../images/back.png");
		background-repeat: no-repeat;
		width: 7%;
		float: left;
		height: 33px;
		margin-top: 6px;
		margin-left: 6px;
	}
	h1.pageTitle{
		width: 90%;
		float: right;
		margin: 0;
	}
	div.tabContainer{
		min-height: 70px;
	}
	.notificationContainer{
		min-height: 100px;
	}
	div.lastActiveInfoContainer{
		float: left;
		width: 100%;
		padding-bottom: 10px;
	}
	span.notification-plain-text{
		font-family:Roboto-Light;
		font-size:16px;
		color:#555555;
		text-align:left;
	}
	p.notification-plain-text{
		font-family:Roboto-Light;
		font-size:16px;
		color:#555555;
		text-align:left;
	}
	ul.aui.nav.nav-tabs {
		background: none;
		padding: 0;
		border: none;
		width: 60%;
		float:left;
		li.aui.tab {
	    	border-bottom: none;
	    	list-style: none;
	    	margin: 0;
	    	padding: 0;
	    	width:220px;
			height:50px;
			margin-right: 10px;
		}
		
		.aui.tab-content{
			border-bottom: none;
	    	margin: 0;
	    	padding: 0;
	    	width:220px;
			height:50px;
			text-align: center;
			box-shadow: none;
			background:#575757;
			border-left: none;
		}
		.aui.tab-label{
			padding: 0;
			padding-top:13px;
			font-family:Roboto-Regular;
			font-size:16px;
			font-weight: 300;
			color:#ffffff;
			text-align:center;
			box-shadow: none;
			width: 220px;
			padding-bottom: 14px;
			text-shadow: none;
		}
		.aui.state-active {
			.aui.tab-content{
		    	background: #337ab7;
		    	box-shadow: none;
		 		border: none;
			}
		}
	}

	.result-grid{
		border: none;
		border-width: 0;
	}
	.aui.searchcontainer-content{
		border: none;
		border-width: 0;
	}
	.taglib-search-iterator {
		.results-header {
			background: none;
			th{
				background: none;
				border: none;
				border-bottom: 1px solid #e5e5e5;
				font-family:Roboto-Medium;
				font-size:14px;
				color:#444444;
				letter-spacing:0;
				text-align:left;
			}
		}
		.portlet-section-header{
			.col-hakemuksen-tila{
				width: 25%;
			}
			.col-ilmoittajan-nimi{
				width: 50%;
			}
			.col-paivamaara{
				width: 25%;
			}
		}
		.align-left {
			a {
				color:#005D85;
			}
			padding-top:10px;
			padding-bottom: 10px;
			font-family:Roboto-Regular; 
			font-size:16px;
			letter-spacing:0;
			text-align:left;
			border: 0;
			border-bottom: 1px solid #e5e5e5;
			background: #FFFFFF;
		}
		td.last a {
			float: right;
			color: red;
			text-decoration: none;
			cursor: pointer;
		}
	}
	button.sidosAddButton{
		font-family:Roboto-Regular;
		font-size:16px;
		color:#ffffff;
		text-align:center;
		width:180px;
		height:50px;
		float: right;
		box-shadow: none;
		background:#5cb85c;
		border:1px solid #4cae4c;
		border-radius:4px;
		margin-left: 10px;
		text-shadow: none;
	}
	button.sidosAddButtonWide{
		font-family:Roboto-Regular;
		font-size:16px;
		color:#ffffff;
		text-align:center;
		width:200px;
		height:50px;
		float: right;
		box-shadow: none;
		background:#5cb85c;
		border:1px solid #4cae4c;
		border-radius:4px;
		margin-left: 10px;
		text-shadow: none;
	}
	.aui.button-holder{
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.aui.button-content input.aui.button-input{
		font-family:Roboto-Regular;
		font-size:16px;
		color:#ffffff;
		text-align:center;
		width:180px;
		height:50px;
		float: right;
		box-shadow: none;
		background:#5cb85c;
		border:1px solid #4cae4c;
		border-radius:4px;
		text-shadow: none;
	}

	div.auiPopupContainer{
		display: inline-flex;
		input.aui.button-input{
			font-family:Roboto-Regular;
			font-size:16px;
			color:#ffffff;
			text-align:center;
			width:240px;
			height:50px;
			float: right;
			box-shadow: none;
			background:#5cb85c;
			border:1px solid #4cae4c;
			border-radius:4px;
			margin-right: 10px;
			text-shadow: none;
		}
	}
	.clear {
		clear: both;
	}
	.additionalInformationLink{
		padding-bottom: 10px;
		padding-top: 10px;
		font-family:Roboto-Regular;
		font-size:16px;
		float: left;
		width: 100%;
		img.icon{
			padding-right: 5px;
			padding-bottom: 3px;
		}
	}
	label.infoLabel {
		font-family:Roboto-Light;
		font-weight: bold;
		font-size:18px;
		color:#555555;
		line-height:27px;
		text-align:left;
	}
	span.infoText, p.infoText {
		font-family:Roboto-Light;
		font-size:18px;
		color:#555555;
		line-height:27px;
		text-align:left;
	}
	div.notificationContainer div.portlet-msg-success {
		display: block !important;
	}
	.dynasty-wrapper span.aui.field-content {
		display: flex;
		align-items: baseline;
		flex-wrap: wrap;
	}
	.dynasty-wrapper span.aui.field-content>label {
		margin-right: 5px;
	}
	.dynasty-wrapper span.aui.field-content .check-diary-button input {
		padding: 0;
	}
	.dynasty-wrapper .aui.button-input, .dynasty-wrapper #sendaccept-to-dynasty-button-view  {
		height:2.5rem !important;
		padding:0;
	}
	.dynasty-wrapper #get-case-from-dynasty-button,
	.dynasty-wrapper #send-to-dynasty-button-view {
		height: 52px;
		width: auto;
		margin-top: 5px;
	}
	.dynasty-wrapper #send-to-dynasty-button-view {
		min-width: 190px;
		margin-right:4rem;
	}
	.dynasty-wrapper #get-case-from-dynasty-button {
		margin-left: 1rem !important;
	}
	.dynasty-wrapper .aui.field-input {
		max-width:190px;
		padding-left:6px;
	}
	.dynasty-wrapper > form {
		display: inline-block;
	}
	.dynasty-wrapper > form:first-child > div,
	.dynasty-wrapper > form:first-child > button {
		display: inline-block;
	}
	.dynasty-wrapper {
		width:100%;
	}
	.dynasty-wrapper input[type='String'] {
		padding: 5px;
		border-radius: 5px;
		border: 1px solid #999;
		height: 24px;
		width: 220px;
	}
	.aui.button.green.w-100 input {
		width: auto !important;
	}
	.dynasty-attachment-format-wrapper {
		width:auto;
		margin-left: 2.5rem;
		margin-bottom: 2rem;
	}
	.dynasty-attachment-format-wrapper>legend {
		font-size: 1rem;
		margin:0;
	}
	.dynasty-attachment-format-wrapper > span {
		display: inline-block;
	}
	.dynasty-attachment-format-wrapper > span:last-child {
		margin-left: 4rem;
	}
	.icon-plus:before {
		width: 16px;
		height: 16px;
		display: block;
		background-repeat: no-repeat;
		content: " ";
		background-image: url(/nkeservice-miunpalvelut-dxp-theme/images/plus-green.svg);
	}
	.icon-minus:before {
		width: 16px;
		height: 16px;
		display: block;
		background-repeat: no-repeat;
		content: " ";
		background-image: url(/nkeservice-miunpalvelut-dxp-theme/images/minus-red.svg);
	}
	textarea {
		width: 800px !important;
		height: 100px !important;
	}
	.button-holder.buttons > div:first-child {
		margin-bottom: 1rem;
	}
	.button-holder.buttons button {
		margin-right: 1rem;
	}
}
#portlet_sidonnaisuusilmoitus_WAR_sidonnaisuusrekisteriportlet, #portlet_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet, #_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet_addCityBoardRoleForm, #_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet_addCityBoardForm{
	-webkit-font-smoothing: antialiased;
	background: #FFFFFF;	
	.portlet-body{
		.roleContainer label:not(.field-label) {
			display: inline-block;
		}
		#luottamustehtavat {
			max-width:800px;
		}
		h1 {
			font-family:Roboto-Medium;
			font-weight: 300;
			font-size:36px;
			color:#444444;
			padding-bottom: 10px;
			margin-bottom: 0;
		}
		h2{
			font-family:Roboto-Medium;
			font-weight: 300;
			font-size:28px;
			color:#444444;
			text-align:left;
			margin-bottom: 0;
		}
		h3 {
			font-family:Roboto-Medium;
			font-size:24px;
			font-weight: 300;
			color:#444444;
			text-align:left;
		}
		h4 {
			font-family:Roboto-Medium;
			font-size:20px;
			font-weight: 300;
			color:#444444;
			text-align:left;
		}
		div, p, span, label, textarea, input  {
			font-family:Roboto-Medium;
			font-size:16px;
			font-weight: 300;
		}
		hr.big {
			padding: 0;
		}
		strong {
			font-weight: normal;
		}
	}
	div.backContainer{
		padding-bottom: 50px;
	}
	a.backToPrev{
		background-image: url("../images/back.png");
		background-repeat: no-repeat;
		width: 7%;
		float: left;
		height: 33px;
		margin-top: 6px;
		margin-left: 6px;
	}
	h1.pageTitle{
		width: 90%;
		float: right;
		margin: 0;
	}
	a.fillInfoLink{
		font-family: Roboto-Regular;
		font-size: 16px;
		color: rgb(0, 144, 193);
		text-align: left;
		margin-left: 250px;
		text-decoration: none;
		vertical-align: middle;
	}
	div.lastActiveInfoContainer{
		float: left;
		width: 100%;
		padding-bottom: 10px;
	}
	.additionalInformationLink{
		padding-bottom: 10px;
		padding-top: 10px;
		font-family:Roboto-Regular;
		font-size:16px;
		float: left;
		width: 100%;
		img.icon{
			padding-right: 5px;
			padding-bottom: 3px;
		}
	}
	label.aui.field-label{
		font-family:Roboto-Medium;
		font-size:16px;
		color:#444444;
		text-align:left;
		padding-top: 20px;
		padding-bottom: 8px;
	}
	input.aui.field-input-text{
		background:#ffffff;
		border:1px solid #9898a5;
		box-shadow:inset 0 1px 2px 0 rgba(0,0,0,0.30);
		border-radius:4px;
		width:298px;
		height:38px;
		font-family:Roboto-Regular;
		font-size:16px;
		color:#444444;
		line-height:24px;
		text-align:left;
		margin-bottom: 15px;
		padding-left: 20px;
	}
	div.tabContainer{
		min-height: 70px;
	}
	span.notification-plain-text{
		font-family:Roboto-Light;
		font-size:16px;
		color:#555555;
		text-align:left;
	}
	p.notification-plain-text{
		font-family:Roboto-Light;
		font-size:16px;
		color:#555555;
		text-align:left;
	}
	.aui.field-input-select{
		background:#ffffff;
		border:1px solid #9898a5;
		box-shadow:0 1px 2px 0 rgba(0,0,0,0.20);
		border-radius:4px;
		width:298px;
		height:38px;
		font-family:Roboto-Regular;
		font-size:16px;
		color:#444444;
		line-height:24px;
		text-align:left;
		padding-left: 15px;
	}
	input.roleCheckbox{
		background:#ffffff;
		border:1px solid #9898a5;
		box-shadow:inset 0 1px 2px 0 rgba(0,0,0,0.20);
		border-radius:4px;
		width: 18px;
		height: 18px;
		margin-right: 20px;
	}
	#johtotehtavat{
		.lfr-form-row{
			background:#ffffff;
			box-shadow:0 1px 3px 0 rgba(0,0,0,0.30);
			width:810px;
			height:216px;
		}
		.aui.undomanager {
			display: none;
		}
	}
	#luottamustehtävät .aui.undomanager {
		display: none;
	}
	textarea.aui.field-input-text{
		background:#ffffff;
		border:1px solid #9898a5;
		box-shadow:inset 0 1px 2px 0 rgba(0,0,0,0.30);
		border-radius:4px;
		width:809px;
		height:144px;
		opacity:0.9;
		font-family:Roboto-Regular;
		font-size:16px;
		color:#555555;
		line-height:24px;
		text-align:left;
		margin-bottom: 30px;
		padding: 15px;
	}
	label.roleLabel{
		font-family:Roboto-Regular;
		font-size:16px;
		color:#555555;
		text-align:left;
	}
	.roleContainer{
		padding-left: 20px;
		width: 100%;
		float:left;
	}
	label.formStatus{
		font-family:Roboto-Medium;
		font-size:16px;
		color:#444444;
		text-align:left;
	}
	span.notificationStatus{
		font-family:Roboto-Light;
		font-size:16px;
		text-align:left;
	}
	span.notificationChecker, p.notificationChecker {
		font-family:Roboto-Light;
		font-size:16px;
		color:#555555;
		text-align:left;
		display: block;
	}
	div.formStatusContainer{
		width: 20%;
		float: left;
		height: 60px;
	}
	div.formAdminComment{
		width: 100%;
		float: left;
	}
	.boundsContainer span.aui.field-content{
		width: 100px;
		float: left;
	}
	input.aui.field-input-choice {
		background:#ffffff;
		border:1px solid #9898a5;
		box-shadow:inset 0 1px 2px 0 rgba(0,0,0,0.20);
		width:19px;
		height:19px;
		border-radius:100%;
	}
	label.aui.choice-label {
		font-family:Roboto-Regular;
		font-size:16px;
		color:#555555;
		text-align:left;
	}
	.visible{
		display: block;
	}
	.hidden{
		display: none;
	}
	.aui.button-content input.button-input{
		font-family:Roboto-Regular;
		font-size:16px;
		color:#ffffff;
		text-align:center;
		width:170px;
		height:50px;
		float: left;
		box-shadow: none;
		background:#5cb85c;
		border:1px solid #4cae4c;
		border-radius:4px;
		margin-right: 10px;
		text-shadow: none;
	}

	.accepted{
		color: green;
	}
	.returned{
		color: red;
	}
	.saved{
		color: yellow;
	}
	.removeContainer{
		a {
			color: red;
		}
	}
	label.infoLabel {
		font-family:Roboto-Light;
		font-weight: bold;
		font-size:18px;
		color:#555555;
		line-height:27px;
		text-align:left;
	}
	span.infoText, p.infoText {
		font-family:Roboto-Light;
		font-size:18px;
		color:#555555;
		line-height:27px;
		text-align:left;
	}
	span.green input.aui.button-input {
		/*color: #4cae4c;*/
		color: #ffffff;
		/*background: transparent;*/
		background: #4cae4c;
		border: 2px solid #4cae4c;
		margin-bottom: 2px;
		transition: all 400ms;
	}
	/*span.green input.aui.button-input:hover {
		background: #4cae4c;
		color: #fff;
	}*/
	span.red input.aui.button-input {
		/*color: #ca3535;
		background: transparent;*/
		color: #ffffff;
		background: #ca3535;
		border: 2px solid #ca3535;
		margin-bottom: 2px;
		transition: all 400ms;
	}
	/*span.red input.aui.button-input:hover {
		background: #ca3535;
		color: #fff;
	}*/
	span.blue input.aui.button-input {
		/*color: #3682d3;
		background: transparent;*/
		color: #ffffff;
		background: #3682d3;
		border: 2px solid #3682d3;
		margin-bottom: 2px;
		transition: all 400ms;
	}
	/*span.blue input.aui.button-input:hover {
		background: #3682d3;
		color: #fff;
	}*/
	span.grey input.aui.button-input {
		color: #ffffff;
		background: #c4c4c4;
		border: 2px solid #c4c4c4;
		margin-bottom: 2px;
		transition: all 400ms;
	}
	span.yellow input.aui.button-input {
		/*background: transparent;
		color: #d8a840;*/
		color: #ffffff;
		background: #d8a840;
		border: 2px solid #d8a840;
		margin-bottom: 2px;
		transition: all 400ms;
	}
	/*span.yellow input.aui.button-input:hover {
		background: #d8a840;
		color: #fff;
	}*/
}
.boardRolesContainer{
	padding-top:10px;
	width: 100%;
}
.roleNameContainer{
	width: 100%;
	.roleName {
		font-family:Roboto-Regular;
		font-size:16px;
		color:#0090c1;
		letter-spacing:0;
		text-align:left;
		padding-left: 20px;
		
		.deleteRole {
			font-family:Roboto-Regular;
			font-size:16px;
			color:#de5c5f;
			letter-spacing:0;
			float:right;
			padding-right: 45px;
			cursor: pointer;
		}
	}
}

.aui.buttonitem-icon-only {
	height: 30px !important;
	width: 30px !important;
	background: #d4d4d4 !important;
	.icon-minus {
		background-position: -64px -128px !important;
	}
	.icon-plus {
		background-position: -32px -128px !important;
	}
}

span.admin-comments, p.admin-comments, div.admin.comments {
	width:100%;
	p {
		width:100%;
		font-family: Roboto-Light !important;
		font-weight: normal !important;
		color:#444;
		text-align:left;
		padding: 0.5em 1em;
		margin: 0;
	}
	p:nth-child(n+2) {
		border-top: 1px solid #ddd;
	}
}

#portlet_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet {
	table.taglib-search-iterator {
		tr {
			display: flex;
			justify-content: space-between;
			align-items: center;
			border: 0;
			padding: 5px 0px;
			th {
				display: table;
			}
			th, td {
				background: transparent !important;
				border: 0 !important;
			}
			th:first-child, td:first-child {
				min-width: 150px;
			}
		}
		tr:nth-child(2n+3) {
			background-color: #f5f5f5;
		}
		tr:first-child {
			margin-bottom:-15px;
			margin-top:15px;
		}
	}
}

#p_p_id_sidonnaisuusilmoitus_WAR_sidonnaisuusrekisteriportlet_{
	.sendNotificationForm{
		input{
			margin-top: 5px;
			padding-top: 4px;
			padding-bottom: 4px;
			text-indent: 10px;
            border: 1px solid #9899a5;
		}

		.input-text-wrapper{
			margin-top:15px;
			margin-bottom: 15px;
		}

		select{
			width: 50%;
		}

		.field-wrapper{
			label{
				display: inline-block;
			}
		}

		.toolbar-content{
			display: inline-flex;
            button{
                background: #d4d4d4!important;
                border-color: #c8c9ca #9e9e9e #9e9e9e #c8c9ca;
            }
            button:hover{
                border-color: #627782 !important;
                color: #369;
            }
		}

		.button-holder{
			.btn{
				background-color: #005300 !important;
				border-color: #005300 !important;
				color: #ffffff !important;
				background-image: linear-gradient(to bottom, #015401, #015401) !important;
			}

			.btn:hover{
				background-color: #006400 !important;
				border-color: transparent !important;
				color: #fff !important;
			}
		}

        .icon-plus:before {
            width: 16px;
            height: 16px;
            display: block;
            background-repeat: no-repeat;
            content: " ";
            background-image: url(/nkeservice-miunpalvelut-dxp-theme/images/plus-green.svg);
        }
        .icon-minus:before {
            width: 16px;
            height: 16px;
            display: block;
            background-repeat: no-repeat;
            content: " ";
            background-image: url(/nkeservice-miunpalvelut-dxp-theme/images/minus-red.svg);
        }
	}

}



#send-to-dynasty-modal{
	display: none;
	top: 30% !important;
}

.modal-backdrop{
	z-index: unset !important;
	background-color: unset !important;
}

.error{
	border: 1px solid #da1414 !important;
}

.alert-error{
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
	width: 65%;
	text-align: center;
	font-size: 18px;
}

.popupForm{
	.btn{
		margin-top: 20px;
		display: block;
	}

	input{
		padding: 5px;
		border-radius: 5px;
		border: 1px solid #999;
		height: 24px;
		width: 220px;
	}
}

.popover{
	display: none;
}

.popover-content{
	display: none;
}

.buttons-container{
	display: flex;
	width: 100%;
}

.fieldset-container{
	.borders-visible{
		border: 1px solid #dedede !important;
		legend{
			width: auto !important;
		}

		legend:nth-of-type(1){
			border-bottom: unset;
		}
	}
}

#accept-buttons-holder{
	button:nth-of-type(2){
		background-color: #B74707!important;
		border-color: #B74707 !important;
		margin-left: 10px;
	}
}

@media only screen and (max-width: 993px) {
	#send-to-dynasty-button-view{
		float: left !important;
		margin-left: 2.5rem !important;
	}
}

@media only screen and (max-width: 768px) {
	.dynasty-wrapper{
		#_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet_fm {
	/*		display: inline-flex !important;*/
			min-height: 100px;
			div{
				width: auto;
				label{
					margin-bottom: 8px;
					margin-top: 8px;
					font-size: 18px;
				}
				input[type='String']{
					width: 98%;
				}
			}
			#get-case-from-dynasty-button{
				width: auto;
				margin: 0;
				margin-top: 28px;
				height: 52px;
			}
		}
		#send-to-dynasty-button-view{
			margin: 0 !important;
			float: none !important;
		}
	}
	.dynasty-attachment-format-wrapper {
		margin-left: 0 !important;
	}

	.fieldset-container{
		#get-case-from-dynasty-button{
			width: 100% !important;
		}
		#_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet_fm {
			div{
				width: 100%;
			}
		}
		.borders-visible{
			border: none !important;
		}
		#send-to-dynasty-button-view{
			width: 100% !important;
		}
	}

	#accept-buttons-holder{
		display:inline-flex;
		button{
			width: auto;
		}
		button:nth-of-type(2){
			background-color: #B74707!important;
			border-color: #B74707 !important;
			margin-left: 25px;
		}
	}

}

@media only screen and (max-width: 576px) {
	.dynasty-wrapper {
		#_sidonnaisuusrekisteri_WAR_sidonnaisuusrekisteriportlet_fm {
			display: block !important;

			div {
				width: 100%;
			}

			#get-case-from-dynasty-button {
				width: 100%;
				margin-top: 5px;
			}

		}
	}
	#accept-buttons-holder {
		display: block;
		margin-top: 60px;
		button {
			width: 100%;
		}
		button:nth-of-type(2) {
			background-color: #B74707 !important;
			border-color: #B74707 !important;
			margin-left: 0;
		}
	}
}