@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');


#loading {
  display: flex;
  height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1C2024;
  position: fixed;
  background-color: #fff;
  z-index: 999;
}

.spinner {
  width: 9px;
  height: 9px;
  border: 3px solid #E6E7FF; /* Light blue outline */
  border-top: 3px solid #5B5BD6; /* Bright blue top color */
  border-radius: 50%;
  animation: spin .4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


a[href^="mailto"],
a[href^="mailto"]:hover,
a[href^="mailto"]:visited,
a[href^="mailto"]:active {
  text-decoration: none;
}

* {
  outline-color: #9B9EF0;
  overscroll-behavior: none;
}

.button-group {
  display: flex;
  gap: 6px;
}

.sticky-wrapper {
  display: flex;
  justify-content: flex-end;
}

#mobileLogo {
  display: none;
}

.user-id-text:hover::after {
  content:"";
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iIzhiOGQ5OCIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik0yMTYsMjhIODhBMTIsMTIsMCwwLDAsNzYsNDBWNzZINDBBMTIsMTIsMCwwLDAsMjgsODhWMjE2YTEyLDEyLDAsMCwwLDEyLDEySDE2OGExMiwxMiwwLDAsMCwxMi0xMlYxODBoMzZhMTIsMTIsMCwwLDAsMTItMTJWNDBBMTIsMTIsMCwwLDAsMjE2LDI4Wk0xNTYsMjA0SDUyVjEwMEgxNTZabTQ4LTQ4SDE4MFY4OGExMiwxMiwwLDAsMC0xMi0xMkgxMDBWNTJIMjA0WiI+PC9wYXRoPjwvc3ZnPg==');
}

#logoContainer {
  display: flex;
  font-weight: 500;
  gap: 6px;
  color: #60646C;
}

.sort-indicator svg {
  fill: #8B8D98;
}

.sort-indicator, .placeholder {
  width: 15px;
  display: inline-block;
 }

#navbarSearch input {
  padding-left: 30px;
  font-weight: 500;
}

#navbarSearch #searchIcon {
  position: absolute;
  left: 6px;
  top: 42%;
  transform: translateY(-42%);
  width: 12px;
  height: 12px;
}
#navbarSearch #keybinding {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-color: #D9D9E0;
}

#navbarSearch {
  position: relative;
}

.keybinding {
  border: 1px solid #E8E8EC;
  display: flex;
  line-height: 1.5;
  border-radius: 3px;
  background-color: #F9F9FB;
  justify-content: center;
  align-items: center;
  color: #60646C;
  font-size: 10px;
  font-weight: 600;
  width: fit-content;
  padding: 0px 4px;
}

.add-company-container {
  background-color: #F0F0F3;
  padding: 12px;
  border-radius: 6px;
  flex-direction: column;
  gap: 18px;
}

.live-data {
  font-weight: 600;
}

#modalFooter {
  padding: 18px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
 
}

#detailsModalBody {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 18px;
}

.labelWithData span {
  font-weight: 500;
  font-size: 15px;
  display: flex;
  gap: 3px;
  align-items: center;
}

.labelWithData span img {
  max-width: 16px;
  max-height: 16px;
}

.labelWithData {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#inlineFavicon {
  width: 16px;
  height: 16px;
}

#toast-container {
  position: fixed;
  bottom: 48px;
  width: 100%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.toast {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 18px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  animation: fadeInOut 3s forwards;
  width: fit-content;
  font-weight: 500;
  box-shadow: 0px 3px 12px -6px #8B8D98;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10%, 90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.toast.success {
  background-color: #30A46C;
}

.toast.error {
  background-color: #E5484D;
}

.toast.info {
  background-color: #2196F3;
}

#modalFooter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 12px !important;
}

#deleteModalBody {
  margin: 0;
}

.modal-body {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

select:focus {
  box-shadow: 0 1px 3px -2px #B9BBC6,
              0 0 0 3px #F0F0F3;
  border-color: #CDCED6;
  transition: ease all 0.3s;
}

select {
  border: 1px solid #E0E1E6;
  border-radius: 6px;
  height: 36px;
  box-shadow: 0 1px 3px -2px #B9BBC6,
              0 0 0 0px #F0F0F3;
  outline: none;
  transition: ease all 0.3s;
  -webkit-appearance: none; /* Remove default iOS/Safari styling */
  -moz-appearance: none;
  appearance: none;
}

#createModal button, #editModal button {
  width: 100%;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: #60646C;
  display: inline-flex;
}

.input-modal::placeholder {
  color: #8B8D98;
}

.input-modal {
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  background-color: #fff;
  border: 1px solid #E0E1E6;
}

