/*

  This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
  Copyright (C) 2017 - 2025  Roland Gruber

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more detaexils.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

:root {
	--lam-background-color-default: #FFFFFF;

	--lam-input-bg-color: #fcfcfc;
	--lam-text-color-default: #000000;
	--lam-border-color: #e8e8e8;
	--lam-border-color-primary: #01689e;

	--lam-background-color-primary: #3daee9;
	--lam-text-color-primary: #ffffff;

	--lam-border-color-secondary: #ffcb1d;
	--lam-background-color-secondary: #ffe233;
	--lam-text-color-secondary: #000000;

	--lam-border-color-danger: #a40e26;
	--lam-background-color-danger: #fbfbfb;
	--lam-text-color-danger: #a40e26;
	--lam-background-color-danger-hover: #a40e26;
	--lam-text-color-danger-hover: #ffffff;

	--lam-text-color-error:  #a40e26;
	--lam-text-color-ok: #237d0c;

	--lam-table-background-color-bright: #fbfbfb;
	--lam-table-background-color-dark: #e8f3ff;
	--lam-table-background-color-hover: #3daee9;
	--lam-table-text-color-hover: #ffffff;
	--lam-table-border-color: #3daee9;

	--lam-disabled-opacity: .35;

	--lam-default-border-radius: 2px;

	--lam-regular-space: 0.5rem;
	--lam-small-space: 0.25rem;
	--lam-smaller-space: 0.1rem;
	--lam-large-space: 1rem;
	--lam-larger-space: 2rem;
	--lam-largest-space: 3rem;

	--lam-icon-size: 16px;
	--lam-icon-size-big: 32px;
}

/** responsive styles */
.row {
	margin-top: 5px;
}

.row textarea {
	width: 100%;
}

.row input {
	width: 100%;
}

.row input[type="submit"] {
	width: auto;
}

.row input[type="file"] {
	width: auto;
}

.row input[type="checkbox"] {
	width: auto;
}

.row input[type="radio"] {
	width: auto;
}

input.auto-width {
	width: auto;
}

input.maxwidth10 {
	max-width: 10rem;
}

input.maxwidth20 {
	max-width: 20rem;
}

img.max16 {
	max-width: 16px;
}

div.dialog-page {
	float: left;
	width: 100%;
}

div.lam-dialog-msg {
	margin: 10px;
}

div.dialog-content {
	overflow: visible !important;
	margin: 2rem;
}

table.padding5 td {
	padding: 0.5rem;
}

.maxrow {
	max-width: none !important;
}

.module-content-row>.row {
	max-width: 80rem;
	display: inline-block;
}

select.auto-width {
	width: auto;
}

table.responsive-table {
	margin-top: 1rem;
	width: 100%;
	border-collapse: collapse;
}

table.responsive-table th {
	text-align: left;
	padding-bottom: 0.4rem;
	padding-top: 0.4rem;
	padding-right: 0.3rem;
	padding-left: 0.3rem;
	white-space: nowrap;
}

table.responsive-table-wrap-th th {
	white-space: normal;
}

table.responsive-table td {
	overflow: hidden;
	vertical-align: middle;
	padding-bottom: 0.1rem;
	padding-top: 0.1rem;
	padding-right: 0.3rem;
	padding-left: 0.3rem;
	word-break: break-all;
}

div.lam-header {
	line-height: 2rem;
	overflow: hidden;
	margin: var(--lam-smaller-space);
	margin-bottom: var(--lam-regular-space);
}

div.lam-header a {
	padding: var(--lam-small-space);
}

div.lam-header-menublock {
	padding: var(--lam-small-space);
}

.lam-header-left {
	float: left;
	display: block;
	margin-top: var(--lam-small-space);
}

.lam-header-right {
	float: right;
	display: block;
}

div.lam-navigation-layer {
	transition: height .3s;
	overflow: hidden;
}

div.account-types-popup div.columns {
	margin-bottom: var(--lam-regular-space);
}

div.account-types-popup div.columns:last-child {
	float: left;
}

table.lam-account-edit-table {
	border-collapse: collapse;
	width: 100%;
	border-width: 0;
	margin-right: auto;
	margin-left: auto;
}

