/* QSS Admin UI CSS */

/* Sample code on how to use error messages
<div class="info">Info message</div>
<div class="success">Successful operation message</div>
<div class="warning">Warning message</div>
<div class="error">Error message</div>
<div class="validation">Validation message 1<br>Validation message 2</div>
 */

* {
  box-sizing: border-box;
}

body{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	margin: 0;
}

/* Error Messages */
.info, .success, .warning, .error, .validation {
	border: 1px solid;
	margin: 10px 0px;
	padding: 15px 10px 15px 50px;
	background-repeat: no-repeat;
	background-position: 10px center;
}
.info {
	color: #00529B;
	background-color: #BDE5F8;
	background-image: url('assets/msgInfo.png');
}
.success {
	color: #4F8A10;
	background-color: #DFF2BF;
	background-image: url('assets/msgSuccess.png');
}
.warning {
	color: #9F6000;
	background-color: #FEEFB3;
	background-image: url('assets/msgWarning.png');
}
.error{
	color: #D8000C;
	background-color: #FFBABA;
	background-image: url('assets/msgError.png');
}
.validation{
	color: #D63301;
	background-color: #FFCCBA;
	background-image: url('assets/msgError.png');
}


/* Left menu for logged in pages */
main {
	margin-left:200px;
	padding:1px 16px;
	height:600px;
}

ul.leftmenu  {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: auto;
}

li a.leftmenu  {
  display: block;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
}

li a.active.leftmenu  {
  background-color: #347aeb; /*#04AA6D;*/
  color: white;
}

li a:hover:not(.active).leftmenu  {
  background-color: #555;
  color: white;
}

/* Dashboard Tables */
table.dashtable {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

td, th.dashtable {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even).dashtable {
  background-color: #dddddd;
}

/* Link Style */
/* unvisited link */
a:link {
  color: blue;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: blue;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: blue;
  text-decoration: underline;
}

/* selected link */
a:active {
  color: blue;
  text-decoration: underline;
}


/* Link Button */
a:link.linkbutton, a:visited.linkbutton {
  background-color: white;
  color: black;
  border: 2px solid #347aeb;
  border-radius: 2px;
  padding: 3px 6px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover.linkbutton, a:active.linkbutton {
  background-color: #347aeb;
  color: white;
  border-color: #ff944d;
}

.linkbutton.danger { background:#b00020; color:#fff; }
.linkbutton.danger:hover { background:#8b001a; }

/* Form Elements */

.form-div {
  border-radius: 2px;
  background-color: #f2f2f2;
  padding: 20px;
}

textarea, input, label {
    display:block;
}
textarea, input[type=text], input[type=password], input[type=email], input[type=checkbox] {
  /*width: 100%;*/
  padding: 3px 5px;
  margin: 2px 0;
  border-radius: 2px;
  outline: none;
  border-color: #347aeb;
  display: inline-block;
}
textarea:focus, input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=checkbox]:focus {
  border: 2px solid #ff944d;
}
select {
  /*width: 100%;*/
  padding: 3px 5px;
  margin: 2px 0;
  border-radius: 2px;
  outline: none;
  border-color: #347aeb;
  display: inline-block;
}
select:focus {
  border: 1px solid #ff944d;
}

input[type=button], input[type=submit], input[type=reset], button {
  background-color: #347aeb;
  border: 2px solid #347aeb;;
  border-radius: 2px;
  color: white;
  padding: 3px 6px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  display: inline-block;
}

.input-label-group {
  margin: 10px 0;
}

.section-div {
  margin: 20px 0;
}

.input-label-group div {
  display: flex;
  align-items: center;
}

.input-label-group input[type="checkbox"] {
  margin-right: 8px;
}

.inactive-link {
    color: red;
    text-decoration: underline;
    cursor: pointer;
}

.inactive-popup {
    display: none;
    position: fixed; /* Keeps the popup centered relative to the viewport */
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px 10px 10px 10px; /* Adjust padding to control space around content */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 60%;
    max-width: 80%;
    max-height: 80vh; /* Limits the popup height to 80% of the viewport height */
    overflow-y: auto; /* Adds a vertical scrollbar when content exceeds max height */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.inactive-popup table {
    width: 100%;
    border-collapse: collapse;
    font-size: inherit;
}

.inactive-popup table th,
.inactive-popup table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: left;
    word-break: break-all;
}

.inactive-popup table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.inactive-popup p {
    margin: 0 0 10px 0;
    font-size: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Close Button Styling */
.inactive-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.inactive-popup .close-btn:hover {
    color: #000;
    transform: scale(1.1); /* Slight zoom effect on hover */
}


.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: auto;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the text */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap; /* Prevent the text from wrapping */
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow pointing downwards */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.status-active {
    background-color: green; /* Green dot for active status */
}

.status-inactive {
    background-color: orange; /* Orange dot for inactive status */
    position: relative;
}

.status-inactive::after {
    content: '!';
    color: white;
    font-weight: bold;
    font-size: 8px;
    position: absolute;
    top: -2px;
    left: 2px;
}

.copy-btn {
    background-color: #f1f1f1; /* Light grey background */
    border: 1px solid #ccc; /* Light grey border */
    color: #333; /* Dark grey text color */
    font-size: 12px; /* Smaller font size */
    padding: 2px 5px; /* Smaller padding for a compact look */
    border-radius: 3px; /* Slightly rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    text-align: center;
    vertical-align: middle; /* Align with text */
    margin-left: 5px; /* Space between the text and the button */
}

.copy-btn:hover {
    background-color: #e0e0e0; /* Slightly darker grey on hover */
    border-color: #bbb; /* Slightly darker border on hover */
}

.copy-btn:active {
    background-color: #d1d1d1; /* Even darker grey when pressed */
    border-color: #aaa; /* Even darker border when pressed */
}
