html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	cursor: default;
	background-color: #fff;  /* stop touching the color - bloody plugins */
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  display: none !important;
}

body {
	display: grid;
	grid-template-columns: 200px 6fr auto;
	grid-template-rows: 50px auto 50px;
	grid-template-areas:
		"header header header"
		"sidebar content rightside"
		"sidebar footer rightside";
}

body.loading {
	background: url(/loading.gif) no-repeat center center
}

body.loading > header,
body.loading > aside,
body.loading > section,
body.loading > footer,
body.loading > [popup] {
	display: none;
}

input.error {
	border: #fb0000 2px solid;
}

.number_error {
	font-weight: bold;
	color: red;
}

a {
	color: #000;
}
i.fa-stop {
	color: #cc3e3e;
}
i.fa-stop:hover {
	color: #f30101;
}

i.fa-play {
	color: #31a71d;
}

i.fa-play:hover {
	color: #43c52d;
}

i.fa-refresh {
	color: #483bad;
}
i.fa-refresh:hover {
	color: #1d01f1;
}

a.open_tenant.active {
	opacity: 1;
	cursor: pointer;
}

a.open_tenant.disabled i.fa-external-link:active {
	color: #000;
	font-weight: bold;
}

a.open_tenant.disabled i.fa-external-link {
	color: #808080;
	font-weight: bold;
}

a.open_tenant.disabled {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.7;
}

i.fa-edit,
i.fa-external-link {
	font-weight: bold;
}

/* Make section scrollable */
section {
	overflow: auto;
}

/* baseline is different - align icons */
section.resellers i.fa-edit {
	/* position: relative; */
	top: 0.05em;
}

section.tenant tr td:first-child i.fas,
section.tenant tr td:first-child i.far,
section.tenant tr td:first-child i.fa {
	width: 31px;
}

section {
	grid-area: content;
}

body.collapsed {
	grid-template-columns: 50px 1fr;
}

button {
	cursor: pointer;
}

footer {
	grid-area: footer;
}

button.button-create,
footer button.button-create {
	color: #fff;
	background-color: #2681ff;
}

button.button-create:hover,
footer button.button-create:hover {
	background-color: #376eb9;
}

button.button-cancel,
footer button.button-cancel {
	color: #fff;
	background-color: #666669;
}

button.button-cancel:hover,
footer button.button-cancel:hover {
	background-color: #47474a;
}


div.table-controls-did-routing,
div.table-controls {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	justify-content: space-between;
	align-items: center;
}

div.table-controls-did-routing input {
	grid-row-start: 1;
	grid-column: 2;
	padding: 5px 2px 5px 0px;
	justify-self: end;
}

div.table-controls-did-routing button {
	grid-row-start: 1;
	grid-column: 1;
	justify-self: end;
}

div.table-controls-did-routing table {
	grid-column: 1/3;
	grid-row-start: 2;
}

div.table-controls-did-routing,
div.table-controls [left] {
	grid-column-start: 1;
	justify-self: start;
}

section.tenant div.did-routing-table {
	grid-row: 2;
	grid-column: 1/5;
}

md-dialog.md-transition-in div.md-header.error {
	background-color: #ea807a;
	color: #FFFFFF;
}

md-dialog.md-transition-in div.md-header.warning {
	background-color: #e2ab39;
}

md-dialog.md-transition-in div.md-header.prompt {
	background-color: #a9d1f7;
}

md-dialog.md-transition-in.md-error-theme {
	opacity: 1;
	top: -20%;
}

md-dialog.md-error-theme md-dialog-content h2.md-title {
	text-align: left;
}

md-dialog.md-error-theme md-dialog-content h2.md-title:before {
	font-family: 'Font Awesome 5 Pro';
	content: "\f071";
	padding-right: 5px;
}

md-dialog.md-error-theme md-dialog-actions button.md-button {
	background-color: #5c6479 !important;
	color: #FFFFFF !important;
	font-size: 14px;
    font-weight: bold;
}

