:root {
    --primary: #0d6efd;
    --bg: #f5f7fb;
    --card: #ffffff;
}

body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-container {
    max-width: 1100px;
    margin: auto;
    padding: 15px;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn {
    border-radius: 10px;
}

.navbar {
    border-bottom: 1px solid #eee;
}

.kpi {
    font-size: 1.4rem;
    font-weight: bold;
}

.kpi-label {
    font-size: 0.85rem;
    color: #666;
}
.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
}

.card-soft {
    border-radius: 16px;
    border: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.product-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.product-name {
    font-weight: 600;
    line-height: 1.2;
}

.product-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.badge-soft {
    background: #eef2ff;
    color: #334155;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

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

.form-card {
    max-width: 760px;
    margin: 0 auto;
}

.table-products td,
.table-products th {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .mobile-stack-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-full {
        width: 100%;
    }
}
table td {
    vertical-align: middle;
}

table form {
    margin: 0;
}

.card h4,
.card h5 {
    margin-bottom: 0;
}

.btn-light {
    border: 1px solid #dee2e6;
    background: #fff;
}

.btn-light:hover {
    background: #f8f9fa;
}
.navbar .nav-link {
    color: #555;
    font-weight: 500;
}

.navbar .nav-link.active {
    color: var(--primary);
}

.navbar-brand {
    font-size: 1.1rem;
}
.card a.text-decoration-none {
    color: inherit;
}

.card a.text-decoration-none:hover {
    opacity: 0.92;
}

.kpi {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}
.navbar .nav-link {
    color: #555;
    font-weight: 500;
}

.navbar .nav-link.active {
    color: var(--primary);
}

.navbar-brand {
    font-size: 1.1rem;
}

table td {
    vertical-align: middle;
}

table form {
    margin: 0;
}

.card h4,
.card h5 {
    margin-bottom: 0;
}

.btn-light {
    border: 1px solid #dee2e6;
    background: #fff;
}

.btn-light:hover {
    background: #f8f9fa;
}

.card a.text-decoration-none {
    color: inherit;
}

.card a.text-decoration-none:hover {
    opacity: 0.92;
}

.kpi {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}
.purchase-row {
    border-radius: 14px;
}

.purchase-row .card-body {
    padding: 1rem;
}

.bg-light {
    background-color: #f8f9fa !important;
}

@media (max-width: 767.98px) {
    .purchase-row .remove-row-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}
.app-flash {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}