.fade-text {
  position: relative;
  max-height: 2.7em;
  overflow: hidden;
  color: #737373;
  margin: 2px 0 0 10px;
}

.fade-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5em;
  /* height of fade */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}


body {
  margin: 2px !important;
}

.container {
  padding: 0px;
}

/* Grid Layout 
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(133px, 1fr));
  gap: 16px;
}
*/
/* Video thumbs */
.video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.video-thumb img {
  width: 100%;
  display: block;
  filter: grayscale(75%);
}

.video-thumb::after {
  content: "▶";
  font-size: 25px;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Image thumbs */
.image-thumb img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Link cards */
.link-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  border-radius: 8px;
  padding: 20px;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.link-thumb a {
  text-decoration: none;
  color: #6f7173;

}

/* Popup */
.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-popup iframe {
  width: 90%;
  max-width: 800px;
  height: 450px;
  border: none;
  border-radius: 8px;
}

.video-popup.active {
  display: flex;
}

.SideNibbleItems {
  display: block;
  padding: 0.5rem 1rem;
}


/* Container for the result */
.test-result {
  max-width: 450px;
  margin: 30px auto;
  padding: 25px 30px;
  border-radius: 15px;
  text-align: center;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.test-result.pass {
  background: #e6ffed;
  /* light green */
  border: 2px solid #28a745;
  color: #155724;
}

.test-result.fail {
  background: #ffe6e6;
  /* light red */
  border: 2px solid #dc3545;
  color: #721c24;
}

.test-result h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.test-result p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.test-result .score {
  font-weight: bold;
  font-size: 1.4rem;
  margin: 8px 0 0 0;
}

.test-result:hover {
  transform: scale(1.03);
}

.dashboard-actions .action-item .icon {
  font-size: 11px;
}

.SideNibbleItems {
  display: block;
  padding: 0.5rem 1rem;
}

.mini-nibbles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #333;
}

.mini-nibble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: default;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.mini-nibble:hover {
  background: #e9ecf1;
}

/* Icon colours for each type */
.mini-nibble:nth-child(1) i {
  color: #ff7043;
}

/* invoices */
.mini-nibble:nth-child(2) i {
  color: #4a90e2;
}

/* documents */
.mini-nibble:nth-child(3) i {
  color: #00b894;
}

/* sessions */

/* Count style */
.mini-nibble span {
  color: #555;
  font-weight: 600;
}

/* Responsive: slightly smaller text */
@media (max-width: 480px) {
  .mini-nibbles {
    font-size: 12px;
    gap: 8px;
  }

  .mini-nibble {
    padding: 3px 6px;
  }
}

.asset-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.asset-image {
  flex: 0 0 30%;
  max-width: 100%;
}

.asset-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.asset-info {
  flex: 1;
  max-width: 60%;
}

.asset-info-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.asset-info-item strong {
  font-weight: bold;
}

@media (max-width: 768px) {
  .asset-details-container {
    flex-direction: column;
    align-items: center;
  }

  .asset-image {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .asset-info {
    flex: 1;
    max-width: 100%;
  }
}



                      .snacks {
                        text-align: center;
                        background: white;
                        color: black;
                        border-radius: 5px;
                        padding: 2px 7px 2px 7px;
                        font-size: 11px;
                        font-weight: 400;
                        text-shadow: none;
                        display: inline-block;
                      }

                    .counter-badge {
                      position: absolute;
                      top: 1px;
                      right: -6px;
                      background-color: red;
                      color: white;
                      font-weight: bold;
                      border-radius: 50%;
                      padding: 3px 0px 0px 0px;
                      text-align: center;
                      line-height: 1;
                      width: 14px;
                      height: 11px;
                      font-size: 9px;
                      border: 2px solid white;
                    }

                    .invoice-counter-wrapper,
                    .quotes-counter-wrapper,
                    .expenses-counter-wrapper {
                      position: relative;
                      display: inline-block;
                      padding: 10px;
                      font-size: 16px;
                    }




.top_gradient_blue {
	/*background: linear-gradient(135deg, #0077c8, #00a3e0); */
/* 	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);*/
	/* text-shadow: 1px 1px 2px rgba(85, 85, 85, 0.4); */
	border-radius: 12px;
	padding: 16px;
	color: #fff;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform 0.2s;
	align-items: center;
	justify-content: center;
  margin: 0px 0px 22px 0px;
}

/* Container */
.xjf-invoice-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 800px;
  margin: 20px auto;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Each row */
.xjf-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.xjf-invoice-row:last-child {
  border-bottom: none;
}

.xjf-invoice-row:hover {
  background: #f9f9f9;
}

/* Left side (number + status) */
.xjf-invoice-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xjf-invoice-number {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

/* Status pill */
.xjf-invoice-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.xjf-paid {
  color: #2e7d32;
}

/* Green */
.xjf-pending {
  color: #ff9800;
}

/* Orange */
.xjf-overdue {
  color: #d32f2f;
}

/* Red */
.xjf-draft {
  color: #607d8b;
}

/* Grey */

/* Right side (due + amount) */
.xjf-invoice-meta {
  text-align: right;
  font-size: 0.9rem;
  color: #444;
}

.xjf-invoice-amount {
  font-weight: bold;
  display: block;
}

/* Mobile-friendly */
@media (max-width: 600px) {
  .xjf-invoice-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .xjf-invoice-meta {
    text-align: left;
  }
}




h2 {
  text-align: left;
}

.x53d-asset-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.x53d-asset-card h2 {
  text-align: left;
  margin-bottom: 16px;
}

.x53d-asset-card_flex {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.x53d-asset-image img {
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.x53d-asset-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  text-align: left;
  padding: 5px 0px 0px 0px;
}

.x53d-asset-details .x53d-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.x53d-asset-details .x53d-detail-row i {
  color: #666;
  min-width: 18px;
  /* keeps icons aligned */
  text-align: center;
}

.x53d-asset-details .x53d-detail-label {
  font-weight: 600;
  margin-right: 4px;
}

/* Responsive for mobile */
@media (max-width: 450px) {
  .x53d-asset-card_flex {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .x53d-asset-image img {
    max-width: 100%;
  }

  .x53d-asset-details {
    width: 100%;
  }
}


.tre-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* wraps nicely on mobile */
    margin: 15px 0;
}

.tre-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tre-share-btn i {
    font-size: 16px;
}

/* Individual colors */
.tre-share-email {
    background-color: #0077ff;
}

.tre-share-whatsapp {
    background-color: #25d366;
}

/* Hover effect */
.tre-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}



.billing_type_display {
	font-size: 1.3rem;
	font-weight: 700;
	color: #1791cc;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 20px;
	margin: 12px 0;
	box-shadow: 0 4px 8px rgba(0,0,0,0.04);
	font-size: 21px !important;
}

.stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 16px;
    border: 2px solid #d9534f; /* red-ish border for stamp look */
    color: #d9534f;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    transform: rotate(-15deg); /* gives that angled rubber stamp feel */
    background: rgba(255,255,255,0.2); /* optional for semi-transparent look */
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.right-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px; /* space between buttons */
}

a:hover {
  background:#6c63ff;
  color:#fff;
  border-color:#6c63ff;
}
.tre-hero {
  position: relative;
  border-radius: 12px;
  display: flex;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.tre-hero-has-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); /* dark overlay for readability */
}

.tre-hero-solid {
  background: linear-gradient(135deg, #0077ff, #0055aa); /* fallback color gradient */
}

.tre-hero-overlay {
  position: relative;
  z-index: 2; /* keep text above overlay */
  padding: 20px;
}

@media screen and (max-width: 600px) {
  .tre-hero-overlay {
    padding: 0px;
  }
}

.tre-hero h1 {
  font-size: 22px;
  margin: 0;
}

.tre-hero h2 {
  font-size: 20px;
  margin: 8px 0;
  font-weight: 400;
}

.tre-hero p {
  font-size: 16px;
  margin: 0;
}


.link-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff!important;
	border-radius: 8px;
	padding: 20px;
	font-size: 1rem;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.resource-category {
	background: #ececec;
	border-radius: 5px;
	padding: 10px 10px 10px 11px;
	margin: 10px 0px 0px 0px;
}


.container {
max-width: 950px;
}
.tre-dashboard {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap; /* responsive */
}

.tre-card {
  flex: 1 1 200px;
  flex: 1;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.tre-card:hover {
  transform: translateY(-5px);
}

.tre-card i {
  font-size: 28px;
  margin-bottom: 10px;
}

.tre-card h3 {
  margin: 5px 0;
  font-size: 18px;
  color: #959595 !important;
}

.tre-description {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;       /* adjust for spacing */
  max-height: calc(1.4em * 2); /* ensures it stays 2 lines high */
}


.tre-counter {
  font-size: 22px;
  font-weight: bold;
  margin-top: 8px;
  color: #007bff;
}

/* Unique icon colors */
.tre-card-billables i { color: #0077ff; }
.tre-card-costs i { color: #e67e22; }
.tre-card-profits i { color: #28a745; }



.tre-card-updates i { color: #27ae60; }
.tre-card-attachments i { color: #8e44ad; }



  



    /* Sidebar */
    .tm-sidebar {
      background: #f7f7f7;
      margin: -4px 0px 0px 0px;
      color: #333;
      min-width: 245px;
      max-width: 245px;
      height: 100vh;
      border: 1px solid #ddd;
      transition: transform 0.3s ease;
      border-radius: 5px;
  padding: 3px 0px 0px 0px;
    }


@media (max-width: 768px) {
  .tm-sidebar  {
min-width: 320px;
      max-width: 320px;
  }

}

    .tm-sidebar.collapsed {
      transform: translateX(-100%);
    }

    .tm-sidebar ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .tm-sidebar li {
      border-bottom: 1px solid #eee;
    }

    .tm-sidebar a {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      color: #333;
      text-decoration: none;
      font-size: 15px;
    }

    .tm-sidebar a:hover {
      background: #e9e9e9;
    }

    .tm-sidebar i {
      margin-right: 10px;
      color: #666;
    }

    /* Submenu */
    .tm-submenu {
      display: none;
      background: #f0f0f0;
    }

    .tm-submenu li a {
      padding-left: 40px;
      font-size: 14px;
    }

    .tm-has-submenu > a:after {
      content: "\f107"; /* FA chevron-down */
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      margin-left: auto;
      transition: transform 0.3s ease;
    }

    .tm-has-submenu.open > a:after {
      transform: rotate(180deg);
    }

    .tm-has-submenu.open > .tm-submenu {
      display: block;
    }

    /* Hamburger for mobile */
      display: none;
    /*  position: absolute; */
      top: 61px;
      left: 21px;
      font-size: 22px;
      cursor: pointer;
            text-align: center;
            z-index: 0;
            margin: 0px 7px 0px 8px;

    }

   
.CloseSideBarMenu_X {
  display: block;
}


#OpenSideMenu {
  display: block;
}

 
/* Show only on small screens */
@media (max-width: 768px) {
  .CloseSideBarMenu_X {
    display: block;
  }
  #OpenSideMenu {
      display: block;

  }
}


@media (max-width: 768px) {
  .tm-sidebar {
    display: none; /* sidebar hidden by default */
  }
 .tm-toggle-btn {
        display: none;
      }      }
}

  







/* Top-right ellipsis icon */
.top-right-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: #4A5568;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
}
.top-right-icon:hover {
    color: #2D3748;
    transform: scale(1.1);
}

/* Category menu div */
.category-menu {
    display: none;
    position: absolute;
    top: 30px;  /* just below the icon */
    right: 0;
    background: #fff;
    border: 1px solid #CBD5E0;
    padding: 10px;
    width: 260px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 100;
    font-size: 14px;
}
.category-menu strong {
    display: block;
    margin-bottom: 5px;
}




.category-action-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    color: #ffffff;
    background-color: #4A90E2; /* soft blue */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.category-action-btn:hover {
    background-color: #357ABD; /* slightly darker on hover */
    transform: translateY(-1px); /* subtle lift effect */
}

.category-action-btn:active {
    background-color: #2C5F9E;
    transform: translateY(0);
}

/* Optional: smaller secondary button for edit/delete */
.category-action-btn-small {
    padding: 4px 8px;
    font-size: 13px;
    background-color: #A0AEC0; /* gray */
}

.category-action-btn-small:hover {
    background-color: #718096;
}


.top-right-icon {
    position: absolute;
    top: 8px;      /* distance from top */
    right: 8px;    /* distance from right */
    font-size: 23px;
    color: #4A5568; /* soft gray, change as needed */
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
}

.top-right-icon:hover {
    color: #2D3748;  /* slightly darker on hover */
    transform: scale(1.1); /* subtle grow effect */
}








.mini_action {
	cursor: pointer;
	margin-top: 5px;
	background: #0077ff;
	border: white;
	width: 59px;
	text-align: center;
	color: white;
	font-size: 13px;
	border-radius: 5px;
	padding: 4px 3px 3px 3px;
  display: inline-block;
}



.snuppit_icons  {
  color: #007bff;
}
.file-item_description {
	margin: 0px 0px 0px 38px;
	font-size: 11px;
	color: gray;
}

.file-item_icon_pdf {
color: #f03
}


.file-item_icon_word {
color: #2B579A
}

.file-item_icon_youtube {
color: #E53E3E
}





.clamp_session_category {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  max-width: 100%;
  white-space: normal;
text-align: center;
}


    .event-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
      padding: 24px;
      max-width: 800px;
      margin: auto;
      position: relative;
      margin-top: 12px;
      border: 1px solid #dfdfdf;
    }

    .event-title {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 5px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .event-topic {
      font-size: 1.1rem;
      color: #6c63ff;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .event-description {
      font-size: 1rem;
      line-height: 1.5;
      color: #555;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .attendees {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      justify-content: space-between;
    }

    .attendees span {
      font-weight: bold;
      margin-right: 10px;
    }

    .avatars {
      display: flex;
    }

    .avatars img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      margin-left: -10px;
      border: 2px solid #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .days {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
      gap: 2px;
      margin-bottom: 2px;
    }

    .day {
      border-radius: 12px;
      padding: 16px;
      color: #fff;
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 8px;
      transition: transform 0.2s;
      	align-items: center;
	justify-content: center;
  height: 140px;
    }

    .day i {
      font-size: 1.2rem;
    }

    .day:hover {
    /*  transform: translateY(-4px); */
    }

    .day.past {
      background: #bbb;
    }

    .day.today {
      background: #00b000;
    }

    .day.upcoming {
      background: #42a5f5;
    }

    .day-date {
      font-size: 13px;
      font-weight: bold;
    }

    .day-info {
      font-size: 11px;
    }

    .files {
      margin-bottom: 24px;
    }

    .files h3 {
      margin-bottom: 10px;
      font-size: 1.2rem;
      color: #333;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .file-item {
      display: flex;
      align-items: center;
      background: #f9f9f9;
      border-radius: 10px;
      padding: 20px 14px;
      margin-bottom: 8px;
      transition: background 0.2s;
      justify-content: space-between;
      border: 1px solid #c1c1c1;
      background: #f0f0f0;
    }

    .file-item:hover {
      background: #f0f0f0;
    }

    .file-item i {
      font-size: 1.3rem;
      margin-right: 12px;
    }

    .file-item span {
      font-size: 0.95rem;
      flex-grow: 1;
    }

    .add-day {
      display: inline-block;
      background: #6c63ff;
      color: #fff;
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 500;
      text-decoration: none;
      transition: background 0.3s;
    }

    .add-day:hover {
      background: #574fd6;
    }

    /* --- Admin edit icons --- */
    .edit-icon {
      display: none;
      color: #aaa;
      margin-left: 10px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .edit-icon:hover {
      color: #6c63ff;
    }

    body.admin .edit-icon {
      display: inline-block;
    }
  
