@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Oxygen:wght@300;400;700&display=swap");




#fullScreenGuard {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
}


@media (min-width: 1966px) and (min-height: 968px) {
  #fullScreenGuard {
    display: none;
  }
}
table {
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  padding: 8px;
  text-align: left;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.option span {
  font-weight: 200;
}

.archivo {
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

h3 {
  font-family: "Oxygen", sans-serif;
}


::-moz-selection { /* Firefox */
  color: rgb(0, 0, 0);
  background: rgba(205, 205, 205, 0.377);
}

::selection {
  color: rgb(0, 0, 0);
  background: rgba(205, 205, 205, 0.377);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left-sidebar {
  /* background-color: #f6f6f6; */
  background-color: white;
  color: #000000;
  width: 70px;
  padding: 2rem 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid #d7d7d7;
}

.left-sidebar svg {
  color: #999;
  width: 30px;
}

.left-sidebar button {
  background-color: transparent;
  border: none;
  padding: 0.5rem;
  margin-bottom: 2rem;
  cursor: pointer;
  font-size: 0.8rem;
  width: 90%;
}

.side-panel {
  background-color: #f1f1f1;
  width: 400px;
  border-right: 1px solid #ddd;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}


#profile {
  height: 100vh;
  margin-bottom: 100vh;
  padding: 20px;
  background-color: white;
}

#members {
  height: 100vh;
  margin-bottom: 100vh;
  padding: 20px;
  background-color: white;
}
.side-panel.hidden {
  display: none;
}

.side-content {
  display: none;
  flex: 1;
  flex-direction: column;
}

.side-content.active {
  display: flex;
}

.side-header {
  background-color: #ddd;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
}

.side-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.side-footer {
  padding: 0.5rem;
  border-top: 1px solid #ccc;
  display: flex;
  align-items: center;
}

.side-footer input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  outline: none;
}

.side-footer button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navbar {
  background-color: #fff;
  color: #000;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 2px solid #d8d8d8;
}

.navbar .logo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 1rem;
}

.navbar .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.navbar .nav-links a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
}

.navbar .nav-links a:hover {
  /* color: #787cb5; */
  color: #616276;

  text-decoration: none;
  font-size: 1rem;
}

.main-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

@media screen and (max-width: 768px) {
  .side-panel {
    width: 250px;
  }
}

@media screen and (max-width: 480px) {
  .left-sidebar {
    width: 50px;
  }

  .side-panel {
    width: 80%;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.backnav {
  position: fixed;
  top: 30px;
  left: 30px;
  font-size: 1.25rem;
}

.backnav a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}


.avatar-sm,
.profile-pic {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;

  image-rendering: -moz-crisp-edges; /* Firefox */
  image-rendering: -o-crisp-edges; /* Opera */
  image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */

  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

#pagination-controls, .pagination-controls  {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}
.page-link:hover {
  background: #f5f5f5;
}

.page-link.active {
  background: #f4f4f4;
  border-color: #a2a2a2;
  color: #000000;
}

.page-link.disabled {
  background: #fafafa;
  border-color: #eee;
  color: #aaa;
  cursor: default;
}
.page-link.disabled:hover {
  background: #fafafa;
}

.page-link.ellipsis {
  cursor: default;
  pointer-events: none;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.form-control {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d2d6dc;
  border-radius: 4px;
  background: #f9fafb;
}
.form-control:focus {
  outline: none;
  border-color: #565758;
  background: #fff;
}

.btn-primary {
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  background-color: #3d3d3d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #313131;
}

.period-btn { background:none; border:none; font-size:1.2rem; cursor:pointer; }
.toggle-btn {
  background:none; border:1px solid #5c5c5c;
   margin-left:0.2rem;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}
.toggle-btn.active {
  background-color: #3d3d3d;
  color: #fff;}

#chat-section {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border: 0px solid #ccc;
  background: #fff;
}

#chat-section h3 {
  padding: 9.9px;
  padding-left: 24px;
  font-size: 20px;
  display: none;
}

#chat-messages::-webkit-scrollbar {
  display: none;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  border: 0px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ffffff;
  border-top: 0px solid #ccc;
}

#message-input {
  width: 100%;
  height: 50px;
}

#message-input:focus {
  outline: none;
}

.like-count {
  position: relative;
  cursor: pointer;
}

