/* =========================
   DETAIL VIEW
========================= */

.app-detail-wrap {
    width: 100%;
}

.app-detail-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.app-detail-table > tbody > tr > th,
.app-detail-table > tbody > tr > td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--app-border);
    vertical-align: top;
    background: #fff;
}

.app-detail-table > tbody > tr:last-child > th,
.app-detail-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.app-detail-table > tbody > tr > th {
    width: 240px;
    font-size: 13px;
    font-weight: 700;
    color: var(--app-primary);
    background: #f8fafc;
    white-space: nowrap;
}

.app-detail-table > tbody > tr > td {
    font-size: 14px;
    color: var(--app-text);
    line-height: 1.55;
}

.app-detail-value-muted {
    color: var(--app-text-muted);
}

.app-detail-empty {
    color: #94a3b8;
    font-style: italic;
}

.app-detail-link {
    color: var(--app-primary);
    text-decoration: none;
    font-weight: 600;
}

.app-detail-link:hover {
    text-decoration: underline;
}

.app-detail-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.app-detail-section {
    margin-bottom: 20px;
}

.app-detail-section:last-child {
    margin-bottom: 0;
}

.app-detail-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--app-primary);
}

@media (max-width: 768px) {
    .app-detail-table,
    .app-detail-table tbody,
    .app-detail-table tr,
    .app-detail-table th,
    .app-detail-table td {
        display: block;
        width: 100%;
    }

    .app-detail-table > tbody > tr {
        border-bottom: 1px solid var(--app-border);
    }

    .app-detail-table > tbody > tr:last-child {
        border-bottom: 0;
    }

    .app-detail-table > tbody > tr > th,
    .app-detail-table > tbody > tr > td {
        padding: 10px 12px;
        border-bottom: 0;
    }

    .app-detail-table > tbody > tr > th {
        background: #f8fafc;
        width: 100%;
        padding-bottom: 6px;
    }

    .app-detail-table > tbody > tr > td {
        padding-top: 0;
        padding-bottom: 12px;
    }
}


/* =========================
   DETAIL VIEW - MODERN GRID
========================= */

.app-detail-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.app-detail-grid > [class*="col-"] {
    padding: 10px;
}

.app-detail-item {
    height: 100%;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
    padding: 16px 18px;
    transition: var(--app-transition);
}

.app-detail-item:hover {
    box-shadow: var(--app-shadow-sm);
}

.app-detail-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--app-text-muted);
    margin-bottom: 8px;
}

.app-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--app-text);
    line-height: 1.55;
    word-break: break-word;
}

.app-detail-value a {
    color: var(--app-primary);
    text-decoration: none;
    font-weight: 600;
}

.app-detail-value a:hover {
    text-decoration: underline;
}

.app-detail-empty {
    color: #94a3b8;
    font-style: italic;
}

.app-detail-section-block {
    margin-bottom: 18px;
}

.app-detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--app-primary);
    margin: 0 0 12px;
}

@media (max-width: 768px) {
    .app-detail-item {
        padding: 14px 15px;
        border-radius: 12px;
    }

    .app-detail-value {
        font-size: 14px;
    }
}