md-dialog.md-error-theme md-dialog-actions button.md-button.md-primary:hover {
	background-color: #848894 !important;
}

md-dialog.password input[type="password"] {
	outline: none;
	box-shadow: none;
	border: none;
	border-bottom: 2px solid blue;
	width: 100%;
}

div.table-controls [right] {
	grid-column-start: end;
	justify-self: end;
}

header {
	display: grid;
	grid-area: header;
	grid-template-columns: 200px 50px auto 230px;
	align-items: center;
	justify-items: center;
	white-space: nowrap;
	background-color: #f4f3ef;
	border-bottom: 3px solid #DDDDDD;
}

header .home {
	border: 0;
	background: none;
	color: #fff;
	font-size: 1.25rem;
	text-decoration: none;
	color: #777;
}

header .home:hover {
	text-decoration: none;
}

.header-search {
	width: 50%;
}

header a {
	text-decoration: none !important;
}

div.profile_menu {
	background-color: white;
	border-radius: 5px;
}

div.profile_menu div.menu-item:hover {
	background-color: rgba(158,158,158,0.2);
}

div.profile_menu div.self-item span.user {
	color: #a2a2a2;
	font-weight: bold;
}

div.profile_menu div.logout span {
	color: #b71d1d;
}

div.profile_menu a {
	text-decoration: none;
}

