/* Dashboard specific styles */
body {
  background-color: #F5F5F5;
  margin: 0;
  padding: 0;
}

/* Stats Cards Styles */
.stat-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: 100%;
}

.stat-card-header {
  height: 5px;
  width: 100%;
}

.stat-card-body {
  padding: 20px;
}

.stat-card-title {
  color: #666;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.stat-card-value {
  color: #333;
  font-size: 40px;
  font-weight: 700;
  margin: 0;
}

/* Department Colleagues Styles */
.colleagues-list,
.executives-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
  overflow-y: auto;
  max-height: 300px;
  width: 100%;
}

.colleague-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
  width: 100%;
}

.colleague-item:hover {
  background-color: #f9f9f9;
}

.colleague-item:last-child {
  border-bottom: none;
}

.colleague-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #00ACE8;
  border: 1px solid #00ACE8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 14px;
}

.colleague-info {
  flex: 1;
  overflow: hidden;
  padding: 0 5px;
}

.colleague-name {
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

.colleague-designation {
  color: #666;
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.colleague-email {
  cursor: pointer;
  margin-left: 15px;
  flex-shrink: 0;
}

.colleague-email img {
  width: 22px;
  height: 22px;
}

/* Card Styles */
.employee-info-card,
.employee-asset-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  padding: 15px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  height: auto;
  transition: all 0.3s ease;
}

.employee-info-card .card-title,
.employee-asset-card .card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 10px;
  text-align: left;
  width: 100%;
  margin-bottom: 15px;
}

.employee-info-card .card-body,
.employee-asset-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
}

.d-flex {
  align-content: flex-start;
}

.employee-info p {
  margin: 5px 15px 5px 0;
  font-size: 18px;
}

/* Ensure uniform column width and alignment */
.requests-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .requests-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
  }
  
  .requests-column {
    width: 30%;
    text-align: center;
  }
  
  /* Ensure the stage indicators are aligned properly */
  .stage-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  .stage-indicator span {
    margin-left: 8px;
  }

.employee-info-card .employee-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Employee info grid layout */
.employee-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: auto;
  gap: 15px;
  padding: 10px;
  margin: 0;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 8px 0;
}

.info-label {
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  min-width: 100px;
  font-size: 16px;
}

.info-value {
  margin: 0;
  color: #666;
  flex: 1;
  font-size: 16px;
}

/* Assets card styles */
.assets-list,
.assets-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px;
  flex: 1;
}

.asset-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.asset-item:hover {
  background-color: #f9f9f9;
}

.asset-item:last-child {
  border-bottom: none;
}

.asset-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.asset-name {
  flex: 1;
  text-align: center;
  font-size: 16px;
}

.asset-count {
  margin: 0 10px;
  color: #666;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 12px;
  background-color: #f5f5f5;
}

/* Asset Request Status Styles */
.asset-request-status {
  margin: 0 10px;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 12px;
  text-transform: capitalize;
  font-weight: 500;
}

.status-pending {
  background-color: #FFF4E5;
  color: #FF9800;
}

.status-fulfilled {
  background-color: #E8F5E9;
  color: #4CAF50;
}

.status-rejected {
  background-color: #FFEBEE;
  color: #F44336;
}

.view-more-btn {
  color: #00ACE8;
  background-color: #F2FBFE;
  border: none;
  width: 100%;
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.view-more-btn:hover {
  background-color: #E6F7FE;
  color: #0096cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Make the entire home container have more breathing room */
.home-dashboard-container {
  padding-bottom: 40px !important;
}

/* response for the employee info card */

@media (max-width: 1470px) {
  .info-item {
    gap: 78px;
  }
}

@media (max-width: 1120px) {
  .employee-info-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1075px) {
  .info-item {
    gap: 18px;
  }
}

@media (max-width: 945px) {
  .info-item {
    gap: 8px;
  }
}

@media (max-width: 845px) {
  .info-item {
    gap: 0px;
  }
}

@media (max-width: 768px) {
  .employee-container {
    margin-bottom: 25px;
  }
}

/*
@media (max-width: 810px) {
  .home-dashboard-container {
    padding-left: 40px !important;
  }
}
*/

@media (max-width: 650px) {
  .info-item {
    flex-direction: column;
    align-items: center;
  }
  .info-label {
    min-width: 1px;
  }
}

@media (max-width: 500px) {
  .home-dashboard-container {
    padding-left: 0px !important;
  }
}

/* For the row with the two cards at the bottom to have the same height */
.row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.h-100 {
  height: 100% !important;
}