/* Attachments Section Styles Start */
.attachments-sec-wrapper .attachment {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary) !important;
    padding: 10px 10px 10px 8px;
    border-radius: 10px;
    display: flex;
    align-items: start;
}
.attachments-sec-wrapper .attachment .attachment-text-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.attachments-sec-wrapper .attachment.csv {
  background-color: var(--bs-success-bg-subtle) !important;
  color: var(--bs-success) !important;;
}
.attachments-sec-wrapper .attachment.pdf {
  background-color: #fde8e8c4 !important;
  color: rgba(238, 50, 50, 0.6) !important;
}
.attachments-sec-wrapper .attachment.jpg {
  background-color: rgba(105, 185, 255, 0.34) !important;
  color: rgba(105, 185, 255, 1) !important;;
}
.attachments-sec-wrapper .attachment.doc {
  background-color: rgba(126, 178, 255, 0.4) !important;
  color: rgba(126, 178, 255, 1) !important;;
}
.attachments-sec-wrapper .attachment.doc img {
  width: 48px;
  aspect-ratio: 1;
}
.attachments-sec-wrapper .attachment.txt {
  background-color: rgba(var(--bs-secondary-bg-rgb), 1) !important;
  color: var(--bs-gray) !important;
}



.attachment .attachment-expiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attachment-row.grid .attachment-col .attachment{
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: 100%;
    justify-content: space-around;
}
.attachment-row.grid .attachment .attachment-text-wrap {
    flex-direction: column;
}

.attachment-row.grid .attachment .attachment-expiry {
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
}

.attachment-row.grid .avatar.avatar-xl {
  height: 60px;
  width: 60px;
}

.attachment-row.grid .attachment .attachment-text-wrap {
    padding-left: 20px;
    padding-right: 20px;
}

.attachment .file-name{
    color: inherit;
}

.attachment-row.grid .attachment .file-name{
    line-height: 1.5;
    color: inherit;
}

.attachment-row.grid .attachment .context-menu {
    position: absolute;
    top: 7px;
    right: 7px;
}

/* For large screens: override to col-lg-2 */
@media (min-width: 992px) {
    .attachment-row.grid .attachment-col{
        flex: 0 0 auto;
        width: 16.66666667%;
        max-width: 16.66666667%;
    }
}

/* For medium screens: keep default col-lg-3 behavior */
/* No override needed since col-lg-3 works normally at ≥992px only */

@media (min-width: 767px) and (max-width: 991px) {
    .attachment-row.grid .attachment-col{
        flex: 0 0 auto;
        width: 33.3333%;
        max-width: 33.3333%;
    }
}
/* For small screens: override to act like col-6 */
@media (max-width: 767.98px) {
    .attachment-row.grid .attachment-col{
        flex: 0 0 auto;
        width: 33.3333%;
        max-width: 33.3333%;
    }
}

@media screen and (max-width: 576px) {
    .attachment-row.grid .attachment-col{
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
    }
}

/* Attachments Section Styles Start */