/*

  This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
  Copyright (C) 2003  Leonhard Walchshaeusl
  Copyright (C) 2005 - 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 details.

  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

*/

/* CSS layout for LAM */


/**
 * global page layout
 *
 */

h1,h2,h3,h4,p,ul,ol,li,div,td,th,address,blockquote,b,i {
  font-family: Arial,Helvetica,sans-serif;
}

h1,h2,h3 {
	color: var(--lam-text-color-default);
	word-wrap: break-word;
}

body {
	background-color: var(--lam-background-color-default);
	padding: 0.5rem 2rem 3rem 2rem;
	color: var(--lam-text-color-default);
}

.defaultBackground {
  background: #F5F5F5 !important;
}

/* links */
a {
  color: #000080;
  text-decoration: none;
  margin: var(--lam-small-space);
}

a:link {
  color: #000080;
  text-decoration: none;
}

a:visited {
  color: #000080;
  text-decoration: none;
}

a:hover {
	text-decoration: underline;
	cursor: pointer;
}

a:active {
color: red;
text-decoration: none;
}

a img {
	border: 0px;
}

a.classicBold {
	color: blue;
	text-decoration: none;
	font-weight: bold;
}

a.icon img {
	width: var(--lam-icon-size);
	height: var(--lam-icon-size);
}

a.icon-big img {
	width: var(--lam-icon-size-big);
	height: var(--lam-icon-size-big);
}

a.icon-active img {
	filter: invert(58%) sepia(70%) saturate(467%) hue-rotate(162deg) brightness(92%) contrast(99%);
}

fieldset {
  border:1px solid var(--lam-text-color-default);
  padding:10px;
}

div.filled {
background-color:#fff3c8;
border:1px solid #af8800;
padding:10px;
}

legend {
	color: var(--lam-text-color-default);
}

button {
	margin: var(--lam-small-space);
	background: var(--lam-input-bg-color);
	border: 1px solid var(--lam-border-color);
	border-radius: var(--lam-default-border-radius);
	padding: .3em 1em;
	cursor: pointer;
	vertical-align: middle;
	text-align: center;
	font-size: 1em;
}

button:disabled {
	opacity: var(--lam-disabled-opacity);
}

button.lam-primary {
	border: 1px solid var(--lam-border-color-primary);
	background: var(--lam-background-color-primary);
	color: var(--lam-text-color-primary);
}

button:hover {
	filter: brightness(0.96);
}

button.lam-secondary {
	border: 1px solid var(--lam-border-color-secondary);
	background: var(--lam-background-color-secondary);
	color: var(--lam-text-color-secondary);
}

button.lam-danger {
	border: 1px solid var(--lam-border-color-danger);
	background: var(--lam-background-color-danger);
	color: var(--lam-text-color-danger);
}

button.lam-danger:hover {
	background: var(--lam-background-color-danger-hover);
	color: var(--lam-text-color-danger-hover);
}

input:disabled {
	opacity: var(--lam-disabled-opacity);
}

input.listPageInput {
	width: 4em;
	text-align: center;
}

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

select {
	border: 1px solid var(--lam-border-color);
	background: var(--lam-input-bg-color);
	margin: var(--lam-small-space);
	border-radius: var(--lam-default-border-radius);
	font-size: 1em;
}

input {
	border-width: 1px;
	margin: var(--lam-small-space);
	border-radius: var(--lam-default-border-radius);
}

input.markFail {
	background-color: #ffc4ba;
}
input:invalid {
	background-color: #ffc4ba;
}
input.markOk {
	background-color: #abebaa;
}

input.markPass {
	background: white url('../graphics/pass.svg') right no-repeat;
}

textarea {
	border-width: 1px;
	margin: var(--lam-small-space);
	border-radius: var(--lam-default-border-radius);
}

table.colored--table {
	border: 1px solid var(--lam-table-border-color);
}

table.colored--table > thead {
	background: var(--lam-table-background-color-dark);
}

table.colored--table > tbody > tr:nth-child(even) {
	background: var(--lam-table-background-color-dark)
}

table.colored--table > tbody > tr:nth-child(odd) {
	background: var(--lam-table-background-color-bright)
}

table.colored--table > tbody > tr.highlighted {
	background-color: var(--lam-table-background-color-hover);
	color: var(--lam-table-text-color-hover);
}

table.accountlist {
	border: 1px solid var(--lam-table-border-color);
}

table.accountlist > thead {
	background-color: var(--lam-table-background-color-bright);
	border: 1px solid var(--lam-table-border-color);
}

table.accountlist > tbody > tr:nth-child(odd) {
	background-color: var(--lam-table-background-color-dark);
}