/* mobile */
@media only screen and (max-width: 40.0625em) {

	:root {
        --lam-large-space: 0.33rem;
        --lam-larger-space: 0.66rem;
		--lam-largest-space: 1rem;
	}

	.responsiveLabel,.responsiveField {
		text-align: left;
	}

	.hide-on-mobile {
		display: none !important;
	}

	table.responsive-table thead {
		border: none;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}

	table.responsive-table tr {
		border-bottom: 3px solid #f1f1f1;
		display: block;
		margin-bottom: .6rem;
	}

	table.responsive-table td {
		border-bottom: 1px solid #f1f1f1;
		display: block;
		text-align: right;
	}

	table.responsive-table td:before {
		content: attr(data-label);
		float: left;
		font-weight: bold;
		margin-right: 5px;
	}

	table.responsive-table td:last-child {
		border-bottom: 0;
	}

	table.responsive-table tr:last-child {
		border-bottom: 0;
	}

	.margin-right5-mobile-only {
		margin-right: 5px;
	}

	.bold-mobile-only {
		font-weight: bold;
	}

	.fullwidth-mobile-only {
		width: 100%;
	}

	.header-user-label {
		max-width: 100px;
		overflow: hidden;
	}

	button.lam-account-type {
		min-width: 20px;
	}

	.titleBar {
		padding: 5px 5px 5px 5px;
	}

	#lam-webcam-video {
		max-width: 200px;
		max-height: 200px;
	}

	div.tree-view--tree {
		max-height: 50vh !important;
	}

	.lam-header a.lam-menu-entry {
		display: none;
		padding-left: 1rem;
	}

	.lam-header a.lam-menu-entry img {
		display: none;
	}

	.lam-header.lam-header-open {
		position: relative;
	}

	.lam-header.lam-header-open a.lam-menu-icon {
		position: absolute;
		right: 0;
		top: 0;
	}

	.lam-header.lam-header-open a.lam-menu-entry {
		display: block;
		float: none;
		text-align: left;
		border: 1px solid var(--lam-border-color);
		border-width: 0px 1px 1px 1px;
		margin: 0px;
	}

	.lam-header.lam-header-open {
		padding-bottom: var(--lam-large-space);
	}

	.lam-header.lam-header-open div.lam-menu-stay {
		float: none;
	}

	.lam-header-menublock {
		width: 100%;
	}

	.modal-content {
		min-width: 90%;
	}

}

/* tablet */
@media only screen and (min-width: 40.0625em) and (max-width: 64.0625em) {

	.responsiveLabel {
		text-align: right;
	}

	.responsiveField {
		text-align: left;
	}

	.hide-on-tablet {
		display: none !important;
	}

	table.alternating-color tbody tr:nth-child(odd) {
		background-color:rgba(0, 0, 0, 0.05);
	}

	button.lam-account-type {
		min-width: 200px;
	}

	.titleBar {
		padding: 5px 20px 5px 20px;
	}

	#lam-webcam-video {
		max-width: 300px;
		max-height: 300px;
	}

	.tree-left-area {
		border-right: 2px solid #e4e4e4;
	}

	.tree-right-area {
		border-left: 2px solid #e4e4e4;
		margin-left: -2px;
	}

}

/* mobile and tablet */
@media only screen and (max-width: 64.0625em) {

	.hide-on-mobile-and-tablet {
		display: none !important;
	}

}

/* tablet and bigger */
@media only screen and (min-width: 40.0625em) {

	div.lam-navigation-layer {
		position: absolute;
		width: calc(100vw - 4rem - 8px);
		margin-left: 2rem;
		margin-right: 2rem;
		overflow: hidden;
		z-index: 9;
		top: 3.1rem;
		left: 0;
		padding-right: 10rem;
		padding-left: 10rem;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: var(--lam-background-color-default);
		box-shadow: 0px 3px 2px -2px grey;
	}

	div.lam-navigation-layer-content {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		column-gap: 5rem;
		max-width: 60rem;
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	table.lam-account-edit-table {
		max-width: 90rem;
	}

}

/* desktop */
@media only screen and (min-width: 64.0625em) {

	.responsiveLabel {
		text-align: right;
	}

	.responsiveField {
		text-align: left;
	}

	.hide-on-tablet {
		display: none !important;
	}

	.hide-on-desktop {
		display: none !important;
	}

	table.alternating-color tbody tr:nth-child(odd) {
		background-color:rgba(0, 0, 0, 0.05);
	}

	button.lam-account-type {
		min-width: 200px;
	}

	.titleBar {
		padding: 5px 20px 5px 20px;
	}

	#lam-webcam-video {
		max-width: 400px;
		max-height: 400px;
	}

	.tree-left-area {
		border-right: 2px solid #e4e4e4;
	}

	.tree-right-area {
		border-left: 2px solid #e4e4e4;
		margin-left: -2px;
	}

    div.wide-row {
        max-width: 110rem;
    }

}
