/* Consolidated dashboard styles — duplicates removed and properties merged */

.cursor {
  cursor: pointer;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1rem;
  font-weight: 500;
  border-radius: 0.75rem 0.75rem 0 0;
  background: linear-gradient(90deg, #008FD3 25.31%, #003F80 101.69%);
}

.dashboard-header p {
  font-size: 1rem;
}

.dashboard .wrapper {
  padding: 1rem;
  display: flex;
  cursor: pointer;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
}

@media screen and (max-width: 430px) {
  .dashboard .wrapper {
    padding: 1.5rem;
    display: grid;
  }

  .dashboard.text-container {
    flex: 1;
    min-width: 0;
    padding: 1.25rem;

    /* เอาเส้นขอบด้านบนออก */
    border-top: 0 !important;

    /* เพิ่ม border-radius เฉพาะด้านล่าง */
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-top-right-radius: 0rem !important;
    /* กำหนดเส้นขอบด้านอื่น (ถ้าต้องการ) */
    border-left: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;

    transition: background-color 0.12s ease, color 0.12s ease;
  }

  .dashboard .ss-card .img-container {
    width: 100% !important;
  }

  .ss-img.square {
    width: 100% !important;
    aspect-ratio: auto !important;
    height: 200px !important;
    border-bottom-left-radius: 0rem !important;

  }

  .img-bg {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    border-bottom-left-radius: 0rem !important;

  }
}

/* Card / layout */
.dashboard .ss-card .img-container {
  width: 120px;
}



.ss-img.square {
  width: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem 0 0 0.5rem;
}

/* Background image inside square */
.img-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  /* background-color: #cccccc; */
  border-radius: 0.5rem 0 0 0.5rem;
  border: 1px solid #e6e6e6;
}

/* wrapper hover effects */
.ss-card:hover .img-bg,
.ss-card:focus .img-bg,
.ss-card:active .img-bg {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  border: 1px solid #e6e6e6;
}


/* Text container */
.dashboard .text-container {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #e6e6e6;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  transition: background-color .12s ease, color .12s ease;
}

.dashboard .text-container:hover {
  background-color: rgba(179, 244, 255, 0.20);
  color: #3b94b7;
}

.dashboard .text-container-doc {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  transition: background-color .12s ease, color .12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard .text-container-doc h6 {
  font-size: 1rem;
}

.dashboard .text-container-doc:hover h6 {
  color: #3b94b7;
  background-color: transparent;
}

/* Alternate radius variant used in some blocks (kept available) */
.dashboard .text-container.rounded-lg {
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.dashboard .text-container.rounded-lg:hover {
  color: #5F5E5D !important;
}

/* truncate utility */
.dashboard .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* stats */
.dashboard .ss-stats {
  margin-top: 0.5rem;
  font-size: 0.25rem;
}



.dashboard .stat .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Buttons area */
.dashboard-btns {
  margin: 0;
  border-bottom: 1px solid #e6e6e6;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

/* Primary rounded action button */
.dashboard-btns .btn.btn-icon.style-02.btn-action.btn-outline-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #008fd3;
  color: #ffffff;
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 18px rgba(3, 54, 99, 0.12);
  cursor: pointer;
  font-size: 1rem;
  padding: .4375rem 1.5rem;
  height: 100%;
}

.dashboard-btns .btn.btn-icon.style-02.btn-action.btn-outline-none:hover,
.dashboard-btns .btn.btn-icon.style-02.btn-action.btn-outline-none:focus,
.dashboard-btns .btn.btn-icon.style-02.btn-action.btn-outline-none:active {
  background-color: #007bbd;
  box-shadow: 0 6px 18px rgba(3, 54, 99, 0.24);
}

.dashboard-btns .btn.btn-icon .title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  color: inherit;
  padding: .4375rem 1.5rem;
}

/* icon container utility */
.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.1rem;
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

.icon-container svg {
  width: 54px;
  height: 54px;
}

/* card base */
.dashboard-card {
  display: flex;
  border-radius: 1.5rem;
  width: 100%;
  background-color: #F0F0F0;
}

.card:hover {
  background-color: rgba(179, 244, 255, 0.25);
}

.dashboard-card:hover {
  background-color: rgba(179, 244, 255, 0.25);
}

/* keep any repeated rules idempotent (no duplicates below) */
/* end of consolidated dashboard.css */

.dashboard .text-container h6 {
  font-size: 1.125rem;
  min-height: 1rem;
  margin-top: 0.5rem;
}