div.profile_menu button.panel_button {
	display: inline-block;
	position: relative;
	cursor: pointer;
	line-height: 20px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	outline: none;
	border: 0;
	padding: 0 6px;
	margin: 6px 8px;
	background: transparent;
	white-space: nowrap;
	font-size: 14px;
	overflow: hidden;
	transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header a.warning,
header button.profile {
	border: 0;
	background: none;
	color: #fff;
	margin: 0 5px;
	font-size: 1.3em;
	color: #a2a2a2;
}

header .buttons {
	grid-column: 4;
	justify-self: end;
}

header a.warning span {
	border-radius: 50px;
	padding: 3px 5.5px;
	position: absolute;
	right: 50px;
	top: 5px;
}

header .user_menu {
	display: grid;
	grid-auto-flow: row;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
	min-width: 220px;
	padding: 0px;
	border: 0;
	margin-top: 0;
	-webkit-transform-origin: top right;
	-moz-transform-origin: top right;
	-ms-transform-origin: top right;
	transform-origin: top right;
	position: absolute;
	top: 51px;
	right: 15px;
	z-index: 10;
	opacity: 0;
	-webkit-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
	-webkit-transition: all .25s;
	transition: all .25s;
	left: auto
}

header .user_menu a {
	cursor: pointer;
	padding: 10px;
}

header .user_menu a:hover {
	background-color: #4444442b;
}

header .user_menu.open {
	opacity: 1;
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}

/* Footer */

footer {
	display: grid;
	grid-auto-flow: column;
	justify-content: end;
	grid-gap: 1em 1em;
	align-items: center;
	padding: 0 10px 0 10px;
	background: #e2e2e2;
}

div.popover {
	max-width: 800px;
	min-width: 400px;
	max-height: 800px;
}

div.popup {
	display: none;
	grid-template-rows: 65px auto 50px;
	grid-auto-flow: row;
	margin-top: 10px;
	width: 600px;
	max-height: 400;
	position: absolute;
	background-color: #fff;
	background-color: #fff;
	color: #333;
	transition: opacity 0.6s;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 0px 00px 30px 30px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}

div.popup h2 {
	background-color: #f44336;
	padding-top: 15px;
	color: white;
}

.popup ul {
	padding: 15px;
	list-style-type : none;
}

.popup div button {
	float: right;
	margin-right: 30px;
}

.popup.show {
	display: grid;
}

aside {
	display: grid;
	grid-template-columns: auto;
	align-content: start;
	grid-area: sidebar;
	background: #0a1c54;
}

aside a {
	text-decoration: none;
	text-align: left;
	padding: 10px 20px;
	border: 1px solid rgba(0, 0, 0, 0.125);
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}

aside a.active {
	color: #80e3ff;
}

aside a:hover {
	text-decoration: none;
	background-color: #fff;
	color: black;
}

aside button:first-of-type {
	border-top-left-radius: 0.25rem;
}

aside button:last-of-type {
	border-bottom-left-radius: 0.25rem;
}

aside button:hover {
	background-color: #eee;
}

/* collapse navbar */
aside.collapsed span {
	display: none;
}

aside.collapsed a {
	padding: 11px 13px;
}

aside a.notify i,
aside a.notify span {
	color: #d69720;
}

aside ul.sub-menu li a {
	padding: 5px 20px;
}

aside ul.sub-menu li {
	list-style: none;
	color: #FFFFFF;
}

aside ul.sub-menu li a:hover {
	text-decoration: none;
	background-color: #fff;
	color: black;
}

h2 {
	text-align: center;
}

section.resellers,
section.radius,
section.tenants {
	padding: 10px 30px 30px 30px;
	grid-row: 2 / 4;
	overflow-y: scroll;
	overflow-x: auto;
}

section div.dialog_header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

section div.dialog_header h2 {
	grid-column: 1;
	font-size: 25px;
	border-bottom: 1px solid #a0e6fd;
	color: #68b3c8;
	place-self: start;
}

section div.dialog_header h2:hover {
	color: #129cb7;
}

section.resellers a.add button,
section.radius a.add button,
tab.radius a.add button,
section.tenants a.add button {
	background-color: #1a9267;
	color: #fff;
}

section.resellers a.add button:hover,
section.radius a.add button:hover,
tab.radius a.add button:hover,
section.tenants a.add button:hover {
	background-color: #0f5d41;
}

section.resellers div.controls input,
section.radius div.controls input,
tab.radius div.controls input,
section.tenants div.controls input {
	padding: 2px 4px 4px 4px;
}

section.resellers div.controls,
section.radius div.controls,
section.tenants div.controls {
	grid-column: 5;
}

tab.radius div.controls {
	grid-row: 1;
	grid-column: end;
}

section.tenants table tbody td:nth-of-type(2) a,
section.tenants table tbody td:nth-of-type(5) a,
section.resellers table tbody td:nth-of-type(1) a,
section.radius table tbody td:nth-of-type(1) a,
tab.radius table tbody td:nth-of-type(1) a,
section.tenant table.apps tbody td:nth-of-type(1) a,
section.create-tenant table.apps tbody td:nth-of-type(1) a {
	color: #007bff;
}

section.profile .ng-empty[required],
section.reseller .ng-empty[required],
section.create-reseller .ng-empty[required] {
	border-left: 5px solid #d45452;
}

section.profile input.password,
section.reseller input.password,
section.create-reseller input.password {
	width: 100%;
}

section.reseller span.passwords_handled_remotely {
	grid-row: 8;
	grid-column: 1/end;
}

section.profile span.passwords_handled_remotely {
	grid-row: 3;
	grid-column: 1/end;
}

section div.password_strength {
	height: 3px;
}

section.login div.password_strength {
	height: 5px;
}

section div.password_strength.weak {
	background-color: #dc143c;
}
section div.password_strength.moderate {
	background-color: #f7f433;
}
section div.password_strength.strong {
	background-color: #3d9600;
}

.required:after {
	content:" *";
	color: red;
}

.users th,
.tenant th,
.tenants th,
.settings th,
.resellers th,
.radius th,
.auth th,
.event-log th,
.did_routing th,
.create-tenant th {
	background-color: #9dcfe4;
}

[left] {
	text-align: left;
}

[center] {
	text-align: center;
}

[right] {
	text-align: right;
}

[sub_header] {
	font-size: 18px;
	color: gray;
	border-bottom: 1px solid #c7c7c7;
	grid-column: 1/end;
	text-transform: uppercase;
}

[grayed] {
	color: #808080;
	font-weight: bold;
}

[disabled] {
	color: #808080;
	/* font-weight: bold; */
	cursor: not-allowed;
}

p[bold] {
	font-weight: bold;
}

.custom-control-label::before {
	border: 1px solid;
}

.pulse {
	-webkit-animation: pulse 2s ease-out;
	-webkit-animation-iteration-count: infinite;
	border-radius: 15px;
}

@keyframes pulse {
	0% {
		-moz-box-shadow: 0 0 0 0 rgba(212, 64, 27, 0.986);
		box-shadow: 0 0 0 0 rgba(212, 64, 27, 0.849);
	}
	70% {
		-moz-box-shadow: 0 0 0 10px rgba(212, 64, 27, 0.5);
		box-shadow: 0 0 0 10px rgba(212, 64, 27, 0);
	}
	100% {
		-moz-box-shadow: 0 0 0 0 rgba(212, 64, 27, 0.3);
		box-shadow: 0 0 0 0 rgba(212, 64, 27, 0);
	}
}


.custom-control-label:hover {
	cursor: pointer;
}

section.tenants table td:nth-child(6)[right] {
	text-align: right;
}

section.event-log table td:nth-child(3) a,
section.tenants table tbody td:nth-child(3) a {
	color: #007bff;
}

section.event-log {
	padding: 10px 30px 30px 30px;
}

.tenants table button {
	border: 0;
	background: none;
}

.tenants table td.status {
	text-transform: uppercase;
}

.tenants i.cancelled,
.tenants i.failure,
.tenants i.error,
.tenants i.frozen {
	color: #ff2e2e;
}

.tenants i.starting,
.tenants i.stopping,
.tenants i.cancelling,
.tenants i.pending,
.tenants i.aborting,
.tenants i.freezing {
	color: #ffbf2a;
}

.tenants i.started,
.tenants i.running,
.tenants i.success,
.tenants i.thawed {
	color: #63b725;
}

.tenants i.stopped {
	color: #908f8f;
}

md-toast.pending div.md-toast-content {
	background-color: darkorange;
}

.tenants table td:last-child span,
.radius table td:last-child span,
.auth table td:last-child span,
.resellers table td:last-child span {
	display: grid;
	grid-auto-flow: column;
	align-items: center;
	justify-content: center;
	grid-gap: 1em;
}

.tenants table td:last-child > a,
.tenants table td:last-child > i {
	justify-self: start;
}

section.tenants table tr td:last-child i {
	cursor: pointer;
}

section.tenants table tr td:last-child i.readonly {
	cursor: not-allowed;
}

section.tenants md-checkbox {
	min-height: 0px;
}

section.tenants md-checkbox div {
	transform: none;
}

section.tenants md-checkbox div.md-icon {
	height: 15px;
	width: 15px;
}
section.tenants table thead md-checkbox div.md-icon::after {
	width: 8px;
}

section.tenants table tbody md-checkbox div.md-icon::after,
section.tenants table thead md-checkbox.md-checked .md-icon:after {
	width: 4.66667px;
	height: 10.33333px;
	left: 4px;
}

section.tenants div.bulk_actions {
	font-size: large;
	border-radius: 15px;
	padding: 0px 10px 0px 10px;
	justify-self: start;

	-webkit-transition:all linear 0.5s;
	transition:all linear 0.5s;
}

section.tenants div.bulk_actions.ng-hide {
	opacity:0;
	justify-self: start;
	transition:all linear 0s;
}
section.tenants div.totals_row {
	animation-delay: 2s;
	-webkit-transition:all linear 0.5s;
	transition:all linear 0.5s;
}

section.tenants div.totals_row.ng-hide {
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s, opacity 0s linear;
}

section.tenants div.bulk_actions i {
	cursor: pointer;
	padding-right: 10px;
}

section.tenants div.filtered {
	background-color: #f5dcb3;
	justify-self: start;
	padding: 3px 3px 3px 3px;
}

section.tenants div.filtered i {
	color: #6666ff;
	padding-left: 5px;
}

section.tenants table tbody tr.notifications button {
	border: 1px solid gray;
}

tr.active_row {
	background-color: #cacaca;
}

section div.footer {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	grid-column-gap: 10px;
	padding: 0px 15px 0px 15px;
}

section div.footer a,
section div.footer input {
	place-self: center;
}

section div.footer input.btn-danger {
	margin-right: 80px;
	grid-column: 3;
}

section div.footer a.btn-warning {
	grid-column: 4;
}

section div.footer input.btn-success {
	grid-column: 5;
}

/* Padded sections */
section.user,
section.tenant,
section.profile,
section.reports,
section.settings,
section.reseller,
section.create-user,
section.did_routing,
section.auth,
section.create-tenant,
section.create-reseller {
	padding: 10px 30px 30px 30px;
}

/* 5 columns views */
section.tenant tab.pane.active.apps,
section.tenant tab.pane.active.general,
section.create-tenant tab.pane.active,
section.settings tab.pane.active,
section.user form,
section.profile form,
section.reports form,
section.reseller form,
section.create-user form,
section.create-tenant [tab],
section.auth tab.general.active,
section.auth tab.oidc.active,
section.create-reseller form {
	display: grid;
	grid-template-columns: 1fr 1fr 60px 1fr 1fr;
	grid-row-gap: 5px;
	margin: 0px;
}

/* 7 columns views */
section.tenant tab.active.advanced,
section.auth tab.radius.active,
section.did_routing tab.pane.active {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 60px 1fr 1fr 1fr;
	grid-row-gap: 5px;
	margin: 0px;
}

section.tenant div.legend,
section.did_routing div.legend {
	grid-column: 5 / end;
	grid-row: 2 / span 4;
}

section form [first] {
	grid-column-start: 1;
}

section.tenant div.did_routing_disabled {
	grid-column: 1 / end;
}

section form [second] {
	grid-column-start: 4;
}

section form [span2] {
	grid-row: auto / span 2;
}

section form [span3] {
	grid-row: auto / span 3;
}

section form input[type="checkbox"] {
	justify-self: left;
}

.search {
	padding: 30px;
}

.search div.search_results {
	display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr) );
    height: 200px;
}

