/* Portfolio Assets Table — Inside holo-card container */

.portfolio-assets-table {
  width: 100%;
  background: transparent;
  overflow: hidden;
  margin-top: 0;
}

/* Table Header */
.portfolio-assets-header {
  display: flex;
  align-items: center;
  background: var(--table-header-bg);
  border-bottom: 1px solid var(--table-border-color);
  padding: var(--table-header-padding);
  height: var(--table-header-height);
  box-sizing: border-box;
  border-radius: 23px 23px 0 0;
}

.portfolio-assets-header-cell {
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.portfolio-assets-header-content {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--table-header-color);
  font-family: var(--font-family);
  font-weight: var(--table-header-font-weight);
  font-size: var(--table-header-font-size);
  line-height: 18px;
}

.portfolio-assets-header-text {
  color: var(--table-header-color);
  font-family: var(--font-family);
  font-weight: var(--table-header-font-weight);
  font-size: var(--table-header-font-size);
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Table Body */
.portfolio-assets-body {
  width: 100%;
}

.portfolio-assets-row {
  display: flex;
  align-items: center;
  padding: var(--table-cell-padding);
  height: 72px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--table-border-color);
  transition: background-color 0.2s ease;
}

.portfolio-assets-row:hover {
  background-color: var(--table-row-hover-bg);
}

.portfolio-assets-row:last-child {
  border-bottom: none;
}

.portfolio-assets-cell {
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Column Widths - Exact from design */
.property-col {
  width: 280px;
  flex: none;
}

.investment-col {
  width: 150px;
  flex: none;
}

.appreciation-col {
  width: 110px;
  flex: none;
}

.rental-col {
  width: 150px;
  flex: none;
}

.status-col {
  width: 180px;
  flex: none;
}

.actions-col {
  flex: 1;
  justify-content: flex-end;
}

.portfolio-assets-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #475467;
  background: #FFFFFF;
  border: 1px solid #E9EAEB;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portfolio-assets-detail-btn:hover,
.portfolio-assets-detail-btn:focus-visible {
  color: #101828;
  background: #F9FAFB;
  border-color: #D5D7DA;
  outline: none;
}

.portfolio-assets-detail-btn svg {
  flex-shrink: 0;
}

/* Property Column Styles */
.portfolio-assets-property {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 224px;
}

.portfolio-assets-property-image {
  width: 73px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.portfolio-assets-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-assets-property-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 143px;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.portfolio-assets-property-name {
  color: var(--page-title-color);
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
}

.portfolio-assets-property-location {
  color: #717680;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
}

/* Investment & Rental Columns */
.portfolio-assets-investment,
.portfolio-assets-rental {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.portfolio-assets-value {
  color: var(--page-title-color);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--table-cell-font-size);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.portfolio-assets-change {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2px 8px 2px 6px;
  gap: 4px;
  width: fit-content;
  min-width: 63px;
  height: 24px;
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
  border-radius: 6px;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #414651;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.portfolio-assets-change-icon {
  width: 12px;
  height: 12px;
  flex: none;
  order: 0;
  flex-grow: 0;
  display: inline-block;
  background: url("/static/images/icons/arrow-up-right.svg") no-repeat center;
  background-size: 12px 12px;
}

.portfolio-assets-change.negative .portfolio-assets-change-icon {
  /* Arrow points down-left for negative */
  transform: rotate(180deg);
}

.portfolio-assets-change.neutral {
  color: #717680;
  padding: 2px 8px;
}

.portfolio-assets-subtext {
  color: #717680;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
}

/* Status Column */
.portfolio-assets-status {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 2px 8px 2px 6px;
  gap: 4px;
  height: 22px;
  border-radius: 16px;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

/* Dynamic Status Badge Redesign */

/* SUCCESS (e.g., Funded, Rented, Active) */
.status-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}


.status-success .portfolio-assets-status-icon {
  background: url("/static/images/icons/check-verified-02.svg") no-repeat center;
  background-size: 12px 12px;
}

/* PROGRESS / PROCESS (e.g., In process, Funding in progress) */
.status-progress {
  background: #fef0c7;
  border: 1px solid #fec84b;
  color: #b54708;
}

.status-progress .portfolio-assets-status-icon {
  background: url("/static/images/icons/clock-refresh.svg") no-repeat center;
  background-size: 12px 12px;
}

/* WARNING / PENDING (e.g., Payout pending) */
.status-warning {
  background: #fff4ed;
  border: 1px solid #ffdbc2;
  color: #b93815;
}

.status-warning .portfolio-assets-status-icon {
  background: url("/static/images/icons/coins-swap-01.svg") no-repeat center;
  background-size: 12px 12px;
}

/* NEUTRAL / INACTIVE (e.g., Exited, Cancelled) */
.status-neutral {
  background: #f9fafb;
  border: 1px solid #eaecf0;
  color: #344054;
}

.status-neutral .portfolio-assets-status-icon {
  background: url("/static/images/icons/check-verified-02.svg") no-repeat center;
  background-size: 12px 12px;
}

/* DEFAULT for any unmapped status */
.status-default {
  background: #ffffff;
  border: 1px solid #d5d7da;
  color: #414651;
}

.status-default .portfolio-assets-status-icon {
  background: url("/static/images/icons/check-verified-02.svg") no-repeat center;
  background-size: 12px 12px;
}

/* Icon container */
.portfolio-assets-status-icon {
  width: 12px;
  height: 12px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Actions Column */
.portfolio-assets-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.portfolio-assets-action-btn:hover {
  background: var(--table-row-hover-bg);
}

.portfolio-assets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #d5d7da;
  border-radius: 6px;
  font-family: 'TT Norms Pro', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #414651;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portfolio-assets-btn:hover {
  background: var(--table-row-hover-bg);
  border-color: var(--body-color);
}
