﻿/* Global styles */
body {
	font-family: "DM Sans 14pt", sans-serif;
	background-color: #2b2b2b;
	margin: 0;
	padding: 20px;
}

h1 {
	color: #dddddd;
	text-align: center;
}
h2, label {
	color: #dddddd;
	margin-bottom: 0;
}

h2.modalheader {
	margin-bottom: 3rem;
}


/* Table Styles */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background-color: #4343436e;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	overflow: hidden;
	table-layout: fixed;
}

th, td {
	padding: 20px 15px;
	text-align: left;
	border-top: 1px solid #616161;
	color: #efefef;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
}

a {
	color: #ff9961;
	text-decoration: none;
	font-weight: 600;
}
	a:hover {
		color: #ffba93;
	}
tr a.actionbuttons {
	font-weight: 400;
	border: 1px solid;
	padding: 2px;
}
	tr a.actionbuttons:hover {
		color: #ffba93;
		font-weight: 600;
	}
.modal input[type="checkbox"] {
	display: flex;
	width: 30%;
	margin-left: 0rem;
	margin-top: -1rem;
	min-width: 300px;
}

#customerTable input{
	width: 400px;
}

/* Table Header */
th {
	background-color: #1a1a1a;
	color: white;
	cursor: pointer;
	border: none;
	font-size: 14px;
}

	th.sort-asc::after {
		content: " 🔼";
	}

	th.sort-desc::after {
		content: " 🔽";
	}

/* Row Hover Effect */
tr:hover {
	background-color: #f1f1f11c;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
	table {
		width: 100%;
		font-size: 12px;
	}

	th, td {
		padding: 10px;
	}
}

/* Footer or Action Section */
#footer {
	margin-top: 30px;
	text-align: center;
	font-size: 14px;
	color: #666;
}

/* Pagination Styles */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

.page-btn {
	padding: 8px 16px;
	margin: 0 5px;
	border: 1px solid #ddd;
	background-color: #f0f0f0;
	cursor: pointer;
	font-size: 16px;
}

	.page-btn:hover {
		background-color: #ccc;
	}

.page-number {
	font-size: 18px;
	margin: 0 10px;
}

.top-filter-div {
	text-align: center;
	padding: 10px 0;
	border: none;
	border-radius: 8px;
	background-color: transparent;
	padding-bottom: 40px;
	margin-top: -60px;
}

select {
	float: left;
	font-family: inherit;
	font-size: 16px;
	border-radius: 4px;
	background-color: #5f5f5f;
	color: #fff;
	font-weight: 500;
	padding: 6px 10px;
}

h3 {
	text-align: left;
	color: #dddddd;
}

#header {
	padding: 30px;
	background-color: #00000047;
	border-radius: 16px;
}

nav a {
	margin-right: 4rem;
	text-align: center;
	font-weight: 600;
	color: #fff;
}

	nav a:active, nav a:hover, nav a:focus {
		border-bottom: 3px solid #F96819;
		color: #F96819;
	}

nav img {
	float: right;
	margin-top: -14px;
}

nav a.signout {
	text-align: right;
	float: right;
	background: #c95800;
	padding: 10px 20px;
	margin-top: -10px;
	border-radius: 5px;
	color: #fff;
}

	nav a.signout:hover {
		background-color: #ff8949;
		border: none;
	}

div.back {
	margin-top: 1rem;
	padding-left: 10px;
}

button.nuke {
	margin-top: 0;
	background-color: #000;
	border-radius: 5px;
	color: #fff;
	padding: 10px 15px;
	font-family: inherit;
	font-weight: 600;
	border: none;
	font-size: 12px;
}

	button.nuke:hover {
		background-color: #616161;
	}

button.delete {
	margin-top: 0;
	background-color: #ad2d2d;
	border-radius: 5px;
	color: #fff;
	padding: 10px;
	font-family: inherit;
	font-weight: 600;
	border: none;
	margin-bottom: 0.5rem;
	margin-right: 0.5rem;
	font-size: 12px;
}

	button.delete:hover {
		background-color: #751d1d;
	}


