/* Miligram overrides */

:root {
	--sadcbiz: #806c5e;
	--sadcbiz-fg: white;
	--fgcolor: #363637;
	--bgcolor: white;
	--linkcolor: #606060;
	--linkhovercolor: #383838;
	--rowhovercolor: #c39c7a;
	--boxshadowcolor: rgb(0,0,0,0.5);
	--tablebordercolor: #d2d0d0;
	--tableheader-bg: #7f6756;
	--tableheader-fg: white;
	--actionscolcolor: rgb(221,216,211,0.85);
	--tableiconcolor: #555;
	--evenrowcolor: #f5e9e0;
	--cellbordercolor: gainsboro;
	--loginformbg: #c1a685;
	--forminputsbg: white;
	--forminputsfg: #363637;
	--loginformlabels: #363637;
	--quill-toolbar: #444;
	--quill-placeholder: rgba(0,0,0,0.6);
	--quill-select: #fff;
	--version-match: #005d00;
	--version-mismatch: #b96400;
	--version-suspended: #ab0000;
	--statusbarbg: #c5b0a3;
	--statusbarfg: #2b2b2b;
	--ticket-open: #814600;
	--ticket-closed: #005d00;
	--scrollbar-track: rgb(0,0,0,0.1);
	--scrollbar-thumb: var(--sadcbiz);
	--scrollbar-thumb-hover: rgb(255,255,255,0.5);
	--newmessage-shadow: 0 0 5px var(--sadcbiz);
}

@media screen and (prefers-color-scheme: dark) {
	:root {
		--bgcolor: #222020;
		--fgcolor: #d4d3d3;
		--linkcolor: #f5d8c5;
		--linkhovercolor: #dfa179;
		--rowhovercolor: #706056;
		--boxshadowcolor: rgb(0,0,0,0.5);
		--tablebordercolor: gainsboro;
		--tableheader-bg: #7f6756;
		--tableheader-fg: white;
		--actionscolcolor: rgb(61,53,49,0.85);
		--tableiconcolor: #e0d0ca;
		--evenrowcolor: #241f1c;
		--cellbordercolor: #838181;
		--loginformbg: #c1a685;
		--loginformlabels: #363637;
		--statusbarbg: #3b332e;
		--statusbarfg: white;
		--version-match: #32a300;
		--version-mismatch: #f78500;
		--version-suspended: #ff0000;
		--ticket-open: #f78500;
		--ticket-closed: #32a300;
		--scrollbar-track: rgb(0,0,0,0.1);
		--scrollbar-thumb: var(--sadcbiz);
		--scrollbar-thumb-hover: rgb(255,255,255,0.5);
		--newmessage-shadow: 0 0 2px white;
	}

}


/* Custom Scroll Bar */

/* width */
::-webkit-scrollbar {
  width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  box-shadow: inset 0 0 5px var(--scrollbar-track);
  border-radius: 3px;
  padding: 1px;
  margin: 1px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* End Custom Scroll Bar */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--fgcolor);
}

button, input, optgroup, select, textarea {
	font-size: clamp(12px, 2vw, 16px);
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--fgcolor);
    font-size: clamp(14px, 3vw, 26px);
    margin-bottom: 0;
}

.index h3 {
	margin-left: 15px;
	margin-bottom: 8px;
	margin-top: 15px;
}

.form h3 {
	margin-bottom: 15px;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5, .ql-editor h6 {
    font-weight: 400;
    color: var(--forminputsfg);
}

.ql-snow.ql-toolbar button:hover, .ql-snow.ql-toolbar button.ql-active {
	transform: scale(1.1);
}

a {
    color: var(--linkcolor);
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}

a:hover,
a:focus,
a:active  {
    color: var(--linkhovercolor);
    -webkit-transition:all 0.2s easeout;
    transition:all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a, .actions a, th {
    color: var(--sadcbiz-fg);
}

.top-nav-links a {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color: var(--linkhovercolor);
}

td, th {
    border-bottom: 0.1rem solid var(--cellbordercolor);
    padding: 1.2rem 1.5rem;
    text-align: left;
}

.floating-count:not(:empty) {
    font-family: monospace;
    position: absolute;
    background: #f1950b;
    border-radius: 50%;
    font-size: clamp(9px, 1vw, 11px);
    font-weight: bold;
    height: clamp(16px, 2.5vw, 20px);
    padding: 0;
    min-width: clamp(16px, 2.5vw, 20px);;
    line-height: clamp(9px, 1vw, 11px);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

.inline-count:not(:empty) {
    font-family: monospace;
    background: #f1950b;
    border-radius: 50%;
    font-size: clamp(9px, 1vw, 11px);
    font-weight: bold;
    height: clamp(16px, 2.5vw, 20px);
    padding: 0;
    min-width: clamp(16px, 2.5vw, 20px);;
    line-height: clamp(9px, 1vw, 11px);
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

.floating-count.expanded:not(:empty), .inline-count.expanded:not(:empty) {
	height: clamp(18px, 2.7vw, 22px);
	min-width: clamp(18px, 2.7vw, 22px);
	font-size: clamp(8px, 1vw, 10px);
	line-height: clamp(8px, 1vw, 10px);
}

.floating-count:empty, .inline-count:empty {
	display: none;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: var(--bgcolor);
}

.legacy
{
    border: 3px solid darkolivegreen;
    font-family : monospace;
}

.content {
    background: var(--bgcolor);
    padding: 2rem;
    border-radius: 0.4rem;
    /*box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);*/
}
.index.content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 40px;
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}
th {
    white-space: nowrap;
}

/* Header */
.sadcbiz-header {
	display: flex;
	flex-flow: row wrap;
	background-color: var(--bgcolor);
}

/* Logo */
.sadcbiz-logo {
	width: 300px;
	height: 100px;
	background: var(--bgcolor);
	align-content: center;
	display: flex;
	flex-wrap: wrap;
	align-self: center;
}

/* Nav bar */
.sadcbiz-nav {
	display: flex;
	flex: calc(100% - 300px);
	height: 100px;
	background-color: var(--bgcolor);
	color: var(--fgcolor);
	z-index: 100000;
}

.sadcbiz-nav ul {
	list-style-type: none;
	width: 100%;
	background-color: var(--bgcolor);
	text-align: right;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
}
.sadcbiz-nav li {
	display: flex;
	color: var(--fgcolor);
	font-weight: bold;
	margin: 20px 2vw 40px 2vw;
	letter-spacing: 0.1vw;
}
.sadcbiz-nav li a {
	color: var(--fgcolor);
	font-weight: bold;
	letter-spacing: 0.1vw;
	text-decoration: none;
}
.sadcbiz-nav li a:hover {
	text-shadow: 0 0 1px var(--sadcbiz);
}
.sadcbiz-nav li a:hover svg {
	filter: drop-shadow(0 0 1px var(--sadcbiz));
}

.sadcbiz-nav li a span.menu-text {
	white-space: nowrap;
}

svg.menu-icon {
	width: 30px;
	height: 30px;
	fill: var(--fgcolor);
}

td.in-table-icon {
	text-align: right;
	margin-right: 20px;
}
tr:hover td.in-table-icon svg.in-table-icon {
	visibility: hidden;
}

svg.in-table-icon {
	fill: var(--fgcolor);
	width: 30px;
	height: 30px;
}

#page-actions {
    position: absolute;
    z-index: 9050;
    right: 0;
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 0 10px;
    column-gap: 1vw;
}

svg.ticket-status-closed {
	height: 20px;
	width: auto;
	fill: var(--ticket-closed);
	filter: drop-shadow(0 0 1px black);
}

svg.ticket-status-open {
	height: 20px;
	width: auto;
	fill: var(--ticket-open);
	filter: drop-shadow(0 0 1px var(--bgcolor));
}

.ticket-header-flex {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	padding-right: 5px;
}

#ticket-status-selector {
	cursor: pointer;
}

#ticket-status-selector:hover {
	transform: scale(1.1);
}

