.draft-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding:
        18px
        52px;

    margin: 0;

    border-bottom: 1px solid #e2e8f0;

    background: #ffffff;
}

.draft-back-link {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.draft-back-link:hover {
    text-decoration: underline;
}


.save-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.save-status.is-saving {
    background: #fef3c7;
    color: #92400e;
}

.save-status.is-saved {
    background: #dcfce7;
    color: #166534;
}

.save-status.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.save-status.is-unsaved {
    background: #f1f5f9;
    color: #475569;
}


.overview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    padding:
        48px
        52px
        0;

    margin-bottom: 36px;
}

.overview-new-button {
    flex-shrink: 0;
    text-decoration: none;
}


.overview-section {
    padding:
        28px
        52px;

    border-top: 1px solid #e2e8f0;
}

.overview-section:first-of-type {
    border-top: 0;
}


.overview-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.overview-section-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.overview-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


.overview-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
}


.draft-list {
    display: grid;
    gap: 12px;
}


.draft-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}


.draft-card-main {
    min-width: 0;
}


.draft-order {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}


.draft-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
}


.draft-updated {
    color: #94a3b8;
    font-size: 12px;
}


.draft-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.draft-card-actions form {
    margin: 0;
}


.draft-delete-button {
    color: #b91c1c;
}


.overview-empty {
    padding: 42px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}

.overview-empty.small {
    padding: 24px;
    color: #64748b;
}

.overview-empty h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.overview-empty p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
}


.completed-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.completed-table {
    width: 100%;
    border-collapse: collapse;
}

.completed-table th,
.completed-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.completed-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.completed-table td {
    color: #334155;
    font-size: 14px;
}

.completed-table tbody tr:last-child td {
    border-bottom: 0;
}


@media (
    max-width: 800px
) {
    .overview-header {
        flex-direction: column;
    }

    .draft-card {
        align-items: stretch;
        flex-direction: column;
    }

    .draft-card-actions {
        width: 100%;
    }

    .draft-card-actions a,
    .draft-card-actions form,
    .draft-card-actions button {
        flex: 1;
    }

    .draft-card-actions form button {
        width: 100%;
    }

    .draft-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}