.like-count:hover::after {
  content: attr(data-likers);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
  opacity: 1;
}

.like-count::after {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.like-count:hover::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  z-index: 1000;
}

.profile-pic-container {
  position: relative;
  display: inline-block;
}

.message-wrapper {
  display: block;
  flex-direction: column;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.message-sent {
  flex-direction: row-reverse;
  text-align: right;
}
.message-received {
  flex-direction: row;
  text-align: left;
}

.message-sent .message-header {
  flex-direction: row-reverse;
}

.message-received .message-content {
  background-color: transparent;
  border: 2px solid #d4d4d4;
  border-radius: 20px 20px 20px 6px;
}

.message-sent .message-content {
  background-color: #f6f7f9;
  background-color: #fcfbff;

  background: #ffffff;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(250, 250, 255, 1) 100%
  );

  border: 2px solid #ccc;

  border-radius: 20px 20px 6px 20px;
  text-align: left;
}

.msgDeleted {
  /* background-color: rgba(246, 246, 246, 0.668) !important; */
  border: 1px solid #ccc !important;
}
.msgDeleted .msg-text {
  color: #a3a3a3 !important;
}

.profile-pic-container {
  position: relative;
  margin: 0 5px;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 3px;
  width: 10px;
  height: 10px;
  background-color: rgb(38, 183, 38);
  border: 2px solid #fff;
  border-radius: 50%;
}

.message-content {
  max-width: 70% !important;
  background: #eee;
  padding: 10px 15px;
  border-radius: 10px;
  position: relative;
  min-width: 170px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.message-name {
  font-size: 0.9em;
  color: #777;
  font-weight: bold;
}
.message-time {
  font-size: 0.8em;
  color: #aaa;
}

.message-body {
  margin-bottom: 5px;
}
.msg-text {
  font-size: 1.2em;
  color: #333;
}

.message-controls {
  font-size: 0.8em;
  color: #555;
}

.message-controls a {
  margin-left: 10px;
  text-decoration: none;
  cursor: pointer;
}
.message-controls a:hover {
  text-decoration: underline;
}

.edit-msg,
.delete-msg {
  font-family: Arial, Helvetica, sans-serif;
  color: #ccc !important;
}

.chat-message.message-received {
  flex-direction: row;
  text-align: left;
}

.chat-message.message-sent {
  flex-direction: row-reverse;
  text-align: right;
  justify-content: flex-end;
}

.chat-message-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 10px;
}

.chat-message.message-sent .chat-message-main {
  margin-left: 0;
  margin-right: 10px;
  align-items: flex-end;
}

.profile-pic-container {
  flex-shrink: 0;
}

.message-content {
  background: #eee;
  padding: 10px 15px;
  position: relative;
  min-width: 200px;
}

.message-controls {
  margin-top: 5px;

  display: flex;
  align-items: center;
}

.message-received .message-controls {
  float: right;
}

.message-extras {
  margin-top: 5px;
  font-size: 0.8em;
  text-align: right;
}

.message-extras a {
  margin-left: 10px;
}

.chat-message.message-sent {
  width: 100%;
  justify-content: flex-end;
}

.chat-message.message-sent .profile-pic-container {
  align-self: flex-end;
  margin-left: 5px;
}

.chat-message.message-received .profile-pic-container {
  align-self: flex-end;
  margin-right: 5px;
  margin-bottom: 10px;
}

#message-input {
  border-radius: 40px;
  padding-left: 10px;
  border: 2px solid #ccc;
}

.chatForm {
  display: flex;
  border-radius: 40px;
  padding: 10px;
  align-items: center;
}

#send-message {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  padding-top: 6px;
}

.backnav {
  margin: 30px;
  font-size: x-large;
}

.backnav a {
  color: #333 !important;
  text-decoration: none !important;
}

select option:hover,
select option:checked {
  background-color: #ccc; /* light gray */
  color: #000; /* optional for contrast */
}