.search div ul li.header {
	font-weight: bold;
	border-bottom: 1px solid;
}

.search a {
	text-decoration: none;
}

.search div ul {
	list-style-type: none;
	border: 1px solid #acadb4;
	border-radius: 10px;
	height: 88%;
	padding: 0;
	text-align: center;
}

.search div ul:hover {
	background-color: #a0a3b18c !important;
}

.search div.search_results a.tenants ul {
	background-color: #eeeeee;
}

.search div.search_results a.users ul {
	background-color: #d3d8ea;
}

section.users {
	padding: 10px 30px 30px 30px;
}

section.users a.add {
	float: right;
	font-size: 2rem;
}

div.table_search {
	display: grid;
	grid-template-columns: auto 200px;
	grid-column-gap: 10px;
	justify-content: start;
	margin-bottom: 5px;
}

div.table_search label {
	margin: 0px;
    align-self: center;
}

multiselect ul.dropdown-menu > li > a {
	display: block;
	padding-left: 20px;
}

multiselect ul.dropdown-menu > li a.item-unselected:hover {
	background-color: #f1f1f1;
}

/* Login */

section.login {
	grid-column: 1 / 3;
	grid-row: 1 / 4;
	background-image: url(background.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center
}

section.login form {
	display: grid;
	grid-gap: 0.5em 1em;
	grid-template-rows: auto;
	justify-content: center;
	align-content: center;
	justify-items: center;
	height: 100%;
	margin: 0;
}

section.login label,
section.login h2 {
	color: #fff;
	place-self: start;
}

section.login button.login {
	margin-top: 10%;
}

section.login button {
	width: 100%;
	color: #fff;
	background-color: #44c33b;
	border-color: #44c33b;
	font-weight: bold;
	font-size: 0.9em;
	transition: background-color 0.3s, border-color 0.3s;
}

section.login button:hover {
	background-color: #25941d;
	border-color: #25941d;
}

section.login div.logo {
	place-self: start;
}

section.login span.or {
	color: #fff;
}

div.notification_menu {
	width: 380px;
	background-color: #373737;
	border-radius: 5px;
	color: white;
	overflow-y: auto;
	overflow-x: hidden;
	word-break: break-word;
	padding: 5px 10px 5px 10px;
	z-index: 1;
	grid-area: rightside;
	border: 2px solid #f4f3ef;
}

div.notification_menu div.header {
	font-size: 20px;
}

div.notification_menu hr {
	background-color: #c1c1c1;
	margin: 5px 0px 5px 0px;
}

div.notification_menu .fa-window-close {
	float: right;
	cursor: pointer;
	color: #c56666;
	padding-right: 5px;
}

div.notification_menu .fa-window-close:hover {
	color: #ef8282;
}

div.notification_menu div.item:hover {
	background-color: #3f4d5d;
}

div.notification_menu div.item-content {
	padding: 0px 0px 10px 0px;
}

div.notification_menu div.item i.fa-arrow-right {
	float: left;
	margin-right: 5px;
}

section.tenants tr.notifications {
	background-color: #e8e8e8;
	border-style: solid;
	border-collapse: separate;
	box-shadow: 0px 5px 5px -1px black;
}

section.tenants tr.notification_bottom {
	height: 25px;
}

section div.no_credentials a {
	color: #376eb9;
}

section.tenant .multiSelect .helperButton.reset,
section.create-tenant .multiSelect .helperButton.reset {
	float: left;
}

section.tenants tr.notifications td i.fa-window-close {
	cursor: pointer;
	color: #c56666;
}

section.tenants tr.notifications i.fa-exclamation-triangle {
	color: #dc8601;
}

section.tenants table tr.notification_error {
	background-color: #dee2e6;
}

section.tenant whitelist-template,
section.create-tenant whitelist-template {
	display: grid;
	grid-column: 1/end;
	grid-row-gap: 5px;
}

section.tenant whitelist-template label,
section.create-tenant whitelist-template label,
section.tenant div.table-responsive,
section.create-tenant div.table-responsive,
section.settings div.table-responsive {
	grid-column: 1/6;
}

section.did_routing div.table-responsive {
	grid-row: 2;
	grid-column: 1/5;
}

div.modal-header.type-warning {
	background-color: #f44242;
}

section.settings div.policy_table {
	padding-bottom: 30px;
}

section.settings form h3,
section.settings form legend {
	grid-column: 1/3;
}

section.create-tenant button.btn {
	grid-column: 5/6;
	justify-self: end;
}

section.tenant button.btn,
section.settings button.btn,
section.create-tenant button.btn {
	grid-column: 1;

}

section.settings tab.trace button.btn,
section.settings tab.settings button.btn,
section.did_routing tab.import button.btn {
	justify-self: start;
}

section.did_routing div.log {
	grid-column: 1/end;
	font-family: monospace;
}

section.settings table.whitelist,
section.tenant whitelist-template table,
section.settings div.policy_table table,
section.settings div.resource_plan table,
section.create-tenant whitelist-template table {
	white-space: nowrap;
	width: 1%;
}

section.did_routing div.did_mapping table
section.tenant div.did_mapping table {
	white-space: nowrap;
}

section.did_routing div.did_routing_export a {
	border-color: #ccc;
}

section.reports md-datepicker md-icon {
	color: blue;
}

section.reports input.md-datepicker-input {
	display: none;
}

section.reports span.datepicker_date {
	vertical-align: sub;
}

section.settings div.policy_table table input,
section.settings div.resource_plan table input.fit {
	width: 100px;
}

section.reports form {
	padding-bottom: 35px;
}

section.reports table.tooltips td {
	padding-bottom: 10px;
}

section.create-tenant input.disabled {
	cursor: not-allowed;
}

i.active {
	color: #5cb85c;
}

i.inactive {
	color: #d9534f;
}

i.pointer {
	cursor: pointer;
}

i.fa-save {
	font-size: 20px;
}

i.fa-save:hover {
	color: #507a18;
}

div.modal_about {
	grid-area: content;
	grid-column: 1/3;
	align-self: flex-start;
	justify-self: center;
	width: 600px;
	height: 300px;
	background-color: #fff;
	border-radius: 6px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
	z-index: 0;
}

div.modal_about div.modal-body {
	display: grid;
	text-align: center;
}

div.modal_about div.modal-body img {
	place-self: center;
}

div.modal_about div.modal-body span {
	font-family: "Lucida Console", "Open Sans", Hevlatica;
	font-weight: 600;
}

.modal-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) !important;
}