#ticket-status-selector svg.ticket-status-closed, #ticket-status-selector svg.ticket-status-open {
	height: 30px;
	width: auto;
	fill: var(--sadcbiz);
	filter: unset;
}

#ticket-status-selector.open .closed {
	display: none;
}

#ticket-status-selector.closed .open {
	display: none;
}

#newmessage-input span.status-message {
	text-align: center;
	color: var(--fgcolor);
	font-style: italic;
	padding: 5px;
	font-size: clamp(9px, 2vw, 12px);
	width: 100%;
}

/* Login Form */
.login-form {
	width: clamp(400px, 50%, 600px);
	border: none;
	border-radius: 50px 15px 50px 15px;
	background-color: var(--loginformbg);
	margin: 40px auto;
	padding: 30px 30px 0 30px;
}
.login-form a {
	display: block;
	text-align: right;
}
.login-form input[type=email], .login-form input[type=password], .login-form input[type=text], .login-form textarea, #body-editor {
	background-color: var(--forminputsbg);
	color: var(--forminputsfg);
}

.password-container {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	background-color: var(--forminputsbg);
	color: var(--forminputsfg);
	justify-content: space-between;
	align-items: center;
	border-radius: 0.4rem;
	border: 0.1rem solid var(--sadcbiz);
	margin-bottom: 1.5rem;
	height: 3.8rem;
}

#pw-suggestion.visible + .password-container {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.password-container div.input.password {
	flex-grow: 10;
	margin: 0;
}

.password-container div.input.password label {
	display: none;
}

.password-container div.input.password input {
	border: unset;
	margin: 0;
	height: 3.6rem;
}

svg.showpassword, svg.hidepassword {
	height: 20px;
	width: 20px;
	fill: var(--sadcbiz);
	cursor: pointer;
	flex-grow: 0;
	margin: 0 5px;
}
svg.showpassword:hover, svg.hidepassword:hover {
	transform: scale(1.07);
}

svg.showpassword {
	display: block;
}
svg.hidepassword {
	display: none;
}

span.human-check-image {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	margin: 1em 0;
}

img.human-check-image {
	border: 1px solid var(--fgcolor);
	border-radius: 30px;
}

li.option-switch div label input, span.option-switch div label input {
	display: none;
}

li.option-switch div.input.checkbox label {
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}

span.option-switch div.input.checkbox label {
	display: flex;
	justify-content: right;
	column-gap: 1rem;
	cursor: pointer;
}

li.option-switch div.input.checkbox label:after, span.option-switch div.input.checkbox label:after {
	height: 2.5rem;
	width: 5rem;
	border: 0.1rem solid var(--sadcbiz);
	border-radius: 1.25rem;
	background: var(--forminputsbg);
	content: '';
	display: flex;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100' width='100' %3E%3Ccircle fill='rgb(94,82,74)' r='40' cx='50' cy='50' /%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 2.4rem 2.4rem;
	transition: background-position 0.3s ease;
	-webkit-transition:background-position 0.3s ease;
	-moz-transition:background-position 0.3s ease;
	-o-transition:background-position 0.3s ease;
}

/*li.option-switch div.input.checkbox label:has(input:checked):after, span.option-switch div.input.checkbox label:has(input:checked):after {
	background-position: right center;
}*/

/* Support old browsers */
li.option-switch div.input.checkbox label.checked:after, span.option-switch div.input.checkbox label.checked:after {
	background-position: right center;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100' width='100' %3E%3Ccircle fill='rgb(131,104,86)' r='40' cx='50' cy='50' /%3E%3C/svg%3E" );
}

@keyframes option-switch-busy {
  75% {background-position: center center;}
}

li.option-switch div.input.checkbox label.disabled:after, span.option-switch div.input.checkbox label.disabled:after,
li.option-switch div.input.checkbox label.checked.disabled:after, span.option-switch div.input.checkbox label.checked.disabled:after {
	background-image: url('data:image/svg+xml,<svg fill="rgb(128,113,101)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" xml:space="preserve"><path d="M16,1C7.716,1,1,7.716,1,16c0,8.284,6.716,15,15,15s15-6.716,15-15C31,7.716,24.284,1,16,1z M25.892,9.134c0.478-0.276,1.09-0.112,1.366,0.366c0.276,0.478,0.112,1.09-0.366,1.366c-0.478,0.276-1.09,0.112-1.366-0.366C25.25,10.022,25.414,9.41,25.892,9.134z M21.134,5.108c0.276-0.478,0.888-0.642,1.366-0.366c0.478,0.276,0.642,0.888,0.366,1.366C22.59,6.586,21.978,6.75,21.5,6.474C21.022,6.198,20.858,5.586,21.134,5.108z M3,16c0-0.552,0.448-1,1-1s1,0.448,1,1c0,0.552-0.448,1-1,1S3,16.552,3,16z M6.108,22.866c-0.478,0.276-1.09,0.112-1.366-0.366c-0.276-0.478-0.112-1.09,0.366-1.366c0.478-0.276,1.09-0.112,1.366,0.366C6.75,21.978,6.586,22.59,6.108,22.866z M6.474,10.5c-0.276,0.478-0.888,0.642-1.366,0.366C4.629,10.59,4.466,9.978,4.742,9.5c0.276-0.478,0.888-0.642,1.366-0.366C6.586,9.41,6.75,10.022,6.474,10.5z M10.866,26.892c-0.276,0.478-0.888,0.642-1.366,0.366c-0.478-0.276-0.642-0.888-0.366-1.366c0.276-0.478,0.888-0.642,1.366-0.366C10.978,25.802,11.142,26.414,10.866,26.892z M10.5,6.474C10.022,6.75,9.41,6.586,9.134,6.108C8.858,5.629,9.022,5.018,9.5,4.742c0.478-0.276,1.09-0.112,1.366,0.366C11.142,5.586,10.978,6.198,10.5,6.474z M16,29c-0.552,0-1-0.448-1-1c0-0.552,0.448-1,1-1s1,0.448,1,1C17,28.552,16.552,29,16,29z M22.5,27.258c-0.478,0.276-1.09,0.112-1.366-0.366c-0.276-0.478-0.112-1.09,0.366-1.366c0.478-0.276,1.09-0.112,1.366,0.366C23.142,26.371,22.978,26.982,22.5,27.258z M23.868,20.496c-0.274,0.479-0.885,0.646-1.364,0.372l-7-4C15.192,16.69,15,16.359,15,16V4c0-0.552,0.448-1,1-1s1,0.448,1,1v11.42l6.496,3.712C23.976,19.406,24.142,20.017,23.868,20.496z M27.258,22.5c-0.276,0.478-0.888,0.642-1.366,0.366c-0.478-0.276-0.642-0.888-0.366-1.366c0.276-0.478,0.888-0.642,1.366-0.366C27.371,21.41,27.534,22.022,27.258,22.5z M28,17c-0.552,0-1-0.448-1-1c0-0.552,0.448-1,1-1s1,0.448,1,1C29,16.552,28.552,17,28,17z"/></svg>');	
	animation: option-switch-busy 2s infinite;
}