table.accountlist > tbody > tr:nth-child(even) {
	background-color: var(--lam-table-background-color-bright);
}

table.accountlist > tbody > tr:hover {
	background-color: var(--lam-table-background-color-hover);
	color: var(--lam-table-text-color-hover);
}

table.accountlist > tbody > tr:hover a {
	color: var(--lam-table-text-color-hover);
}

.lam-margin-large {
	margin: var(--lam-large-space);
}

.lam-margin-small {
	margin: var(--lam-small-space);
}

.lam-margin-smaller {
	margin: var(--lam-smaller-space);
}

.margin2 {
	margin: 2px;
}

.margin3 {
	margin: 3px;
}

.margin5 {
	margin: 5px;
}

.margin10 {
	margin: 10px;
}

.margin20 {
	margin: 20px;
}

.margin-left5 {
	margin-left: 5px;
}

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

.noMarginTop {
	margin-top: 0px;
}

.noMarginSides {
	margin-right: 0px;
	margin-left: 0px;
}

.padding0 {
	padding: 0em !important;
}

.padding-right05 {
	padding-right: 0.5rem !important;
}

.padding-left-right05 {
	padding-left: 0.5rem !important;
	padding-right: 0.5rem !important;
}

.padding05 {
	padding: 0.5em;
}

.padding1 {
	padding: 1em;
}

.spacing5 {
	border-spacing: 5px;
	border-collapse: separate;
}

.float-left {
	float: left;
}

.align-middle {
	vertical-align: middle;
}

.align-top {
	vertical-align: top;
}

.align-unset-img img {
	vertical-align: unset;
}

span.lam-required {
	font-weight: bold;
	color: #ff9933;
	margin-left: 0.2rem;
}

/* table preferences */

table.accountlist thead {
	border: 0px;
}

table.accountlist input[type='text'] {
	width: 99%;
	min-width: 7rem;
}

table.accountlist > tbody > tr:hover:nth-child(1) {
	background-color: var(--lam-table-background-color-dark);
	color: #000000;
}

table.accountlist > tbody > tr:hover:nth-child(2) {
	background-color: var(--lam-table-background-color-bright);
	color: #000000;
}

table.accountlist tbody tr:nth-child(2) {
	border-bottom: 1px solid var(--lam-table-border-color);
}

.lam-listtools {
	white-space: nowrap;
	width: 10rem;
}

.lam-list-buttons {
	padding-bottom: 0.5rem;
}

.lam-listouselection-height {
	height: 2rem;
}

table.collapse {
	border-collapse:collapse;
}

.tablepadding05 td,th {
	padding: 0.5em;
}


.rightToLeftText {
	text-align: right;
	text-align-last: right;
}

.rightToLeftText option {
	direction: rtl;
}

.rightToLeftText option:after {
	content: "\200E‎";
}