input {
	background: #737373;
	border-radius: 5px;
	border: none;
	padding: 10px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
}

	input[type=checkbox] {
		/* Double-sized Checkboxes */
		-ms-transform: scale(1.5); /* IE */
		-moz-transform: scale(1.5); /* FF */
		-webkit-transform: scale(1.5); /* Safari and Chrome */
		-o-transform: scale(1.5); /* Opera */
		transform: scale(1.5);
		padding: 10px;
	}


button[onclick="submitChanges()"], button#sql-execute-button, button#saveButton, button {
	background-color: #c95800;
	border-radius: 5px;
	color: #fff;
	padding: 10px 30px;
	font-family: inherit;
	font-weight: 600;
	border: none;
	font-size: 16px;
	margin-top: 2rem;
	cursor: pointer;
}

	button[onclick="submitChanges()"]:hover, button#sql-execute-button:hover, button#saveButton:hover, button:hover {
		background-color: #8d3e00;
	}

.g-signin2 {
	text-align: center;
}

.abcRioButton.abcRioButtonLightBlue {
	height: 36px !important;
	width: 170px !important;
	border-radius: 5px;
	text-align: center;
	margin: auto;
}

div.login {
	margin-top: 10rem;
	width: 600px;
	margin-left: auto;
	margin-right: auto;
	background: #393939;
	border-radius: 20px;
	padding: 5rem;
}

h1.login {
	text-align: center;
	margin: auto;
}

img.af-logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

footer {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	background-color: #434343;
	color: white;
	text-align: center;
}

textarea#sql-textarea {
	width: 100%;
	height: 30vh;
	background-color: #ffffff0a;
	color: #fff;
}

#sql-feedback-area {
	width: 100%;
	height: 30vh;
	background-color: #ffffff0a;
	color: #fff;
	border: none;
}

.sql-feedback-container {
	margin-top: 3rem;
}

.reports-container {
	padding-left: 10px;
	padding-right: 10px;
}

/* ======================== */
/* ===== Lisenssimodal ===== */
/* ======================== */
.modal {
	color: #fff;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	justify-content: center;
	align-items: center;
	z-index: 1000;
	margin: 80px auto;
	width: 60vw;
	padding: 4rem;
	border-radius: 15px;
	-webkit-box-shadow: 4px 5px 50px 50px rgb(0 0 0 / 23%);
	box-shadow: 4px 5px 50px 50px rgb(0 0 0 / 23%);
}

.licenseModal-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	width: 400px;
}

.modal input {
	width: 100%;
	padding: 5px;
	margin-bottom: 10px;
}

#closeModalBtn {
	position: absolute;
	right: 15px;
	font-size: 38px;
	cursor: pointer;
	color: #888;
	transition: color 0.2s ease-in-out;
}

#closeModalBtn:hover {
	color: #e74c3c;
}

#customerLicenseCode, .customer-license-code-text {
	text-align: center;
	color: #fff;
}

.add-new-metadata{
	padding-top: 1rem;
	padding-bottom: 1rem;
}

tr a {
	line-height: 2;
}

@media(max-height:1000px){
	.modal{
		margin: 10px auto;
		padding: 7rem;

	}
	h2.modalheader{
		margin-bottom: 0;
	}
	.modal input[type="checkbox"]{
		width: 30%;
	}
}

#loader {
	width: 64px;
	height: 64px;
	border: 4px solid;
	border-color: #f96819 transparent #f96819 transparent;
	border-radius: 50%;
	animation: spin-anim 1.2s linear infinite;
	top: 38%;
	position: absolute;
	left: 50%;
}

	

@keyframes spin-anim {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

div#saving-customer-modal, div#saving-license-modal {
	background: #595959;
	background: linear-gradient(178deg, rgba(89, 89, 89, 0.53) 0%, rgba(64, 64, 64, 0.64) 100%);
	padding: 2rem;
	margin-top: 1rem;
	color: white;
	border-radius: 10px;
	text-align: center;
	transition: opacity 0.5s 0s ease-in-out;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	width: 40%;
	margin: 20px auto;
}



.hidden-field {
	display: none;
}

input[type="datetime-local"]::placeholder {
	color: #999;
	font-style: italic;
}