li.option-switch div.input.checkbox label.blocked:after, span.option-switch div.input.checkbox label.blocked:after {
	background-image: unset;
	content: 'Unsupported';
}

li.option-switch div.input.checkbox label.unsupported, span.option-switch div.input.checkbox label.unsupported {
	display: none;
}

input:autofill, input:-webkit-autofill,
input:autofill:hover, input:-webkit-autofill:hover, 
input:autofill:focus, input:-webkit-autofill:focus,
input:autofill:active, input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--forminputsfg) !important;
  -webkit-box-shadow: 0 0 0px 40rem var(--forminputsbg) inset !important;
  background-color: transparent !important;
}

.login-form label, .login-form h3, .login-form select, .login-form a:hover, .login-form div, .ql-toolbar {
	color: var(--loginformlabels);
}

.form-text {
	margin: 2vw 0;
}

.login-form #language, .noncolumn-form.registration #language, .noncolumn-form.contact #language {
	background-color: unset;
}

#body-editor {
	margin-bottom: 10px;
	border: 0.1rem solid var(--sadcbiz);
	border-radius: 0.4rem;
	min-height: 120px;
	max-height: calc(100vh - 200px);
	overflow-x: auto;
}

#draft-saved-at {
	font-size: 70%;
	font-style: italic;
	width: 100%;
	display: block;
	text-align: center;
	height: 0;
	overflow: visible;
}

.login-timer-icon {
	fill: #555;
	stroke: #555;
	height: 22px;
	width: 22px;
	position: absolute;
	left: -30px;
	top: 3px;
	display: none;
}

.timer-icon {
	fill: var(--sadcbiz);
	stroke: var(--sadcbiz);
	height: 22px;
	width: 22px;
	position: absolute;
}

.timer {
	height: 22px;
	width: 22px;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.timer.large svg.timer-icon, .timer.large {
	height: 50px;
	width: 50px;
	overflow: visible;
}

.timer.extralarge svg.timer-icon, .timer.extralarge {
	height: 75px;
	width: 75px;
	overflow: visible;
}

#map-timer, #phys-address-timer, #site-address-timer {
	margin: 50px auto 0 auto;
}

#full-screen-timer {
	margin: 0;
}

#loading-message, #phys-address-fetching-message, #site-address-checking-message {
	margin: 10px auto 0 auto;
	width: fit-content;
	color: var(--sadcbiz);
	font-weight: bold;
}

.hidden {
	display: none;
}

/* Split-column forms */
.column-form {
	width: clamp(260px, 100%, 1200px);
	border: none;
	border-radius: 50px 15px 50px 15px;
	background-color: var(--loginformbg);
	margin: 0 auto;
	padding: 30px 30px 0 30px;
}
.column-form input[type=email], .column-form input[type=password], .column-form input[type=text], .column-form textarea {
	background-color: var(--forminputsbg);
}

.column-form textarea {
	height: 3.8rem;
	margin-bottom: 0;
}

.column-form label, .column-form h3, .column-form select, .column-form .field-feedback, .column-form span, .column-form p {
	color: var(--loginformlabels);
}

.column-form ul {
	columns: 2;
	list-style: none;
}

.column-form ul li {
	-webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 0;
}

/* Single column forms */
.noncolumn-form, .chat-form {
	width: clamp(260px, 100%, 1200px);
	border: none;
	border-radius: 50px 15px 50px 15px;
	background-color: var(--loginformbg);
	margin: 20px auto;
	padding: 30px 30px 0 30px;
}
.noncolumn-form.contact, .noncolumn-form.registration {
	width: clamp(460px, 60%, 700px);
}
.noncolumn-form input[type=email], .noncolumn-form input[type=password], .noncolumn-form input[type=text], .noncolumn-form textarea {
	background-color: var(--forminputsbg);
}

.noncolumn-form textarea {
	height: 3.8rem;
	margin-bottom: 0;
}

/*.chat-form textarea {
	height: 60px;
	margin-bottom: 10px;
}*/

.chat-form {
	height: calc(100vh - 140px - 4rem);
}

.chat-form h3 {
	font-size: clamp(12px, 3vw, 16px);
}

.noncolumn-form label, .noncolumn-form h3, .chat-form h3, .noncolumn-form select, .noncolumn-form .field-feedback, .noncolumn-form span, .noncolumn-form p {
	color: var(--loginformlabels);
}

.noncolumn-form ul {
	columns: 1;
	list-style: none;
}

/* Forms General */
.column-form p, .noncolumn-form p {
	margin-bottom: 10px;
	font-size: 90%;
}

.ql-editor p {
	font-size: 100%;
}

#pw-suggestion {
	cursor: pointer;
	font-size: 70%;
	color: var(--loginformlabels);
	background: var(--sadcbiz);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	text-align: center;
	padding-top: 2px;
}

#pw-suggestion span.nowrap {
	white-space: nowrap;
	display: inline-block;
}

li:has(div#pw-suggestion) div.input input {
	margin-bottom: 0;
}

div.submit {
	display: contents;
	margin: 0;
	padding: 0;
}

.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
	margin: 10px;
}

.button:focus, .button:hover, button:focus, button:hover, input[type='button']:focus, input[type='button']:hover, input[type='reset']:focus, input[type='reset']:hover, input[type='submit']:focus, input[type='submit']:hover {
    background-color: var(--sadcbiz);
    border-color: var(--sadcbiz);
}

.ql-snow.ql-toolbar button, .ql-toolbar button {
	margin-top: 0;
}

.character-count {
	font-size: clamp(9px, 65%, 12px);
	margin-top: clamp(5px, 2vw, 10px);
}

.vtoken {
	color: var(--loginformlabels);
	font-size: clamp(8px, 2vw, 12px);
	font-weight: bold;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	margin-bottom: 10px;
}

.vtoken svg {
	width: 25px;
	height: 25px;
	margin-right: 10px;
}

/* Site Index */
.sitelist-icon {
	fill: var(--tableiconcolor);
	stroke: var(--tableiconcolor);
	width: 24px;
	height: 24px;
}


.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

img.index-thumb {
    width: 70px;
    min-width: 70px;
    height: auto;
    border-radius: 20px;
}

tr td.status div.floating-status-wrapper {
	position: relative;
	display: contents;
}

tr td.status div.floating-status-wrapper div.floating-status {
	display: none;
	position: fixed;
	width: 100vw;
	left: 0;
	bottom: 0;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	z-index: 99999;
}

tr td.status div.floating-status-wrapper div.floating-status div {
	background: var(--statusbarbg);
	color: var(--statusbarfg);
	padding: 5px;
	width: 100%;
	font-size: clamp(9px, 3vw, 12px);
	font-weight: normal;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: 0 0 5px black;
	z-index: 9999999;
	position: relative;
}