.modal-backdrop {
	opacity: .5;
}

.modal-dialog div.warning {
	background-color: #e2ab39;
}

.modal-content {
	position: relative;
	background-color: #fff;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	border: 1px solid #999;
	border: 1px solid rgba(0,0,0,.2);
	border-radius: 6px;
	outline: 0;
	-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
	box-shadow: 0 3px 9px rgba(0,0,0,.5);
}

div.dim {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	background-color: rgba(0,0,0,0.6);
}

ul.tabs {
	margin: 0;
	list-style: none;
	padding: 0;
	margin-bottom: 0.5rem;
}

ul.tabs li {
	display: inline-block;
	margin: 0;
	padding: 0;
}

ul.tabs li a {
	text-decoration: none;
	display: block;
	font-size: 18px;
	border-bottom: 1px solid #c7c7c7;
	text-transform: uppercase;
	margin-right: 15px;
	color: gray;
}

ul.tabs li a:hover {
	color: black;
}

ul.tabs li a.active {
	color: #4bb1ca;
}

div.panes tab.pane {
	display: none;
}

/* Switch */
.switch-field {
	display: flex;
	/* overflow: hidden; */
	justify-content: center;
}

.switch-field input {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}

.switch-field label {
	background-color: #eceaea;
	color: rgba(0, 0, 0, 0.6);
	font-size: 14px;
	line-height: 1;
	text-align: center;
	padding: 6px 10px;
	margin-right: -1px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
	transition: all 0.1s ease-in-out;
}