.header-container h1 {
  margin: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  margin-left: 0px;
  margin-top: 30px;
  text-align: start;
}
.header-container {
  width: 77%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.flexbetw {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-input {
  position: absolute;
  left: -9999px;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-input-wrapper.has-image .file-input-label {
  display: none;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.file-input-label:hover {
  background: #f5f5f5;
  border-color: #999;
}

.upload-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.image-preview-wrapper {
  position: relative;
  max-height: 500px;
  height: auto;
  border: 0px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.image-preview-wrapper .image-preview {
  width: 100%;
  height: auto;
  display: block;
}

.clear-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.clear-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

a {
  text-decoration: none;
}

.flexg15 {
  display: flex;
  align-items: center;
  gap: 15px;
}





.search-container {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.search-container input {
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background-color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.2s, background-image 0.2s, padding-left 0.2s;

  /* single left-hand icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23848484' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35m1.87-5.65a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 20px 20px;
}

.search-container input:focus {
  outline: none;
  border-color: rgb(84, 84, 84);

  /* hide icon when typing */
  background-image: none;

  /* reset padding so text goes to edge */
  padding-left: 16px;
}

/* removed .search-container::before entirely */

.searchCreatUserContainer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}









.btn-container {
  display: flex;
  gap: 12px;
}

.btn {
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 6px;
  font-size: 14px;
  padding: 10px 19px;
  transition: background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .create-payslip-group {
    margin-left: auto; 

  } */

.btn-secondary {
  background-color: #f1f2f6;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e8e9ef;
}

.btn-createUser {
  /* padding: 14px 22px; */
  margin-right: 30px;
  color: white;
  font-weight: bolder;
}

.btn-createUser:hover,
.btn-downloadCSV:hover {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
    rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

.btn-downloadCSV {
  /* padding: 14px 22px; */
  color: black;
  font-weight: bolder;
  background-color: white;
  border: 2px solid #ccc;
  gap: 6px;
}

.userActionbtns {
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
}

.userActionbtns .btn {
  background-color: #fff;
  padding: 8px 14px;
  border: 1px solid #ccc;
  gap: 10px;
}

.userActionbtns a {
  text-decoration: none;
}

.pdfActionLink .btn {
  gap: 10px;
  background-color: white;
  border: 1px solid #ccc;
}

.userActionbtns .btn:hover,
.pdfActionLink .btn:hover {
  background-color: #fafafa;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.table-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  align-items: stretch;
  justify-content: center;
  width: 77%;
  margin-left: auto;
  margin-right: auto;
}

.stats-cards {
  margin-top: 30px;
  width: 80%;
  align-items: stretch;

  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.stats-cards .card {
  flex: 1;
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  width: max-content;


  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.stats-cards .card svg{
  margin-right: 15px;
  padding: 10px;
  /* color: #bb58d7; */
  /* color: #8daef8; */
  color: #565758;
  width: 60px;
  /* background-color: #e2a5f522; */
  background-color: #c6c1f718;
  border-radius: 7px;
}

.card-value {
  font-size:2.5rem;


  
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: none;
}

thead {
  border-bottom: 1px solid #e5e7eb;
}

thead th {
  text-align: left;
  padding: 12px 8px;
  color: #6b7280;
  font-weight: 500;
  border: none;
}

/* thead th:first-child {
width: 40px;
} */

tbody tr {
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: #f9fafb;
}

tbody td {
  padding: 15px 8px;
  vertical-align: middle;
  color: #383a3e;
  border: none;
}

table,
th,
td {
  border: none !important;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2663eb;
  cursor: pointer;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nametexttd {
  font-weight: 600;
  margin-bottom: 4px;
}

.emailtexttd {
  color: #777;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #cbd5e1;
  display: inline-block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
}

.action-btn {
  text-decoration: none;
  font-size: 14px;
  color: #2663eb;
  margin-right: 12px;
  transition: color 0.2s;
}

.deleteActionLink {
  margin-left: 15px;
}

.custom-select .selected::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
}

.user-status-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
}

.profileHeader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}

.profileUserName{
font-weight: bold;
font-size: x-large;
}

.profile-personalinfo{
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgb(168, 168, 168);
  padding-bottom: 20px;
}

.profile-incuranceinfo{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
border-radius: 5px;
/* box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.03); */
padding: 10px;
padding-top: 0px;
padding-bottom: 20px;
margin-bottom: 100vh;


}
.insuranceicon{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #1e1e1e;
  margin-bottom: -10px;
}
.insuranceicon h4{
  font-size: larger;
  font-weight: 200;
  font-family: Arial, Helvetica, sans-serif;
}
.insuranceDatum{
  margin-bottom: 5px;
}

#insuranceValidity{
  margin-top: 10px;
  margin-bottom: -10px;
  color: #818181;
  font-weight: 300;
}
.profileEmail{
 color: #383a3e;
 font-size: large;

}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;


  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.avatar-profile {
  width: 65px;
  height: 65px;
}
.status-badge-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-info {
  display: flex;
  flex-direction: column;
  font-size: 23px;
  font-weight: 200;
}
.user-status-widget select {
  display: none;
}
.custom-select {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
  cursor: pointer;
}
.custom-select .selected {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  /* border: 1px solid #ccc; */
  border-radius: 4px;
  background: #fff;
  font-weight: 200;
}
.custom-select .selected::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
}
.custom-select .options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* max-height: 200px;
overflow-y: auto; */
  z-index: 100;
  display: none;
  width: max-content;
}
.custom-select .option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  width: fit-content;
}
.custom-select .option:hover {
  background: #f5f5f5;
}
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}











#mail {
  background-color: #fff;
}
.mail-sidebar h3 {
  margin: 0;
  padding: 20px;
  font-size: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

}
.mail-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mail-sidebar li {
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  transition: background 0.2s;
}
.mail-sidebar li:hover {
  background: #f5f5f5;
}
.mail-sidebar .ms-name {
  display: inline-block;
}
.mail-sidebar .badge {
  background: #e74c3c;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 1rem;
  padding: 0 6px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.mail-sidebar ul li {
  display: flex;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  border: 0.03px solid #d5d5d572;
border-left: 0px;
border-right: 0px;
border-radius: 0px}

.mail-sidebar .ms-info {
  flex: 1;
}
.mail-sidebar .ms-name {
  font-weight: bold;
  display: block;
}
.mail-sidebar .ms-email {
  font-size: 0.85em;
  color: #666;
}

.thread-messages::-webkit-scrollbar {
  display: none;
}


.mail-thread header h4 {
  margin: -1rem 0 2rem;
  font-size: 1.2rem;
  text-align: center;
font-family: "Oxygen", sans-serif;

}
.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.mail-item {
  margin-bottom: 1rem;
}
.mail-item .mi-header {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}
.mail-item .mi-body {
  background: #fbfbfb;
  border: 2px solid #b4b4b480 ;
  padding: 0.6rem;
  border-radius: 4px;
  min-height: 100px;
}
.mail-item.outgoing {
  align-self: flex-end;
}
.mail-item.outgoing .mi-body {
  background: #fbfbfb;
}
.mail-item.incoming {
  align-self: flex-start;
}
.mail-thread form {
  margin-top: 1rem;
}
.mail-thread textarea,
.mail-thread input[type="date"],
.mail-thread input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}
.mail-thread button {
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.mail-thread.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}


.mail-back-btn {
  background: none;
  border: none;
  color: #717171;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 7px;
padding: 20px;  
padding-bottom: 5px;
}

.leave-card {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin: 0.75rem 0;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.leave-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  text-transform: uppercase;
}

.leave-card.leave-pending .leave-badge {
  background: #f39c12;
}
.leave-card.leave-approved .leave-badge {
  background: #27ae60;
}
.leave-card.leave-denied .leave-badge {
  background: #c0392b;
}

.thread-messages {
  flex: 1;
  overflow-y: auto; 
  padding-right: 1rem;
}

.mail-thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  
}

/* #mailThreadContainer{
  height: 100vh;
} */


.mail-thread > header {
  flex: 0 0 auto;
}

.thread-messages {
  flex: 1 1 auto; 
  overflow-y: auto;
  padding-right: 1rem;
  /* max-height: 550px; */
}

.mail-thread > form,
.mail-thread > h5 {
  flex: 0 0 auto;
}

#mail {
  display: flex;
  flex-direction: column;
}

#reloadRequests {
  background: none;
  border: none;
  padding-top: 13px;
  cursor: pointer;
  margin-left: -15px;
}

#mailThreadContainer {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;     
  min-height: 0;   
  overflow: hidden;
}.mail-back-btn,
.mail-thread > header,
.mail-thread > form,
.mail-thread > h5 {
  flex: 0 0 auto;
}

.thread-messages {
  flex: 1 1 0;
  min-height: 0;          
  overflow-y: auto;
  overflow-anchor: none;  
}


#timeTracking div {
  background-color: white;
  height: 100vh;
}