tr td.status div.floating-status-wrapper div.floating-status div span {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

tr td.status div.floating-status-wrapper div.floating-status div span svg {
	margin: 0 5px 0 0;
}

tr:hover td.status div.floating-status-wrapper div.floating-status, tr.hovered td.status div.floating-status-wrapper div.floating-status {
	display: flex;
}

tr td.status svg {
	width: 20px;
	height: 20px;
	filter: drop-shadow(0 0 1px var(--bgcolor));
}

svg.version-match, svg.article-published, svg.ticket-closed {
	fill: var(--version-match);
}

svg.version-mismatch, svg.article-not-published, svg.ticket-open {
	fill: var(--version-mismatch);
}

svg.version-suspended {
	fill: var(--version-suspended);
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Site not found error */
.sadcbiz-notfound {
	font-weight: bold;
	font-size: 16px;
	text-align: center;
}

/* Article Images */

div.article-images {
	width: clamp(200px, 50vw, 300px);
	color: #000;
	margin: auto auto;
	position: relative;
	font-size: clamp(10px, 3vw, 14px);
}

.upload-button {
	background-color: var(--sadcbiz);
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 5px;
	margin: 5px;
	display: block;
	cursor: pointer;
}

.delete-button {
	background-color: var(--sadcbiz);
        color: #ffffff;
        border: none;
        border-radius: 5px;
        padding: 5px;
        margin: 5px;
	position: absolute;
	right: 0;
	cursor: pointer;
}

div.article-image-preview span.curnew {
	position: absolute;
	font-weight: bold;
	font-size: 80%;
	top: 8px;
	left: 12px;
	color: var(--sadcbiz);
	text-shadow: 2px 2px 5px #ffffff, -2px -2px 5px #ffffff, 5px 5px 10px #ffffff, -5px -5px 10px #ffffff, 1px 1px 2px #ffffff, -1px -1px 2px #ffffff;
}

img.article-image-preview {
	width: 100%;
	height: auto;
	z-index: 20998;
	margin: 0 !important;
}

#article-image-upload-label {
	display: block;
	text-align: center;
	cursor: pointer;
	font-weight: bold;
	max-width: 300px;
	width: clamp(100px, 96%, 300px);
	min-width: 100px;
	margin: 0 auto 20px auto;
}

/* New version */
.article-image-upload {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-flow: column;
	padding: 17px;
}

.article-image-upload span {
	font-size: 80%;
	width: 100%;
	text-align: center;
}

.article-image-upload-container {
	background: var(--forminputsbg);
	height: 140px;
	min-height: 140px;
	max-height: 140px;
	width: 250px;
	min-width: 250px;
	overflow: hidden;
	border-radius: 20px;
	/*border: 0.1rem solid var(--sadcbiz);*/
	padding: 0;
	margin: 0;
}

.article-image-upload-preview, .article-image-upload-icons {
	display: flex;
	height: 140px;
	min-height: 140px;
	max-height: 140px;
	width: 250px;
	min-width: 250px;
	position: absolute;
	overflow: hidden;
	border-radius: 20px;
	border: 0.1rem solid var(--sadcbiz);
}

.article-image-upload-preview {
	justify-content: center;
	align-items: center;
}

.article-image-upload-icons {
	justify-content: center;
	align-items: center;
}

svg.image-upload {
	height: 55px;
	width: 55px;
	filter: drop-shadow(0 0 1px black);
}

svg.image-upload:hover {
	transform: scale(1.1);
	cursor: pointer;
}

svg.image-upload g {
	fill: var(--sadcbiz);
}

.character-count {
	font-size: clamp(9px, 65%, 12px);
	font-weight: bold;
	display: none;
	position: absolute;
	padding: 5px;
	background: rgb(70,51,36,0.8);
	color: white;
	border-radius: 10px 5px 10px 5px;
	border: 1px solid rgb(255,255,255,0.7);
	/*margin-top: -2vw;*/
}

svg.site-check {
	width: 25px;
	height: 25px;
	margin-left: 10px;
	vertical-align: bottom;
}

svg.tick {
	fill: green;
}

svg.cross {
	fill: red;
}

/* Support Messages */
.supportmessages-flex {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	max-height: calc(100vh - 200px - 2rem);
	min-height: calc(100vh - 200px - 2rem);
	height: calc(100vh - 200px - 2rem);
}

.supportmessages-container {
	overflow-y: auto;
	overflow-x: hidden;
	display: block;
	padding: 0 20px;
	flex-basis: 100%;
	flex-grow: 0;
	flex-shrink: 10;
}

.top-fade-container, .bottom-fade-container {
	display: none;
}

.supportmessages-container.scrolled-down .supportmessages .top-fade-container {
	position: absolute;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	overflow: hidden;
	height: 90px;
	padding: 0 30px;
	margin-top: -12px;
	pointer-events: none;
}

.supportmessages-container.scrolled-down .supportmessages .top-fade-container .top-fade {
	height: 90px;
	background: linear-gradient(to bottom, var(--loginformbg) 10%, rgba(255, 0, 0, 0) 100%);
	width: clamp(260px, 100%, 1200px);
	pointer-events: none;
}

/*.supportmessages-container.scrolled-up .supportmessages .bottom-fade-container {
	position: absolute;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	overflow: hidden;
	height: 30px;
	padding: 0 100px;
	margin-top: -12px;
	bottom: 60px;
}

.supportmessages-container.scrolled-up .supportmessages .bottom-fade-container .bottom-fade {
	height: 30px;
	background: linear-gradient(to top, var(--loginformbg) 30%, rgba(255, 0, 0, 0) 100%);
	width: clamp(260px, 100%, 1200px);
}*/

.supportmessages {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	row-gap: 10px;
	margin: 10px;
	overflow-anchor: none;
}

.scroll-anchor {
	overflow-anchor: auto;
	height: 1px;
}

.own-message {
	align-self: end;
	max-width: 75%;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: end;
}

.other-message {
	align-self: start;
	max-width: 75%;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: end;
}

.message-body {
	display: flex;
	margin-bottom: 2px;
	flex-direction: column;
	flex-wrap: nowrap;
	font-size: clamp(14px, 2vw, 16px);
}

.message-sender {
	font-weight: bold;
	font-size: 75%;
	display: block;
	align-self: start;
	color: #f9be94;
}

.message-sender-admin {
	font-weight: bold;
	font-size: 75%;
	display: block;
	align-self: start;
	color: #3a2d23;
}

.own-message .message-body {
	background-color: #5e4939;
	color: white;
	border-radius: 10px;
	padding: 10px;
	position: relative;
}

.own-message .message-body:after {
	content: '';
	position: absolute;
	right: 0;
	top: 70%;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-left-color: #5e4939;
	border-right: 0;
	border-bottom: 0;
	margin-top: -10px;
	margin-right: -19px;
}

.other-message .message-body {
	background-color: var(--sadcbiz);
	color: var(--sadcbiz-fg);
	border-radius: 10px;
	padding: 10px;
	position: relative;
}

.other-message .message-body:after {
	content: '';
	position: absolute;
	left: 0;
	top: 30%;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-right-color: var(--sadcbiz);
	border-left: 0;
	border-top: 0;
	margin-top: -10px;
	margin-left: -19px;
}

.supportmessage-timestamp, .supportmessage-readstamp {
	font-size: 60%;
	display: block;
	align-self: end;
	font-style: italic;
	font-family: monospace;
}

.newmessage {
	width: 100%;
	/*position: fixed;
	bottom: 20px;*/
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	left: 0;
	flex-grow: 10;
	flex-shrink: 0;
	justify-self: flex-end;
}

#newmessage-input {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	padding: 3px;
	align-items: center;
	background: var(--bgcolor);
	border-radius: 2.3rem;
	width: clamp(200px, 90vw, 1150px);
	box-shadow: var(--newmessage-shadow);
	position: relative;
	z-index: 2;
}

