.business-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    color: #222;
}

.business-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    background: #f7f3ec;
    border: 1px solid #e7e0d6;
    border-radius: 999px;
    width: fit-content;
}

    .business-nav a {
        padding: 9px 15px;
        border-radius: 999px;
        color: #4a433d;
        font-weight: 700;
        text-decoration: none;
    }

        .business-nav a:hover, .business-nav a.active {
            background: #AC0E12;
            color: #fff;
        }

.business-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    background: #f7f3ec;
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 24px;
}

    .business-hero h1 {
        margin: 4px 0 8px;
        font-size: clamp(2rem, 4vw, 4rem);
    }

.business-progress-card {
    background: #fff;
    border: 1px solid #e7e0d6;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.business-progress-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

    .business-progress-heading div {
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .business-progress-heading span {
        font-weight: 800;
    }

    .business-progress-heading strong {
        color: #AC0E12;
        font-size: 2rem;
    }

    .business-progress-heading small {
        color: #666;
        font-weight: 700;
    }

.business-progress-track {
    height: 14px;
    overflow: hidden;
    background: #eee8df;
    border-radius: 999px;
}

    .business-progress-track span {
        display: block;
        height: 100%;
        background: #AC0E12;
        border-radius: inherit;
    }

.business-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

    .business-stats div {
        background: #fff;
        border: 1px solid #e7e0d6;
        border-radius: 16px;
        padding: 18px;
    }

    .business-stats strong {
        display: block;
        color: #AC0E12;
        font-size: 1.8rem;
    }

    .business-stats span {
        color: #666;
        font-weight: 700;
    }

.business-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

    .business-dashboard-grid .production-card {
        margin-bottom: 0;
    }

.business-wide-card {
    grid-column: 1 / -1;
}

.business-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

    .business-card-heading h2 {
        margin-top: 0;
    }

.business-list {
    display: grid;
}

.business-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    color: #222;
    text-decoration: none;
}

    .business-list-item:last-child {
        border-bottom: 0;
    }

    .business-list-item span:first-child {
        display: grid;
        gap: 3px;
    }

    .business-list-item small, .business-task-table small, .production-table td small {
        display: block;
        color: #6b625b;
        margin-top: 4px;
    }

.task-status {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    white-space: nowrap;
    background: #e8e8e8;
    color: #333;
}

    .task-status.in-progress {
        background: #e8f1fb;
        color: #285985;
    }

    .task-status.waiting {
        background: #fff1cc;
        color: #7a4c00;
    }

    .task-status.complete {
        background: #d8ead0;
        color: #244b20;
    }

    .task-status.not-started {
        background: #ece9e5;
        color: #514b45;
    }

.business-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

    .business-alert.success {
        background: #edf7ea;
        border: 1px solid #cfe5c7;
        color: #244b20;
    }

    .business-alert.error, .business-validation {
        background: #fff0f0;
        border: 1px solid #e4bbbb;
        color: #842029;
    }

.business-validation {
    border-radius: 12px;
    padding: 12px 30px;
    margin-bottom: 18px;
}

.business-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

    .business-detail-grid div {
        padding: 16px;
        background: #f7f7f7;
        border: 1px solid #e3e3e3;
        border-radius: 12px;
    }

    .business-detail-grid strong {
        display: block;
        color: #AC0E12;
        margin-bottom: 6px;
    }

.business-text-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

    .business-text-section p {
        white-space: pre-wrap;
        line-height: 1.6;
    }

.business-upload-form {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

.inline-form {
    display: inline;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #AC0E12;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

    .link-button.danger {
        color: #842029;
    }

.business-danger-zone {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.danger-button {
    border: 1px solid #c9a0a0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: #842029;
    font-weight: 700;
    cursor: pointer;
}

.business-select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .business-hero, .business-dashboard-grid, .business-stats, .business-detail-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .business-wide-card {
        grid-column: auto;
    }

    .business-progress-heading {
        align-items: start;
        flex-direction: column;
    }

    .business-page .production-table {
        display: block;
        overflow-x: auto;
    }
}
