/* base */
#active_windows {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	overflow: hidden;
	transition-duration: 0.4s;
}
#active_windows .window {
	position: absolute;
	transition-property: all;
	pointer-events: all;
	box-shadow: 2px 8px 17px -2px #A8A8A8;
	display: flex;
	flex-direction: column;
	border-color: black;
	border-style: solid;
	border-width: 1px;
	border-radius: 5px;
}
#active_windows .window[data-dragging=true] * {
	user-select: none;
}

/* header */
#active_windows .window .window-header {
	cursor: grab;
	background-color: var(--theme-color-background-brighter);
	color: var(--text-color-on-light);
	border-width: 1px;
	border-style: solid;
	border-color: var(--theme-color-background-brighter);
	padding: 7px;
	border-radius: 5px 5px 0 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}
#active_windows .window .window-header .btn-toolbar {
	flex-wrap: nowrap;
}
#active_windows .window .window-header .window-title {
	font-size: 1.05rem;
	font-weight: 600;
	font-family:'Poppins', sans-serif;
	margin-right: 20px;
}
#active_windows .window .window-header button {
	padding: 0 3px;
	margin: 2px;
	float: right;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

/* content */
#active_windows .window .window-content {
	font-size: 14px;
	padding: 10px;
	background-color: var(--theme-color-background-brighter2);
	color: var(--text-color-on-light);
	min-height: 100px;
	max-height: 85vh;
	overflow-y: auto;
	overflow-x: hidden;
}
#active_windows .window .window-content .sketch-img {
	height: auto;
	width: auto;
	max-height: 270px;
	max-width: 700px;
	object-fit: cover;
}
#active_windows .window .window-content .sketch-img-container {
	margin-right: 10px;
}
#active_windows .window .window-content button.btn {
	border-radius: 3px;
	padding: 2px 10px;
	margin: 1px 3px;
}
#active_windows .window .window-content button.btn-success,
#active_windows .window .window-content button.btn-primary,

/* elements */
#active_windows .window .window-content input[type=text],
#active_windows .window .window-content input[type=number],
#active_windows .window .window-content input[type=search],
#active_windows .window .window-content input[type=email],
#active_windows .window .window-content input[type=tel],
#active_windows .window .window-content input[type=url],
#active_windows .window .window-content textarea,
#active_windows .window .window-content select {
	font-size: 12px;
}

#active_windows .window .window-content input[type=text],
#active_windows .window .window-content input[type=number],
#active_windows .window .window-content input[type=search],
#active_windows .window .window-content input[type=email],
#active_windows .window .window-content input[type=tel],
#active_windows .window .window-content input[type=url],
#active_windows .window .window-content select {
	height: 25px;
	min-height: 25px;
}

/* things in content */
#active_windows .window .window-content .window-with-image-preview-container {
	display: flex;
	justify-content: space-between;
}
#active_windows .window .window-content .data-container {
	margin: 0 10px;
	width: 100%;
}

/* sidebar */
.window .sidebar{
	background: var(--theme-color-background-brighter2);
	z-index: 99;
	transition: all 0.5s ease;
	border-width: 1px;
	border-style: solid;
	border-color: var(--theme-color-background-brighter);
	width: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.window .sidebar ul.nav-list{
	margin-left: 0;
	padding-left: 8px;
}
.window .sidebar li{
	position: relative;
	margin: 8px 0;
	list-style: none;
}
.window .sidebar a {
	padding: 7px;
}
.window .sidebar a.active {
	background-color: var(--theme-color-background-darker3);
	border-radius: 3px;
}
.window .sidebar hr {
	margin: 0;
}

/* footer */
#active_windows .window .window-footer {
	padding: 7px;
	background-color: var(--theme-color-background-brighter);
	color: var(--text-color-on-light);
	border-width: 1px;
	border-style: solid;
	border-color: var(--theme-color-background-brighter);
	border-radius: 0 0 5px 5px;
	z-index: 1;
}
#active_windows .window .window-footer button {
	padding: 4px 10px;
	min-width: 22px;
	min-height: 24px;
}