#newmessage-input label {
	display: none;
}

#newmessage-input .newmessage-text {
	flex-grow: 10;
	margin: 0;
	display: contents;
}

#newmessage-input .newmessage-text div.input.textarea {
	display: contents;
}

#newmessage-input .newmessage-text textarea {
	min-height: clamp(12px, 2vw, 16px);
	field-sizing: content;
	resize: none;
	max-height: 7rem;
	height: unset;
	background-color: var(--bgcolor);
	color: var(--fgcolor);
	outline: none;
	border: unset;
	margin: 0;
	border-radius: 2.3rem;
	padding-left: 2rem;
	flex-grow: 10;
	flex-shrink: 5;
}

#newmessage-input .newmessage-button {
	flex-grow: 0;
	cursor: pointer;
	height: 4rem;
}

#newmessage-input .newmessage-button svg.message-send {
	width: 4rem;
	height: 4rem;
	fill: white;
	background-color: #5e4939;
	border-radius: 50%;
	padding-left: 3px;
}

#newmessage-input .newmessage-button:hover {
	transform: scale(1.05);
}
/* End Support Messages */

/* Flash and User Input Validation messages */
.message, .error-message {
    padding: 1rem;
    width: clamp(200px, 30%, 400px);
    background: var(--fgcolor);
    color: var(--bgcolor);
    position: fixed;
    border-radius: 25px;
    margin: 2rem auto;
    transition: opacity 2s;
    z-index: 100000;
    left: 50%;
    top: 80px;
    transform: translate(-50%, 0%);
    text-align: center;
    font-weight: normal;
}
.message.hidden {
    display: none;
}
.msg-icon {
	width: 30px;
	height: 30px;
	margin: 5px auto 10px auto;
	display: block;
}

/*.message.success {
    background: rgb(67,165,124, 0.8);
    color: #ffffff;
}
.message.warning {
    background: regb(165,127,67,0.8);
    color: #ffffff;
}
.message.error, .error-message {
    background: rgb(165,67,67,0.8);
    color: #ffffff;
}*/

/* Forms */
label {
	margin-bottom: 2px;
}

.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

.field-feedback {
	font-size: 80%;
	font-style: italic;
	display: block;
}

div.checkbox label input {
	margin: 5px;
}

div.checkbox label {
	cursor: pointer;
}

.form-buttons-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-bottom: 20px;
	border-top: 1px solid var(--sadcbiz);
	margin-top: 30px;
}

.form-buttons-container .submit input[type='submit'] {
	margin: 5px;
}

.form-buttons-container .submit:first-child input[type='submit'] {
	border-bottom-left-radius: 12px;
	margin-left: 0;
}

.form-buttons-container .submit:last-child input[type='submit'] {
	border-bottom-right-radius: 20px;
	margin-right: 0;
}

#location-detected, #site-availability {
	margin-bottom: 3vh;
}

#street-detected, #town-detected, #country-detected, #sitename-detected {
	font-style: italic;
	width: 100%;
	text-align: center;
	display: inline-block;
}

#street-detected {
	white-space: pre-line;
}

ul.error-list {
	display: block;
	width: 100%;
	list-style: none;
	& li {
		color: red;
	}
	& li::before {
		content: "\2718 ";
		margin-left: 10px;
		margin-right: 15px;
	}
}

input[type='email'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='text'], input[type='url'], input[type='color'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input:not([type]), textarea, select {
	color: var(--forminputsfg);
	background-color: var(--forminputsbg);
	border: 0.1rem solid var(--sadcbiz);
}

::placeholder, select:invalid {
  color: var(--sadcbiz);
  opacity: 0.8; /* Firefox */
  font-style: italic;
}

select > option {
    font-style: normal;
    color: var(--forminputsfg);
}

select option[value=""], select option:not([value]) {
    display: none;
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color: var(--sadcbiz);
  opacity: 0.8;
  font-style: italic;
}

select {
	cursor: pointer;
}

textarea {
	min-height: 3.8rem;
	resize: vertical;
}

.translations.form.content .column-form ul li .input textarea, textarea#company-street-address {
	min-height: 7rem;
}

.form-heading-with-icons {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.in-form-icon-container {
	display: flex;
	flex-direction: row;
}

svg.in-form-icon {
	width: 30px;
	height: 30px;
	fill: var(--loginformlabels);
	cursor: pointer;
	margin: 0 10px;
	transition: all 0.25s;
}

svg.in-form-icon:hover {
	transform: scale(1.1);
}

div.expandable-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
}

div.expandable-icon svg {
	width: 25px;
	height: 25px;
}

div.expandable-icon:after {
     content: '';
     height:0;
     width:0;
     border:none;
     border-top:6px solid var(--loginformlabels);
     border-left:6px solid rgba(0,0,0,0);
     border-right:6px solid rgba(0,0,0,0);
     margin: 2px 10px 0 10px;
     transition: all 0.4s;
}

div.expandable-icon:hover:after {
     border-top:8px solid var(--loginformlabels);
     margin-top: 4px;
}

#user-sitelist {
	display: none;
	flex-wrap: wrap;
	margin-bottom: 20px;
	justify-content: end;
}

.user-sitelist-site {
	cursor: pointer;
	background: #807165;
	border-radius: 15px;
	font-size: 70%;
	padding: 3px 8px;
	margin: 5px;
	transition: all 0.2s;
}

.user-sitelist-site:hover {
	box-shadow: -1px -1px var(--fgcolor);
}

#site-availability, #location-detected {
	font-size: 90%;
	padding: 15px;
	border: 1px solid var(--sadcbiz);
	border-radius: 20px;
	margin: 20px 0;
}

/* Maps */
#map-country-input {
	width: 100%;
	height: clamp(300px, 50vw, 600px);
	border: none;
	border-radius: 0.4rem;
	background: var(--loginformbg);
	margin-top: 3vh;
	margin-bottom: 3vh;
}
/* End Maps */

/* Paginator */
.paginator {
    text-align: center;
    margin-top: 15px;
}
.pagination {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
}
.pagination a {
    padding: 0 1rem 0 1rem;
    border: none;
}
.pagination-numbers a {
	background: var(--sadcbiz);
	padding: 2px 5px;
	border-radius: 100%;
	display: inline-flex;
	min-width: 30px;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	margin: 0 2px;
}
.pagination-numbers a span {
	margin-left: 0;
}
.pagination-numbers span.ellipsis {
	background: unset;
}
.pagination .pagination-numbers a {
	color: white;
}
.pagination .pagination-numbers a.active {
	transform: scale(1.15);
	margin: 0 5px;
}
svg.navicon-previous, svg.navicon-next, svg.navicon-first, svg.navicon-last {
    fill: var(--sadcbiz);
    height: 28px;
    width: 28px;
}
svg.navicon-first, svg.navicon-last {
    transform: scale(1.5);
}
.pagination a {
	color: var(--sadcbiz);
}

