/* Калькулятор алкоголя на банкет — двухколоночная оболочка */
.balc-app {
    max-width: 1040px;
    padding-bottom: 8px;
}

.balc-head {
    text-align: left;
    margin-bottom: 20px;
}

.balc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.balc-col--left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.balc-col--left .balc-section {
    margin-bottom: 0;
}

.balc-col--result {
    min-width: 0;
}

.balc-section {
    margin-bottom: 18px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.balc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.balc-icon {
    font-size: 1.15em;
    line-height: 1;
}

.balc-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.balc-event-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 88px;
    padding: 12px 12px 10px;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    background: #fafafa;
    color: #1d1d1f;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.balc-event-card:hover {
    border-color: #c7d2fe;
    background: #fff;
}

.balc-event-card.is-active {
    border-color: #4e73df;
    background: linear-gradient(165deg, #f0f4ff 0%, #fff 70%);
    box-shadow: 0 0 0 1px rgba(78, 115, 223, 0.15);
}

.balc-event-card__icon {
    font-size: 22px;
    line-height: 1;
}

.balc-event-card__label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.balc-event-card__hint {
    font-size: 11px;
    line-height: 1.35;
    color: #6e6e73;
}

.balc-toggle-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px dashed #d1d1d6;
    border-radius: 12px;
    background: #f9f9fb;
    color: #4e73df;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.balc-toggle-detail:hover {
    background: #f0f4ff;
    border-color: #b8c5f2;
}

.balc-toggle-detail[aria-expanded="true"] .balc-toggle-detail__chev {
    transform: rotate(180deg);
}

.balc-toggle-detail__chev {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.15s ease;
}

.balc-guests-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ececf0;
}

.balc-guests-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.balc-field-full {
    grid-column: 1 / -1;
}

.balc-guests-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #86868b;
}

.balc-app .calc-stepper input[readonly] {
    background: #f5f5f7;
    color: #6e6e73;
    cursor: default;
}

.balc-app .calc-stepper-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.balc-result-card {
    padding: 18px 16px 16px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(78, 115, 223, 0.08);
}

.balc-result-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86868b;
}

.balc-result-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    line-height: 1.25;
}

.balc-result-card.has-data .balc-result-placeholder {
    display: none;
}

.balc-result-meta {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #6e6e73;
}

.balc-result-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    background: #f2f2f7;
    border-radius: 12px;
}

.balc-result-tab {
    flex: 1;
    min-height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.balc-result-tab.is-active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.balc-result-pane[hidden] {
    display: none !important;
}

.balc-result-placeholder {
    margin-bottom: 14px;
    padding: 16px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 1px dashed #dbe4ff;
    text-align: center;
}

.balc-result-placeholder__icon {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.balc-result-placeholder__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
}

.balc-result-placeholder__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6e6e73;
}

.balc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.balc-summary-item {
    padding: 12px 10px;
    background: #f5f5f7;
    border-radius: 14px;
    text-align: center;
}

.balc-summary-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
    margin-bottom: 6px;
}

.balc-summary-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.15;
}

.balc-summary-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #86868b;
    line-height: 1.3;
}

.balc-shopping-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.balc-shopping-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #ececf0;
    font-size: 14px;
    color: #333;
}

.balc-shopping-list li:last-child {
    border-bottom: none;
}

.balc-shopping-list li span:last-child {
    font-weight: 700;
    color: #86868b;
    white-space: nowrap;
}

.balc-list-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.balc-list-emoji {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.balc-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #ececf0;
}

.balc-action {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #e5e5ea;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.balc-action:hover {
    border-color: #4e73df;
    color: #4e73df;
    background: #f8f9ff;
}

.balc-action:disabled {
    opacity: 0.5;
    cursor: default;
}

@media print {
    body.balc-print-body {
        margin: 0;
        padding: 16px;
        background: #fff;
        color: #111;
    }

    .balc-print-title {
        margin: 0 0 4px;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
    }

    .balc-print-meta {
        margin: 0 0 16px;
        font-size: 13px;
        color: #6e6e73;
        text-align: center;
    }

    .balc-print-footer {
        margin: 14px 0 0;
        font-size: 11px;
        color: #86868b;
        text-align: center;
    }

    .balc-export-sheet {
        box-shadow: none !important;
        border: none !important;
    }

    .balc-result-tabs {
        display: none !important;
    }
}

@media (min-width: 900px) {
    .balc-body {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
        gap: 24px;
        align-items: start;
    }

    .balc-col--result {
        position: sticky;
        top: 16px;
        align-self: start;
    }

    .balc-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .balc-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .balc-event-grid {
        grid-template-columns: 1fr;
    }
}