#createForm, #editForm {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#modalHeading {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
  color: #1C2024;
}

#modalHeader {
  padding: 6px 12px 6px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E0E1E6;
  box-sizing: border-box;
  margin: 0;
}

#fixed-footer {
  position: fixed;
  bottom: 0;
  padding: 12px;
  border-top: 1px solid #E0E1E6;
  width: 100%;
  background: #fff;
}

/* Style for mouse hover */
tr:hover {
  background-color: #F9F9FB;
  cursor: pointer;
}

/* Remove focus outline when focus isn't keyboard-triggered */
tr:focus:not(:focus-visible) {
  outline: none;
}

/* Only show focus outline when the focus is visible (typically via keyboard) */
tr:focus-visible {
  outline: 1px solid #9B9EF0;
}

th:last-child {
  text-align: right;
}

#usersTable tbody tr td:last-child {
  text-align: right;
}

.role {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  background-color: #F0F0F3;
  font-size: 12px;
  color: #60646C;
  display: flex;
  width: fit-content;
  text-align: center;
}

.context-menu {
  position: relative;
  display: inline-block;
}

.context-menu-btn {
  border: none;
  background-color: transparent;
}

.context-menu-btn:hover {
  background-color: #F0F0F3;
}

.context-menu-options {
  display: none; /* Hidden by default */
  position: absolute;
  right: 0;
  background-color: #fff;
  border: 1px solid #E8E8EC;
  box-shadow: 0 3px 18px -12px rgb(139, 141, 152);
  z-index: 1000;
  width: 148px;
  border-radius: 6px;
  padding: 6px;
}

/* Global Context Menu Portal */
#globalContextMenu {
  position: absolute;
  display: none; /* Hidden by default */
  background-color: #fff;
  border: 1px solid #E8E8EC;
  box-shadow: 0 3px 18px -12px rgb(139, 141, 152);
  border-radius: 6px;
  padding: 6px;
  width: 148px;
  z-index: 9999; /* Ensure it appears above other elements */
}

.context-menu-options button {
  display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  width: 100%;
  padding: 6px 6px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  gap: 6px;
  font-size: 12px;
  height: auto;
}

.context-menu-options button:hover {
  background-color: #f1f1f1;
}

p {
  color: #1C2024;
}

.group {
  display: flex;
  gap: 6px;
}

.primary-button:hover {
  background-color: #5B5BD6;
  box-shadow: 0 1px 3px -2px #B9BBC6,
              0 0 0 3px #F0F1FE;
  transition: ease 0.3s all;
}

.primary-button {
  background-color: #5151CD;
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px -2px #B9BBC6,
              0 0 0 0px #F0F1FE;
  transition: ease 0.3s all;
}

.danger-button:hover {
  background-color: #E5484D;
  color: #fff;
  border: none;
  box-shadow: 0 0 0 3px #FEEBEC;
  transition: 0.3s ease all;
}

.danger-button {
  background-color: #E5484D;
  color: #fff;
  border: none;
  box-shadow: 0 0 0 0px #FEEBEC;
  transition: 0.3s ease all;
}

.secondary-button {
  box-shadow: 0 0 0 0px #F0F0F3;
  transition: 0.3s ease all;
}

.secondary-button:hover {
  box-shadow: 0 0 0 3px #F0F0F3;
  transition: 0.3s ease all;
}

button {
  height: 36px;
  background-color: #fff;
  border: 1px solid #E0E1E6;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  font-weight: 600;
  padding: 0px 12px;
  color: #1C2024;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  gap: 6px;
}

#utility-bar {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  padding: 12px;
}

#usersTableBody {
  background-color: #fff;
}

#userTable-container {
  box-sizing: border-box;
  width: 100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

#usersTable {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
}

#logo {
  max-height: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #E8E8EC;
  background-color: #fff;
}

body {
  font-family: 'Inter Tight', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
  background-color: #fff;
}


/* Simple loading indicator styling */
.button-square {
  height: 36px;
  width: 36px;
  padding: 0;
}

.sort-indicator {
  margin-left: 6px;
  font-size: 0.6em;
  color: #B9BBC6;
}

input:focus {
  box-shadow: 0 0 0 3px #F0F0F3;
  outline: none;
  transition: 0.3s ease all;
  border: 1px solid #CDCED6;
}

input {
  padding: 6px 12px;
  width: 300px;
  font-size: 15px;
  box-sizing: border-box;
  height: 36px;
  border-radius: 6px;
  font-weight: 500;
  background-color: #F0F0F3;
  box-shadow: 0 0 0 0 #F0F0F3;
  border: 1px solid transparent;
  transition: 0.3s ease all;
}