.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: var(--sadcbiz);
}
/*.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}*/

div.search, div.search form {
	display: flex;
	flex-grow: 10;
	justify-content: right;
}

#search-icon, #cancel-icon {
	cursor: pointer;
}

#search-icon-submit {
	cursor: pointer;
	display: none;
}

#searchbox {
	display: flex;
	justify-content: flex-end;
	width: 28px;
	transition: all 0.35s;
	overflow: hidden;
}

#searchbox.search-visible {
	display: flex;
	border: 1px solid var(--tablebordercolor);
	border-radius: 25px;
	margin: 0 0 0 10px;
	width: calc(100% - 10px);
	/*left: 0;*/
	top: 100px;
	/*position: fixed;*/
	background-color: var(--bgcolor);
	z-index: 100000;
	transition: all 0.35s;
}

#searchbox.search-visible #search-icon {
	display: none;
}

#searchbox.search-visible #search-icon-submit {
	display: block;
	margin-right: 8px;
}

.search fieldset {
	flex-grow: 10;
	margin-bottom: 0;
}

#searchbox #search-icon-container {
	display: flex;
	align-items: center;
	cursor: pointer;
}

#searchbox #search-icon-container svg {
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.search fieldset input {
	border: unset;
	color: var(--fgcolor);
	background-color: var(--bgcolor);
	margin-bottom: 0;
}

.search button {
	flex-grow: 0;
}

#searchresults {
	display: flex;
	font-size: clamp(10px, 2vw, 14px);
	font-style: italic;
	font-weight: normal;
	margin: 0 1rem 1rem 1rem;
	justify-content: right;
	column-gap: 1rem;
	align-items: center;
	border-radius: 20px;
	padding: 8px 8px 8px 12px;
	background: var(--fgcolor);
	color: var(--bgcolor);
}

#searchresults label {
	display: inline;
	cursor: pointer;
	margin: 0 5px;
}

svg.cancel-search {
	width: 28px;
	height: 28px;
	fill: var(--fgcolor);
}

#searchresults svg.cancel-search {
	fill: var(--bgcolor);
}

.empty-index-message {
	width: 100%;
	min-height: 40vh;
	display: flex;
	align-content: center;
	justify-content: center;
	margin-top: 40px;
	opacity: 0.5;
}

.empty-index-message div {
	font-size: 120%;
	width: clamp(250px, 50vw, 500px);
	border: 1px solid var(--fgcolor);
	border-radius: 40px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vw;
}

.supportmessages .empty-index-message div {
	border: unset;
	color: var(--loginformlabels);
}

.empty-index-message div span {
	height: min-content;
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
/*    height: 100vh;*/
    justify-content: center;
    padding: 100px;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
    .column-form ul {
    	columns: unset;
    }
}


/* Tip overlay */
#tip-overlay {
	position: absolute;
	z-index: 900000000;
	display: none;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	transition: all 1s ease-out;
	cursor: pointer;
}

#tip-container {
	display: flex;
	position: absolute;
	flex-direction: column;
	align-items: flex-start;
	left: 0;
	width: 100vw;
	transition: all 1s ease-out;
}

#tip-content {
	color: black;
	background-color: palegoldenrod;
	border-radius: 25px 5px 25px 5px;
	padding: 10px;
	width: clamp(300px, 50vw, 400px);
	margin-right: 25px;
	margin-top: 5px;
	border: 4px solid #eda600;
	transition: all 1s ease-out;
	text-align: left;
	box-shadow: 0 0 2px var(--boxshadowcolor);
	font-size: 95%;
}

#tip-content p, #tip-content li {
	margin: 1vw 0;
	line-height: normal;
}

#tip-content li {
	text-align: left;
	list-style-position: outside;
	margin-left: 20px;
}

#tip-content li::marker {
	font-size: 90%;
	font-weight: bold;
	color: #eda600;
}

svg#fingerpoint {
	width: 50px;
	height: 50px;
	transform: rotate(180deg);
	margin-left: 14px;
	margin-right: 20px;
	transition: all 1s ease-out;
	filter: drop-shadow(0 0 2px var(--boxshadowcolor));
}

#tip-content .icon-key {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	align-items: center;
	text-align: left;
}

#tip-content .icon-key svg {
	margin-right: 10px;
	flex-shrink: 0;
}

svg.tip-highlight {

}

:not(svg).tip-highlight {

}
/* End Tip Overlay */


/* The sidebar menu */
.sidebar {
    height: calc( 100% - 100px); /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 100000; /* Stay on top */
    /*top: 100px; */
    left: 0;
    background-color: rgb(0,0,0,0.9);
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 20px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
}

.sidebar.visible {
	width: 300px;
}

/* The sidebar links */
.sidebar a, .sidebar span {
    text-decoration: none;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a {
    padding: 6px 6px 6px 32px;
}

.sidebar span {
    padding: 6px 6px 6px 20px;
}

/* When you mouse over the navigation links, change their color */
.sidebar a:hover, span {
    margin-left: 3px;
}

/* Position and style the close button (top right corner) */
.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* The button used to open the sidebar */
.openbtn {
    position: absolute;
    font-size: 20px;
    cursor: pointer;
    color: #111;
    background-color: transparent;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    color: darkgreen;
    background-color: transparent;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#openButtonDiv {
    transition: margin-left .5s; /* If you want a transition effect */
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }
    .sidebar a {
        font-size: 18px;
    }
}

nav.breadcrumbs ul{
    text-align:right;
    width:100%;
}
nav.breadcrumbs li{
    display:inline;
    font-size: 14px;
}
nav.breadcrumbs a{
    color: var(--sadcbiz);
}

.checkboxmultipleselect{
    display:inline;
    font-weight:inherit;
    font-size:inherit;
    padding-left:15px;
}
.checkboxmultipleselector{    
    padding-left:15px;
    border-left: 0.1rem solid var(--sadcbiz);    
}

.full-screen-spinner {
	position: fixed;
	z-index: 999999999;
	display: none;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	align-items: center;
	justify-content: center;
	background: rgb(0,0,0,0.8);
}

