:root
{
	--purple: #650085;
	--purple-hover: #BE00FD;;
}

body
{
	/* font-size: 1rem; */
	overflow-y: scroll;
}

html 
{
	scroll-behavior: smooth;
}

.buttons-main-center { width: 100px; left: calc(50% + 4.1111%); }

.feather
{
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
}

.icon
{
	max-width: 100%;
	max-height: 100%;
}

/*
* Sidebar and topbar
*/
label { color: var(--purple); }

.bg-light { background-color: #f5f5f5 !important; }

.sidebar
{
	position: fixed;
	top: 0;
	/* rtl:raw:
	right: 0;
	*/
	bottom: 0;
	/* rtl:remove */
	left: 0;
	z-index: 100; /* Behind the navbar */
	padding: 80px 0 0; /* Height of navbar */
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px)
{
	.sidebar
  {
		top: 0rem;
	}
	.topbar
  {
		display: none;
	}
}

.alert { z-index: 501 !important; }

.top-alert-pop-up
{
	font-family: monospace;
	white-space: pre-wrap;
}

/*
* Top banner row
*/
.logo 
{ 
	display: block; 
	min-width: 155px; 
	max-width: 155px; 
	margin: 0.1rem 1.5rem !important;
	filter: grayscale(100%) brightness(400%); /* For admin/dashboard only */
}

.navbar-brand
{
	padding-top: .35rem;
	padding-bottom: .35rem;
	font-size: 0.75rem;
	background-color: rgba(0, 0, 0, .25);
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler
{
	top: .25rem;
	right: 1rem;
}

.navbar .form-control
{
	padding: .75rem 1rem;
	border-width: 0;
	border-radius: 0;
}

.form-control-dark
{
	color: #fff;
	background-color: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus
{
	border-color: transparent;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.dropdown-toggle { outline: 0; }

.nav-flush .nav-link
{
	border-radius: 0;
}

pre
{
  color: #039;
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/*
* Forms
*/
input[type="checkbox"]
{
  cursor: pointer;
}

.scrollarea {
	overflow-y: auto;
}

.fw-semibold { font-weight: 600; }
.lh-tight { line-height: 1.25; }

.spinner-border { width: 1.2rem; height: 1.2rem; }
.cursor-default { cursor: default !important; }
.cursor-pointer { cursor: pointer !important; }

/*
 * Sidebar
 */
.sidebar
{
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px)
{
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky
{
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link
{
  font-weight: 500;
  color: #333;
  margin-right: 1px;
  padding: 0.5rem 1.5rem;
}

.sidebar .nav-link .feather
{
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover
{
  color: var(--purple);
  background-color: #fff;
}

.sidebar .nav-link:active
{
	padding-left: 1.6rem;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather
{
  color: inherit;
}

.sidebar-heading
{
  font-size: .75rem;
  text-transform: uppercase;
}

/* Documentation lists */
ul.documentation { list-style: disc; }
ol.documentation { list-style: decimal; counter-reset: section; list-style-type: none; padding-right: 1rem; }
ol.documentation li { counter-increment: section; }
ol.documentation li:before  { content: counters(section, ".") " "; margin-left: -1.5em; }

/*
ol.documentation {
    counter-reset: section;
    list-style-type: none;
    margin-bottom: 1em;
    font-weight: bold;
}

ol.documentation > li {
  position: relative;
}

ol.documentation > li::before {
    counter-increment: section;
    content: "" counter(section) " ";
	position: absolute;
	left: -1.5em;
}

ol.documentation ol {
    counter-reset: absatz;
    list-style-type: none;
    margin-top: 0.5em;
    font-weight: normal;
}

ol.documentation ol > li::before {
    counter-increment: absatz;
    content: "(" counter(absatz) ") ";
}

ol.documentation ol ol {
    list-style-type: lower-latin;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

ol.documentation ol ol > li::before {
    content: none;
}
*/

/* Nav tabs */
.nav-tabs .nav-link
{
	color: var(--purple);
}
.nav-tabs .nav-link:hover
{
	color: var(--purple-hover);
}

/* Logs */
.log-list-item
{
	color: #666;
	text-decoration: none;
	cursor: pointer;
}

.log-list-item:hover
{
	text-decoration: underline;
}

.log-list-item.active
{
	font-weight: bold;
	color: #039;
}

.accordion-body { overflow-y: auto; height:20vh;  }

/* Sign-in form */
.eye-container { width: 44px; cursor: pointer; }
.eye
{
  width: calc(100% - 17px);
  height: calc(100% - 17px);
  margin: 7px;
}
.eye-container:hover, .eye-container:active
{
	background-color: #f5f5f5;
}
.eye-container:active
{
	margin: 0.5px -0.5px -0.5px 0.5px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-reset-pin
{
	text-align: center;
	letter-spacing: 3px;
	color: #555 !important;
	font-weight: 700;
}

/***
** Editable tables
**/
.editable { border-left: 1px solid #0d6efd!important; }

div[contenteditable]:focus
{
  outline: 1px solid #0d6efd;
  box-shadow: 3px 3px 4px #ccc;
  background-color: #fff;
  color: #000;
}

/***
** Pagination
**/
.pagination { height: 40px; }
.record-count { width: 95px; }
.sort-order { width: 95px;  }

/*
.page-link { color: #369; font-weight: 600; }
.page-link:hover { color: #0070c9; }
.page-item.active .page-link
{
    z-index: 3;
    color: #fff;
    background-color: #0070c9;
    border-color: #0070c9;
}*/
.page-item.disabled .page-link { color: #dde; }
.page-item.active .page-link { color: var(--purple); font-weight: 600; background: #fff; } 
.page-item.active .page-link { border-color: var(--purple) !important; }

ul.pagination { padding: 0px; }

ul.pagination li
{
    background-color: #fff;
    display: block;
    float: left;
    line-height: 16px;
    list-style: none;
    position: relative;
    margin: 0 5px 0 0;
}

ul.pagination li a
{
    color: #111;
    font-weight: 400;
}
ul.pagination li a
{
    padding: 8px 12px 7px 13px;
}
ul.pagination li a
{
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
    background: #eff1f3;
    background: -webkit-linear-gradient(top,#f7f8fa,#e7e9ec);
    background: linear-gradient(to bottom,#f7f8fa,#e7e9ec);
    border: 1px solid #6c6e73;
    border-color: #adb1b8 #a2a6ac #8d9096;
}


ul.pagination li a:hover  {  }

ul.pagination li a:hover
{
  background:#f9f9f9;
  background:-webkit-linear-gradient(top,#fff,#ddd);
  background:linear-gradient(to bottom,#fff,#ddd);
  color: var(--purple) !important; 
  border-color: var(--purple) !important; 
  
}
ul.pagination li a, ul.pagination li.disabled
{
    display: block;
    text-decoration: none;
}
ul.pagination li a:focus
{
  box-shadow:0 0 3px 2px rgba(0,112,201,.5);
  outline:0
}
ul.pagination li a:active
{
  border-radius:3px;
  border-color: var(--purple); /* Orange #e77600 */
  box-shadow:0 1px 3px rgba(0,0,0,.2) inset;
  background-color:#e7e9ec;
  background-image:none
}

ul.pagination li a.ellipsis
{
  cursor: default;
  border-radius: 3px;
  box-shadow: none;
  background: transparent;
  background: transparent;
  background: transparent;
  border: 1px solid transparent;
  border-color: transparent;
  padding: 8px 2px 7px 4px;
}

/* Tree structure for UL/LI */
.tree * { margin: 0; padding: 0; list-style: none; }
.tree ul li 
{
  margin-left: 25px;
  position: relative;
  padding-left: 5px;
}
.tree ul li::before 
{
  content: " ";
  position: absolute;
  width: 1px;
  background-color: #888;
  top: 5px;
  bottom: -12px;
  left: -10px;
}
/*.tree ul > li:first-child::before {top: 12px;}*/
.tree ul li:not(:first-child):last-child::before {display: none;}
.tree ul li:only-child::before 
{
  display: list-item;
  content: " ";
  position: absolute;
  width: 1px;
  background-color: #888;
  top: 5px;
  bottom: 7px;
  height: 7px;
  left: -10px;
}
.tree ul li::after 
{
  content: " ";
  position: absolute;
  left: -10px;
  width: 10px;
  height: 1px;
  background-color: #888;
  top: 12px;
}

.tree span
{
	color: #666;
	text-decoration: none;
	cursor: pointer;
}
.tree span:hover
{
	text-decoration: underline;
	color: #000;
}
.tree .inactive
{
	color: #ccc;
}
.tree .selected
{
	color: #000;
	font-weight: bold;
}

.list-menu * { margin: 0; padding: 0; list-style-type: none; }
.list-menu li { padding: 3px 0px; } 
.list-menu span 
{
	color: #666;
	text-decoration: none;
	cursor: pointer;
} 
.list-menu span:hover
{
	text-decoration: underline;
	color: #000;
}
.list-menu .inactive
{
	color: #ccc;
}
.list-menu .selected
{
	color: #000;
	font-weight: bold;
}

.btn-remove-image-container
{
	position: absolute;
	margin-top: -23px;
	margin-left: -27px;
}

.field-label { color: var(--purple); text-align: right; }

/* Generic buttons */
.btn-properties, .btn-delete-row
{
	color: #333;
	background-color: #f5f5f5 !important;
	font-size: 1rem !important;
	z-index: 8 !important;
}
.btn-properties:hover 
{
	color: #000;
	background-color: #fff !important;
}
.btn-properties:active
{
	padding: 0.5rem 0.8rem 0.3rem 1.0rem !important;
	font-size: 1.1rem !important;
	z-index: 9 !important;
}

.btn-delete-row:hover
{
	color: #000;
	background-color: #fff !important;
}

/************************
* Common add row buttons
************************/
.btn-plus-container
{
	clear: both;
	position: relative;
	height: 0px;
}

.btn-plus
{
	position: absolute;
	top: 2px;
	left: 2px;
	border-radius: .45rem !important;
}
.btn-plus:hover, .btn-plus:active { background-color: #0d6efd; border-color: #95befa; color: #fff; }
.btn-plus:active { top: 3px; left: 3px; }

.sku-image
{
	max-height: 280px;
	-webkit-transition: opacity 1s ease-in-out;
	-moz-transition: opacity 1s ease-in-out;
	-o-transition: opacity 1s ease-in-out;
	transition: opacity 1s ease-in-out;
}

/* Country selector */
.country-selector button
{
	border: 1px solid #999;
}

.country-selector button:hover
{
	border: 1px solid #ddd !important;
}

.country-selector span
{
	margin-right: 10px;
}

.country-selection 
{
	column-count: 4;
	column-gap: 2rem
	/*
	column-rule-style: solid;
	column-rule-width: 1px;
	column-rule-color: #eee;
	*/
}

@media only screen and (max-width: 992px)
{
	.country-selection 
	{
		column-count: 2;
	}
}

@media only screen and (max-width: 768px)
{
	.country-selection 
	{
		column-count: 1;
	}
}

.country-selection a
{
	text-decoration: none;
}
.country-selection a:hover, .country-selection a:active
{
	text-decoration: underline;
}

/* Languages */
.bg-lightish { background:#ccc; }
.bg-purple { background:#a9c; }

.close 
{
	animation-name: close;
	animation-duration: 0.5s;
	animation-iteration-count: 1;
	
}

@keyframes close 
{
	0% 
	{
		opacity: 1;
		/* max-height: 100%; set in JS */
		margin-top: 1rem;
		transform: translateY(0);
	}
	100% 
	{
		opacity: 0;
		max-height: 0px;
		margin-top: 0rem;
		transform: translateY(-100%);
		/* display: none;; */
	}
}

.p-definition { padding: .09rem .19rem !important; }

/* Plan display */
.label { color: var(--purple) !important; }
.table-container-equal-widths table { table-layout: fixed !important; }

/* Generic bootstrap 5 icons */
.bi-sm { font-size: 1.25rem !important; line-height: 1.5rem !important; padding: .25rem !important; margin: 0px !important; }
.bi-md { font-size: 1.5rem !important; line-height: 1.5rem !important; padding: .15rem !important; margin: 0px !important; }
.bi-lg { font-size: 2.0rem !important; line-height: 2.5rem !important; padding: .5rem !important; margin: 0px !important;  }


