/*
===================================================================================================
CARD RESOURCE
===================================================================================================
*/

@layer card-resource {

.card-resource {width: 100%;}


/* LIST
**************************************************************************************************/
.card-resource--list {width: 100%; display: flex; flex-direction: column; margin: 0; padding: 0;}

/* ITEM
**************************************************************************************************/
.card-resource--item {list-style: none; display: flex; flex-direction: column; row-gap: var(--spacing-10); padding: var(--spacing-20) calc(var(--spacing-40) - var(--spacing-10)); border-bottom: 1px solid var(--color-grey-100);}
.card-resource--item:last-child {border-bottom: 0;}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--item {padding: var(--spacing-20);}
}

/* ------------- SUB MODULES ------------- */
.card-resource--item__inline {flex-direction: row; align-items: center; row-gap: 0; column-gap: 0; justify-content: space-between;}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--item__inline {flex-direction: column; align-items: flex-start; row-gap: var(--spacing-10); column-gap: 0;}
}

/* ------------- ELEMENTS ------------- */
.card-resource--item.is-empty {flex-direction: row; align-items: center; min-height: 160px;}
.card-resource--item.is-empty .card-resource--content {color: var(--color-grey-600); text-align: center;}
.card-resource--item.is-disabled .card-resource--content, .card-resource--item.is-disabled .card-resource--caption {color: var(--color-grey-300);}

/* CAPTION
**************************************************************************************************/
.card-resource--caption {font-size: var(--font-size-12); line-height: var(--line-height-140); color: var(--color-grey-600); white-space: normal; min-width: 0;}

/* ------------- SUB MODULES ------------- */
.card-resource--caption__inline__right {flex: 0 0 auto; margin-right: var(--spacing-10);}
.card-resource--caption__inline__left {flex: 1 1 auto; margin-left: var(--spacing-10);}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--caption__inline__right {flex: 0 0 auto; margin-right: 0;}
  .card-resource--caption__inline__left {flex: 0 0 auto; margin-left: 0;}
}

/* ROW
**************************************************************************************************/
.card-resource--row {display: flex; align-items: flex-start; column-gap: var(--spacing-20); width: 100%;}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--row {flex-wrap: wrap; row-gap: var(--spacing-10);}
}

/* CONTENT
**************************************************************************************************/
.card-resource--content {flex: 1; min-width: 0; font-size: var(--font-size-12); line-height: var(--line-height-140); font-weight: var(--font-weight-semibold); color: var(--color-blue-800); overflow-wrap: anywhere;}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--content {width: 100%; min-width: 100%;}
}


/* ------------- SUB MODULES ------------- */
.card-resource--content__lg {font-size: var(--font-size-14);}
.card-resource--content__inline {flex: 1; width: auto; min-width: 0; margin-right: var(--spacing-10);}
.card-resource--content__w20 {flex: 0 0 auto; width: auto; min-width: 20%; margin-right: var(--spacing-10);}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--content__inline {width: 100%; min-width: 100%; margin-right: 0;}
  .card-resource--content__inline-auto {width: 100%; min-width: 100%; margin-right: 0;}
}

/* ACTION
**************************************************************************************************/
.card-resource--action {flex-shrink: 0; display: inline-flex; align-items: center; column-gap: var(--spacing-20);}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--action {width: 100%; justify-content: flex-end; padding-top: var(--spacing-5);}
}

/* ------------- SUB MODULES ------------- */
.card-resource--action__margin-left {margin-left: auto;}
.card-resource--action__inline {flex: 0 0 auto; justify-content: flex-end;}



/* ACTION LINK
**************************************************************************************************/
.card-resource--action-link {display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: none; background: none; text-decoration: none; color: var(--color-purple-500); cursor: pointer;}
.card-resource--action-link:hover {color: var(--color-purple-300);}

/* ------------- STATES ------------- */
.card-resource--action-link[aria-disabled="true"], .card-resource--action-link[aria-disabled="true"]:hover {color: var(--color-grey-300); cursor: not-allowed;}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .card-resource--action .popover__left .popover--content {min-width: min(var(--popover-size), calc(100vw - 160px));}
}


/* ------------- ELEMENTS ------------- */
.card-resource--action-link .icon__eye {width: 24px; height: 24px;}
.card-resource--action-link .icon__xls {width: 18px; height: 18px;}
.card-resource--action-link .icon__pdf {width: 18px; height: 18px;}


}