#recordCount {
  font-weight: 600;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #1C2024;
}

td {
  border-bottom: 1px solid #F0F0F3;
}

th, td {
  padding: 6px 12px;
  text-align: left;
  box-sizing: border-box;
}

/* Ensure header cells reserve space on the right for the sort indicator */
th {
  cursor: pointer;
  background-color: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #60646C;
  border-bottom: 1px solid #E8E8EC;
  position: relative;
}

/* Create a pseudo-element for sorted header cells */
th.sorted-asc::after,
th.sorted-desc::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Use your SVG for ascending order */
th.sorted-asc::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238B8D98" viewBox="0 0 256 256"><path d="M36,128a12,12,0,0,1,12-12h68a12,12,0,0,1,0,24H48A12,12,0,0,1,36,128ZM48,76h52a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24ZM180,180H48a12,12,0,0,0,0,24H180a12,12,0,0,0,0-24ZM232.49,79.51l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,0,0,17,17L172,77v67a12,12,0,0,0,24,0V77l19.51,19.52a12,12,0,0,0,17-17Z"></path></svg>');
}

/* And your SVG for descending order */
th.sorted-desc::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238B8D98" viewBox="0 0 256 256"><path d="M128,128a12,12,0,0,1-12,12H48a12,12,0,0,1,0-24h68A12,12,0,0,1,128,128ZM48,76H180a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24Zm52,104H48a12,12,0,0,0,0,24h52a12,12,0,0,0,0-24Zm132.49-20.49a12,12,0,0,0-17,0L196,179V112a12,12,0,0,0-24,0v67l-19.51-19.52a12,12,0,0,0-17,17l40,40a12,12,0,0,0,17,0l40-40A12,12,0,0,0,232.49,159.51Z"></path></svg>');
}

/* Modal container remains hidden by default */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(28, 32, 36, 0.2);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  border-radius: 12px;
  width: 300px;
  position: relative;
  box-shadow: 0px 6px 30px -24px #1C2024;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close {
  display: flex;
}

.close svg {
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
}



@media (max-width: 480px) {

  #navbarSearch #keybinding {
    right: 12px;
}

  #navbarSearch #searchIcon {
    left: 12px;
}

  button.context-menu-btn {
    font-size: 24px;
}
  
  .button-square {
    min-height: 48px;
    min-width: 48px;
    padding: 0;
}

.button-square svg {
  width: 18px;
  height: 18px;
}


  #navbarSearch {
    width: 100%;
  }
  
  #navbarSearch input {
    width: 100%;
    padding-left: 36px;
    height: 48px;
  }

  /* Further scaling down for very small screens */
  input {
    width: 100%;
    font-size: 17px;
    padding: 6px 8px;
  }
  
  .navbar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

  
  .primary-button,
  .danger-button,
  .secondary-button {
    padding: 6px 10px;
  }

/* Freeze the last "actions" column */
th.actions,
td.actions {
  position: sticky;
  right: 0;  /* "sticks" to the right edge */
  background-color: #fff;  /* ensure the column doesn't become transparent */
  min-width: 50px;
  padding: 0;
  z-index: 0;
}

.sticky-wrapper {
  border-left: 1px solid #E8E8EC;  /* optional: add a divider */
  padding: 12px;
}

th {
  padding: 6px 12px;
}

td {
  min-width: 100px;
  white-space: nowrap; /* Prevents the content from wrapping */
  font-size: 17px;
padding: 0px 12px;
}

.modal-content {
  margin: 0;
  border-radius: 0;
  width: 100%;
  position: relative;
  box-shadow: none;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  height: 100vh;
}

.input-modal {
  height: 48px;
  font-size: 17px;
}

select {
  height: 48px;
  font-size: 17px;
}

button {
  font-size: 17px;
  height: 48px;
}

#modalHeader {
  padding: 12px 12px 12px 12px;
}

div#modalHeading {
  font-size: 17px;
}

.close svg {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#modalFooter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px !important;
}

.modal-body {
font-size: 19px;
}

#recordCount {
  font-size: 15px;
}

#logo {
  display: none;
}

#mobileLogo {
  display: block;
  height: 30px;
  width: 30px;
}

#logoContainer {
  align-items: center;
}

#logoContainer span {
display: none;
}

.group {
  width: 100%;
  box-sizing: border-box;
}

#actionsHeader {
  opacity: 0;
}

.context-menu-options button {
  font-size: 17px;
  padding: 12px;
}

#globalContextMenu {
  width: 240px;
}

.keybinding {
  font-size: 13px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 15px;
}

.labelWithData span {
  font-size: 19px;
}

#resetConfirmModal #modalFooter {
  flex-direction: column-reverse;
}


}