/* CviCRM Custom Code*/
/* Author: Jennifer Rakete @ 5Knoten Eisenbahnstrasse 66, Leipzig*/
/* Created: 18.01.2022*/
/* Last modified: 21.07.2023 */ 

/** 
 * @import url('https://misc.5knoten.de/assets/css/pro/custom.css');
 */

p, .label, .crm-label {
	hyphens:auto;
}

/* ------- Issue #3 ------- */
body.page-civicrm-contact-view a.button.edit{
  display: none;
}

/* ------- Issue #4 ------- */
body.page-civicrm-admin-afform fieldset.ng-scope > legend.ng-binding{
  position: initial;
}

/* ------- Issue #1 ------- */
fieldset.af-container{
  margin-top: 40px !important;
}

legend.af-title{
  position: absolute !important;
  left: 0 !important;
  top: -35px !important;
  background-color: #0071bd !important;
}

/* ------- Issue #10 ------- */
h4.af-title{
	background-color: #0071bd !important;
	width: 100% !important;
	left: 0 !important;
	margin-bottom: 0 !important;
}


/* ------- Issue #2 ------- */
body.page-civicrm-new-object label.ng-binding.ng-scope{
  margin: 2px 5px !important;
}

body.page-civicrm-admin-setting-preferences div.crm-form-block.crm-preferences-address-form-block table.form-layout td + td{
  width: 80%;
}

/* ------- Issue #9 ------- */
af-field.af-field-type-radio div.crm-af-field{
	display: flex;
	flex-flow: column;
}

/* ------- Issue #5 ------- */
body.page-civicrm-new-object div.crm-af-field{
	margin: 5px;
}

/* ------- Issue #14 ------- */
body.page-civicrm-new-object textarea.crm-form-textarea{
	min-height: 70px;
	width: 43.5%;
}

/* ------- Issue #8  -------- */
body.page-civicrm-new-object div.ng-isolate-scope{
	margin: 10px;
}


/* ------- Issue #6 and #12 ------- */
/* Fixed Colour of text */
button.btn-sm{
	color: #ffffff !important;
	margin: 0 5px 5px 5px !important;
}

/* -------- Issue #12 ------- */
/* Added Boundary to Uploads */
body.page-civicrm-new-object div.ng-isolate-scope{
	margin: 0 10px 10px 10px;
}

/* Adds margin to Element to make them align */
body.page-civicrm-new-object p.crm-af-field-help-post{
	margin-left: 5px !important;
}

/* Remove Border */
.crm-container ul.crm-checkbox-list{
	border: none;
	padding-left: 0 !important;
}

.crm-container ul.crm-checkbox-list li label{
	background-color: #ffffff !important;
}

/* Hide the up and down arrows for number input for dates */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	-moz-appearance: textfield;
}

af-field{
	margin: 5px;
}

textarea#ortsangabe-und-denkmal-id-denkmalwert-2,
textarea#objektbeschreibung-denkmalkurzcharakteristik-22{
	width: 43.5%;
}

div.af-contatiner af-field.ng-isolate-scope div.form-group{
	margin-bottom: 0 !important;
}

/* Set the width of "Aktuelle Nutzung" und "Urspürungliche:r Bauherr:in/Architek:in" to twice the size of a regular text input field */
div.af-container:nth-child(5) > div:nth-child(3) > af-field{
	width: 21.3%;
}

/* Remove bottom margin from the "Land" drop down field */
div.af-container:nth-child(3) div.crm-af-field div.form-group{
	margin-bottom: 0 !important;
}


/* Setting the margin of Bilder und Dateien upload to 0 */
afblock-custom-bilder.ng-scope af-field.ng-isolate-scope,
afblock-custom-dateien.ng-scope af-field.ng-isolate-scope{
	margin: 0 0 0 0;
}

/* Set right margin to the div containing the file uplaods */ 
div.af-container:nth-child(7) > div:nth-child(2) > div{
	margin-left: 10px;
	margin-bottom: 5px;
}

/* Setting the top margin to 10 for the button to upload additional files */
div.af-container:nth-child(7) > div > div.ng-isolate-scope > button.btn-sm{
	margin: 10px 0 0 0 !important;
}

/* Adding a margin to the dif of Denkmalcharakteristik */
div.af-container:nth-child(6) > div:nth-child(2){
	margin: 5px;
}

/* Removing the margin from the af-field of Denkmalcharakteristik */
div.af-container:nth-child(6) > div:nth-child(2) af-field{
	margin: 0;
}

/*___ Objects ___ */

/* Adresses Size of Images */
.page-civicrm-contact-view div.crm-contact-page .form-item a.crm-image-popup{
	height: unset;
	width: unset;
}

.page-civicrm-contact-view div.crm-contact-page .form-item a.crm-image-popup img{
	width: auto;
	max-width: 30%;
}

body.page-civicrm-new-object af-form af-field.af-field-type-radio a.crm-hover-button{
	display: flex;
}

/* Move button down on civi case search */
body.page-civicrm-case-search form#Search tbody tr:nth-child(7) td{
	height: auto;
}

/* Hides Object ID on the Object page */
body.page-civicrm-contact-view div#contact-summary div.contact_panel div.crm-contact-summary-layout-col-1 div:nth-child(3) div.crm-summary-block div.crm-summary-row:nth-child(3){
	display: none;
}

/* Highlight Case number in orange */
form#CaseView div#Fallnr_ table.crm-info-panel tr:nth-child(2) td.html-adjust{
	font-size: 120%;
	font-weight: 600;
	text-shadow: 1px 1px 1px gray;
}

/* Copied from core to add important to a rule that was overridden by shoredith */
.crm-container .crm-accordion-header,
.crm-container .collapsed .crm-accordion-header,
.crm-container .crm-accordion-bold > summary,
.crm-container details > .crm-accordion-header { /* applies civi's default accordion header to summary & .crm-accrdion-bold */
  color: #f5f6f1;
  font-weight: normal;
  padding: 4px 8px;
  background-color: #5d677b !important;
  border-radius: 4px;
}
