
#divDashboardContent {
  position: relative !important;
  z-index: 1 !important;
  overflow: auto !important;
}

#titleProjectDashboard {
  position: relative !important;
  z-index: 10 !important;
}

/* ==================== TILE CONTAINER ==================== */
.dashboard-tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  width: 100%;
  padding: 20px; 
  box-sizing: border-box;
}

.dashboard-tiles-container::after {
  content: "";
  display: block;
  height: 28px;
  width: 100%;
}

/* ==================== TILEs ==================== */
.project-tile {
  z-index: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.project-tile:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ==================== UPPER PART: DATES ==================== */
.tile-dates-section {
  position: relative;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  border-bottom: 1px solid #dee2e6;
  min-height: 68px;
}

.date-row {
  align-items: center;
  background: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 400;
  color:#000000;
  width: 52px;
  white-space: nowrap;
  text-align: center;
  cursor: default;
  height: 12px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-row.no-date {
  text-align: center;
  color: #adb5bd;
  opacity: 0.6; 
}

/* ==================== MAIN PART ==================== */
.tile-main {
  position: relative;
  padding: 20px 15px 2px 15px;
  background: white;
}

/* Status*/
.project-status {
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: white;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 10;
}

.tile-priority{
  font-size:11px;
  padding:3px 8px;
  border-radius:10px;
  min-width:30px;
  text-align:center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Project header */
.tile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-color-square {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.project-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile-manager {
  position: relative;
  display: flex;
  gap: 6px;
}

.tile-manager .manager-name {
  font-size: 13px;
  color: #333;
}

.tile-next-milestone{
  position: relative;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background-color:#ffa64d;
  border:2px solid #f76b1c;
  color:#000;
  border-radius:50%;
  width:32px;
  height:32px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  text-align:center;
}

/*  ==================== FUNCTIONS  ==================== */
.tooltipProjectDashboard {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1000;
        }
.tooltipProjectDashboard.show {
  opacity: 1;
}

.tile-progress-charts {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 2px 10px 2px; 
  flex-wrap: nowrap;
  gap:5px;
}

.tile-progress-charts.charts-count-1 {
  gap: 0;
}

.tile-progress-charts.charts-count-2 {
  gap: 20px;
  justify-content: space-between;
}


.tile-work-progress,
.tile-budget-progress,
.tile-risks-progress {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-work-progress canvas,
.tile-budget-progress canvas,
.tile-risks-progress canvas {
  display: block;
}

.projectItemHide{
	display : none !important;
}

.menu-item{
  width:100%;
  padding:8px;
  border:none;
  background:white;
  text-align:center;
  cursor:pointer;
  border-bottom:1px solid #f0f0f0;
  transition:background 0.15s;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tile-menu-btn{
	width:32px;
	height:32px;
	border-radius:6px;
	border:none;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
}

.tile-dates-section:hover #addAttachementProjectPic {
    opacity: 1;
    visibility: visible;
}

#addAttachementProjectPic {
    opacity: 0;
    pointer-events: none;
}

.tile-dates-section:hover #addAttachementProjectPic {
    opacity: 1;
    pointer-events: auto;
}

.tile-indicator {
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