/* Special Window style  */

/* area */
.window[data-window-name=area] .window-content .area-create-grid-field {
	border-width: 1px;
	border-style: solid;
	border-color: var(--element-intent-shadow);
	margin: 2px;
	padding: 1px 3px;
	cursor: pointer;
	text-align: center;
}
.window[data-window-name=area] .window-content .area-create-grid-field[data-selected=true] {
	background-color: #6ddbf5;
}
.window[data-window-name=area] .window-content .area-create-grid-field[data-occupied=true] {
	background-color: #FcD5F5;
}

/* building */
.window[data-window-name=building] .create-space {
	overflow-y: auto;
	max-height: 50vh;
}

/* contact */
.window[data-window-name=contact_nexus] input,
.window[data-window-name=contact_nexus] textarea,
.window[data-window-name=contact_nexus] select {
	margin-bottom: 5px;
}

/* selector */
.window[data-window-name=selector] .window-content .main-window {
	width: calc(100% - 50px);
}
.window[data-window-name=selector] .window-content .main-window .inner-window {
	width: 100%;
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	overflow: hidden;
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info[data-selected='true'] {
	display: none;
}
.window[data-window-name=selector] .window-content .main-window .inner-window[data-select-type="structure"] {
	max-width: calc(50vw - 50px);
}
.window[data-window-name=selector] .window-content .main-window .inner-window[data-select-type="currently_selected"] .any-info:nth-child(even),
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info:nth-child(even of [data-selected='false']) {
	background-color: var(--list-element-background-light-even);
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info .icon-space {
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin: 0 1em;
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info .info-space {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	overflow: hidden;
	align-items: center;
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info .info-space .subtile-note {
	color: var(--theme-color-background-darker3);
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info .info-space .image-holder {
	margin: 2px;
	padding: 1px;
}
.window[data-window-name=selector] .window-content .main-window .inner-window .any-info .button-space {
	display: flex;
	flex-direction: row;
	justify-content: end;
}
.window[data-window-name=selector] .window-content .tab-list {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	height: 100%;
	width: 50px;
	overflow-x: hidden;
	overflow-y: auto;
	gap: 3px;
	border-left-style: solid;
	border-left-width: 1px;
	border-left-color: var(--theme-color-background-darker3);
	padding-left: 7px;
}
.window[data-window-name=selector] .window-content .tab-list .tab {
	border-style: solid;
	border-width: 1px;
	border-color: var(--theme-color-background-darker3);
	border-radius: 2px;
	padding: 2px 6px;
	cursor: pointer;
	font-size: 15px;
}
.window[data-window-name=selector] .window-content .tab-list .tab[data-selected="true"] {
	background-color: var(--list-element-background-light-selected);
}
.window[data-window-name=selector] .window-content .tab-list .tab[data-will-select="currently_selected"] {
	margin-top: 20px;
}

/* image */
.window[data-window-name=image] .card.file-dump .card-body {
	border-style: dashed;
	border-width: 2px;
	border-color: var(--text-color-on-light);
	border-radius: 3px;
	cursor: pointer;
}
.window[data-window-name=image] .card.file-dump .card-body:hover {
	background-color: var(--element-intent-shadow);
}
.window[data-window-name=image] .card.file-dump .card-body.highlight {
	border-style: solid;
	border-width: 2px;
	border-color: var(--interaction-option-secondary);
	background-color: var(--element-intent-success);
}
.window[data-window-name=image] .upload-list {
	max-height: 50vh;
	overflow-y: auto;
}
.window[data-window-name=image] .upload-list .upload-entry {
	margin: 2px 3px;
}
.window[data-window-name=image] .upload-list .upload-entry .upload-status {
	width: 7px;
	padding: 0;
	background-color: var(--theme-color-background-darker3);
}
.window[data-window-name=image] .upload-list .upload-entry .upload-status[data-state="working"] {
	background-color: var(--theme-color-info);
}
.window[data-window-name=image] .upload-list .upload-entry .upload-status[data-state="done"] {
	background-color: var(--interaction-option-primary);
}
.window[data-window-name=image] .upload-list .upload-entry .upload-status[data-state="failed"] {
	background-color: var(--interaction-option-danger);
}
.window[data-window-name=image] .meta-info {
	position: absolute;
	top: 5px;
	left: 5px;
	width: 66%;
}
.window[data-window-name=image] .meta-info .meta-buttons {
	position: absolute;
	top: 0; left: 0;
	display: flex;
	flex-direction: row;
	gap: 3px;
	justify-content: start;
	align-items: center;
	z-index: 2;
}
.window[data-window-name=image] .meta-info .meta-inside {
	position: absolute;
	top: 0; left: 0;
	padding-top: 30px;
	padding-left: 5px;
	padding-right: 5px;
	display: flex;
	flex-direction: column;
	border-style: solid;
	border-width: 1px;
	border-color: var(--theme-color-background-darker3);
	border-radius: 3px;
	background-color: var(--theme-color-background-brighter);
	z-index: 1;
}


/* document */
.window[data-window-name=document] .card.file-dump .card-body {
	border-style: dashed;
	border-width: 2px;
	border-color: var(--text-color-on-light);
	border-radius: 3px;
	cursor: pointer;
}
.window[data-window-name=document] .card.file-dump .card-body:hover {
	background-color: var(--element-intent-shadow);
}
.window[data-window-name=document] .card.file-dump .card-body.highlight {
	border-style: solid;
	border-width: 2px;
	border-color: var(--interaction-option-secondary);
	background-color: var(--element-intent-success);
}
.window[data-window-name=document] .upload-list {
	max-height: 50vh;
	overflow-y: auto;
}
.window[data-window-name=document] .upload-list .upload-entry {
	margin: 2px 3px;
}
.window[data-window-name=document] .upload-list .upload-entry .upload-status {
	width: 7px;
	padding: 0;
	background-color: var(--theme-color-background-darker3);
}
.window[data-window-name=document] .upload-list .upload-entry .upload-status[data-state="working"] {
	background-color: var(--theme-color-header);
}
.window[data-window-name=document] .upload-list .upload-entry .upload-status[data-state="done"] {
	background-color: var(--interaction-option-primary);
}
.window[data-window-name=document] .upload-list .upload-entry .upload-status[data-state="failed"] {
	background-color: var(--interaction-option-danger);
}
.window[data-window-name=document] .tags .tag {
	padding: 1px 6px;
	background-color: var(--element-intent-shadow);
	border-radius: 3px;
	border-color: var(--theme-color-background-darker3);
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
}
.window[data-window-name=document] .tags .tag:hover {
	background-color: var(--element-intent-warning);
}
.window[data-window-name=document] .quickview-container {
	position: relative;
	margin-right: 12px;
}
.window[data-window-name=document] .quickview-container .quickview-closer {
	position: absolute;
	top: 7px;
	left: 7px;
	height: 20px;
	width: 20px;
	padding: 0!important;
	line-height: 0!important;
	border: 1px solid white;
}

/* parameter */
.window[data-window-name=parameter] .sub-parameters .type-parameter {
	padding: 2px 8px;
	margin: 2px;
	background-color: #EEEEBB;
	border: 1px solid black;
	border-radius: 3px;
	cursor: pointer;
}
.window[data-window-name=parameter] .sub-parameters .type-value {
	padding: 2px 8px;
	margin: 2px;
	background-color: #EEBBEE;
	border: 1px solid black;
	border-radius: 3px;
}
.window[data-window-name=parameter] .sub-parameters .type-box {
	padding: 3px;
	margin: 1px;
	background-color: #DDDDDD;
	border: 2px solid black;
	border-radius: 4px;
}
.window[data-window-name=parameter] .sub-parameters .type-result {
	padding: 3px;
	margin: 1px;
	background-color: #CCCCFF;
	border: 2px solid black;
	border-radius: 4px;
}

