/**
 * Inventaris Aset Desa - Halaman publik
 */

.page-aset .aset-main {
    padding: 2rem 1rem;
    min-height: 50vh;
}

.aset-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 4vw, 1.5rem);
}

.aset-title {
    font-size: 1.6rem;
    color: #1e3a8a;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aset-title i {
    color: #1e40af;
}

.aset-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.aset-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.aset-filter-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #1e40af;
    background: #dbeafe;
    border: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.aset-filter-btn:hover {
    background: #bfdbfe;
    color: #1e3a8a;
}

.aset-filter-btn.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e3a8a;
}

.aset-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #bae6fd;
}

.aset-summary-item {
    font-size: 0.95rem;
    color: #0c4a6e;
}

.aset-summary-item strong {
    color: #1e40af;
}

.aset-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.aset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.aset-table th,
.aset-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.aset-table thead th {
    background: #1e40af;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.aset-table tbody tr:hover {
    background: #f8fafc;
}

.aset-cell-right {
    text-align: right;
    white-space: nowrap;
}

.aset-cell-name {
    font-weight: 500;
    color: #1e3a8a;
}

.aset-cell-nilai {
    font-weight: 600;
    color: #0f766e;
}

.aset-cell-ket {
    max-width: 200px;
    color: #64748b;
    font-size: 0.85rem;
}

.aset-kode {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #475569;
}

.aset-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.aset-badge-baik {
    background: #d1fae5;
    color: #065f46;
}

.aset-badge-cukup {
    background: #fef3c7;
    color: #92400e;
}

.aset-badge-rusak {
    background: #fee2e2;
    color: #991b1b;
}

.aset-badge-lain {
    background: #f1f5f9;
    color: #475569;
}

.aset-empty {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    color: #92400e;
    text-align: center;
}

.aset-empty p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .page-aset .aset-main {
        padding: 1.25rem 0.75rem;
    }

    .aset-table {
        font-size: 0.8rem;
    }

    .aset-table th,
    .aset-table td {
        padding: 0.5rem 0.4rem;
    }

    .aset-cell-ket {
        max-width: 120px;
    }
}
