﻿/* =========================================
   Modern Card + Table + KPI Design
   ========================================= */



/* ---------- GENERIC CARD ---------- */
.card-block {
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* ---------- SELF COST BLOCK ---------- */
.self-cost-container {
    composes: card-block;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.self-cost-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.self-cost-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #005e9e;
}

/* ---------- TABLE ---------- */
.self-cost-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

    .self-cost-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.92rem;
    }

    .self-cost-table-wrapper th {
        text-align: left;
        font-weight: 600;
        background: #f7f7f7;
        padding: 0.5rem;
        border-bottom: 1px solid #ddd;
    }

    .self-cost-table-wrapper td {
        padding: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .self-cost-table-wrapper tr:last-child td {
        border-bottom: none;
    }

/* ---------- PRICING CARD ---------- */
.recipe-pricing-card {
    composes: card-block;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Grid (2 columns desktop → 1 column mobile) */
.pricing-card__inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1rem 2rem;
}

.pricing-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* ---------- KPI Block ---------- */
.pricing-card__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

/* KPI Card */
.pricing-pill {
    background: #f4f7fa;
    border: 1px solid #dbe2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pill-label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.pill-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2a2a2a;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .pricing-card__inputs {
        grid-template-columns: 1fr;
    }

    .self-cost-price {
        font-size: 1.05rem;
    }
}


/* =========================================
   Self Cost Table - Modern Spacing
   ========================================= */

.self-cost-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem;
}

    .self-cost-table-wrapper table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 6px; /* Abstand zwischen Zeilen */
        font-size: 0.95rem;
    }

    .self-cost-table-wrapper thead tr th {
        background: #f3f5f7;
        padding: 0.75rem 1rem;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e4e7;
    }

    .self-cost-table-wrapper tbody tr {
        background: #ffffff;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

        .self-cost-table-wrapper tbody tr td {
            padding: 0.65rem 1rem;
            border-top: 1px solid #eef0f2;
        }

            .self-cost-table-wrapper tbody tr td:first-child {
                border-left: 1px solid #eef0f2;
                border-radius: 6px 0 0 6px;
            }

            .self-cost-table-wrapper tbody tr td:last-child {
                border-right: 1px solid #eef0f2;
                border-radius: 0 6px 6px 0;
            }

        .self-cost-table-wrapper tbody tr:last-child td {
            font-weight: 700;
        }

@media (max-width: 768px) {
    .self-cost-table-wrapper table {
        font-size: 0.85rem;
    }

.self-cost-table-wrapper tbody tr td {
            padding: 0.5rem 0.75rem;
        }
}

.rz-progressbar-label {
    color: transparent;
}

.ai-emoji-options {
    margin-top: 0.75rem;
}

.ai-alert {
    margin-bottom: 0.75rem;
}
