html, body {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-size: 14px;
}

@media (min-width: 768px) {
  html {
	font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f5f5f5;
}

/* Topbar */
.topbar {
	background-color: #7dccf1;
	height: 65px;
	z-index: 2;
}

.topbarLogo {
	height: 50px;
	width: 200px;
}

/* Page Body */
.pageBody {
	display: flex;
	width: 100%;
	min-height: 100vh;
	padding: 0 0 20px 0;
	box-sizing: border-box;
	background-color: #f5f5f5;
	gap: 0px;
}

/* Main Content */
.mainContent {
	padding-top: 100px;
	padding-left: 280px;
	padding-right: 330px;
	width: 100%;
	box-sizing: border-box;
}

.legendItem {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #666;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.redDot { background-color: #e14d43; }
.yellowDot { background-color: #f7b941; }
.greenDot { background-color: #53d272; }

.cardContainer {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.dataCard {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	max-height: 300px;
	padding: 20px;
	border-top: 10px solid #e14d43;
	background-color: #fffdf5;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cardTop {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.cardInfo {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cardTitle {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 4px 0;
	color: #111;
}

.cardText {
	font-size: 0.9rem;
	margin: 0;
	color: #666;
	word-break: break-all;
	overflow-wrap: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cardText span {
	color: #444;
	font-weight: bold;
}

.dataCard.red { border-top-color: #e14d43; }
.dataCard.yellow { border-top-color: #f7b941; }
.dataCard.green { border-top-color: #53d272; }

/* Sidebar */
.sidenavmenu {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100vh;
	width: 250px;
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	background-color: #0196c4;
	overflow-x: hidden;
	padding-top: 80px;
	padding-bottom: 20px;
	box-sizing: border-box;
}

.sidenavmenu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin: 8px 12px;
	text-decoration: none;
	font-size: 22px;
	color: #d1e7f0;
	border-radius: 8px;
	transition: background-color 0.2s;
}

.sidenavmenu a:hover {
	background-color: #2ab5de;
	color: white;
}

#active {
	background-color: #2ab5de;
	color: white;
}

.sidenavmenu a:active {
	background-color: #2ab5de;
	color: white;
}

.sidenavmenu a i {
	margin-right: 10px;
	width: 20px;
	text-align: center;
}

/* Top Right User Button */
.userButton:focus .userButton:active .userButton:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.userButton {
	font-size: 1.15rem !important;
}

.userButton:hover {
	background-color: #a6eaff;
	border-radius: 8px;
	transition: background-color 0.2s;
}

/* Filter Panel */
.filterPanel {
	position: fixed;
	top: 80px;
	right: 13px;
	width: 300px;
	background: #e3f2fc;
	border-radius: 20px;
	border: 1px solid #dbebfa;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	z-index: 1;
	box-sizing: border-box;
}

.filterGroup .form-select {
	border-radius: 12px;
	padding: 10px;
}

.searchWrapper .form-control {
	border: 1px solid #d3e2f2;
	padding: 10px;
	border-radius: 12px;
}

.searchWrapper .form-control:focus {
	box-shadow: none;
	border-color: #d3e2f2;
}

.searchWrapper:focus-within {
	border-radius: 12px;
	box-shadow: 0 0 0 0.25rem rgba(29, 130, 230, 0.15);
}

.filterbuttons a, .filterbuttons button {
	border: none;
	border-radius: 12px !important;
	padding: 10px;
	transition: background 0.2s ease;
}

#resetBtn {
	border: 1px solid;
}

.dataCard:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.row input:not([type="checkbox"]), .row button, .row textarea, .modal-footer a, .btn {
	padding: 10px;
	border-radius: 12px;
	min-width: 60px;
}

.row input[type="checkbox"].form-check-input {
	width: 1em;
	height: 1em;
	margin-top: 0.25em;
	float: left;
	margin-right: 0.5em;
}

input:focus, input:focus-visible,
textarea:focus, textarea:focus-visible,
select:focus, select:focus-visible {
	outline: 2px solid #0d6efd !important;
	box-shadow: none !important;
}

.container-fluid input::placeholder {
	opacity: 0.7;
}

#kontrolNavn {
	background: #e9ecef;
	cursor: default;
}

.detailValue {
	border: none;
	color: #111827;
}

.txt-spacing {
	letter-spacing: 0.05em;
	color: #6b7280;
}

/* Sider med tabel (Historik, Papirkurv) */
.tablePage {
	padding: 100px 30px 30px 280px;
}

.tableCard {
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.dataTable {
	margin-bottom: 0;
}

.dataTable thead th {
	background-color: #f8f9fa;
	color: #6b7280;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid #e5e7eb;
	padding: 12px 16px;
	white-space: nowrap;
}

.dataTable td {
	padding: 12px 16px;
	vertical-align: middle;
}

.dataTable tbody tr:last-child td {
	border-bottom: none;
}

.clickableRow {
	cursor: pointer;
}

.equipmentBadge {
	font-size: 0.8rem;
	padding: 5px 8px;
}

input[type="checkbox"] {
	height: 15px;
	width: 15px;
}

/* Telefonfelt med landekode dropdown fylder hele kolonnen */
.iti {
    display: block;
    width: 100%;
}

/* Plads til den faste sidemenu, så kortene ikke gemmer sig bag den */
.withSidenav {
    padding-left: 250px;
}
