/* =========================================================
   DMU Summary Row
   ---------------------------------------------------------
   Compact horizontal tile: tinted icon + title/meta + optional
   status pill + arrow chip. Renders as <a> or <div>. Reused
   anywhere a single record should link to its detail view.
   ========================================================= */

.dmu-summary-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--dmu-surface-0);
    border: 1px solid var(--dmu-border-0);
    border-radius: 16px;
    box-shadow: var(--dmu-shadow-sm);
    color: var(--dmu-text-0);
    text-decoration: none;
    height: 100%;
    transition: border-color 0.15s ease;
}

a.dmu-summary-row:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--dmu-text-0);
    text-decoration: none;
}

.dmu-summary-row__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
}

.dmu-summary-row__icon i {
    width: 20px;
    height: 20px;
}

.dmu-summary-row__icon--primary   { background-color: var(--primary); }
.dmu-summary-row__icon--success   { background-color: var(--success); }
.dmu-summary-row__icon--warning   { background-color: var(--warning); }
.dmu-summary-row__icon--danger    { background-color: var(--danger); }
.dmu-summary-row__icon--info      { background-color: var(--info); }
.dmu-summary-row__icon--dark      { background-color: var(--dmu-text-3); }
.dmu-summary-row__icon--tertiary  { background-color: var(--tertiary); }
.dmu-summary-row__icon--quaternary { background-color: var(--quaternary); }

.dmu-summary-row__body {
    flex: 1 1 auto;
    min-width: 0;
}

.dmu-summary-row__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dmu-text-0);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.2rem;
}

.dmu-summary-row__meta {
    font-size: 0.78rem;
    color: var(--dmu-text-2);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmu-summary-row__amount {
    font-weight: 600;
    color: var(--dmu-text-1);
}

.dmu-summary-row__sep {
    margin: 0 0.35rem;
    color: var(--dmu-text-3);
}

.dmu-summary-row__arrow {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dmu-surface-2);
    color: var(--dmu-text-3);
    flex: 0 0 auto;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dmu-summary-row__arrow i {
    width: 14px;
    height: 14px;
}

a.dmu-summary-row:hover .dmu-summary-row__arrow {
    background-color: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .dmu-summary-row {
        padding: 0.75rem 0.85rem;
        gap: 0.7rem;
        border-radius: 14px;
        align-items: center;
    }

    .dmu-summary-row__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        align-self: flex-start;
    }

    .dmu-summary-row__body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dmu-summary-row__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dmu-summary-row__meta {
        white-space: normal;
        line-height: 1.5;
    }

    /* Whole row is the link — arrow chip is redundant on mobile and
       wraps awkwardly on narrow widths, so drop it. */
    .dmu-summary-row__arrow {
        display: none;
    }
}