.switch-field label:hover {
	cursor: pointer;
}

.switch-field input:checked + label {
	color: white;
	background-color: #3e47ea;
	box-shadow: none;
}

.switch-field input:checked + label.disabled {
	background-color: #c1c1c1;
}

.switch-field label:first-of-type {
	border-radius: 4px 0 0 4px;
}

.switch-field label:last-of-type {
	border-radius: 0 4px 4px 0;
}

.switch-field label.disabled {
	cursor: not-allowed;
}

md-dialog md-dialog-content.app_prompt {
	padding: 24px;
}

section.tenants table div.apps_icons {
	cursor: pointer;
	display: inline-grid;
	grid-gap: 10px;
	grid-auto-flow: column;
	float: right;
}

md-dialog-actions label {
	flex-grow: 1;
}

section.settings label.dump_in_progress {
	color: red;
}

section.tenant table.services thead th,
section.settings table.services thead th,
section.create-tenant table.services thead th {
	white-space: nowrap;
}

section.tenant table.whitelist tbody td,
section.settings table.whitelist tbody td,
section.create-tenant table.whitelist tbody td,
section.tenant table.services tbody td:last-child,
section.settings table.services tbody td:last-child,
section.create-tenant table.services tbody td:last-child,
section.settings table.resources tbody td:last-child {
	text-align: center;
}