.rightToLeftText option:before {
	content: "\200E‎";
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-center {
	text-align: center;
}

.text-error {
	color: var(--lam-text-color-error);
}

.text-ok {
	color: var(--lam-text-color-ok);
}

.div-center {
	margin: 0 auto;
}

.bold {
	font-weight: bold;
}

/** buttons */
.okButton {
	background-image: url(../graphics/pass.svg) !important;
	background-size: 16px 16px;
	background-position: 0px 0px !important;
}

.smallPadding span {
	padding: 0.1em 0.4em !important;
}

.smallPaddingContent {
	padding: 0.5em;
	padding-bottom: 1rem;
}

/** titles */
.titleText {
	color: var(--lam-text-color-default);
	text-align: left;
}

/** subtitles */
.subTitle {
	margin: 20px 0px 15px 0px;
	border-bottom: 1px dotted var(--lam-text-color-default);
}

.subTitleText {
	margin: 0px 0px 0px 10px;
	color: var(--lam-text-color-default);
	text-align: left;
}

.hidden {
	display: none;
}

.display-as-block {
	display: block;
}

.nowrap {
	white-space: nowrap;
}

hr.dotted {
	border-bottom: 1px dotted var(--lam-text-color-default);
	border-top: none;
	border-right: none;
	border-left: none;
}

div.jobList {
	overflow: scroll;
	max-height: 50rem;
}

div.smallScroll {
	overflow: scroll;
	max-height: 10rem;
	overflow-x: hidden;
}

.fullwidth {
	width: 100%!important;
}

.halfwidth {
	width: 50%;
}

.zeroHeight {
	height: 0px;
}

td.loginLogo {
	background-image: url(../graphics/lam.png);
	background-repeat:no-repeat;
	background-position: center;
	margin: 5px;
	height: 303px;
	width: 63px;
}

td.loginRightBox {
	margin: 5px;
	width: 63px;
}

.roundedShadowBox {
	border: 2px solid #a0a0a4;
	border-radius: 5px;
	box-shadow: 2px 2px 5px #a0a0a4;
	display: inline-block;
	background-color: white;
	padding: 30px;
}

.limitWidth {
	max-width: 660px;
}

div.centeredTable {
	display: table;
	width: 100%;
	text-align: center;
}

a.lamLogo {
	background-image: url(../graphics/logo24.png);
	background-repeat: no-repeat;
	background-position: left;
	vertical-align: middle;
	white-space: nowrap;
	margin-left: 5px;
}

a.lamLogo span {
	margin-left: 32px;
}

.lam-header {
	box-shadow: 0px 3px 2px -2px grey;
}

.module-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.module-list li {
	margin: 0 3px 3px 3px;
	padding: 0.4em;
	padding-left: 1.5em;
	border: 1px solid #c5c5c5;
	background: #f6f6f6;
	font-weight: normal;
	color: #454545;
}
.module-list li span {
	position: absolute;
	margin-left: -1.3em;
	margin-top: 0.4rem;
	cursor: grab;
}

.unstyled-list {
	list-style-type: none;
	padding-left: 0;
	margin: 0;
}

.strike-through {
	text-decoration: line-through;
}

div.lam-webauthn-results {
	max-height: 20rem;
	overflow: auto;
	padding: 1rem;
}

/**
 * table style for delete.php
 *
 */

/* table preferences */
table.account {
  border-width:0px;
  border-style:solid;
  border-color:#000000;
}

/* color of entry rows */
tr.account {
  background-color:#FFFFEE;
}

div.lam-vertical-tab-container {
	border: 1px solid var(--lam-border-color);
	position: relative;
	padding: .2em;
}

table.lam-vertical-tabs {
	border: 1px solid var(--lam-border-color);
	border-collapse: collapse;
}

td.lam-vertical-tabs-navigation {
	vertical-align: top;
	padding: 0px;
	background-color: #F8F8F8;
}

ul.lam-vertical-tabs-navigation {
	margin: 0;
	padding: .2em 0 0 .2em;
}

ul.lam-vertical-tabs-navigation::before {
	content: "";
	display: table;
	border-collapse: collapse;
}

ul.lam-vertical-tabs-navigation::after {
	clear: both;
	content: "";
	display: table;
	border-collapse: collapse;
}

li.lam-vertical-tabs {
	list-style: none;
	clear: left;
	width: 100%;
	border: 1px solid var(--lam-border-color);
	border-right: 0px;
	background-color: var(--lam-input-bg-color);
	filter: brightness(0.96);
	margin-bottom: 0.3em;
}

li.lam-vertical-tabs-selected {
	padding-bottom: .1em;
	border: 1px solid #c5c5c5;
	border-right: 0px;
	background-color: var(--lam-background-color-default);
	filter: unset;
}

li.lam-vertical-tabs:hover {
	filter: brightness(0.94);
}

button.lam-account-type {
	background-color:transparent;
	border:0px solid;
	width: 100%;
	text-align: left;
	display:block;
	color: var(--lam-text-color-default);
}

button.lam-vertical-tabs-selected {
	cursor: default;
}

button.lam-account-type img {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
}

div.lam-vertical-tab-content {
	border-width: 0;
	padding: 1rem 3rem 1rem 1rem;
	float: left;
}

div.lam-tab-container {
	border: 1px solid var(--lam-border-color);
	position: relative;
	padding: .2em;
}

ul.lam-tab-navigation {
	margin: 0;
	padding: .2em .2em 0;
	background: #F1F1F1;
	border: 1px solid var(--lam-border-color);
}

ul.lam-tab-navigation::before {
	content: "";
	display: table;
	border-collapse: collapse;
}

ul.lam-tab-navigation::after {
	clear: both;
	content: "";
	display: table;
	border-collapse: collapse;
}

li.lam-tab:hover {
	filter: brightness(0.94);
}

li.lam-tab {
	list-style: none;
	float: left;
	margin: 1px .2em 0 0;
	border: 1px solid var(--lam-border-color);
	border-bottom-width: 0;
	padding: 0;
	white-space: nowrap;
	line-height: 1.3;
	position: relative;
	top: 0;
	background: var(--lam-background-color-default);
	filter: brightness(0.96);
	cursor: pointer;
}

li.lam-tab-active:hover {
	filter: brightness(0.96);
}

li.lam-tab-active {
	margin-bottom: -1px;
	padding-bottom: 1px;
	filter: unset;
	cursor: default;
}

li.lam-tab-active a {
	cursor: default;
}

a.lam-tab-anchor {
	padding: .5em 1em;
	float: left;
	white-space: nowrap;
	color: var(--lam-text-color-default);
}

a.lam-tab-anchor:hover {
	text-decoration: none;
}

div.lam-tab-content {
	display: none;
	border-width: 0;
	padding: 1em 1.4em;
	background: 0 0;
}

div.lam-tab-active {
	display: block;
}

/* title bar */
.titleBar {
	background-image: linear-gradient(#fdfdfd, #cccccc);
	border-top: 1px solid #AAAAAA;
	border-left: 1px solid #AAAAAA;
	border-right: 1px solid #AAAAAA;
}

.titleBarTitle {
	font: bold 1em Arial,Tahoma,Verdana,sans-serif;
}

.titleBarSubtitle {
	padding: 0px 5px 0px 10px;
}

/**
 * Color and font definitions for templates/status.php
 *
 */

div.lam-status-message {
	border-radius: var(--lam-default-border-radius);
	margin: var(--lam-small-space);
}

/* Background olor for the different Status Messages */
div.statusInfo {
  background-color:#d9e5ff;
  border: 1px solid #8eb1ff;
}

div.statusWarn {
  background-color:#fff8ce;
  border: 1px solid #ffcc72;
}

div.statusError {
  background-color:#ffe6e2;
  border: 1px solid #f35b42;
}

/* H2 (MessageHeadline) font size, family, color, and some more settings for the different Status Messages */
div.statusTitle {
	font-weight: bold;
	margin: 3px 3px 3px 15px;
}

/* P (MessageText) font size, family, color, and some more settings for the different Status Messages */
p.statusText {
  margin: 3px 3px 3px 25px;
}

input.smallImageButton {
  background-position: center center;
  background-repeat: no-repeat;
  height: var(--lam-icon-size) !important;
  width: var(--lam-icon-size) !important;
  border: 0px;
  background-color: transparent;
  background-size: contain;
  cursor: pointer;
}

.lam-input-error {
	border: 1px solid red;
	border-radius: 3px;
}

.size16 {
	height: 16px !important;
	width: 16px !important;
	max-width: 16px;
}

/* help tooltip */
th.help {
	text-align: left;
	padding-bottom: 10px;
	font-size: 85%;
}
td.help {
	font-size: 85%;
}

img.help-icon {
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
}

img.fixed-size-16 {
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
}

img.photo {
	max-width: 200px;
	max-height: 400px;
}

img.thumbnail {
	max-width: 64px;
	max-height: 64px;
}

img.clickable {
	cursor: pointer;
}

img.icon {
	width: var(--lam-icon-size);
	height: var(--lam-icon-size);
}

div.confModList {
	max-height: 300px;
	overflow-y: auto;
}

.font-big {
	font-size: 130%;
}

div.tree-view--tree {
	overflow: auto;
}

div.tree-view--actionarea {
	overflow-x: hidden;
	overflow-y: auto;
	padding: 20px;
}

div.tree-highlight input,
div.tree-highlight textarea,
div.tree-highlight select {
	border-color: #5fb762;
}

div.tree-highlight {
	font-weight: bold;
}

.tree-attribute-sorted-list li span {
	position: absolute;
	margin-left: -1.3em;
	margin-top: 0.4rem;
	cursor: grab;
}

div.wunderbaum {
	border: none !important;
	max-height: 2000px;
}

i.wb-icon {
	margin-right: 5px;
}

span.tree-badge {
	position: absolute;
	display: inline-block;
	top: 0;
	left: -0.6rem;
	color: white;
	background-color: var(--lam-background-color-default);
	padding: 0.2em 0.3rem 0.1em 0.3rem;
	font-size: 60%;
	font-weight: 200;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	border-radius: 0.5rem;
	pointer-events: none;
}

span.tree-badge img {
	width: 12px;
	filter: invert(21%) sepia(75%) saturate(2456%) hue-rotate(182deg) brightness(100%) contrast(99%);
}

:root {
	--wb-node-text-color: var(--lam-text-color-default) !important;
}

div.swal2-html-container {
	overflow: visible;
}

.swal2-styled.swal2-confirm {
	border: 1px solid var(--lam-border-color-primary);
	border-radius: var(--lam-default-border-radius);
	background: var(--lam-background-color-primary);
	color: var(--lam-text-color-primary);
}
.swal2-styled.swal2-confirm:focus {
	box-shadow: none;
}

.swal2-styled.swal2-cancel {
	border: 1px solid var(--lam-border-color);
	border-radius: var(--lam-default-border-radius);
	background: var(--lam-input-bg-color);
	color: var(--lam-text-color-default);
}
.swal2-styled.swal2-cancel:focus {
	box-shadow: none;
}

.swal2-styled {
	font-weight: unset;
}

.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
	filter: brightness(0.96);
	background-image: unset;
}

.swal2-popup {
	color: var(--lam-text-color-default);
}

.swal2-html-container form {
	text-align: left;
}

.swal2-html-container select {
	overflow: auto;
}

#swal2-select {
	width: unset;
}

.modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: scale(1.1);
	transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
	z-index: 999;
}
.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--lam-background-color-default);
	padding: 1rem 3rem 2rem 2rem;
	border-radius: 5px;
}
.show-modal {
	opacity: 1;
	visibility: visible;
	transform: scale(1.0);
	transition: background-color 0.1s;
}

.lam-upload-button > input {
	display: none;
}

.lam-upload-button > label {
	display: inline-block;
	padding: .3em 1em;
	text-align: center;
	border-radius: var(--lam-default-border-radius);
	cursor: pointer;
	background-color: var(--lam-input-bg-color);
	border: 1px solid var(--lam-border-color);
	margin: var(--lam-small-space);
	font-size: 1em;
}

.lam-progressbar {
	border: 1px solid var(--lam-border-color);
	border-radius: var(--lam-default-border-radius);
	margin-top: var(--lam-large-space);
	margin-bottom: var(--lam-large-space);
}

.lam-progressbar > div {
	border-radius: var(--lam-default-border-radius);
	background-color: var(--lam-background-color-primary);
	height: 2rem;
}

datalist {
	display: none;
}

button.lam-accordion-button {
	width: 100%;
	text-align: left;
	border: 1px solid var(--lam-border-color);
	outline: none;
	transition: 0.5s;
	padding-right: 0.5rem;
	margin-right: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
}