.spinner {
  -webkit-animation-name: spin;
  -webkit-animation-duration: 2000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 2000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 2000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 2000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@-ms-keyframes spin {
  from {
    -ms-transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* DATA TABLES */
table {
    margin-bottom: 0;
}

div.table-responsive {
    /* Uncomment for vertical scroll in tables
    max-height: calc(100vh - 150px);
    border-radius: 15px 15px 0 0;
    border: 1px solid var(--tablebordercolor); */
    border-bottom: none;
}

thead {
    position: sticky;
    top: 0;
    box-shadow: 10px 1px 20px var(--boxshadowcolor);
    background-color: var(--tableheader-bg);
    color: var(--tableheader-fg);
    z-index: 9000;
}

tr:nth-child(even) {
    background-color: var(--evenrowcolor);
}

tbody tr:hover, tbody tr:focus, tbody tr.hovered {
    background-color: var(--rowhovercolor);
    cursor: pointer;
}

td:first-child, th:first-child {
    padding: 1.2rem 1.5rem;
}

td:last-child, th:last-child {
    padding-right: 1.5rem;
}

thead th a, thead th a:hover, thead th a:active, thead th a:focus, thead th {
    color: var(--sadcbiz-fg);
    font-size: clamp(12px, 1.5vw, 14px);
}

th.icon-column, td.icon-column {
	width: 30px;
}

td.actions {
    white-space: nowrap;
    position: sticky;
    width: fit-content;
    right: 0;
    background-color: var(--actionscolcolor);
    box-shadow: -3px 2px 5px var(--boxshadowcolor);
    text-align: center;
    color: var(--sadbiz);
    z-index: 8999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: none;
    padding: 1rem;
}

tr:hover td.actions, tr:focus td.actions, tr.hovered td.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    position: absolute;
    border: unset;
    border-radius: 0 0 0 30px;
    height: 50px;

}

th.actions {
    white-space: nowrap;
    position: sticky;
    right: 0;
    background-color: var(--sadcbiz);
    text-align: center;
    color: var(--sadcbiz-fg);
    width: 122px;
    min-width: 122px;
    max-width: 122px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: none;
}

td.longtext {
    min-width: 400px;
}

svg.table-action {
    width: 22px;
    height: 22px;
    fill: var(--sadcbiz);
}

svg.page-action {
    width: 28px;
    height: 28px;
    fill: var(--tableiconcolor);
    float: right;
    margin: 0 5px;
}

svg.larger {
    width: 28px;
    height: 28px;
}
/* END DATA TABLES*/

@media screen and (max-width: 1200px) {
	.sadcbiz-header, .sadcbiz-nav ul {
		justify-content: center;
		line-height: normal;
	}
	.sadcbiz-header {
		flex-flow: column;
	}
	.sadcbiz-logo {
    		height: 60px;
		text-align: center;
	}
	.sadcbiz-nav li {
		margin: 10px 2vw;
	}
	.menu-text {
		font-size: 90%;
	}
	.chat-form {
		height: calc(100vh - 170px - 4rem);
	}
	.supportmessages-flex {
		max-height: calc(100vh - 235px - 2rem);
		min-height: calc(100vh - 235px - 2rem);
		height: calc(100vh - 235px - 2rem);
	}
	/*#searchbox:has(#search-text:focus) {
		top: 135px;
	}*/
}

@media only screen and (max-width:930px) {
    /* DATA TABLES */
    div.table-responsive {
        max-height: unset;
        border-radius: unset;
        border: none;
    }

    table.collapse {
        border: 0;
        margin: 0;
    }

    td.in-table-icon {
    	margin-top: -50px;
    }

    table.collapse thead {
        display: none;
    }

    table.collapse tbody {
    	width: 100%;
    	display: flex;
    	flex-wrap: wrap;
    	flex-direction: row;
    }
    
    table.collapse td.status svg {
    	margin-top: 5px;
    }

    .truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    table.collapse tr {
       /* border: 1px solid gainsboro;
        border-radius: 15px;*/
        display: grid;
        grid-template-columns: 20px auto;
        margin-bottom: 0;
        overflow: hidden;
        padding: 8px 0;
        width: 50%;

        -webkit-user-select: none; /* Safari */
        -ms-user-select: none; /* IE 10 and IE 11 */
        user-select: none; /* Standard syntax */

    }
    /*table.collapse tr:has(img),*/ table.collapse tr.has-image {
        grid-template-rows: 16px 14px 14px 14px 14px 3px 3px;    
        grid-template-columns: 100px auto;
    }

    table.collapse tr::before {
        display: block;
        height: 20px;
        font-size: 12px;
        font-weight: bolder;
        text-align: left;
        width: 100%;
        content: attr(collapsed-heading);
        grid-column-start: 2;
    }
  
    table.collapse td, table.collapse td:first-child {
        font-size: 10px;
	height: 14px;
        padding: 0;
    }

    table.collapse td::before {
        /*content: attr(data-label);*/
        font-weight: bold;
        margin-right: 5px;
        margin-bottom: 10px;
        margin-top: 10px;
        text-align: left;
        color: var(--fgcolor);
    }

    table.collapse td.collapse-hidden {
    	display: none;
    }
    
    table.collapse td.actions {
        justify-content: center;
        border-bottom: 0;
        width: 0;
        left: -100vw;
        max-width: unset;
        min-width: unset;
        display: flex;
        position: absolute;
        border-radius: 25px 0 0 25px;
        transition: all 0.25s;
        margin-top: -60px;
        overflow: hidden;
        height: fit-content;
        right: unset;
        padding: 1rem;
    }
    
    table.collapse td.status {
    	position: absolute;
    	right: 5vw;
    }
    
    table.collapse tr:nth-child(odd) td.status {
    	right: 55vw;
    }
    
    tbody tr:hover {
    	/*background-color: unset;*/
    }

    tbody tr:focus {
    	margin-bottom: 0;
    }
    
    table.collapse tr:focus td.actions, table.collapse tr:hover td.actions, table.collapse tr.hovered td.actions {
    	display: flex;
    	z-index: 10000;
	width: fit-content;
    	left: unset;
    	right: 0;
    	position: absolute;
    	margin-top: 0;
    }
    
    table.collapse tr:nth-child(odd):hover td.actions, table.collapse tr.hovered:nth-child(odd) td.actions {
    	right: 50%;
    }

    table.collapse td.actions svg.table-action {
        fill: var(--color-senatical-secondary);
    }

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

    tr:nth-child(even) {
        background-color: unset;
    }

    td.longtext {
        min-width: unset;
    }

    td.longtext div {
        width: 100%;
        margin-bottom: 10px;
    }
    
    td, th {
    	border-bottom: unset;
    	grid-column-start: 2;
    }

    td.index-thumb {
	grid-column-start: 1;
	grid-row-start: 1;
	grid-row-end: 5;
	margin-left: 10px;
    }
    
    svg.ticket-status-closed, svg.ticket-status-open {
	height: 10px;
    }

    td.icon-column {
    	position: absolute;
    	margin-left: 5px;
    }

    td.intable-message-count {
    	position: absolute;
    	margin-left: 80px;
    }
}

/* To override milligram css */
@media screen and (max-width: 640px) {
	table tbody tr {
	    border-right: unset;
	}
}

@media screen and (max-width: 620px) {
	:root {
		--loginformbg: var(--bgcolor);
		--forminputsbg: var(--bgcolor);
		--forminputsfg: var(--fgcolor);
		--loginformlabels: var(--fgcolor);
		--quill-toolbar: var(--fgcolor);
		--quill-placeholder: var(--fgcolor);
		--quill-select: var(--bgcolor);
		--scrollbar-thumb-hover: var(--fgcolor);
	}
	.supportmessages-flex {
		max-height: calc(100vh - 135px - 2rem);
		min-height: calc(100vh - 135px - 2rem);
		height: calc(100vh - 135px - 2rem);
		margin-bottom: 60px;
	}
	.supportmessages-container {
		max-height: calc(100vh - 191px - 2rem);
		/*min-height: calc(100vh - 191px - 2rem);*/
		height: calc(100vh - 191px - 2rem);
	}
	.supportmessages-container.scrolled-down .supportmessages .top-fade-container {
		padding: 0;
	}
	.supportmessages-container.scrolled-down .supportmessages .top-fade-container .top-fade {
		width: 100%;
	}
	.own-message, .other-message {
		max-width: 95%;
	}
	#ticket-status-selector svg.ticket-status-closed, #ticket-status-selector svg.ticket-status-open {
		height: 20px;
		width: auto;
		fill: var(--fgcolor);
		margin-right: 15px;
	}
	span.option-switch div.input.checkbox label {
		justify-content: space-between;
	}
	.sidebar.visible {
		width: 100%;
		height: calc(100% - 65px);
		background-color: black;
	}
	label {
		font-size: 70%;
	}
	.pagination {
		flex-wrap: wrap;
	}
	.pagination-numbers {
		order: 5;
		width: 100%;
		margin-top: 5px;
	}
	.message, .error-message {
		top: unset;
		bottom: 100px;
	}
	.menu-text {
		font-size: 2vw;
	}
	.sadcbiz-nav {
		height: 50px;
	}
	.sadcbiz-nav ul {
		justify-content: space-evenly;
		position: fixed;
		bottom: 0;
		border-top: 1px solid var(--bgcolor);
		height: 63px;
	}
	.sadcbiz-nav li {
		margin: 10px 2vw;
	}
	.sadcbiz-logo img {
		height: 30px;
	}
	.sadcbiz-logo {
	    height: 54px;
	    text-align: left;
	    position: fixed;
	    top: 0;
	    z-index: 10000;
	    width: 100%;
	    align-self: flex-start;
	    transition: all 0.70s;
	    transform-origin: 0% 50%;
	}
	.sadcbiz-logo.shrunk {
	    transform: scaleX(0);
	}
	#page-actions {
		position: fixed;
		top: 0;
		right: 0;
		height: 54px;
		display: flex;
		justify-content: right;
		align-items: center;
		padding: 10px;
		background: var(--bgcolor);
		z-index: 90000;
	}
	#page-actions.search-hidden {
		animation-name: shrink;
		animation-duration: 1s;
		animation-fill-mode: forwards;
	}
	#page-actions.search-visible {
		width: 100%;
		animation-name: grow;
		animation-duration: 0.5s;
	}
	/*@supports selector(:has()) {
		#page-actions:has(#searchbox.search-visible) {
			width: 100%;
			animation-name: grow;
			animation-duration: 0.5s;
		}
	}*/
	table.collapse tr {
		width: 100%;
	}
    
	table.collapse tr:nth-child(odd):hover td.actions, table.collapse tr.hovered:nth-child(odd) td.actions {
	    	right: 0;
	}
	table.collapse tr:nth-child(odd) td.status {
    		right: 5vw;
	}
	.login-form {
		background-color: unset;
		border-radius: unset;
		width: clamp(300px, 100%, 450px);
	}
	.column-form, .noncolumn-form {
		background-color: unset;
		border-radius: unset;
		padding: 20px 5vw;
	}
	.chat-form {
		background-color: unset;
		border-radius: unset;
		padding: 0;
		margin: 20px 0 0 0;
	}
	.chat-form h3 {
		margin-left: 20px;
		font-size: clamp(7px, 2vw, 10px);
	}
	input[type='email'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='text'], input[type='url'], input[type='color'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input:not([type]), textarea, select, .login-form input[type=email], .login-form input[type=password], .login-form input[type=text], .login-form textarea, .column-form textarea, .password-container {
		border: unset;
		border-bottom: 1px solid var(--fgcolor);
		background-color: var(--bgcolor);
		color: var(--fgcolor);
		border-radius: unset;
		
	}
	
	#body-editor {
		background-color: var(--bgcolor);
		color: var(--fgcolor);
		border: 1px solid var(--fgcolor);
		border-radius: 20px;	
	}
	.article-image-upload-preview, .article-image-upload-icons {
		border: 1px solid var(--fgcolor);
	}
	svg.image-upload g {
		fill: var(--fgcolor);
	}
	svg.image-upload {
		filter: drop-shadow(0 0 1px var(--bgcolor));
	}
	.login-form #language, .noncolumn-form.registration #language, .noncolumn-form.contact #language {
		background-color: var(--bgcolor);
		color: var(--fgcolor);
	}
	.login-form label, .login-form h3, .login-form select, .login-form a:hover, .ql-toolbar {
		color: var(--fgcolor);
	}
	.login-form label {
		font-size: 70%;
	}
	input:autofill, input:-webkit-autofill,
	input:autofill:hover, input:-webkit-autofill:hover, 
	input:autofill:focus, input:-webkit-autofill:focus,
	input:autofill:active, input:-webkit-autofill:active {
    		-webkit-text-fill-color: var(--fgcolor) !important;
    		color: var(--fgcolor) !important;
	    	-webkit-box-shadow: 0 0 0px 40rem var(--bgcolor) inset !important;
	}
	.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
		width: 100%;
		border-radius: 20px;
	}
	.login-timer-icon {
		fill: var(--fgcolor);
		stroke: var(--fgcolor);
	}
	/*#searchbox:has(#search-text:focus) {
		top: 5px;
	}*/
	h3 {
		/*font-size: small;*/
		letter-spacing: 0.1vw;
	}
	.content, .index.content {
		margin-top: 55px;
		padding: 0 0 100px 0;
		box-shadow: unset;
	}
	.noncolumn-form.contact, .noncolumn-form.registration {
		width: clamp(260px, 100%, 620px);
	}
	.form-buttons-container {
		padding-top: 20px;
		border-top: unset;
	}
	.form-buttons-container .submit:first-child input[type='submit'] {
		border-bottom-left-radius: 20px;
		margin-left: unset;
	}
	.form-buttons-container .submit:last-child input[type='submit'] {
		border-bottom-right-radius: 20px;
		margin-right: inset;
	}
	.form-buttons-container .submit input[type='submit'] {
	    margin-left: 0;
	    margin-right: 0;
	}
	li.option-switch div.input.checkbox label:after, span.option-switch div.input.checkbox label:after {
		border: 0.1rem solid var(--fgcolor);
	}
	#map-country-input {
		height: clamp(300px, 65vh, 800px);
	}
	tr td.status div.floating-status-wrapper div.floating-status {
		bottom: 63px;
	}
	.character-count {
		margin-top: -1vw;
		margin-left: -1vw;
		padding: 2px 5px;
		color: var(--bgcolor);
		background-color: var(--fgcolor);
		transition: all 0.3s ease-in-out;
	}
	
	
}

@media screen and (max-width: 260px) {
	.sadcbiz-logo img {
		display: none;
	}
}

@keyframes grow {
    from {
        width: 90px;
    }
    to {
        width: 100%;
    }
}
@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 90px;
    }
}
@keyframes moveUpDown {
        0% {
            transform: translateY(0); /* Starting position (no vertical translation) */
        }
        50% {
            transform: translateY(-50px); /* Move 50px upwards */
        }
        100% {
            transform: translateY(0); /* Return to starting position */
        }
}