/* make table headers look nice */
section.tenant table.whitelist thead th:nth-child(1),
section.tenant table.whitelist thead th:nth-child(2),
section.settings table.services thead th:nth-child(1),
section.settings table.services thead th:nth-child(2),
section.settings table.resources thead th:nth-child(1),
section.settings table.resources thead th:nth-child(2),
section.settings table.whitelist thead th:nth-child(1),
section.settings table.whitelist thead th:nth-child(2),
section.create-tenant table.whitelist thead th:nth-child(1),
section.create-tenant table.whitelist thead th:nth-child(2) {
	min-width: 250px;
}

section.settings table.resources thead th:nth-child(3),
section.settings table.resources thead th:nth-child(4),
section.settings table.resources thead th:nth-child(5) {
	min-width: 125px;
}

section.tenant table.whitelist thead th:nth-child(n+3),
section.create-tenant table.whitelist thead th:nth-child(n+3) {
	min-width: 50px;
}

section.tenant table.apps input[ng-model='app.max'],
section.create-tenant table.apps input[ng-model='app.max'] {
	width: 100px;
}

/* End */

section.tenants button.cancel_all i {
	font-size: 18px;
	padding-right: 4px;
	vertical-align: text-bottom;
}

section.tenants button.cancel_all {
	background-color: #cc0505;
	color: white;
}