button.lam-accordion-button:after {
	content: '+';
	float: right;
	margin-right: var(--lam-regular-space);
}

button.lam-accordion-button-active {
	background-color: var(--lam-background-color-primary);
	border-color: var(--lam-background-color-primary);
	color: var(--lam-text-color-primary);
}

button.lam-accordion-button-active:after {
	content: '-';
}

button.lam-accordion-button:hover {
	filter: brightness(0.96);
}

div.lam-accordion-content {
	max-height: 0;
	transition: max-height 0.2s ease-out;
	overflow: hidden;
	border: 0px;
}

div.lam-accordion-content-active {
	border: 1px solid var(--lam-border-color);
	border-top: 0px;
}

div.lam-accordion-content-inner {
	margin: var(--lam-large-space) var(--lam-largest-space);
}

span.lam-sortable-list-icon {
	background-image: url('../graphics/move-vertical.svg');
	width: 20px;
	height: 20px;
	display: inline-block;
	overflow: hidden;
	background-repeat: no-repeat;
}

div.tippy-box {
	color: var(--lam-text-color-default);
	background: var(--lam-background-color-default);
	font-size: 85%;
	border: 2px solid #a0a0a4;
	border-radius: var(--lam-default-border-radius);
	box-shadow: 0px 0px 5px #666666;
	padding: 0 var(--lam-regular-space) var(--lam-regular-space) var(--lam-regular-space);
	max-width: 25rem;
}

div.jodit-container {
	margin: var(--lam-small-space);
	margin-bottom: var(--lam-regular-space);
}

div.lam-data-table {
	border-color: var(--lam-table-border-color);
	background-color: var(--lam-table-background-color-bright);
}

div.lam-data-table select {
	width: unset;
}

div.lam-data-table input {
	margin: unset;
}

div.lam-data-table div.tabulator-footer {
	background-color: var(--lam-background-color-default);
	border-color: var(--lam-table-border-color);
}

div.lam-data-table div.tabulator-row-odd {
	background-color: var(--lam-table-background-color-bright);
}

div.lam-data-table div.tabulator-row-even {
	background-color: var(--lam-table-background-color-dark);
}

div.lam-data-table div.tabulator-row:hover {
	background-color: var(--lam-table-background-color-hover);
}

div.lam-data-table div.tabulator-col {
	background: var(--lam-background-color-default) !important;
	border-color: var(--lam-table-border-color) !important;
}

div.lam-data-table div.tabulator-cell,div.tabulator-header {
	border-color: var(--lam-table-border-color) !important;
}

div.lam-data-table button.tabulator-page.active {
	color: var(--lam-text-color-default) !important;
	font-weight: bold;
}

div.lam-data-table .tabulator-header,.tabulator-table {
	color: var(--lam-text-color-default) !important;
}