section.tenants button.cancel_all:hover {
	text-decoration: initial;
	background-color: #9e0808;
}

table.services {
	grid-column: 1/end;
	justify-self: start;
	width: 1%;
	align-self: center; /* solves table strech issue in FF */
}

table.radius {
	grid-column: 1/end;
	justify-self: start;
	width: 100%;
	align-self: center; /* solves table strech issue in FF */
}

section.tenant dir-pagination-controls a,
section.did_routing dir-pagination-controls a {
	position: relative;
	display: block;
	padding: .5rem .75rem;
	margin-left: -1px;
	line-height: 1.25;
	color: #007bff;
	background-color: #fff;
	border: 1px solid #dee2e6;
}

section.tenant dir-pagination-controls li.active,
section.did_routing dir-pagination-controls li.active {
	font-weight: bold;
}

table.table thead th {
	vertical-align: middle;
}

table.table tbody td {
	vertical-align: middle;
}

.tenants table.table tr th:first-of-type,
.tenants table.table tr td:first-of-type {
	text-align: center;
}

.add-radius-server form,
.edit-radius-server form {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-gap: 0.5em 1em;
	align-items: center;
}

.add-radius-server form label,
.edit-radius-server form label {
	margin:0;
}

.add-radius-server form > span,
.edit-radius-server form > span {
	grid-column: 1 / 3;
	text-align: center;
}

.radius-vsas {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	grid-gap: 0.5em 1em;
	align-items: center;
	grid-column: 1 / 3;
}

.radius-vsas span:last-of-type i.fa-plus,
.radius-vsas span:not(:last-of-type) i.fa-trash-alt {
	display: inline-block;
}

.radius-vsas span:not(:last-of-type) i.fa-plus,
.radius-vsas span:last-of-type i.fa-trash-alt {
	display: none;
}

i.fa-trash-alt {
	cursor: pointer;
	color: #b35454;
}

i.fa-trash-alt:hover {
	color: #376eb9;
}

i.fa-plus {
	cursor: pointer;
}

.radius tbody tr {
	cursor: move;
}

/* This css file is pretty hard to work with as is */
/* But since it will take a lot of focus to re-organize, and it's easy to mess up, I won't touch it */
/* What I will do, is to try and make at least new things more understandable and easier to work with */
/* So hopefully things below this point will be more readable and easier to work with */

/* Authentication Menu */

section.auth tab.radius div.table-responsive {
	display: grid;
	grid-row: 2;
	grid-column: 1/10; /* For some reason only >= 10 actually uses the entire width */
}

/* Password Input (eye) */
.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-container input {
	width: 100%;
	height: 100%;
    padding-right: 40px; /* Add padding to prevent text overlap with the button */
}

.password-container .password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    border-left: 1px solid #ccc;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    transition: all 0.2s ease;
}

.password-container .password-toggle:hover {
    color: #333;
    background-color: #eee;
}
